/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { FieldMask } from '../../../../../google/protobuf/field_mask'; import { Resources, Connectivity, LogOptions, AsyncInvocationConfig, MetadataOptions, Function, Version, Package, Secret, StorageMount, Mount, ScalingPolicy } from '../../../../../yandex/cloud/serverless/functions/v1/function'; import { Duration } from '../../../../../google/protobuf/duration'; import { Operation } from '../../../../../yandex/cloud/operation/operation'; import { ListAccessBindingsRequest, ListAccessBindingsResponse, SetAccessBindingsRequest, UpdateAccessBindingsRequest } from '../../../../../yandex/cloud/access/access'; export declare const protobufPackage = "yandex.cloud.serverless.functions.v1"; export interface GetFunctionRequest { /** * ID of the function to return. * * To get a function ID make a [FunctionService.List] request. */ functionId: string; } export interface GetFunctionVersionRequest { /** * ID of the version to return. * * To get a version ID make a [FunctionService.ListVersions] request. */ functionVersionId: string; } export interface GetFunctionVersionByTagRequest { /** * ID of the function whose versions should be listed. * * To get a function ID use a [FunctionService.List] request. */ functionId: string; /** * Version tag. * * To get the history of version tags make a [FunctionService.ListTagHistory] request. */ tag: string; } export interface ListFunctionsRequest { /** * ID of the folder to list functions in. * * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than `pageSize`, the service returns a [ListFunctionsResponse.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 `pageToken` to the * [ListFunctionsResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * A filter expression that filters functions listed in the response. * * The expression must specify: * 1. The field name. Currently filtering can only be applied to the [Function.name] field. * 2. An `=` operator. * 3. The value 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-function"`. */ filter: string; } export interface ListFunctionsResponse { /** List of functions in the specified folder. */ functions: Function[]; /** * Token for getting the next page of the list. If the number of results is greater than * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value * for the [ListFunctionsRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `nextPageToken` to continue paging through the results. */ nextPageToken: string; } export interface CreateFunctionRequest { /** * ID of the folder to create a function in. * * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string; /** * Name of the function. * The name must be unique within the folder. */ name: string; /** Description of the function. */ description: string; /** Resource labels as `key:value` pairs. */ labels: { [key: string]: string; }; } export interface CreateFunctionRequest_LabelsEntry { key: string; value: string; } export interface CreateFunctionMetadata { /** ID of the function that is being created. */ functionId: string; } export interface UpdateFunctionRequest { /** * ID of the function to update. * * To get a function ID make a [FunctionService.List] request. */ functionId: string; /** Field mask that specifies which attributes of the function should be updated. */ updateMask?: FieldMask; /** * New name for the function. * The name must be unique within the folder. */ name: string; /** New description for the function. */ description: string; /** * Function labels as `key:value` pairs. * * Existing set of labels is completely replaced by the provided set, so if you just want * to add or remove a label, request the current set of labels with a [FunctionService.Get] request. */ labels: { [key: string]: string; }; } export interface UpdateFunctionRequest_LabelsEntry { key: string; value: string; } export interface UpdateFunctionMetadata { /** ID of the function that is being updated. */ functionId: string; } export interface DeleteFunctionRequest { /** * ID of the function to delete. * To get a function ID make a [FunctionService.List] request. */ functionId: string; } export interface DeleteFunctionMetadata { /** ID of the function that is being deleted. */ functionId: string; } export interface DeleteFunctionVersionRequest { /** ID of the function's version to delete. */ functionVersionId: string; /** * Forces deletion of the version tags. * * If the value equals false and the function has tags with the selected version then request returns an error. */ force: boolean; } export interface DeleteFunctionVersionMetadata { /** ID of the function's version is being deleted. */ functionVersionId: string; } export interface ListRuntimesRequest { } export interface ListRuntimesResponse { /** Runtime environments available for the specified function. */ runtimes: string[]; } export interface ListFunctionsVersionsRequest { /** * ID of the folder to list function versions for. * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string | undefined; /** * ID of the function to list versions for. * To get a function ID use a [FunctionService.List] request. */ functionId: string | undefined; /** * The maximum number of results per page to return. If the number of available results * is larger than `pageSize`, the service returns a [ListFunctionsVersionsResponse.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 `pageToken` to the * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * A filter expression that filters resources listed in the response. * * The expression must specify: * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields. * 2. An `=` operator. * 3. The value 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: `status="ACTIVE"`. */ filter: string; } export interface ListFunctionsVersionsResponse { /** List of versions for the specified folder or function. */ versions: Version[]; /** * Token for getting the next page of the list. If the number of results is greater than * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `nextPageToken` to continue paging through the results. */ nextPageToken: string; } export interface ListFunctionOperationsRequest { /** ID of the function to list operations for. */ functionId: string; /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.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 `pageToken` to the * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * A filter expression that filters resources listed in the response. * * The expression must specify: * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field. * 2. An `=` operator. * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`. * Examples of a filter: `done=false`, `created_by='John.Doe'`. */ filter: string; } export interface ListFunctionOperationsResponse { /** List of operations for the specified function. */ operations: Operation[]; /** * Token for getting the next page of the list. If the number of results is greater than * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `nextPageToken` to continue paging through the results. */ nextPageToken: string; } export interface CreateFunctionVersionRequest { /** * ID of the function to create a version for. * * To get a function ID, make a [FunctionService.List] request. */ functionId: string; /** Runtime environment for the version. */ runtime: string; /** Description of the version */ description: string; /** Entrypoint of the version. */ entrypoint: string; /** Resources allocated to the version. */ resources?: Resources; /** * Timeout for the execution of the version. * * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code. */ executionTimeout?: Duration; /** ID of the service account to associate with the version. */ serviceAccountId: string; /** Functions deployment package. */ package?: Package | undefined; /** Content of the deployment package. */ content: Buffer | undefined; /** * ID of the version to be copied from. Source version must belong to the same folder as the created version * and the user must have read permissions to the source version. */ versionId: string | undefined; /** Environment settings for the version. */ environment: { [key: string]: string; }; /** Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag). */ tag: string[]; /** Function version connectivity. If specified the version will be attached to specified network/subnet(s). */ connectivity?: Connectivity; /** Additional service accounts to be used by the version. */ namedServiceAccounts: { [key: string]: string; }; /** Yandex Lockbox secrets to be used by the version. */ secrets: Secret[]; /** Options for logging from the function */ logOptions?: LogOptions; /** S3 mounts to be used by the version. */ storageMounts: StorageMount[]; /** Config for asynchronous invocations of the version */ asyncInvocationConfig?: AsyncInvocationConfig; /** * Optional size of in-memory mounted /tmp directory in bytes. * Available for versions with resources.memory greater or equal to 1024 MiB. * * 0 or in range from 512 MiB to 3/4 of resources.memory. */ tmpfsSize: number; /** The maximum number of requests processed by a function instance at the same time */ concurrency: number; /** Mounts to be used by the version. */ mounts: Mount[]; /** Metadata options for the version. */ metadataOptions?: MetadataOptions; } export interface CreateFunctionVersionRequest_EnvironmentEntry { key: string; value: string; } export interface CreateFunctionVersionRequest_NamedServiceAccountsEntry { key: string; value: string; } export interface CreateFunctionVersionMetadata { /** ID of the version that is being created. */ functionVersionId: string; } export interface SetFunctionTagRequest { /** * ID of the version to set the tag for. * * To get a version ID make a [FunctionService.ListVersions] request. */ functionVersionId: string; /** Tag to set for the version. */ tag: string; } export interface RemoveFunctionTagRequest { /** * ID of the version to remove a tag from. * * To get the a version ID make a [FunctionService.ListVersions] request. */ functionVersionId: string; /** Tag to remove from the specified version. */ tag: string; } export interface SetFunctionTagMetadata { /** ID of the function versions that is being tagged. */ functionVersionId: string; } export interface RemoveFunctionTagMetadata { /** ID of the function versions that is being untagged. */ functionVersionId: string; } export interface ListFunctionTagHistoryRequest { /** * ID of the function to retrieve tag history for. * * To get a function ID, make a [FunctionService.List] request. */ functionId: string; /** Specific tag that history should be limited to. */ tag: string; /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.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 `pageToken` to the * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * A filter expression that filters resources listed in the response. * * The expression must specify: * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields. * 2. An `=` or `>` or `<` operator. * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`. * For example, `effective_to>2021-01-01T12:00:00Z`. */ filter: string; } export interface ListFunctionTagHistoryResponse { /** Set of relevant tag history records. */ functionTagHistoryRecord: ListFunctionTagHistoryResponse_FunctionTagHistoryRecord[]; /** * Token for getting the next page of the list. If the number of results is greater than * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `nextPageToken` to continue paging through the results. */ nextPageToken: string; } /** A record in the tag history. */ export interface ListFunctionTagHistoryResponse_FunctionTagHistoryRecord { /** ID of the function that the record is about. */ functionId: string; /** ID of the function version that the record is about. */ functionVersionId: string; /** Tag that was set for the version at some point. */ tag: string; /** Timestamp when the tag started being active for the function. */ effectiveFrom?: Date; /** Timestamp when the tag stopped being active for the function. */ effectiveTo?: Date; } export interface ListScalingPoliciesRequest { /** * ID of the function to retrieve scaling policies for. * * To get a function ID, make a [FunctionService.List] request. */ functionId: string; /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `pageSize`, the service returns a [ListScalingPoliciesResponse.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 `pageToken` to the * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request. */ pageToken: string; } export interface ListScalingPoliciesResponse { /** Set of relevant scaling policies. */ scalingPolicies: ScalingPolicy[]; /** * Token for getting the next page of the list. If the number of results is greater than * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `nextPageToken` to continue paging through the results. */ nextPageToken: string; } export interface SetScalingPolicyRequest { /** * ID of the function to retrieve scaling policies for. * * To get a function ID, make a [FunctionService.List] request. */ functionId: string; /** * Version tag. * * To get the history of version tags make a [FunctionService.ListTagHistory] request. */ tag: string; /** * Minimum guaranteed provisioned instances count for all zones in total. * Billed separately. */ provisionedInstancesCount: number; /** * Upper limit for instance count in each zone. * 0 means no limit. */ zoneInstancesLimit: number; /** * Upper limit of requests count in each zone. * 0 means no limit. */ zoneRequestsLimit: number; } export interface SetScalingPolicyMetadata { /** ID of the function for which scaling policy was set. */ functionId: string; } export interface RemoveScalingPolicyRequest { /** * ID of the function to remove scaling policies for. * * To get a function ID, make a [FunctionService.List] request. */ functionId: string; /** * Version tag. * * To get the history of version tags make a [FunctionService.ListTagHistory] request. */ tag: string; } export interface RemoveScalingPolicyMetadata { /** ID of the function for which scaling policy was removed. */ functionId: string; } export declare const GetFunctionRequest: { encode(message: GetFunctionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetFunctionRequest; fromJSON(object: any): GetFunctionRequest; toJSON(message: GetFunctionRequest): unknown; fromPartial, never>>(object: I): GetFunctionRequest; }; export declare const GetFunctionVersionRequest: { encode(message: GetFunctionVersionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetFunctionVersionRequest; fromJSON(object: any): GetFunctionVersionRequest; toJSON(message: GetFunctionVersionRequest): unknown; fromPartial, never>>(object: I): GetFunctionVersionRequest; }; export declare const GetFunctionVersionByTagRequest: { encode(message: GetFunctionVersionByTagRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetFunctionVersionByTagRequest; fromJSON(object: any): GetFunctionVersionByTagRequest; toJSON(message: GetFunctionVersionByTagRequest): unknown; fromPartial, never>>(object: I): GetFunctionVersionByTagRequest; }; export declare const ListFunctionsRequest: { encode(message: ListFunctionsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionsRequest; fromJSON(object: any): ListFunctionsRequest; toJSON(message: ListFunctionsRequest): unknown; fromPartial, never>>(object: I): ListFunctionsRequest; }; export declare const ListFunctionsResponse: { encode(message: ListFunctionsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionsResponse; fromJSON(object: any): ListFunctionsResponse; toJSON(message: ListFunctionsResponse): unknown; fromPartial, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListFunctionsResponse; }; export declare const CreateFunctionRequest: { encode(message: CreateFunctionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFunctionRequest; fromJSON(object: any): CreateFunctionRequest; toJSON(message: CreateFunctionRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): CreateFunctionRequest; }; export declare const CreateFunctionRequest_LabelsEntry: { encode(message: CreateFunctionRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFunctionRequest_LabelsEntry; fromJSON(object: any): CreateFunctionRequest_LabelsEntry; toJSON(message: CreateFunctionRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): CreateFunctionRequest_LabelsEntry; }; export declare const CreateFunctionMetadata: { encode(message: CreateFunctionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFunctionMetadata; fromJSON(object: any): CreateFunctionMetadata; toJSON(message: CreateFunctionMetadata): unknown; fromPartial, never>>(object: I): CreateFunctionMetadata; }; export declare const UpdateFunctionRequest: { encode(message: UpdateFunctionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateFunctionRequest; fromJSON(object: any): UpdateFunctionRequest; toJSON(message: UpdateFunctionRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; description?: string | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateFunctionRequest; }; export declare const UpdateFunctionRequest_LabelsEntry: { encode(message: UpdateFunctionRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateFunctionRequest_LabelsEntry; fromJSON(object: any): UpdateFunctionRequest_LabelsEntry; toJSON(message: UpdateFunctionRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdateFunctionRequest_LabelsEntry; }; export declare const UpdateFunctionMetadata: { encode(message: UpdateFunctionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateFunctionMetadata; fromJSON(object: any): UpdateFunctionMetadata; toJSON(message: UpdateFunctionMetadata): unknown; fromPartial, never>>(object: I): UpdateFunctionMetadata; }; export declare const DeleteFunctionRequest: { encode(message: DeleteFunctionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteFunctionRequest; fromJSON(object: any): DeleteFunctionRequest; toJSON(message: DeleteFunctionRequest): unknown; fromPartial, never>>(object: I): DeleteFunctionRequest; }; export declare const DeleteFunctionMetadata: { encode(message: DeleteFunctionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteFunctionMetadata; fromJSON(object: any): DeleteFunctionMetadata; toJSON(message: DeleteFunctionMetadata): unknown; fromPartial, never>>(object: I): DeleteFunctionMetadata; }; export declare const DeleteFunctionVersionRequest: { encode(message: DeleteFunctionVersionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteFunctionVersionRequest; fromJSON(object: any): DeleteFunctionVersionRequest; toJSON(message: DeleteFunctionVersionRequest): unknown; fromPartial, never>>(object: I): DeleteFunctionVersionRequest; }; export declare const DeleteFunctionVersionMetadata: { encode(message: DeleteFunctionVersionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteFunctionVersionMetadata; fromJSON(object: any): DeleteFunctionVersionMetadata; toJSON(message: DeleteFunctionVersionMetadata): unknown; fromPartial, never>>(object: I): DeleteFunctionVersionMetadata; }; export declare const ListRuntimesRequest: { encode(_: ListRuntimesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListRuntimesRequest; fromJSON(_: any): ListRuntimesRequest; toJSON(_: ListRuntimesRequest): unknown; fromPartial, never>>(_: I): ListRuntimesRequest; }; export declare const ListRuntimesResponse: { encode(message: ListRuntimesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListRuntimesResponse; fromJSON(object: any): ListRuntimesResponse; toJSON(message: ListRuntimesResponse): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): ListRuntimesResponse; }; export declare const ListFunctionsVersionsRequest: { encode(message: ListFunctionsVersionsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionsVersionsRequest; fromJSON(object: any): ListFunctionsVersionsRequest; toJSON(message: ListFunctionsVersionsRequest): unknown; fromPartial, never>>(object: I): ListFunctionsVersionsRequest; }; export declare const ListFunctionsVersionsResponse: { encode(message: ListFunctionsVersionsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionsVersionsResponse; fromJSON(object: any): ListFunctionsVersionsResponse; toJSON(message: ListFunctionsVersionsResponse): unknown; fromPartial, never>) | undefined; executionTimeout?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; serviceAccountId?: string | undefined; imageSize?: number | undefined; status?: import("../../../../../yandex/cloud/serverless/functions/v1/function").Version_Status | undefined; tags?: (string[] & string[] & Record, never>) | undefined; environment?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; connectivity?: ({ networkId?: string | undefined; subnetId?: string[] | undefined; } & { networkId?: string | undefined; subnetId?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; namedServiceAccounts?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; secrets?: ({ id?: string | undefined; versionId?: string | undefined; key?: string | undefined; environmentVariable?: string | undefined; }[] & ({ id?: string | undefined; versionId?: string | undefined; key?: string | undefined; environmentVariable?: string | undefined; } & { id?: string | undefined; versionId?: string | undefined; key?: string | undefined; environmentVariable?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; logOptions?: ({ disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; } & { disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; } & Record, never>) | undefined; storageMounts?: ({ bucketId?: string | undefined; prefix?: string | undefined; mountPointName?: string | undefined; readOnly?: boolean | undefined; }[] & ({ bucketId?: string | undefined; prefix?: string | undefined; mountPointName?: string | undefined; readOnly?: boolean | undefined; } & { bucketId?: string | undefined; prefix?: string | undefined; mountPointName?: string | undefined; readOnly?: boolean | undefined; } & Record, never>)[] & Record, never>) | undefined; asyncInvocationConfig?: ({ retriesCount?: number | undefined; successTarget?: { emptyTarget?: {} | undefined; ymqTarget?: { queueArn?: string | undefined; serviceAccountId?: string | undefined; } | undefined; } | undefined; failureTarget?: { emptyTarget?: {} | undefined; ymqTarget?: { queueArn?: string | undefined; serviceAccountId?: string | undefined; } | undefined; } | undefined; serviceAccountId?: string | undefined; } & { retriesCount?: number | undefined; successTarget?: ({ emptyTarget?: {} | undefined; ymqTarget?: { queueArn?: string | undefined; serviceAccountId?: string | undefined; } | undefined; } & { emptyTarget?: ({} & {} & Record, never>) | undefined; ymqTarget?: ({ queueArn?: string | undefined; serviceAccountId?: string | undefined; } & { queueArn?: string | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; failureTarget?: ({ emptyTarget?: {} | undefined; ymqTarget?: { queueArn?: string | undefined; serviceAccountId?: string | undefined; } | undefined; } & { emptyTarget?: ({} & {} & Record, never>) | undefined; ymqTarget?: ({ queueArn?: string | undefined; serviceAccountId?: string | undefined; } & { queueArn?: string | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; tmpfsSize?: number | undefined; concurrency?: number | undefined; mounts?: ({ name?: string | undefined; mode?: import("../../../../../yandex/cloud/serverless/functions/v1/function").Mount_Mode | undefined; objectStorage?: { bucketId?: string | undefined; prefix?: string | undefined; } | undefined; ephemeralDiskSpec?: { size?: number | undefined; blockSize?: number | undefined; } | undefined; }[] & ({ name?: string | undefined; mode?: import("../../../../../yandex/cloud/serverless/functions/v1/function").Mount_Mode | undefined; objectStorage?: { bucketId?: string | undefined; prefix?: string | undefined; } | undefined; ephemeralDiskSpec?: { size?: number | undefined; blockSize?: number | undefined; } | undefined; } & { name?: string | undefined; mode?: import("../../../../../yandex/cloud/serverless/functions/v1/function").Mount_Mode | undefined; objectStorage?: ({ bucketId?: string | undefined; prefix?: string | undefined; } & { bucketId?: string | undefined; prefix?: string | undefined; } & Record, never>) | undefined; ephemeralDiskSpec?: ({ size?: number | undefined; blockSize?: number | undefined; } & { size?: number | undefined; blockSize?: number | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; metadataOptions?: ({ gceHttpEndpoint?: import("../../../../../yandex/cloud/serverless/functions/v1/function").MetadataOption | undefined; awsV1HttpEndpoint?: import("../../../../../yandex/cloud/serverless/functions/v1/function").MetadataOption | undefined; } & { gceHttpEndpoint?: import("../../../../../yandex/cloud/serverless/functions/v1/function").MetadataOption | undefined; awsV1HttpEndpoint?: import("../../../../../yandex/cloud/serverless/functions/v1/function").MetadataOption | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListFunctionsVersionsResponse; }; export declare const ListFunctionOperationsRequest: { encode(message: ListFunctionOperationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionOperationsRequest; fromJSON(object: any): ListFunctionOperationsRequest; toJSON(message: ListFunctionOperationsRequest): unknown; fromPartial, never>>(object: I): ListFunctionOperationsRequest; }; export declare const ListFunctionOperationsResponse: { encode(message: ListFunctionOperationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionOperationsResponse; fromJSON(object: any): ListFunctionOperationsResponse; toJSON(message: ListFunctionOperationsResponse): unknown; fromPartial, never>) | undefined; error?: ({ code?: number | undefined; message?: string | undefined; details?: { typeUrl?: string | undefined; value?: Buffer | undefined; }[] | undefined; } & { code?: number | undefined; message?: string | undefined; details?: ({ typeUrl?: string | undefined; value?: Buffer | undefined; }[] & ({ typeUrl?: string | undefined; value?: Buffer | undefined; } & { typeUrl?: string | undefined; value?: Buffer | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; response?: ({ typeUrl?: string | undefined; value?: Buffer | undefined; } & { typeUrl?: string | undefined; value?: Buffer | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListFunctionOperationsResponse; }; export declare const CreateFunctionVersionRequest: { encode(message: CreateFunctionVersionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFunctionVersionRequest; fromJSON(object: any): CreateFunctionVersionRequest; toJSON(message: CreateFunctionVersionRequest): unknown; fromPartial, never>) | undefined; executionTimeout?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; serviceAccountId?: string | undefined; package?: ({ bucketName?: string | undefined; objectName?: string | undefined; sha256?: string | undefined; } & { bucketName?: string | undefined; objectName?: string | undefined; sha256?: string | undefined; } & Record, never>) | undefined; content?: Buffer | undefined; versionId?: string | undefined; environment?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; tag?: (string[] & string[] & Record, never>) | undefined; connectivity?: ({ networkId?: string | undefined; subnetId?: string[] | undefined; } & { networkId?: string | undefined; subnetId?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; namedServiceAccounts?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; secrets?: ({ id?: string | undefined; versionId?: string | undefined; key?: string | undefined; environmentVariable?: string | undefined; }[] & ({ id?: string | undefined; versionId?: string | undefined; key?: string | undefined; environmentVariable?: string | undefined; } & { id?: string | undefined; versionId?: string | undefined; key?: string | undefined; environmentVariable?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; logOptions?: ({ disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; } & { disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; } & Record, never>) | undefined; storageMounts?: ({ bucketId?: string | undefined; prefix?: string | undefined; mountPointName?: string | undefined; readOnly?: boolean | undefined; }[] & ({ bucketId?: string | undefined; prefix?: string | undefined; mountPointName?: string | undefined; readOnly?: boolean | undefined; } & { bucketId?: string | undefined; prefix?: string | undefined; mountPointName?: string | undefined; readOnly?: boolean | undefined; } & Record, never>)[] & Record, never>) | undefined; asyncInvocationConfig?: ({ retriesCount?: number | undefined; successTarget?: { emptyTarget?: {} | undefined; ymqTarget?: { queueArn?: string | undefined; serviceAccountId?: string | undefined; } | undefined; } | undefined; failureTarget?: { emptyTarget?: {} | undefined; ymqTarget?: { queueArn?: string | undefined; serviceAccountId?: string | undefined; } | undefined; } | undefined; serviceAccountId?: string | undefined; } & { retriesCount?: number | undefined; successTarget?: ({ emptyTarget?: {} | undefined; ymqTarget?: { queueArn?: string | undefined; serviceAccountId?: string | undefined; } | undefined; } & { emptyTarget?: ({} & {} & Record, never>) | undefined; ymqTarget?: ({ queueArn?: string | undefined; serviceAccountId?: string | undefined; } & { queueArn?: string | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; failureTarget?: ({ emptyTarget?: {} | undefined; ymqTarget?: { queueArn?: string | undefined; serviceAccountId?: string | undefined; } | undefined; } & { emptyTarget?: ({} & {} & Record, never>) | undefined; ymqTarget?: ({ queueArn?: string | undefined; serviceAccountId?: string | undefined; } & { queueArn?: string | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; tmpfsSize?: number | undefined; concurrency?: number | undefined; mounts?: ({ name?: string | undefined; mode?: import("../../../../../yandex/cloud/serverless/functions/v1/function").Mount_Mode | undefined; objectStorage?: { bucketId?: string | undefined; prefix?: string | undefined; } | undefined; ephemeralDiskSpec?: { size?: number | undefined; blockSize?: number | undefined; } | undefined; }[] & ({ name?: string | undefined; mode?: import("../../../../../yandex/cloud/serverless/functions/v1/function").Mount_Mode | undefined; objectStorage?: { bucketId?: string | undefined; prefix?: string | undefined; } | undefined; ephemeralDiskSpec?: { size?: number | undefined; blockSize?: number | undefined; } | undefined; } & { name?: string | undefined; mode?: import("../../../../../yandex/cloud/serverless/functions/v1/function").Mount_Mode | undefined; objectStorage?: ({ bucketId?: string | undefined; prefix?: string | undefined; } & { bucketId?: string | undefined; prefix?: string | undefined; } & Record, never>) | undefined; ephemeralDiskSpec?: ({ size?: number | undefined; blockSize?: number | undefined; } & { size?: number | undefined; blockSize?: number | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; metadataOptions?: ({ gceHttpEndpoint?: import("../../../../../yandex/cloud/serverless/functions/v1/function").MetadataOption | undefined; awsV1HttpEndpoint?: import("../../../../../yandex/cloud/serverless/functions/v1/function").MetadataOption | undefined; } & { gceHttpEndpoint?: import("../../../../../yandex/cloud/serverless/functions/v1/function").MetadataOption | undefined; awsV1HttpEndpoint?: import("../../../../../yandex/cloud/serverless/functions/v1/function").MetadataOption | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): CreateFunctionVersionRequest; }; export declare const CreateFunctionVersionRequest_EnvironmentEntry: { encode(message: CreateFunctionVersionRequest_EnvironmentEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFunctionVersionRequest_EnvironmentEntry; fromJSON(object: any): CreateFunctionVersionRequest_EnvironmentEntry; toJSON(message: CreateFunctionVersionRequest_EnvironmentEntry): unknown; fromPartial, never>>(object: I): CreateFunctionVersionRequest_EnvironmentEntry; }; export declare const CreateFunctionVersionRequest_NamedServiceAccountsEntry: { encode(message: CreateFunctionVersionRequest_NamedServiceAccountsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFunctionVersionRequest_NamedServiceAccountsEntry; fromJSON(object: any): CreateFunctionVersionRequest_NamedServiceAccountsEntry; toJSON(message: CreateFunctionVersionRequest_NamedServiceAccountsEntry): unknown; fromPartial, never>>(object: I): CreateFunctionVersionRequest_NamedServiceAccountsEntry; }; export declare const CreateFunctionVersionMetadata: { encode(message: CreateFunctionVersionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFunctionVersionMetadata; fromJSON(object: any): CreateFunctionVersionMetadata; toJSON(message: CreateFunctionVersionMetadata): unknown; fromPartial, never>>(object: I): CreateFunctionVersionMetadata; }; export declare const SetFunctionTagRequest: { encode(message: SetFunctionTagRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetFunctionTagRequest; fromJSON(object: any): SetFunctionTagRequest; toJSON(message: SetFunctionTagRequest): unknown; fromPartial, never>>(object: I): SetFunctionTagRequest; }; export declare const RemoveFunctionTagRequest: { encode(message: RemoveFunctionTagRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RemoveFunctionTagRequest; fromJSON(object: any): RemoveFunctionTagRequest; toJSON(message: RemoveFunctionTagRequest): unknown; fromPartial, never>>(object: I): RemoveFunctionTagRequest; }; export declare const SetFunctionTagMetadata: { encode(message: SetFunctionTagMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetFunctionTagMetadata; fromJSON(object: any): SetFunctionTagMetadata; toJSON(message: SetFunctionTagMetadata): unknown; fromPartial, never>>(object: I): SetFunctionTagMetadata; }; export declare const RemoveFunctionTagMetadata: { encode(message: RemoveFunctionTagMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RemoveFunctionTagMetadata; fromJSON(object: any): RemoveFunctionTagMetadata; toJSON(message: RemoveFunctionTagMetadata): unknown; fromPartial, never>>(object: I): RemoveFunctionTagMetadata; }; export declare const ListFunctionTagHistoryRequest: { encode(message: ListFunctionTagHistoryRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionTagHistoryRequest; fromJSON(object: any): ListFunctionTagHistoryRequest; toJSON(message: ListFunctionTagHistoryRequest): unknown; fromPartial, never>>(object: I): ListFunctionTagHistoryRequest; }; export declare const ListFunctionTagHistoryResponse: { encode(message: ListFunctionTagHistoryResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionTagHistoryResponse; fromJSON(object: any): ListFunctionTagHistoryResponse; toJSON(message: ListFunctionTagHistoryResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListFunctionTagHistoryResponse; }; export declare const ListFunctionTagHistoryResponse_FunctionTagHistoryRecord: { encode(message: ListFunctionTagHistoryResponse_FunctionTagHistoryRecord, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFunctionTagHistoryResponse_FunctionTagHistoryRecord; fromJSON(object: any): ListFunctionTagHistoryResponse_FunctionTagHistoryRecord; toJSON(message: ListFunctionTagHistoryResponse_FunctionTagHistoryRecord): unknown; fromPartial, never>>(object: I): ListFunctionTagHistoryResponse_FunctionTagHistoryRecord; }; export declare const ListScalingPoliciesRequest: { encode(message: ListScalingPoliciesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListScalingPoliciesRequest; fromJSON(object: any): ListScalingPoliciesRequest; toJSON(message: ListScalingPoliciesRequest): unknown; fromPartial, never>>(object: I): ListScalingPoliciesRequest; }; export declare const ListScalingPoliciesResponse: { encode(message: ListScalingPoliciesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListScalingPoliciesResponse; fromJSON(object: any): ListScalingPoliciesResponse; toJSON(message: ListScalingPoliciesResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListScalingPoliciesResponse; }; export declare const SetScalingPolicyRequest: { encode(message: SetScalingPolicyRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetScalingPolicyRequest; fromJSON(object: any): SetScalingPolicyRequest; toJSON(message: SetScalingPolicyRequest): unknown; fromPartial, never>>(object: I): SetScalingPolicyRequest; }; export declare const SetScalingPolicyMetadata: { encode(message: SetScalingPolicyMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetScalingPolicyMetadata; fromJSON(object: any): SetScalingPolicyMetadata; toJSON(message: SetScalingPolicyMetadata): unknown; fromPartial, never>>(object: I): SetScalingPolicyMetadata; }; export declare const RemoveScalingPolicyRequest: { encode(message: RemoveScalingPolicyRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RemoveScalingPolicyRequest; fromJSON(object: any): RemoveScalingPolicyRequest; toJSON(message: RemoveScalingPolicyRequest): unknown; fromPartial, never>>(object: I): RemoveScalingPolicyRequest; }; export declare const RemoveScalingPolicyMetadata: { encode(message: RemoveScalingPolicyMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RemoveScalingPolicyMetadata; fromJSON(object: any): RemoveScalingPolicyMetadata; toJSON(message: RemoveScalingPolicyMetadata): unknown; fromPartial, never>>(object: I): RemoveScalingPolicyMetadata; }; /** A set of methods for managing serverless functions. */ export declare const FunctionServiceService: { /** * Returns the specified function. * * To get the list of all available functions, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetFunctionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetFunctionRequest; readonly responseSerialize: (value: Function) => Buffer; readonly responseDeserialize: (value: Buffer) => Function; }; /** Retrieves the list of functions in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListFunctionsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListFunctionsRequest; readonly responseSerialize: (value: ListFunctionsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListFunctionsResponse; }; /** Creates a function in the specified folder. */ readonly create: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateFunctionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateFunctionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates the specified function. */ readonly update: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateFunctionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateFunctionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified function. */ readonly delete: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteFunctionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteFunctionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Returns the specified version of a function. * * To get the list of available version, make a [ListVersions] request. */ readonly getVersion: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/GetVersion"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetFunctionVersionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetFunctionVersionRequest; readonly responseSerialize: (value: Version) => Buffer; readonly responseDeserialize: (value: Buffer) => Version; }; /** * Returns all versions with the specified tag. * * To get the list of all available versions, make a [ListVersions] request. */ readonly getVersionByTag: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/GetVersionByTag"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetFunctionVersionByTagRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetFunctionVersionByTagRequest; readonly responseSerialize: (value: Version) => Buffer; readonly responseDeserialize: (value: Buffer) => Version; }; /** * Retrieves the list of versions for the specified function, or of all function versions * in the specified folder. */ readonly listVersions: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/ListVersions"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListFunctionsVersionsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListFunctionsVersionsRequest; readonly responseSerialize: (value: ListFunctionsVersionsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListFunctionsVersionsResponse; }; /** * Deletes the specified version of a function. * * NOTE: old untagged function versions are deleted automatically. */ readonly deleteVersion: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/DeleteVersion"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteFunctionVersionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteFunctionVersionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Set a tag for the specified version of a function. */ readonly setTag: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/SetTag"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: SetFunctionTagRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => SetFunctionTagRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Remove a tag from the specified version of a function. */ readonly removeTag: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/RemoveTag"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RemoveFunctionTagRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => RemoveFunctionTagRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Returns the log of tags assigned to versions of the specified function. */ readonly listTagHistory: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/ListTagHistory"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListFunctionTagHistoryRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListFunctionTagHistoryRequest; readonly responseSerialize: (value: ListFunctionTagHistoryResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListFunctionTagHistoryResponse; }; /** Creates a version for the specified function. */ readonly createVersion: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/CreateVersion"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateFunctionVersionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateFunctionVersionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Lists available runtime environments for the specified function. */ readonly listRuntimes: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/ListRuntimes"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListRuntimesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListRuntimesRequest; readonly responseSerialize: (value: ListRuntimesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListRuntimesResponse; }; /** Lists operations for the specified function. */ readonly listOperations: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/ListOperations"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListFunctionOperationsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListFunctionOperationsRequest; readonly responseSerialize: (value: ListFunctionOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListFunctionOperationsResponse; }; /** Lists existing access bindings for the specified function. */ readonly listAccessBindings: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/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; }; /** Sets access bindings for the function. */ readonly setAccessBindings: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/SetAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: SetAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => SetAccessBindingsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates access bindings for the specified function. */ readonly updateAccessBindings: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/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; }; /** Lists existing scaling policies for specified function */ readonly listScalingPolicies: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/ListScalingPolicies"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListScalingPoliciesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListScalingPoliciesRequest; readonly responseSerialize: (value: ListScalingPoliciesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListScalingPoliciesResponse; }; /** Set scaling policy for specified function and tag */ readonly setScalingPolicy: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/SetScalingPolicy"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: SetScalingPolicyRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => SetScalingPolicyRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Remove scaling policy for specified function and tag */ readonly removeScalingPolicy: { readonly path: "/yandex.cloud.serverless.functions.v1.FunctionService/RemoveScalingPolicy"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RemoveScalingPolicyRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => RemoveScalingPolicyRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface FunctionServiceServer extends UntypedServiceImplementation { /** * Returns the specified function. * * To get the list of all available functions, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of functions in the specified folder. */ list: handleUnaryCall; /** Creates a function in the specified folder. */ create: handleUnaryCall; /** Updates the specified function. */ update: handleUnaryCall; /** Deletes the specified function. */ delete: handleUnaryCall; /** * Returns the specified version of a function. * * To get the list of available version, make a [ListVersions] request. */ getVersion: handleUnaryCall; /** * Returns all versions with the specified tag. * * To get the list of all available versions, make a [ListVersions] request. */ getVersionByTag: handleUnaryCall; /** * Retrieves the list of versions for the specified function, or of all function versions * in the specified folder. */ listVersions: handleUnaryCall; /** * Deletes the specified version of a function. * * NOTE: old untagged function versions are deleted automatically. */ deleteVersion: handleUnaryCall; /** Set a tag for the specified version of a function. */ setTag: handleUnaryCall; /** Remove a tag from the specified version of a function. */ removeTag: handleUnaryCall; /** Returns the log of tags assigned to versions of the specified function. */ listTagHistory: handleUnaryCall; /** Creates a version for the specified function. */ createVersion: handleUnaryCall; /** Lists available runtime environments for the specified function. */ listRuntimes: handleUnaryCall; /** Lists operations for the specified function. */ listOperations: handleUnaryCall; /** Lists existing access bindings for the specified function. */ listAccessBindings: handleUnaryCall; /** Sets access bindings for the function. */ setAccessBindings: handleUnaryCall; /** Updates access bindings for the specified function. */ updateAccessBindings: handleUnaryCall; /** Lists existing scaling policies for specified function */ listScalingPolicies: handleUnaryCall; /** Set scaling policy for specified function and tag */ setScalingPolicy: handleUnaryCall; /** Remove scaling policy for specified function and tag */ removeScalingPolicy: handleUnaryCall; } export interface FunctionServiceClient extends Client { /** * Returns the specified function. * * To get the list of all available functions, make a [List] request. */ get(request: GetFunctionRequest, callback: (error: ServiceError | null, response: Function) => void): ClientUnaryCall; get(request: GetFunctionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Function) => void): ClientUnaryCall; get(request: GetFunctionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Function) => void): ClientUnaryCall; /** Retrieves the list of functions in the specified folder. */ list(request: ListFunctionsRequest, callback: (error: ServiceError | null, response: ListFunctionsResponse) => void): ClientUnaryCall; list(request: ListFunctionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListFunctionsResponse) => void): ClientUnaryCall; list(request: ListFunctionsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListFunctionsResponse) => void): ClientUnaryCall; /** Creates a function in the specified folder. */ create(request: CreateFunctionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateFunctionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateFunctionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates the specified function. */ update(request: UpdateFunctionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateFunctionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateFunctionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified function. */ delete(request: DeleteFunctionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteFunctionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteFunctionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Returns the specified version of a function. * * To get the list of available version, make a [ListVersions] request. */ getVersion(request: GetFunctionVersionRequest, callback: (error: ServiceError | null, response: Version) => void): ClientUnaryCall; getVersion(request: GetFunctionVersionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Version) => void): ClientUnaryCall; getVersion(request: GetFunctionVersionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Version) => void): ClientUnaryCall; /** * Returns all versions with the specified tag. * * To get the list of all available versions, make a [ListVersions] request. */ getVersionByTag(request: GetFunctionVersionByTagRequest, callback: (error: ServiceError | null, response: Version) => void): ClientUnaryCall; getVersionByTag(request: GetFunctionVersionByTagRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Version) => void): ClientUnaryCall; getVersionByTag(request: GetFunctionVersionByTagRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Version) => void): ClientUnaryCall; /** * Retrieves the list of versions for the specified function, or of all function versions * in the specified folder. */ listVersions(request: ListFunctionsVersionsRequest, callback: (error: ServiceError | null, response: ListFunctionsVersionsResponse) => void): ClientUnaryCall; listVersions(request: ListFunctionsVersionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListFunctionsVersionsResponse) => void): ClientUnaryCall; listVersions(request: ListFunctionsVersionsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListFunctionsVersionsResponse) => void): ClientUnaryCall; /** * Deletes the specified version of a function. * * NOTE: old untagged function versions are deleted automatically. */ deleteVersion(request: DeleteFunctionVersionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; deleteVersion(request: DeleteFunctionVersionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; deleteVersion(request: DeleteFunctionVersionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Set a tag for the specified version of a function. */ setTag(request: SetFunctionTagRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setTag(request: SetFunctionTagRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setTag(request: SetFunctionTagRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Remove a tag from the specified version of a function. */ removeTag(request: RemoveFunctionTagRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removeTag(request: RemoveFunctionTagRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removeTag(request: RemoveFunctionTagRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Returns the log of tags assigned to versions of the specified function. */ listTagHistory(request: ListFunctionTagHistoryRequest, callback: (error: ServiceError | null, response: ListFunctionTagHistoryResponse) => void): ClientUnaryCall; listTagHistory(request: ListFunctionTagHistoryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListFunctionTagHistoryResponse) => void): ClientUnaryCall; listTagHistory(request: ListFunctionTagHistoryRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListFunctionTagHistoryResponse) => void): ClientUnaryCall; /** Creates a version for the specified function. */ createVersion(request: CreateFunctionVersionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; createVersion(request: CreateFunctionVersionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; createVersion(request: CreateFunctionVersionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Lists available runtime environments for the specified function. */ listRuntimes(request: ListRuntimesRequest, callback: (error: ServiceError | null, response: ListRuntimesResponse) => void): ClientUnaryCall; listRuntimes(request: ListRuntimesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListRuntimesResponse) => void): ClientUnaryCall; listRuntimes(request: ListRuntimesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListRuntimesResponse) => void): ClientUnaryCall; /** Lists operations for the specified function. */ listOperations(request: ListFunctionOperationsRequest, callback: (error: ServiceError | null, response: ListFunctionOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListFunctionOperationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListFunctionOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListFunctionOperationsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListFunctionOperationsResponse) => void): ClientUnaryCall; /** Lists existing access bindings for the specified function. */ 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; /** Sets access bindings for the function. */ setAccessBindings(request: SetAccessBindingsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setAccessBindings(request: SetAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setAccessBindings(request: SetAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates access bindings for the specified function. */ 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; /** Lists existing scaling policies for specified function */ listScalingPolicies(request: ListScalingPoliciesRequest, callback: (error: ServiceError | null, response: ListScalingPoliciesResponse) => void): ClientUnaryCall; listScalingPolicies(request: ListScalingPoliciesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListScalingPoliciesResponse) => void): ClientUnaryCall; listScalingPolicies(request: ListScalingPoliciesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListScalingPoliciesResponse) => void): ClientUnaryCall; /** Set scaling policy for specified function and tag */ setScalingPolicy(request: SetScalingPolicyRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setScalingPolicy(request: SetScalingPolicyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setScalingPolicy(request: SetScalingPolicyRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Remove scaling policy for specified function and tag */ removeScalingPolicy(request: RemoveScalingPolicyRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removeScalingPolicy(request: RemoveScalingPolicyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removeScalingPolicy(request: RemoveScalingPolicyRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const FunctionServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): FunctionServiceClient; service: typeof FunctionServiceService; }; 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 {};