Class protos.google.api.cloudquotas.v1.CloudQuotas (0.1.0)

Represents a CloudQuotas

Inheritance

$protobuf.rpc.Service > protos.google.api.cloudquotas.v1.CloudQuotas

Package

@google-cloud/cloudquotas

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new CloudQuotas service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request ICreateQuotaPreferenceRequest

CreateQuotaPreferenceRequest message or plain object

callback CreateQuotaPreferenceCallback

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

Returns
TypeDescription
void

createQuotaPreference(request)

public createQuotaPreference(request: google.api.cloudquotas.v1.ICreateQuotaPreferenceRequest): Promise<google.api.cloudquotas.v1.QuotaPreference>;

Calls CreateQuotaPreference.

Parameter
NameDescription
request ICreateQuotaPreferenceRequest

CreateQuotaPreferenceRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetQuotaInfoRequest

GetQuotaInfoRequest message or plain object

callback GetQuotaInfoCallback

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

Returns
TypeDescription
void

getQuotaInfo(request)

public getQuotaInfo(request: google.api.cloudquotas.v1.IGetQuotaInfoRequest): Promise<google.api.cloudquotas.v1.QuotaInfo>;

Calls GetQuotaInfo.

Parameter
NameDescription
request IGetQuotaInfoRequest

GetQuotaInfoRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetQuotaPreferenceRequest

GetQuotaPreferenceRequest message or plain object

callback GetQuotaPreferenceCallback

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

Returns
TypeDescription
void

getQuotaPreference(request)

public getQuotaPreference(request: google.api.cloudquotas.v1.IGetQuotaPreferenceRequest): Promise<google.api.cloudquotas.v1.QuotaPreference>;

Calls GetQuotaPreference.

Parameter
NameDescription
request IGetQuotaPreferenceRequest

GetQuotaPreferenceRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IListQuotaInfosRequest

ListQuotaInfosRequest message or plain object

callback ListQuotaInfosCallback

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

Returns
TypeDescription
void

listQuotaInfos(request)

public listQuotaInfos(request: google.api.cloudquotas.v1.IListQuotaInfosRequest): Promise<google.api.cloudquotas.v1.ListQuotaInfosResponse>;

Calls ListQuotaInfos.

Parameter
NameDescription
request IListQuotaInfosRequest

ListQuotaInfosRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IListQuotaPreferencesRequest

ListQuotaPreferencesRequest message or plain object

callback ListQuotaPreferencesCallback

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

Returns
TypeDescription
void

listQuotaPreferences(request)

public listQuotaPreferences(request: google.api.cloudquotas.v1.IListQuotaPreferencesRequest): Promise<google.api.cloudquotas.v1.ListQuotaPreferencesResponse>;

Calls ListQuotaPreferences.

Parameter
NameDescription
request IListQuotaPreferencesRequest

ListQuotaPreferencesRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IUpdateQuotaPreferenceRequest

UpdateQuotaPreferenceRequest message or plain object

callback UpdateQuotaPreferenceCallback

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

Returns
TypeDescription
void

updateQuotaPreference(request)

public updateQuotaPreference(request: google.api.cloudquotas.v1.IUpdateQuotaPreferenceRequest): Promise<google.api.cloudquotas.v1.QuotaPreference>;

Calls UpdateQuotaPreference.

Parameter
NameDescription
request IUpdateQuotaPreferenceRequest

UpdateQuotaPreferenceRequest message or plain object

Returns
TypeDescription
Promise<google.api.cloudquotas.v1.QuotaPreference>

Promise