@yandex-cloud/nodejs-sdk
Version:
Yandex.Cloud NodeJS SDK
71 lines (70 loc) • 3.1 kB
TypeScript
import _m0 from "protobufjs/minimal";
export declare const protobufPackage = "yandex.cloud.billing.v1";
/**
* Represents a link to an object in other service.
* This object is being billed in the scope of a billing account.
*/
export interface BillableObject {
$type: "yandex.cloud.billing.v1.BillableObject";
/** ID of the object in other service. */
id: string;
/**
* Billable object type. Can be one of the following:
* * `cloud`
*/
type: string;
}
/** Represents a binding of the BillableObject to a BillingAccount. */
export interface BillableObjectBinding {
$type: "yandex.cloud.billing.v1.BillableObjectBinding";
/** Timestamp when binding was created. */
effectiveTime?: Date;
/** Object that is bound to billing account. */
billableObject?: BillableObject;
}
export declare const BillableObject: {
$type: "yandex.cloud.billing.v1.BillableObject";
encode(message: BillableObject, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BillableObject;
fromJSON(object: any): BillableObject;
toJSON(message: BillableObject): unknown;
fromPartial<I extends {
id?: string | undefined;
type?: string | undefined;
} & {
id?: string | undefined;
type?: string | undefined;
} & Record<Exclude<keyof I, "$type" | "id" | "type">, never>>(object: I): BillableObject;
};
export declare const BillableObjectBinding: {
$type: "yandex.cloud.billing.v1.BillableObjectBinding";
encode(message: BillableObjectBinding, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BillableObjectBinding;
fromJSON(object: any): BillableObjectBinding;
toJSON(message: BillableObjectBinding): unknown;
fromPartial<I extends {
effectiveTime?: Date | undefined;
billableObject?: {
id?: string | undefined;
type?: string | undefined;
} | undefined;
} & {
effectiveTime?: Date | undefined;
billableObject?: ({
id?: string | undefined;
type?: string | undefined;
} & {
id?: string | undefined;
type?: string | undefined;
} & Record<Exclude<keyof I["billableObject"], "$type" | "id" | "type">, never>) | undefined;
} & Record<Exclude<keyof I, "$type" | "effectiveTime" | "billableObject">, never>>(object: I): BillableObjectBinding;
};
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
[K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
} : Partial<T>;
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
[K in keyof P]: Exact<P[K], I[K]>;
} & Record<Exclude<keyof I, KeysOfUnion<P> | "$type">, never>;
export {};