Represents a CloudQuotas
Inheritance
$protobuf.rpc.Service > protos.google.api.cloudquotas.v1.CloudQuotasPackage
@google-cloud/cloudquotasConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new CloudQuotas 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): CloudQuotas;
Creates new CloudQuotas 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 |
CloudQuotas |
RPC service. Useful where requests and/or responses are streamed. |
createQuotaPreference(request, callback)
public createQuotaPreference(request: google.api.cloudquotas.v1.ICreateQuotaPreferenceRequest, callback: google.api.cloudquotas.v1.CloudQuotas.CreateQuotaPreferenceCallback): void;
Calls CreateQuotaPreference.
Parameters | |
---|---|
Name | Description |
request |
ICreateQuotaPreferenceRequest
CreateQuotaPreferenceRequest message or plain object |
callback |
CreateQuotaPreferenceCallback
Node-style callback called with the error, if any, and QuotaPreference |
Returns | |
---|---|
Type | Description |
void |
createQuotaPreference(request)
public createQuotaPreference(request: google.api.cloudquotas.v1.ICreateQuotaPreferenceRequest): Promise<google.api.cloudquotas.v1.QuotaPreference>;
Calls CreateQuotaPreference.
Parameter | |
---|---|
Name | Description |
request |
ICreateQuotaPreferenceRequest
CreateQuotaPreferenceRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.cloudquotas.v1.QuotaPreference> |
Promise |
getQuotaInfo(request, callback)
public getQuotaInfo(request: google.api.cloudquotas.v1.IGetQuotaInfoRequest, callback: google.api.cloudquotas.v1.CloudQuotas.GetQuotaInfoCallback): void;
Calls GetQuotaInfo.
Parameters | |
---|---|
Name | Description |
request |
IGetQuotaInfoRequest
GetQuotaInfoRequest message or plain object |
callback |
GetQuotaInfoCallback
Node-style callback called with the error, if any, and QuotaInfo |
Returns | |
---|---|
Type | Description |
void |
getQuotaInfo(request)
public getQuotaInfo(request: google.api.cloudquotas.v1.IGetQuotaInfoRequest): Promise<google.api.cloudquotas.v1.QuotaInfo>;
Calls GetQuotaInfo.
Parameter | |
---|---|
Name | Description |
request |
IGetQuotaInfoRequest
GetQuotaInfoRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.cloudquotas.v1.QuotaInfo> |
Promise |
getQuotaPreference(request, callback)
public getQuotaPreference(request: google.api.cloudquotas.v1.IGetQuotaPreferenceRequest, callback: google.api.cloudquotas.v1.CloudQuotas.GetQuotaPreferenceCallback): void;
Calls GetQuotaPreference.
Parameters | |
---|---|
Name | Description |
request |
IGetQuotaPreferenceRequest
GetQuotaPreferenceRequest message or plain object |
callback |
GetQuotaPreferenceCallback
Node-style callback called with the error, if any, and QuotaPreference |
Returns | |
---|---|
Type | Description |
void |
getQuotaPreference(request)
public getQuotaPreference(request: google.api.cloudquotas.v1.IGetQuotaPreferenceRequest): Promise<google.api.cloudquotas.v1.QuotaPreference>;
Calls GetQuotaPreference.
Parameter | |
---|---|
Name | Description |
request |
IGetQuotaPreferenceRequest
GetQuotaPreferenceRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.cloudquotas.v1.QuotaPreference> |
Promise |
listQuotaInfos(request, callback)
public listQuotaInfos(request: google.api.cloudquotas.v1.IListQuotaInfosRequest, callback: google.api.cloudquotas.v1.CloudQuotas.ListQuotaInfosCallback): void;
Calls ListQuotaInfos.
Parameters | |
---|---|
Name | Description |
request |
IListQuotaInfosRequest
ListQuotaInfosRequest message or plain object |
callback |
ListQuotaInfosCallback
Node-style callback called with the error, if any, and ListQuotaInfosResponse |
Returns | |
---|---|
Type | Description |
void |
listQuotaInfos(request)
public listQuotaInfos(request: google.api.cloudquotas.v1.IListQuotaInfosRequest): Promise<google.api.cloudquotas.v1.ListQuotaInfosResponse>;
Calls ListQuotaInfos.
Parameter | |
---|---|
Name | Description |
request |
IListQuotaInfosRequest
ListQuotaInfosRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.cloudquotas.v1.ListQuotaInfosResponse> |
Promise |
listQuotaPreferences(request, callback)
public listQuotaPreferences(request: google.api.cloudquotas.v1.IListQuotaPreferencesRequest, callback: google.api.cloudquotas.v1.CloudQuotas.ListQuotaPreferencesCallback): void;
Calls ListQuotaPreferences.
Parameters | |
---|---|
Name | Description |
request |
IListQuotaPreferencesRequest
ListQuotaPreferencesRequest message or plain object |
callback |
ListQuotaPreferencesCallback
Node-style callback called with the error, if any, and ListQuotaPreferencesResponse |
Returns | |
---|---|
Type | Description |
void |
listQuotaPreferences(request)
public listQuotaPreferences(request: google.api.cloudquotas.v1.IListQuotaPreferencesRequest): Promise<google.api.cloudquotas.v1.ListQuotaPreferencesResponse>;
Calls ListQuotaPreferences.
Parameter | |
---|---|
Name | Description |
request |
IListQuotaPreferencesRequest
ListQuotaPreferencesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.cloudquotas.v1.ListQuotaPreferencesResponse> |
Promise |
updateQuotaPreference(request, callback)
public updateQuotaPreference(request: google.api.cloudquotas.v1.IUpdateQuotaPreferenceRequest, callback: google.api.cloudquotas.v1.CloudQuotas.UpdateQuotaPreferenceCallback): void;
Calls UpdateQuotaPreference.
Parameters | |
---|---|
Name | Description |
request |
IUpdateQuotaPreferenceRequest
UpdateQuotaPreferenceRequest message or plain object |
callback |
UpdateQuotaPreferenceCallback
Node-style callback called with the error, if any, and QuotaPreference |
Returns | |
---|---|
Type | Description |
void |
updateQuotaPreference(request)
public updateQuotaPreference(request: google.api.cloudquotas.v1.IUpdateQuotaPreferenceRequest): Promise<google.api.cloudquotas.v1.QuotaPreference>;
Calls UpdateQuotaPreference.
Parameter | |
---|---|
Name | Description |
request |
IUpdateQuotaPreferenceRequest
UpdateQuotaPreferenceRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.cloudquotas.v1.QuotaPreference> |
Promise |