/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Instance } from '../../../../../yandex/cloud/marketplace/licensemanager/v1/instance'; export declare const protobufPackage = "yandex.cloud.marketplace.licensemanager.v1"; export interface GetInstanceRequest { /** ID of the subscription instance. */ instanceId: string; } export interface ListInstancesRequest { /** ID of the folder that the subscription instance belongs to. */ folderId: 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 [ListInstancesResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Default value: 100. */ pageSize: number; /** * Page token. To get the next page of results, set `page_token` to the * [ListInstancesResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * A filter expression that filters subscription instances listed in the response. * * The expression must specify: * 1. The field name. Currently you can use filtering only on [Instance.name] field. * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. * 3. The value. Must be in double quotes `""`. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`. * Example of a filter: `name="my-subscription-instance"`. */ filter: string; /** Sorting order for the list of subscription instances. */ orderBy: string; } export interface ListInstancesResponse { /** List of subscription instances. */ instances: Instance[]; /** * Token for getting the next page of the list. If the number of results is greater than * the specified [ListInstancesRequest.page_size], use `next_page_token` as the value * for the [ListInstancesRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `next_page_token` to continue paging through the results. */ nextPageToken: string; } export declare const GetInstanceRequest: { encode(message: GetInstanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetInstanceRequest; fromJSON(object: any): GetInstanceRequest; toJSON(message: GetInstanceRequest): unknown; fromPartial, never>>(object: I): GetInstanceRequest; }; export declare const ListInstancesRequest: { encode(message: ListInstancesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListInstancesRequest; fromJSON(object: any): ListInstancesRequest; toJSON(message: ListInstancesRequest): unknown; fromPartial, never>>(object: I): ListInstancesRequest; }; export declare const ListInstancesResponse: { encode(message: ListInstancesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListInstancesResponse; fromJSON(object: any): ListInstancesResponse; toJSON(message: ListInstancesResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; licenseTemplate?: ({ id?: string | undefined; versionId?: string | undefined; name?: string | undefined; publisherId?: string | undefined; productId?: string | undefined; tariffId?: string | undefined; licenseSkuId?: string | undefined; period?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; state?: import("./template").Template_State | undefined; } & { id?: string | undefined; versionId?: string | undefined; name?: string | undefined; publisherId?: string | undefined; productId?: string | undefined; tariffId?: string | undefined; licenseSkuId?: string | undefined; period?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; state?: import("./template").Template_State | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListInstancesResponse; }; /** A set of methods for managing subscription instances. */ export declare const InstanceServiceService: { /** * Returns the specified subscription instance. * * To get the list of all available subscription instances, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.marketplace.licensemanager.v1.InstanceService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetInstanceRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetInstanceRequest; readonly responseSerialize: (value: Instance) => Buffer; readonly responseDeserialize: (value: Buffer) => Instance; }; /** Retrieves the list of subscription instances in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.marketplace.licensemanager.v1.InstanceService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListInstancesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListInstancesRequest; readonly responseSerialize: (value: ListInstancesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListInstancesResponse; }; }; export interface InstanceServiceServer extends UntypedServiceImplementation { /** * Returns the specified subscription instance. * * To get the list of all available subscription instances, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of subscription instances in the specified folder. */ list: handleUnaryCall; } export interface InstanceServiceClient extends Client { /** * Returns the specified subscription instance. * * To get the list of all available subscription instances, make a [List] request. */ get(request: GetInstanceRequest, callback: (error: ServiceError | null, response: Instance) => void): ClientUnaryCall; get(request: GetInstanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Instance) => void): ClientUnaryCall; get(request: GetInstanceRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Instance) => void): ClientUnaryCall; /** Retrieves the list of subscription instances in the specified folder. */ list(request: ListInstancesRequest, callback: (error: ServiceError | null, response: ListInstancesResponse) => void): ClientUnaryCall; list(request: ListInstancesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListInstancesResponse) => void): ClientUnaryCall; list(request: ListInstancesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListInstancesResponse) => void): ClientUnaryCall; } export declare const InstanceServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): InstanceServiceClient; service: typeof InstanceServiceService; }; 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 {};