Class protos.google.monitoring.v3.GroupService

Represents a GroupService

Inheritance

$protobuf.rpc.Service > protos.google.monitoring.v3.GroupService

Package

@google-cloud/monitoring

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createGroup(request, callback)

public createGroup(request: google.monitoring.v3.ICreateGroupRequest, callback: google.monitoring.v3.GroupService.CreateGroupCallback): void;

Calls CreateGroup.

Parameters
NameDescription
request ICreateGroupRequest

CreateGroupRequest message or plain object

callback google.monitoring.v3.GroupService.CreateGroupCallback

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

Returns
TypeDescription
void

createGroup(request)

public createGroup(request: google.monitoring.v3.ICreateGroupRequest): Promise<google.monitoring.v3.Group>;

Calls CreateGroup.

Parameter
NameDescription
request ICreateGroupRequest

CreateGroupRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.Group>

Promise

deleteGroup(request, callback)

public deleteGroup(request: google.monitoring.v3.IDeleteGroupRequest, callback: google.monitoring.v3.GroupService.DeleteGroupCallback): void;

Calls DeleteGroup.

Parameters
NameDescription
request IDeleteGroupRequest

DeleteGroupRequest message or plain object

callback google.monitoring.v3.GroupService.DeleteGroupCallback

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

Returns
TypeDescription
void

deleteGroup(request)

public deleteGroup(request: google.monitoring.v3.IDeleteGroupRequest): Promise<google.protobuf.Empty>;

Calls DeleteGroup.

Parameter
NameDescription
request IDeleteGroupRequest

DeleteGroupRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getGroup(request, callback)

public getGroup(request: google.monitoring.v3.IGetGroupRequest, callback: google.monitoring.v3.GroupService.GetGroupCallback): void;

Calls GetGroup.

Parameters
NameDescription
request google.monitoring.v3.IGetGroupRequest

GetGroupRequest message or plain object

callback google.monitoring.v3.GroupService.GetGroupCallback

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

Returns
TypeDescription
void

getGroup(request)

public getGroup(request: google.monitoring.v3.IGetGroupRequest): Promise<google.monitoring.v3.Group>;

Calls GetGroup.

Parameter
NameDescription
request google.monitoring.v3.IGetGroupRequest

GetGroupRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.Group>

Promise

listGroupMembers(request, callback)

public listGroupMembers(request: google.monitoring.v3.IListGroupMembersRequest, callback: google.monitoring.v3.GroupService.ListGroupMembersCallback): void;

Calls ListGroupMembers.

Parameters
NameDescription
request google.monitoring.v3.IListGroupMembersRequest

ListGroupMembersRequest message or plain object

callback google.monitoring.v3.GroupService.ListGroupMembersCallback

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

Returns
TypeDescription
void

listGroupMembers(request)

public listGroupMembers(request: google.monitoring.v3.IListGroupMembersRequest): Promise<google.monitoring.v3.ListGroupMembersResponse>;

Calls ListGroupMembers.

Parameter
NameDescription
request google.monitoring.v3.IListGroupMembersRequest

ListGroupMembersRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.ListGroupMembersResponse>

Promise

listGroups(request, callback)

public listGroups(request: google.monitoring.v3.IListGroupsRequest, callback: google.monitoring.v3.GroupService.ListGroupsCallback): void;

Calls ListGroups.

Parameters
NameDescription
request google.monitoring.v3.IListGroupsRequest

ListGroupsRequest message or plain object

callback google.monitoring.v3.GroupService.ListGroupsCallback

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

Returns
TypeDescription
void

listGroups(request)

public listGroups(request: google.monitoring.v3.IListGroupsRequest): Promise<google.monitoring.v3.ListGroupsResponse>;

Calls ListGroups.

Parameter
NameDescription
request google.monitoring.v3.IListGroupsRequest

ListGroupsRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.ListGroupsResponse>

Promise

updateGroup(request, callback)

public updateGroup(request: google.monitoring.v3.IUpdateGroupRequest, callback: google.monitoring.v3.GroupService.UpdateGroupCallback): void;

Calls UpdateGroup.

Parameters
NameDescription
request google.monitoring.v3.IUpdateGroupRequest

UpdateGroupRequest message or plain object

callback google.monitoring.v3.GroupService.UpdateGroupCallback

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

Returns
TypeDescription
void

updateGroup(request)

public updateGroup(request: google.monitoring.v3.IUpdateGroupRequest): Promise<google.monitoring.v3.Group>;

Calls UpdateGroup.

Parameter
NameDescription
request google.monitoring.v3.IUpdateGroupRequest

UpdateGroupRequest message or plain object

Returns
TypeDescription
Promise<google.monitoring.v3.Group>

Promise