Class protos.google.cloud.gkeconnect.gateway.v1beta1.GatewayService (3.2.0)

Represents a GatewayService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.gkeconnect.gateway.v1beta1.GatewayService

Package

@google-cloud/gke-connect-gateway

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

deleteResource(request, callback)

public deleteResource(request: google.api.IHttpBody, callback: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.DeleteResourceCallback): void;

Calls DeleteResource.

Parameters
NameDescription
request IHttpBody

HttpBody message or plain object

callback DeleteResourceCallback

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

Returns
TypeDescription
void

deleteResource(request)

public deleteResource(request: google.api.IHttpBody): Promise<google.api.HttpBody>;

Calls DeleteResource.

Parameter
NameDescription
request IHttpBody

HttpBody message or plain object

Returns
TypeDescription
Promise<google.api.HttpBody>

Promise

getResource(request, callback)

public getResource(request: google.api.IHttpBody, callback: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.GetResourceCallback): void;

Calls GetResource.

Parameters
NameDescription
request IHttpBody

HttpBody message or plain object

callback GetResourceCallback

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

Returns
TypeDescription
void

getResource(request)

public getResource(request: google.api.IHttpBody): Promise<google.api.HttpBody>;

Calls GetResource.

Parameter
NameDescription
request IHttpBody

HttpBody message or plain object

Returns
TypeDescription
Promise<google.api.HttpBody>

Promise

patchResource(request, callback)

public patchResource(request: google.api.IHttpBody, callback: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PatchResourceCallback): void;

Calls PatchResource.

Parameters
NameDescription
request IHttpBody

HttpBody message or plain object

callback PatchResourceCallback

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

Returns
TypeDescription
void

patchResource(request)

public patchResource(request: google.api.IHttpBody): Promise<google.api.HttpBody>;

Calls PatchResource.

Parameter
NameDescription
request IHttpBody

HttpBody message or plain object

Returns
TypeDescription
Promise<google.api.HttpBody>

Promise

postResource(request, callback)

public postResource(request: google.api.IHttpBody, callback: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PostResourceCallback): void;

Calls PostResource.

Parameters
NameDescription
request IHttpBody

HttpBody message or plain object

callback PostResourceCallback

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

Returns
TypeDescription
void

postResource(request)

public postResource(request: google.api.IHttpBody): Promise<google.api.HttpBody>;

Calls PostResource.

Parameter
NameDescription
request IHttpBody

HttpBody message or plain object

Returns
TypeDescription
Promise<google.api.HttpBody>

Promise

putResource(request, callback)

public putResource(request: google.api.IHttpBody, callback: google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PutResourceCallback): void;

Calls PutResource.

Parameters
NameDescription
request IHttpBody

HttpBody message or plain object

callback PutResourceCallback

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

Returns
TypeDescription
void

putResource(request)

public putResource(request: google.api.IHttpBody): Promise<google.api.HttpBody>;

Calls PutResource.

Parameter
NameDescription
request IHttpBody

HttpBody message or plain object

Returns
TypeDescription
Promise<google.api.HttpBody>

Promise