Class protos.google.monitoring.dashboard.v1.DashboardsService

Represents a DashboardsService

Inheritance

$protobuf.rpc.Service > protos.google.monitoring.dashboard.v1.DashboardsService

Package

@google-cloud/monitoring-dashboards!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new DashboardsService service.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DashboardsService;

Creates new DashboardsService service using the specified rpc implementation.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Returns
TypeDescription
DashboardsService

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

createDashboard(request, callback)

public createDashboard(request: google.monitoring.dashboard.v1.ICreateDashboardRequest, callback: google.monitoring.dashboard.v1.DashboardsService.CreateDashboardCallback): void;

Calls CreateDashboard.

Parameters
TypeNameDescription
google.monitoring.dashboard.v1.ICreateDashboardRequestrequest

CreateDashboardRequest message or plain object

google.monitoring.dashboard.v1.DashboardsService.CreateDashboardCallbackcallback

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

Returns
TypeDescription
void

createDashboard(request)

public createDashboard(request: google.monitoring.dashboard.v1.ICreateDashboardRequest): Promise<google.monitoring.dashboard.v1.Dashboard>;

Calls CreateDashboard.

Parameter
TypeNameDescription
google.monitoring.dashboard.v1.ICreateDashboardRequestrequest

CreateDashboardRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.dashboard.v1.Dashboard>

Promise

deleteDashboard(request, callback)

public deleteDashboard(request: google.monitoring.dashboard.v1.IDeleteDashboardRequest, callback: google.monitoring.dashboard.v1.DashboardsService.DeleteDashboardCallback): void;

Calls DeleteDashboard.

Parameters
TypeNameDescription
google.monitoring.dashboard.v1.IDeleteDashboardRequestrequest

DeleteDashboardRequest message or plain object

google.monitoring.dashboard.v1.DashboardsService.DeleteDashboardCallbackcallback

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

Returns
TypeDescription
void

deleteDashboard(request)

public deleteDashboard(request: google.monitoring.dashboard.v1.IDeleteDashboardRequest): Promise<google.protobuf.Empty>;

Calls DeleteDashboard.

Parameter
TypeNameDescription
google.monitoring.dashboard.v1.IDeleteDashboardRequestrequest

DeleteDashboardRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getDashboard(request, callback)

public getDashboard(request: google.monitoring.dashboard.v1.IGetDashboardRequest, callback: google.monitoring.dashboard.v1.DashboardsService.GetDashboardCallback): void;

Calls GetDashboard.

Parameters
TypeNameDescription
google.monitoring.dashboard.v1.IGetDashboardRequestrequest

GetDashboardRequest message or plain object

google.monitoring.dashboard.v1.DashboardsService.GetDashboardCallbackcallback

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

Returns
TypeDescription
void

getDashboard(request)

public getDashboard(request: google.monitoring.dashboard.v1.IGetDashboardRequest): Promise<google.monitoring.dashboard.v1.Dashboard>;

Calls GetDashboard.

Parameter
TypeNameDescription
google.monitoring.dashboard.v1.IGetDashboardRequestrequest

GetDashboardRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.dashboard.v1.Dashboard>

Promise

listDashboards(request, callback)

public listDashboards(request: google.monitoring.dashboard.v1.IListDashboardsRequest, callback: google.monitoring.dashboard.v1.DashboardsService.ListDashboardsCallback): void;

Calls ListDashboards.

Parameters
TypeNameDescription
google.monitoring.dashboard.v1.IListDashboardsRequestrequest

ListDashboardsRequest message or plain object

google.monitoring.dashboard.v1.DashboardsService.ListDashboardsCallbackcallback

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

Returns
TypeDescription
void

listDashboards(request)

public listDashboards(request: google.monitoring.dashboard.v1.IListDashboardsRequest): Promise<google.monitoring.dashboard.v1.ListDashboardsResponse>;

Calls ListDashboards.

Parameter
TypeNameDescription
google.monitoring.dashboard.v1.IListDashboardsRequestrequest

ListDashboardsRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.dashboard.v1.ListDashboardsResponse>

Promise

updateDashboard(request, callback)

public updateDashboard(request: google.monitoring.dashboard.v1.IUpdateDashboardRequest, callback: google.monitoring.dashboard.v1.DashboardsService.UpdateDashboardCallback): void;

Calls UpdateDashboard.

Parameters
TypeNameDescription
google.monitoring.dashboard.v1.IUpdateDashboardRequestrequest

UpdateDashboardRequest message or plain object

google.monitoring.dashboard.v1.DashboardsService.UpdateDashboardCallbackcallback

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

Returns
TypeDescription
void

updateDashboard(request)

public updateDashboard(request: google.monitoring.dashboard.v1.IUpdateDashboardRequest): Promise<google.monitoring.dashboard.v1.Dashboard>;

Calls UpdateDashboard.

Parameter
TypeNameDescription
google.monitoring.dashboard.v1.IUpdateDashboardRequestrequest

UpdateDashboardRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.dashboard.v1.Dashboard>

Promise