GkeHub

google.cloud.gkehub.v1alpha. GkeHub

Represents a GkeHub

Constructor

new GkeHub(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new GkeHub service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createFeature(request, callback) → {undefined}

Calls CreateFeature.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.ICreateFeatureRequest

CreateFeatureRequest message or plain object

callback google.cloud.gkehub.v1alpha.GkeHub.CreateFeatureCallback

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

Returns:
Type Description
undefined

createFeature(request) → {Promise.<google.longrunning.Operation>}

Calls CreateFeature.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.ICreateFeatureRequest

CreateFeatureRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteFeature(request, callback) → {undefined}

Calls DeleteFeature.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.IDeleteFeatureRequest

DeleteFeatureRequest message or plain object

callback google.cloud.gkehub.v1alpha.GkeHub.DeleteFeatureCallback

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

Returns:
Type Description
undefined

deleteFeature(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteFeature.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.IDeleteFeatureRequest

DeleteFeatureRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

getFeature(request, callback) → {undefined}

Calls GetFeature.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.IGetFeatureRequest

GetFeatureRequest message or plain object

callback google.cloud.gkehub.v1alpha.GkeHub.GetFeatureCallback

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

Returns:
Type Description
undefined

getFeature(request) → {Promise.<google.cloud.gkehub.v1alpha.Feature>}

Calls GetFeature.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.IGetFeatureRequest

GetFeatureRequest message or plain object

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

Promise

listFeatures(request, callback) → {undefined}

Calls ListFeatures.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.IListFeaturesRequest

ListFeaturesRequest message or plain object

callback google.cloud.gkehub.v1alpha.GkeHub.ListFeaturesCallback

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

Returns:
Type Description
undefined

listFeatures(request) → {Promise.<google.cloud.gkehub.v1alpha.ListFeaturesResponse>}

Calls ListFeatures.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.IListFeaturesRequest

ListFeaturesRequest message or plain object

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

Promise

updateFeature(request, callback) → {undefined}

Calls UpdateFeature.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.IUpdateFeatureRequest

UpdateFeatureRequest message or plain object

callback google.cloud.gkehub.v1alpha.GkeHub.UpdateFeatureCallback

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

Returns:
Type Description
undefined

updateFeature(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateFeature.

Parameters:
Name Type Description
request google.cloud.gkehub.v1alpha.IUpdateFeatureRequest

UpdateFeatureRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {GkeHub}

Creates new GkeHub service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
GkeHub

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

Type Definitions

CreateFeatureCallback(error, responseopt)

Callback as used by createFeature.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteFeatureCallback(error, responseopt)

Callback as used by deleteFeature.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetFeatureCallback(error, responseopt)

Callback as used by getFeature.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.gkehub.v1alpha.Feature <optional>

Feature

ListFeaturesCallback(error, responseopt)

Callback as used by listFeatures.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.gkehub.v1alpha.ListFeaturesResponse <optional>

ListFeaturesResponse

UpdateFeatureCallback(error, responseopt)

Callback as used by updateFeature.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation