Class protos.google.cloud.gkehub.v1alpha.GkeHub (4.2.0)

Represents a GkeHub

Inheritance

$protobuf.rpc.Service > protos.google.cloud.gkehub.v1alpha.GkeHub

Package

@google-cloud/gke-hub

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new GkeHub 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): GkeHub;

Creates new GkeHub 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
GkeHub

RPC service. Useful where requests and/or responses are streamed.

createFeature(request, callback)

public createFeature(request: google.cloud.gkehub.v1alpha.ICreateFeatureRequest, callback: google.cloud.gkehub.v1alpha.GkeHub.CreateFeatureCallback): void;

Calls CreateFeature.

Parameters
Name Description
request ICreateFeatureRequest

CreateFeatureRequest message or plain object

callback CreateFeatureCallback

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

Returns
Type Description
void

createFeature(request)

public createFeature(request: google.cloud.gkehub.v1alpha.ICreateFeatureRequest): Promise<google.longrunning.Operation>;

Calls CreateFeature.

Parameter
Name Description
request ICreateFeatureRequest

CreateFeatureRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

deleteFeature(request, callback)

public deleteFeature(request: google.cloud.gkehub.v1alpha.IDeleteFeatureRequest, callback: google.cloud.gkehub.v1alpha.GkeHub.DeleteFeatureCallback): void;

Calls DeleteFeature.

Parameters
Name Description
request IDeleteFeatureRequest

DeleteFeatureRequest message or plain object

callback DeleteFeatureCallback

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

Returns
Type Description
void

deleteFeature(request)

public deleteFeature(request: google.cloud.gkehub.v1alpha.IDeleteFeatureRequest): Promise<google.longrunning.Operation>;

Calls DeleteFeature.

Parameter
Name Description
request IDeleteFeatureRequest

DeleteFeatureRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

getFeature(request, callback)

public getFeature(request: google.cloud.gkehub.v1alpha.IGetFeatureRequest, callback: google.cloud.gkehub.v1alpha.GkeHub.GetFeatureCallback): void;

Calls GetFeature.

Parameters
Name Description
request IGetFeatureRequest

GetFeatureRequest message or plain object

callback GetFeatureCallback

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

Returns
Type Description
void

getFeature(request)

public getFeature(request: google.cloud.gkehub.v1alpha.IGetFeatureRequest): Promise<google.cloud.gkehub.v1alpha.Feature>;

Calls GetFeature.

Parameter
Name Description
request IGetFeatureRequest

GetFeatureRequest message or plain object

Returns
Type Description
Promise<google.cloud.gkehub.v1alpha.Feature>

Promise

listFeatures(request, callback)

public listFeatures(request: google.cloud.gkehub.v1alpha.IListFeaturesRequest, callback: google.cloud.gkehub.v1alpha.GkeHub.ListFeaturesCallback): void;

Calls ListFeatures.

Parameters
Name Description
request IListFeaturesRequest

ListFeaturesRequest message or plain object

callback ListFeaturesCallback

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

Returns
Type Description
void

listFeatures(request)

public listFeatures(request: google.cloud.gkehub.v1alpha.IListFeaturesRequest): Promise<google.cloud.gkehub.v1alpha.ListFeaturesResponse>;

Calls ListFeatures.

Parameter
Name Description
request IListFeaturesRequest

ListFeaturesRequest message or plain object

Returns
Type Description
Promise<google.cloud.gkehub.v1alpha.ListFeaturesResponse>

Promise

updateFeature(request, callback)

public updateFeature(request: google.cloud.gkehub.v1alpha.IUpdateFeatureRequest, callback: google.cloud.gkehub.v1alpha.GkeHub.UpdateFeatureCallback): void;

Calls UpdateFeature.

Parameters
Name Description
request IUpdateFeatureRequest

UpdateFeatureRequest message or plain object

callback UpdateFeatureCallback

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

Returns
Type Description
void

updateFeature(request)

public updateFeature(request: google.cloud.gkehub.v1alpha.IUpdateFeatureRequest): Promise<google.longrunning.Operation>;

Calls UpdateFeature.

Parameter
Name Description
request IUpdateFeatureRequest

UpdateFeatureRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise