GkeHub

google.cloud.gkehub.v1beta. 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.v1beta.ICreateFeatureRequest

CreateFeatureRequest message or plain object

callback google.cloud.gkehub.v1beta.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.v1beta.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.v1beta.IDeleteFeatureRequest

DeleteFeatureRequest message or plain object

callback google.cloud.gkehub.v1beta.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.v1beta.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.v1beta.IGetFeatureRequest

GetFeatureRequest message or plain object

callback google.cloud.gkehub.v1beta.GkeHub.GetFeatureCallback

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

Returns:
Type Description
undefined

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

Calls GetFeature.

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

GetFeatureRequest message or plain object

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

Promise

listFeatures(request, callback) → {undefined}

Calls ListFeatures.

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

ListFeaturesRequest message or plain object

callback google.cloud.gkehub.v1beta.GkeHub.ListFeaturesCallback

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

Returns:
Type Description
undefined

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

Calls ListFeatures.

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

ListFeaturesRequest message or plain object

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

Promise

updateFeature(request, callback) → {undefined}

Calls UpdateFeature.

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

UpdateFeatureRequest message or plain object

callback google.cloud.gkehub.v1beta.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.v1beta.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.v1beta.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.v1beta.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