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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
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 |
Returns | |
---|---|
Type | Description |
void |
batchEnableServices(request)
public batchEnableServices(request: google.api.serviceusage.v1.IBatchEnableServicesRequest): Promise<google.longrunning.Operation>;
Calls BatchEnableServices.
Parameter | |
---|---|
Name | Description |
request |
google.api.serviceusage.v1.IBatchEnableServicesRequest
BatchEnableServicesRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
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 |
Returns | |
---|---|
Type | Description |
void |
batchGetServices(request)
public batchGetServices(request: google.api.serviceusage.v1.IBatchGetServicesRequest): Promise<google.api.serviceusage.v1.BatchGetServicesResponse>;
Calls BatchGetServices.
Parameter | |
---|---|
Name | Description |
request |
google.api.serviceusage.v1.IBatchGetServicesRequest
BatchGetServicesRequest message or plain object |
Returns | |
---|---|
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.
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 |
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 | |
---|---|
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 |
Returns | |
---|---|
Type | Description |
void |
disableService(request)
public disableService(request: google.api.serviceusage.v1.IDisableServiceRequest): Promise<google.longrunning.Operation>;
Calls DisableService.
Parameter | |
---|---|
Name | Description |
request |
google.api.serviceusage.v1.IDisableServiceRequest
DisableServiceRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
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 |
Returns | |
---|---|
Type | Description |
void |
enableService(request)
public enableService(request: google.api.serviceusage.v1.IEnableServiceRequest): Promise<google.longrunning.Operation>;
Calls EnableService.
Parameter | |
---|---|
Name | Description |
request |
google.api.serviceusage.v1.IEnableServiceRequest
EnableServiceRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
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 |
Returns | |
---|---|
Type | Description |
void |
getService(request)
public getService(request: google.api.serviceusage.v1.IGetServiceRequest): Promise<google.api.serviceusage.v1.Service>;
Calls GetService.
Parameter | |
---|---|
Name | Description |
request |
google.api.serviceusage.v1.IGetServiceRequest
GetServiceRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
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 |
Returns | |
---|---|
Type | Description |
void |
listServices(request)
public listServices(request: google.api.serviceusage.v1.IListServicesRequest): Promise<google.api.serviceusage.v1.ListServicesResponse>;
Calls ListServices.
Parameter | |
---|---|
Name | Description |
request |
google.api.serviceusage.v1.IListServicesRequest
ListServicesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.serviceusage.v1.ListServicesResponse> | Promise |