Represents a PreviewFeatures
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.PreviewFeaturesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new PreviewFeatures service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PreviewFeatures;Creates new PreviewFeatures 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 |
PreviewFeatures |
RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetPreviewFeatureRequest, callback: google.cloud.compute.v1.PreviewFeatures.GetCallback): void;Calls Get.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetPreviewFeatureRequest
GetPreviewFeatureRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and PreviewFeature |
| Returns | |
|---|---|
| Type | Description |
void |
|
get(request)
public get(request: google.cloud.compute.v1.IGetPreviewFeatureRequest): Promise<google.cloud.compute.v1.PreviewFeature>;Calls Get.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetPreviewFeatureRequest
GetPreviewFeatureRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1.PreviewFeature> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListPreviewFeaturesRequest, callback: google.cloud.compute.v1.PreviewFeatures.ListCallback): void;Calls List.
| Parameters | |
|---|---|
| Name | Description |
request |
IListPreviewFeaturesRequest
ListPreviewFeaturesRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and PreviewFeatureList |
| Returns | |
|---|---|
| Type | Description |
void |
|
list(request)
public list(request: google.cloud.compute.v1.IListPreviewFeaturesRequest): Promise<google.cloud.compute.v1.PreviewFeatureList>;Calls List.
| Parameter | |
|---|---|
| Name | Description |
request |
IListPreviewFeaturesRequest
ListPreviewFeaturesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1.PreviewFeatureList> |
Promise |
update(request, callback)
public update(request: google.cloud.compute.v1.IUpdatePreviewFeatureRequest, callback: google.cloud.compute.v1.PreviewFeatures.UpdateCallback): void;Calls Update.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdatePreviewFeatureRequest
UpdatePreviewFeatureRequest 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.IUpdatePreviewFeatureRequest): Promise<google.cloud.compute.v1.Operation>;Calls Update.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdatePreviewFeatureRequest
UpdatePreviewFeatureRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |