Represents a StoragePoolTypes
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.StoragePoolTypesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new StoragePoolTypes 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.IAggregatedListStoragePoolTypesRequest, callback: google.cloud.compute.v1.StoragePoolTypes.AggregatedListCallback): void;
Calls AggregatedList.
Parameters | |
---|---|
Name | Description |
request |
IAggregatedListStoragePoolTypesRequest
AggregatedListStoragePoolTypesRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and StoragePoolTypeAggregatedList |
Returns | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest): Promise<google.cloud.compute.v1.StoragePoolTypeAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListStoragePoolTypesRequest
AggregatedListStoragePoolTypesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.StoragePoolTypeAggregatedList> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): StoragePoolTypes;
Creates new StoragePoolTypes 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 |
StoragePoolTypes |
RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetStoragePoolTypeRequest, callback: google.cloud.compute.v1.StoragePoolTypes.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
IGetStoragePoolTypeRequest
GetStoragePoolTypeRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and StoragePoolType |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetStoragePoolTypeRequest): Promise<google.cloud.compute.v1.StoragePoolType>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetStoragePoolTypeRequest
GetStoragePoolTypeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.StoragePoolType> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListStoragePoolTypesRequest, callback: google.cloud.compute.v1.StoragePoolTypes.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListStoragePoolTypesRequest
ListStoragePoolTypesRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and StoragePoolTypeList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListStoragePoolTypesRequest): Promise<google.cloud.compute.v1.StoragePoolTypeList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListStoragePoolTypesRequest
ListStoragePoolTypesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.StoragePoolTypeList> |
Promise |