Represents a ServiceUsage
Inheritance
$protobuf.rpc.Service > protos.google.api.serviceusage.v1.ServiceUsagePackage
@google-cloud/service-usageConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ServiceUsage service.
Name | Description |
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.
Name | Description |
request |
google.api.serviceusage.v1.IBatchEnableServicesRequest
BatchEnableServicesRequest message or plain object |
callback |
google.api.serviceusage.v1.ServiceUsage.BatchEnableServicesCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
batchEnableServices(request)
public batchEnableServices(request: google.api.serviceusage.v1.IBatchEnableServicesRequest): Promise<google.longrunning.Operation>;
Calls BatchEnableServices.
Name | Description |
request |
google.api.serviceusage.v1.IBatchEnableServicesRequest
BatchEnableServicesRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
batchGetServices(request)
public batchGetServices(request: google.api.serviceusage.v1.IBatchGetServicesRequest): Promise<google.api.serviceusage.v1.BatchGetServicesResponse>;
Calls BatchGetServices.
Name | Description |
request |
google.api.serviceusage.v1.IBatchGetServicesRequest
BatchGetServicesRequest message or plain object |
Type | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | Description |
request |
google.api.serviceusage.v1.IDisableServiceRequest
DisableServiceRequest message or plain object |
callback |
google.api.serviceusage.v1.ServiceUsage.DisableServiceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
disableService(request)
public disableService(request: google.api.serviceusage.v1.IDisableServiceRequest): Promise<google.longrunning.Operation>;
Calls DisableService.
Name | Description |
request |
google.api.serviceusage.v1.IDisableServiceRequest
DisableServiceRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
enableService(request)
public enableService(request: google.api.serviceusage.v1.IEnableServiceRequest): Promise<google.longrunning.Operation>;
Calls EnableService.
Name | Description |
request |
google.api.serviceusage.v1.IEnableServiceRequest
EnableServiceRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
getService(request)
public getService(request: google.api.serviceusage.v1.IGetServiceRequest): Promise<google.api.serviceusage.v1.Service>;
Calls GetService.
Name | Description |
request |
google.api.serviceusage.v1.IGetServiceRequest
GetServiceRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
listServices(request)
public listServices(request: google.api.serviceusage.v1.IListServicesRequest): Promise<google.api.serviceusage.v1.ListServicesResponse>;
Calls ListServices.
Name | Description |
request |
google.api.serviceusage.v1.IListServicesRequest
ListServicesRequest message or plain object |
Type | Description |
Promise<google.api.serviceusage.v1.ListServicesResponse> | Promise |