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

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
NameDescription
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
NameDescription
request google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest

AddResourcePoliciesRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.AddResourcePoliciesCallback

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

Returns
TypeDescription
void

addResourcePolicies(request)

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

Calls AddResourcePolicies.

Parameter
NameDescription
request google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest

AddResourcePoliciesRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest

CreateSnapshotRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.CreateSnapshotCallback

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

Returns
TypeDescription
void

createSnapshot(request)

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

Calls CreateSnapshot.

Parameter
NameDescription
request google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest

CreateSnapshotRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.compute.v1.IDeleteRegionDiskRequest

DeleteRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request google.cloud.compute.v1.IDeleteRegionDiskRequest

DeleteRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetRegionDiskRequest

GetRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.GetCallback

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

Returns
TypeDescription
void

get(request)

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

Calls Get.

Parameter
NameDescription
request IGetRegionDiskRequest

GetRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest

GetIamPolicyRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

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

Calls GetIamPolicy.

Parameter
NameDescription
request google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest

GetIamPolicyRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.compute.v1.IInsertRegionDiskRequest

InsertRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request google.cloud.compute.v1.IInsertRegionDiskRequest

InsertRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.compute.v1.IListRegionDisksRequest

ListRegionDisksRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.ListCallback

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

Returns
TypeDescription
void

list(request)

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

Calls List.

Parameter
NameDescription
request google.cloud.compute.v1.IListRegionDisksRequest

ListRegionDisksRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IRemoveResourcePoliciesRegionDiskRequest

RemoveResourcePoliciesRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.RemoveResourcePoliciesCallback

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

Returns
TypeDescription
void

removeResourcePolicies(request)

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

Calls RemoveResourcePolicies.

Parameter
NameDescription
request IRemoveResourcePoliciesRegionDiskRequest

RemoveResourcePoliciesRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IResizeRegionDiskRequest

ResizeRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.ResizeCallback

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

Returns
TypeDescription
void

resize(request)

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

Calls Resize.

Parameter
NameDescription
request IResizeRegionDiskRequest

ResizeRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest

SetIamPolicyRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

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

Calls SetIamPolicy.

Parameter
NameDescription
request google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest

SetIamPolicyRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request ISetLabelsRegionDiskRequest

SetLabelsRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.SetLabelsCallback

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

Returns
TypeDescription
void

setLabels(request)

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

Calls SetLabels.

Parameter
NameDescription
request ISetLabelsRegionDiskRequest

SetLabelsRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest

TestIamPermissionsRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

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

Calls TestIamPermissions.

Parameter
NameDescription
request google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest

TestIamPermissionsRegionDiskRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IUpdateRegionDiskRequest

UpdateRegionDiskRequest message or plain object

callback google.cloud.compute.v1.RegionDisks.UpdateCallback

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

Returns
TypeDescription
void

update(request)

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

Calls Update.

Parameter
NameDescription
request IUpdateRegionDiskRequest

UpdateRegionDiskRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise