Class protos.google.api.serviceusage.v1.ServiceUsage (2.1.2)

Represents a ServiceUsage

Inheritance

$protobuf.rpc.Service > protos.google.api.serviceusage.v1.ServiceUsage

Package

@google-cloud/service-usage

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ServiceUsage service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

batchEnableServices(request, callback)

public batchEnableServices(request: google.api.serviceusage.v1.IBatchEnableServicesRequest, callback: google.api.serviceusage.v1.ServiceUsage.BatchEnableServicesCallback): void;

Calls BatchEnableServices.

Parameters
NameDescription
request IBatchEnableServicesRequest

BatchEnableServicesRequest message or plain object

callback google.api.serviceusage.v1.ServiceUsage.BatchEnableServicesCallback

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

Returns
TypeDescription
void

batchEnableServices(request)

public batchEnableServices(request: google.api.serviceusage.v1.IBatchEnableServicesRequest): Promise<google.longrunning.Operation>;

Calls BatchEnableServices.

Parameter
NameDescription
request IBatchEnableServicesRequest

BatchEnableServicesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

batchGetServices(request, callback)

public batchGetServices(request: google.api.serviceusage.v1.IBatchGetServicesRequest, callback: google.api.serviceusage.v1.ServiceUsage.BatchGetServicesCallback): void;

Calls BatchGetServices.

Parameters
NameDescription
request google.api.serviceusage.v1.IBatchGetServicesRequest

BatchGetServicesRequest message or plain object

callback google.api.serviceusage.v1.ServiceUsage.BatchGetServicesCallback

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

Returns
TypeDescription
void

batchGetServices(request)

public batchGetServices(request: google.api.serviceusage.v1.IBatchGetServicesRequest): Promise<google.api.serviceusage.v1.BatchGetServicesResponse>;

Calls BatchGetServices.

Parameter
NameDescription
request google.api.serviceusage.v1.IBatchGetServicesRequest

BatchGetServicesRequest message or plain object

Returns
TypeDescription
Promise<google.api.serviceusage.v1.BatchGetServicesResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

disableService(request, callback)

public disableService(request: google.api.serviceusage.v1.IDisableServiceRequest, callback: google.api.serviceusage.v1.ServiceUsage.DisableServiceCallback): void;

Calls DisableService.

Parameters
NameDescription
request IDisableServiceRequest

DisableServiceRequest message or plain object

callback google.api.serviceusage.v1.ServiceUsage.DisableServiceCallback

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

Returns
TypeDescription
void

disableService(request)

public disableService(request: google.api.serviceusage.v1.IDisableServiceRequest): Promise<google.longrunning.Operation>;

Calls DisableService.

Parameter
NameDescription
request IDisableServiceRequest

DisableServiceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

enableService(request, callback)

public enableService(request: google.api.serviceusage.v1.IEnableServiceRequest, callback: google.api.serviceusage.v1.ServiceUsage.EnableServiceCallback): void;

Calls EnableService.

Parameters
NameDescription
request google.api.serviceusage.v1.IEnableServiceRequest

EnableServiceRequest message or plain object

callback google.api.serviceusage.v1.ServiceUsage.EnableServiceCallback

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

Returns
TypeDescription
void

enableService(request)

public enableService(request: google.api.serviceusage.v1.IEnableServiceRequest): Promise<google.longrunning.Operation>;

Calls EnableService.

Parameter
NameDescription
request google.api.serviceusage.v1.IEnableServiceRequest

EnableServiceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getService(request, callback)

public getService(request: google.api.serviceusage.v1.IGetServiceRequest, callback: google.api.serviceusage.v1.ServiceUsage.GetServiceCallback): void;

Calls GetService.

Parameters
NameDescription
request google.api.serviceusage.v1.IGetServiceRequest

GetServiceRequest message or plain object

callback google.api.serviceusage.v1.ServiceUsage.GetServiceCallback

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

Returns
TypeDescription
void

getService(request)

public getService(request: google.api.serviceusage.v1.IGetServiceRequest): Promise<google.api.serviceusage.v1.Service>;

Calls GetService.

Parameter
NameDescription
request google.api.serviceusage.v1.IGetServiceRequest

GetServiceRequest message or plain object

Returns
TypeDescription
Promise<google.api.serviceusage.v1.Service>

Promise

listServices(request, callback)

public listServices(request: google.api.serviceusage.v1.IListServicesRequest, callback: google.api.serviceusage.v1.ServiceUsage.ListServicesCallback): void;

Calls ListServices.

Parameters
NameDescription
request google.api.serviceusage.v1.IListServicesRequest

ListServicesRequest message or plain object

callback google.api.serviceusage.v1.ServiceUsage.ListServicesCallback

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

Returns
TypeDescription
void

listServices(request)

public listServices(request: google.api.serviceusage.v1.IListServicesRequest): Promise<google.api.serviceusage.v1.ListServicesResponse>;

Calls ListServices.

Parameter
NameDescription
request google.api.serviceusage.v1.IListServicesRequest

ListServicesRequest message or plain object

Returns
TypeDescription
Promise<google.api.serviceusage.v1.ListServicesResponse>

Promise