/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { BillableObject, BillableObjectBinding } from '../../../../yandex/cloud/billing/v1/billable_object'; import { BillingAccount } from '../../../../yandex/cloud/billing/v1/billing_account'; import { Operation } from '../../../../yandex/cloud/operation/operation'; import { ListAccessBindingsRequest, ListAccessBindingsResponse, UpdateAccessBindingsRequest } from '../../../../yandex/cloud/access/access'; export declare const protobufPackage = "yandex.cloud.billing.v1"; export interface GetBillingAccountRequest { /** * ID of the billing account to return. * To get the billing account ID, use [BillingAccountService.List] request. */ id: string; } export interface ListBillingAccountsRequest { /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], * the service returns a [ListBillingAccountsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. */ pageSize: number; /** * Page token. To get the next page of results, * set [page_token] to the [ListBillingAccountsResponse.next_page_token] * returned by a previous list request. */ pageToken: string; } export interface ListBillingAccountsResponse { /** List of billing accounts. */ billingAccounts: BillingAccount[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListBillingAccountsRequest.page_size], use * [next_page_token] as the value * for the [ListBillingAccountsRequest.page_token] query parameter * in the next list request. Each subsequent list request will have its own * [next_page_token] to continue paging through the results. */ nextPageToken: string; } export interface ListBillableObjectBindingsRequest { /** * ID of the billing account to list associated billable object bindings. * To get the billing account ID, use [BillingAccountService.List] request. */ billingAccountId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], * the service returns a [ListBillableObjectBindingsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. */ pageSize: number; /** * Page token. To get the next page of results, * set [page_token] to the [ListBillableObjectBindingsResponse.next_page_token] * returned by a previous list request. */ pageToken: string; } export interface ListBillableObjectBindingsResponse { /** List of billable object bindings. */ billableObjectBindings: BillableObjectBinding[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListBillableObjectBindingsRequest.page_size], use * [next_page_token] as the value * for the [ListBillableObjectBindingsRequest.page_token] query parameter * in the next list request. Each subsequent list request will have its own * [next_page_token] to continue paging through the results. */ nextPageToken: string; } export interface BindBillableObjectRequest { /** * ID of the billing account to bind billable object. * To get the billing account ID, use [BillingAccountService.List] request. */ billingAccountId: string; /** [yandex.cloud.billing.v1.BillableObject] to bind with billing account. */ billableObject?: BillableObject; } export interface BindBillableObjectMetadata { /** ID of the [yandex.cloud.billing.v1.BillableObject] that was bound to billing account. */ billableObjectId: string; } export declare const GetBillingAccountRequest: { encode(message: GetBillingAccountRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetBillingAccountRequest; fromJSON(object: any): GetBillingAccountRequest; toJSON(message: GetBillingAccountRequest): unknown; fromPartial, never>>(object: I): GetBillingAccountRequest; }; export declare const ListBillingAccountsRequest: { encode(message: ListBillingAccountsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListBillingAccountsRequest; fromJSON(object: any): ListBillingAccountsRequest; toJSON(message: ListBillingAccountsRequest): unknown; fromPartial, never>>(object: I): ListBillingAccountsRequest; }; export declare const ListBillingAccountsResponse: { encode(message: ListBillingAccountsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListBillingAccountsResponse; fromJSON(object: any): ListBillingAccountsResponse; toJSON(message: ListBillingAccountsResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListBillingAccountsResponse; }; export declare const ListBillableObjectBindingsRequest: { encode(message: ListBillableObjectBindingsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListBillableObjectBindingsRequest; fromJSON(object: any): ListBillableObjectBindingsRequest; toJSON(message: ListBillableObjectBindingsRequest): unknown; fromPartial, never>>(object: I): ListBillableObjectBindingsRequest; }; export declare const ListBillableObjectBindingsResponse: { encode(message: ListBillableObjectBindingsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListBillableObjectBindingsResponse; fromJSON(object: any): ListBillableObjectBindingsResponse; toJSON(message: ListBillableObjectBindingsResponse): unknown; fromPartial, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListBillableObjectBindingsResponse; }; export declare const BindBillableObjectRequest: { encode(message: BindBillableObjectRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BindBillableObjectRequest; fromJSON(object: any): BindBillableObjectRequest; toJSON(message: BindBillableObjectRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): BindBillableObjectRequest; }; export declare const BindBillableObjectMetadata: { encode(message: BindBillableObjectMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BindBillableObjectMetadata; fromJSON(object: any): BindBillableObjectMetadata; toJSON(message: BindBillableObjectMetadata): unknown; fromPartial, never>>(object: I): BindBillableObjectMetadata; }; /** A set of methods for managing BillingAccount resources. */ export declare const BillingAccountServiceService: { /** Returns the specified billing account. */ readonly get: { readonly path: "/yandex.cloud.billing.v1.BillingAccountService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetBillingAccountRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetBillingAccountRequest; readonly responseSerialize: (value: BillingAccount) => Buffer; readonly responseDeserialize: (value: Buffer) => BillingAccount; }; /** Retrieves the list of billing accounts available for current user. */ readonly list: { readonly path: "/yandex.cloud.billing.v1.BillingAccountService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListBillingAccountsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListBillingAccountsRequest; readonly responseSerialize: (value: ListBillingAccountsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListBillingAccountsResponse; }; /** Retrieves the list of billable object bindings associated with the specified billing account. */ readonly listBillableObjectBindings: { readonly path: "/yandex.cloud.billing.v1.BillingAccountService/ListBillableObjectBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListBillableObjectBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListBillableObjectBindingsRequest; readonly responseSerialize: (value: ListBillableObjectBindingsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListBillableObjectBindingsResponse; }; /** Binds billable object to the specified billing account. */ readonly bindBillableObject: { readonly path: "/yandex.cloud.billing.v1.BillingAccountService/BindBillableObject"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: BindBillableObjectRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => BindBillableObjectRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Lists access bindings for the specified billing account. */ readonly listAccessBindings: { readonly path: "/yandex.cloud.billing.v1.BillingAccountService/ListAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListAccessBindingsRequest; readonly responseSerialize: (value: ListAccessBindingsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListAccessBindingsResponse; }; /** Updates access bindings for the specified billing account. */ readonly updateAccessBindings: { readonly path: "/yandex.cloud.billing.v1.BillingAccountService/UpdateAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateAccessBindingsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface BillingAccountServiceServer extends UntypedServiceImplementation { /** Returns the specified billing account. */ get: handleUnaryCall; /** Retrieves the list of billing accounts available for current user. */ list: handleUnaryCall; /** Retrieves the list of billable object bindings associated with the specified billing account. */ listBillableObjectBindings: handleUnaryCall; /** Binds billable object to the specified billing account. */ bindBillableObject: handleUnaryCall; /** Lists access bindings for the specified billing account. */ listAccessBindings: handleUnaryCall; /** Updates access bindings for the specified billing account. */ updateAccessBindings: handleUnaryCall; } export interface BillingAccountServiceClient extends Client { /** Returns the specified billing account. */ get(request: GetBillingAccountRequest, callback: (error: ServiceError | null, response: BillingAccount) => void): ClientUnaryCall; get(request: GetBillingAccountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: BillingAccount) => void): ClientUnaryCall; get(request: GetBillingAccountRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: BillingAccount) => void): ClientUnaryCall; /** Retrieves the list of billing accounts available for current user. */ list(request: ListBillingAccountsRequest, callback: (error: ServiceError | null, response: ListBillingAccountsResponse) => void): ClientUnaryCall; list(request: ListBillingAccountsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListBillingAccountsResponse) => void): ClientUnaryCall; list(request: ListBillingAccountsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListBillingAccountsResponse) => void): ClientUnaryCall; /** Retrieves the list of billable object bindings associated with the specified billing account. */ listBillableObjectBindings(request: ListBillableObjectBindingsRequest, callback: (error: ServiceError | null, response: ListBillableObjectBindingsResponse) => void): ClientUnaryCall; listBillableObjectBindings(request: ListBillableObjectBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListBillableObjectBindingsResponse) => void): ClientUnaryCall; listBillableObjectBindings(request: ListBillableObjectBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListBillableObjectBindingsResponse) => void): ClientUnaryCall; /** Binds billable object to the specified billing account. */ bindBillableObject(request: BindBillableObjectRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; bindBillableObject(request: BindBillableObjectRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; bindBillableObject(request: BindBillableObjectRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Lists access bindings for the specified billing account. */ listAccessBindings(request: ListAccessBindingsRequest, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; listAccessBindings(request: ListAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; listAccessBindings(request: ListAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; /** Updates access bindings for the specified billing account. */ updateAccessBindings(request: UpdateAccessBindingsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateAccessBindings(request: UpdateAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateAccessBindings(request: UpdateAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const BillingAccountServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): BillingAccountServiceClient; service: typeof BillingAccountServiceService; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};