Class protos.google.cloud.gkehub.v1alpha2.GkeHub

Represents a GkeHub

Inheritance

$protobuf.rpc.Service > protos.google.cloud.gkehub.v1alpha2.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
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
GkeHub

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

createMembership(request, callback)

public createMembership(request: google.cloud.gkehub.v1alpha2.ICreateMembershipRequest, callback: google.cloud.gkehub.v1alpha2.GkeHub.CreateMembershipCallback): void;

Calls CreateMembership.

Parameters
NameDescription
request google.cloud.gkehub.v1alpha2.ICreateMembershipRequest

CreateMembershipRequest message or plain object

callback google.cloud.gkehub.v1alpha2.GkeHub.CreateMembershipCallback

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

Returns
TypeDescription
void

createMembership(request)

public createMembership(request: google.cloud.gkehub.v1alpha2.ICreateMembershipRequest): Promise<google.longrunning.Operation>;

Calls CreateMembership.

Parameter
NameDescription
request google.cloud.gkehub.v1alpha2.ICreateMembershipRequest

CreateMembershipRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteMembership(request, callback)

public deleteMembership(request: google.cloud.gkehub.v1alpha2.IDeleteMembershipRequest, callback: google.cloud.gkehub.v1alpha2.GkeHub.DeleteMembershipCallback): void;

Calls DeleteMembership.

Parameters
NameDescription
request google.cloud.gkehub.v1alpha2.IDeleteMembershipRequest

DeleteMembershipRequest message or plain object

callback google.cloud.gkehub.v1alpha2.GkeHub.DeleteMembershipCallback

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

Returns
TypeDescription
void

deleteMembership(request)

public deleteMembership(request: google.cloud.gkehub.v1alpha2.IDeleteMembershipRequest): Promise<google.longrunning.Operation>;

Calls DeleteMembership.

Parameter
NameDescription
request google.cloud.gkehub.v1alpha2.IDeleteMembershipRequest

DeleteMembershipRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

generateConnectManifest(request, callback)

public generateConnectManifest(request: google.cloud.gkehub.v1alpha2.IGenerateConnectManifestRequest, callback: google.cloud.gkehub.v1alpha2.GkeHub.GenerateConnectManifestCallback): void;

Calls GenerateConnectManifest.

Parameters
NameDescription
request google.cloud.gkehub.v1alpha2.IGenerateConnectManifestRequest

GenerateConnectManifestRequest message or plain object

callback google.cloud.gkehub.v1alpha2.GkeHub.GenerateConnectManifestCallback

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

Returns
TypeDescription
void

generateConnectManifest(request)

public generateConnectManifest(request: google.cloud.gkehub.v1alpha2.IGenerateConnectManifestRequest): Promise<google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse>;

Calls GenerateConnectManifest.

Parameter
NameDescription
request google.cloud.gkehub.v1alpha2.IGenerateConnectManifestRequest

GenerateConnectManifestRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse>

Promise

getMembership(request, callback)

public getMembership(request: google.cloud.gkehub.v1alpha2.IGetMembershipRequest, callback: google.cloud.gkehub.v1alpha2.GkeHub.GetMembershipCallback): void;

Calls GetMembership.

Parameters
NameDescription
request google.cloud.gkehub.v1alpha2.IGetMembershipRequest

GetMembershipRequest message or plain object

callback google.cloud.gkehub.v1alpha2.GkeHub.GetMembershipCallback

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

Returns
TypeDescription
void

getMembership(request)

public getMembership(request: google.cloud.gkehub.v1alpha2.IGetMembershipRequest): Promise<google.cloud.gkehub.v1alpha2.Membership>;

Calls GetMembership.

Parameter
NameDescription
request google.cloud.gkehub.v1alpha2.IGetMembershipRequest

GetMembershipRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.gkehub.v1alpha2.Membership>

Promise

initializeHub(request, callback)

public initializeHub(request: google.cloud.gkehub.v1alpha2.IInitializeHubRequest, callback: google.cloud.gkehub.v1alpha2.GkeHub.InitializeHubCallback): void;

Calls InitializeHub.

Parameters
NameDescription
request google.cloud.gkehub.v1alpha2.IInitializeHubRequest

InitializeHubRequest message or plain object

callback google.cloud.gkehub.v1alpha2.GkeHub.InitializeHubCallback

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

Returns
TypeDescription
void

initializeHub(request)

public initializeHub(request: google.cloud.gkehub.v1alpha2.IInitializeHubRequest): Promise<google.cloud.gkehub.v1alpha2.InitializeHubResponse>;

Calls InitializeHub.

Parameter
NameDescription
request google.cloud.gkehub.v1alpha2.IInitializeHubRequest

InitializeHubRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.gkehub.v1alpha2.InitializeHubResponse>

Promise

listMemberships(request, callback)

public listMemberships(request: google.cloud.gkehub.v1alpha2.IListMembershipsRequest, callback: google.cloud.gkehub.v1alpha2.GkeHub.ListMembershipsCallback): void;

Calls ListMemberships.

Parameters
NameDescription
request google.cloud.gkehub.v1alpha2.IListMembershipsRequest

ListMembershipsRequest message or plain object

callback google.cloud.gkehub.v1alpha2.GkeHub.ListMembershipsCallback

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

Returns
TypeDescription
void

listMemberships(request)

public listMemberships(request: google.cloud.gkehub.v1alpha2.IListMembershipsRequest): Promise<google.cloud.gkehub.v1alpha2.ListMembershipsResponse>;

Calls ListMemberships.

Parameter
NameDescription
request google.cloud.gkehub.v1alpha2.IListMembershipsRequest

ListMembershipsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.gkehub.v1alpha2.ListMembershipsResponse>

Promise

updateMembership(request, callback)

public updateMembership(request: google.cloud.gkehub.v1alpha2.IUpdateMembershipRequest, callback: google.cloud.gkehub.v1alpha2.GkeHub.UpdateMembershipCallback): void;

Calls UpdateMembership.

Parameters
NameDescription
request google.cloud.gkehub.v1alpha2.IUpdateMembershipRequest

UpdateMembershipRequest message or plain object

callback google.cloud.gkehub.v1alpha2.GkeHub.UpdateMembershipCallback

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

Returns
TypeDescription
void

updateMembership(request)

public updateMembership(request: google.cloud.gkehub.v1alpha2.IUpdateMembershipRequest): Promise<google.longrunning.Operation>;

Calls UpdateMembership.

Parameter
NameDescription
request google.cloud.gkehub.v1alpha2.IUpdateMembershipRequest

UpdateMembershipRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise