Represents a RegionDisks
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.RegionDisksPackage
@google-cloud/computeConstructors
(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 |
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 | |
---|---|
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 |
google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest
AddResourcePoliciesRegionDiskRequest 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 |
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 | |
---|---|
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 |
google.cloud.compute.v1.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 |
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 | |
---|---|
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 |
google.cloud.compute.v1.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 |
google.cloud.compute.v1.RegionDisks.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 |
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 | |
---|---|
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 |
google.cloud.compute.v1.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 |
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 | |
---|---|
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 |
google.cloud.compute.v1.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 |
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 | |
---|---|
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 |
google.cloud.compute.v1.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 |
google.cloud.compute.v1.RegionDisks.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 |
google.cloud.compute.v1.RegionDisks.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 |
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 | |
---|---|
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 |
google.cloud.compute.v1.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 |
google.cloud.compute.v1.RegionDisks.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 |
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 |
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 | |
---|---|
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 |
google.cloud.compute.v1.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 |
google.cloud.compute.v1.RegionDisks.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 |