Class protos.google.cloud.compute.v1.RegionDisks (4.5.0)

Represents a RegionDisks

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.RegionDisks

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new RegionDisks service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

addResourcePolicies(request, callback)

public addResourcePolicies(request: google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.AddResourcePoliciesCallback): void;

Calls AddResourcePolicies.

Parameters
Name Description
request IAddResourcePoliciesRegionDiskRequest

AddResourcePoliciesRegionDiskRequest message or plain object

callback AddResourcePoliciesCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

addResourcePolicies(request)

public addResourcePolicies(request: google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls AddResourcePolicies.

Parameter
Name Description
request IAddResourcePoliciesRegionDiskRequest

AddResourcePoliciesRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

bulkInsert(request, callback)

public bulkInsert(request: google.cloud.compute.v1.IBulkInsertRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.BulkInsertCallback): void;

Calls BulkInsert.

Parameters
Name Description
request IBulkInsertRegionDiskRequest

BulkInsertRegionDiskRequest message or plain object

callback BulkInsertCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

bulkInsert(request)

public bulkInsert(request: google.cloud.compute.v1.IBulkInsertRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls BulkInsert.

Parameter
Name Description
request IBulkInsertRegionDiskRequest

BulkInsertRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionDisks;

Creates new RegionDisks service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
RegionDisks

RPC service. Useful where requests and/or responses are streamed.

createSnapshot(request, callback)

public createSnapshot(request: google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.CreateSnapshotCallback): void;

Calls CreateSnapshot.

Parameters
Name Description
request ICreateSnapshotRegionDiskRequest

CreateSnapshotRegionDiskRequest message or plain object

callback CreateSnapshotCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

createSnapshot(request)

public createSnapshot(request: google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls CreateSnapshot.

Parameter
Name Description
request ICreateSnapshotRegionDiskRequest

CreateSnapshotRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

delete(request, callback)

public delete(request: google.cloud.compute.v1.IDeleteRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.DeleteCallback): void;

Calls Delete.

Parameters
Name Description
request IDeleteRegionDiskRequest

DeleteRegionDiskRequest message or plain object

callback DeleteCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
Name Description
request IDeleteRegionDiskRequest

DeleteRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

public get(request: google.cloud.compute.v1.IGetRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.GetCallback): void;

Calls Get.

Parameters
Name Description
request IGetRegionDiskRequest

GetRegionDiskRequest message or plain object

callback GetCallback

Node-style callback called with the error, if any, and Disk

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1.IGetRegionDiskRequest): Promise<google.cloud.compute.v1.Disk>;

Calls Get.

Parameter
Name Description
request IGetRegionDiskRequest

GetRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Disk>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
Name Description
request IGetIamPolicyRegionDiskRequest

GetIamPolicyRegionDiskRequest message or plain object

callback GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
Type Description
void

getIamPolicy(request)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest): Promise<google.cloud.compute.v1.Policy>;

Calls GetIamPolicy.

Parameter
Name Description
request IGetIamPolicyRegionDiskRequest

GetIamPolicyRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Policy>

Promise

insert(request, callback)

public insert(request: google.cloud.compute.v1.IInsertRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.InsertCallback): void;

Calls Insert.

Parameters
Name Description
request IInsertRegionDiskRequest

InsertRegionDiskRequest message or plain object

callback InsertCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

insert(request)

public insert(request: google.cloud.compute.v1.IInsertRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
Name Description
request IInsertRegionDiskRequest

InsertRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

public list(request: google.cloud.compute.v1.IListRegionDisksRequest, callback: google.cloud.compute.v1.RegionDisks.ListCallback): void;

Calls List.

Parameters
Name Description
request IListRegionDisksRequest

ListRegionDisksRequest message or plain object

callback ListCallback

Node-style callback called with the error, if any, and DiskList

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1.IListRegionDisksRequest): Promise<google.cloud.compute.v1.DiskList>;

Calls List.

Parameter
Name Description
request IListRegionDisksRequest

ListRegionDisksRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.DiskList>

Promise

removeResourcePolicies(request, callback)

public removeResourcePolicies(request: google.cloud.compute.v1.IRemoveResourcePoliciesRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.RemoveResourcePoliciesCallback): void;

Calls RemoveResourcePolicies.

Parameters
Name Description
request IRemoveResourcePoliciesRegionDiskRequest

RemoveResourcePoliciesRegionDiskRequest message or plain object

callback RemoveResourcePoliciesCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

removeResourcePolicies(request)

public removeResourcePolicies(request: google.cloud.compute.v1.IRemoveResourcePoliciesRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls RemoveResourcePolicies.

Parameter
Name Description
request IRemoveResourcePoliciesRegionDiskRequest

RemoveResourcePoliciesRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

resize(request, callback)

public resize(request: google.cloud.compute.v1.IResizeRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.ResizeCallback): void;

Calls Resize.

Parameters
Name Description
request IResizeRegionDiskRequest

ResizeRegionDiskRequest message or plain object

callback ResizeCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

resize(request)

public resize(request: google.cloud.compute.v1.IResizeRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Resize.

Parameter
Name Description
request IResizeRegionDiskRequest

ResizeRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
Name Description
request ISetIamPolicyRegionDiskRequest

SetIamPolicyRegionDiskRequest message or plain object

callback SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
Type Description
void

setIamPolicy(request)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest): Promise<google.cloud.compute.v1.Policy>;

Calls SetIamPolicy.

Parameter
Name Description
request ISetIamPolicyRegionDiskRequest

SetIamPolicyRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Policy>

Promise

setLabels(request, callback)

public setLabels(request: google.cloud.compute.v1.ISetLabelsRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.SetLabelsCallback): void;

Calls SetLabels.

Parameters
Name Description
request ISetLabelsRegionDiskRequest

SetLabelsRegionDiskRequest message or plain object

callback SetLabelsCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

setLabels(request)

public setLabels(request: google.cloud.compute.v1.ISetLabelsRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetLabels.

Parameter
Name Description
request ISetLabelsRegionDiskRequest

SetLabelsRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

startAsyncReplication(request, callback)

public startAsyncReplication(request: google.cloud.compute.v1.IStartAsyncReplicationRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.StartAsyncReplicationCallback): void;

Calls StartAsyncReplication.

Parameters
Name Description
request IStartAsyncReplicationRegionDiskRequest

StartAsyncReplicationRegionDiskRequest message or plain object

callback StartAsyncReplicationCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

startAsyncReplication(request)

public startAsyncReplication(request: google.cloud.compute.v1.IStartAsyncReplicationRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls StartAsyncReplication.

Parameter
Name Description
request IStartAsyncReplicationRegionDiskRequest

StartAsyncReplicationRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

stopAsyncReplication(request, callback)

public stopAsyncReplication(request: google.cloud.compute.v1.IStopAsyncReplicationRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.StopAsyncReplicationCallback): void;

Calls StopAsyncReplication.

Parameters
Name Description
request IStopAsyncReplicationRegionDiskRequest

StopAsyncReplicationRegionDiskRequest message or plain object

callback StopAsyncReplicationCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

stopAsyncReplication(request)

public stopAsyncReplication(request: google.cloud.compute.v1.IStopAsyncReplicationRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls StopAsyncReplication.

Parameter
Name Description
request IStopAsyncReplicationRegionDiskRequest

StopAsyncReplicationRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

stopGroupAsyncReplication(request, callback)

public stopGroupAsyncReplication(request: google.cloud.compute.v1.IStopGroupAsyncReplicationRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplicationCallback): void;

Calls StopGroupAsyncReplication.

Parameters
Name Description
request IStopGroupAsyncReplicationRegionDiskRequest

StopGroupAsyncReplicationRegionDiskRequest message or plain object

callback StopGroupAsyncReplicationCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

stopGroupAsyncReplication(request)

public stopGroupAsyncReplication(request: google.cloud.compute.v1.IStopGroupAsyncReplicationRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls StopGroupAsyncReplication.

Parameter
Name Description
request IStopGroupAsyncReplicationRegionDiskRequest

StopGroupAsyncReplicationRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
Name Description
request ITestIamPermissionsRegionDiskRequest

TestIamPermissionsRegionDiskRequest message or plain object

callback TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestPermissionsResponse

Returns
Type Description
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
Name Description
request ITestIamPermissionsRegionDiskRequest

TestIamPermissionsRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.TestPermissionsResponse>

Promise

update(request, callback)

public update(request: google.cloud.compute.v1.IUpdateRegionDiskRequest, callback: google.cloud.compute.v1.RegionDisks.UpdateCallback): void;

Calls Update.

Parameters
Name Description
request IUpdateRegionDiskRequest

UpdateRegionDiskRequest message or plain object

callback UpdateCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

update(request)

public update(request: google.cloud.compute.v1.IUpdateRegionDiskRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Update.

Parameter
Name Description
request IUpdateRegionDiskRequest

UpdateRegionDiskRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise