Represents a StoragePools
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.StoragePoolsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new StoragePools service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
aggregatedList(request, callback)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListStoragePoolsRequest, callback: google.cloud.compute.v1.StoragePools.AggregatedListCallback): void;
Calls AggregatedList.
Parameters | |
---|---|
Name | Description |
request |
IAggregatedListStoragePoolsRequest
AggregatedListStoragePoolsRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and StoragePoolAggregatedList |
Returns | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListStoragePoolsRequest): Promise<google.cloud.compute.v1.StoragePoolAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListStoragePoolsRequest
AggregatedListStoragePoolsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.StoragePoolAggregatedList> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): StoragePools;
Creates new StoragePools 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 |
StoragePools |
RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteStoragePoolRequest, callback: google.cloud.compute.v1.StoragePools.DeleteCallback): void;
Calls Delete.
Parameters | |
---|---|
Name | Description |
request |
IDeleteStoragePoolRequest
DeleteStoragePoolRequest 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.IDeleteStoragePoolRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteStoragePoolRequest
DeleteStoragePoolRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetStoragePoolRequest, callback: google.cloud.compute.v1.StoragePools.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
IGetStoragePoolRequest
GetStoragePoolRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and StoragePool |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetStoragePoolRequest): Promise<google.cloud.compute.v1.StoragePool>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetStoragePoolRequest
GetStoragePoolRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.StoragePool> |
Promise |
getIamPolicy(request, callback)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyStoragePoolRequest, callback: google.cloud.compute.v1.StoragePools.GetIamPolicyCallback): void;
Calls GetIamPolicy.
Parameters | |
---|---|
Name | Description |
request |
IGetIamPolicyStoragePoolRequest
GetIamPolicyStoragePoolRequest 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.IGetIamPolicyStoragePoolRequest): Promise<google.cloud.compute.v1.Policy>;
Calls GetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
IGetIamPolicyStoragePoolRequest
GetIamPolicyStoragePoolRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Policy> |
Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertStoragePoolRequest, callback: google.cloud.compute.v1.StoragePools.InsertCallback): void;
Calls Insert.
Parameters | |
---|---|
Name | Description |
request |
IInsertStoragePoolRequest
InsertStoragePoolRequest 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.IInsertStoragePoolRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertStoragePoolRequest
InsertStoragePoolRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListStoragePoolsRequest, callback: google.cloud.compute.v1.StoragePools.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListStoragePoolsRequest
ListStoragePoolsRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and StoragePoolList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListStoragePoolsRequest): Promise<google.cloud.compute.v1.StoragePoolList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListStoragePoolsRequest
ListStoragePoolsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.StoragePoolList> |
Promise |
listDisks(request, callback)
public listDisks(request: google.cloud.compute.v1.IListDisksStoragePoolsRequest, callback: google.cloud.compute.v1.StoragePools.ListDisksCallback): void;
Calls ListDisks.
Parameters | |
---|---|
Name | Description |
request |
IListDisksStoragePoolsRequest
ListDisksStoragePoolsRequest message or plain object |
callback |
ListDisksCallback
Node-style callback called with the error, if any, and StoragePoolListDisks |
Returns | |
---|---|
Type | Description |
void |
listDisks(request)
public listDisks(request: google.cloud.compute.v1.IListDisksStoragePoolsRequest): Promise<google.cloud.compute.v1.StoragePoolListDisks>;
Calls ListDisks.
Parameter | |
---|---|
Name | Description |
request |
IListDisksStoragePoolsRequest
ListDisksStoragePoolsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.StoragePoolListDisks> |
Promise |
setIamPolicy(request, callback)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyStoragePoolRequest, callback: google.cloud.compute.v1.StoragePools.SetIamPolicyCallback): void;
Calls SetIamPolicy.
Parameters | |
---|---|
Name | Description |
request |
ISetIamPolicyStoragePoolRequest
SetIamPolicyStoragePoolRequest 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.ISetIamPolicyStoragePoolRequest): Promise<google.cloud.compute.v1.Policy>;
Calls SetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
ISetIamPolicyStoragePoolRequest
SetIamPolicyStoragePoolRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Policy> |
Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsStoragePoolRequest, callback: google.cloud.compute.v1.StoragePools.TestIamPermissionsCallback): void;
Calls TestIamPermissions.
Parameters | |
---|---|
Name | Description |
request |
ITestIamPermissionsStoragePoolRequest
TestIamPermissionsStoragePoolRequest 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.ITestIamPermissionsStoragePoolRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;
Calls TestIamPermissions.
Parameter | |
---|---|
Name | Description |
request |
ITestIamPermissionsStoragePoolRequest
TestIamPermissionsStoragePoolRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.TestPermissionsResponse> |
Promise |
update(request, callback)
public update(request: google.cloud.compute.v1.IUpdateStoragePoolRequest, callback: google.cloud.compute.v1.StoragePools.UpdateCallback): void;
Calls Update.
Parameters | |
---|---|
Name | Description |
request |
IUpdateStoragePoolRequest
UpdateStoragePoolRequest 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.IUpdateStoragePoolRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Update.
Parameter | |
---|---|
Name | Description |
request |
IUpdateStoragePoolRequest
UpdateStoragePoolRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |