Class protos.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring (0.3.1)

Represents a CloudControlsPartnerMonitoring

Inheritance

$protobuf.rpc.Service > protos.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring

Package

@google-cloud/cloudcontrolspartner

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new CloudControlsPartnerMonitoring service.

Parameters
Name Description
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): CloudControlsPartnerMonitoring;

Creates new CloudControlsPartnerMonitoring service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
CloudControlsPartnerMonitoring

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

getViolation(request, callback)

public getViolation(request: google.cloud.cloudcontrolspartner.v1beta.IGetViolationRequest, callback: google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring.GetViolationCallback): void;

Calls GetViolation.

Parameters
Name Description
request IGetViolationRequest

GetViolationRequest message or plain object

callback GetViolationCallback

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

Returns
Type Description
void

getViolation(request)

public getViolation(request: google.cloud.cloudcontrolspartner.v1beta.IGetViolationRequest): Promise<google.cloud.cloudcontrolspartner.v1beta.Violation>;

Calls GetViolation.

Parameter
Name Description
request IGetViolationRequest

GetViolationRequest message or plain object

Returns
Type Description
Promise<google.cloud.cloudcontrolspartner.v1beta.Violation>

Promise

listViolations(request, callback)

public listViolations(request: google.cloud.cloudcontrolspartner.v1beta.IListViolationsRequest, callback: google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring.ListViolationsCallback): void;

Calls ListViolations.

Parameters
Name Description
request IListViolationsRequest

ListViolationsRequest message or plain object

callback ListViolationsCallback

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

Returns
Type Description
void

listViolations(request)

public listViolations(request: google.cloud.cloudcontrolspartner.v1beta.IListViolationsRequest): Promise<google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse>;

Calls ListViolations.

Parameter
Name Description
request IListViolationsRequest

ListViolationsRequest message or plain object

Returns
Type Description
Promise<google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse>

Promise