1 | import { Cluster } from './cluster';
|
2 | import { NodeCallback } from './utilities';
|
3 | import { DeployFunctionOptions, DropFunctionOptions, EventingFunction, EventingState, FunctionsStatusOptions, GetAllFunctionsOptions, GetFunctionOptions, PauseFunctionOptions, ResumeFunctionOptions, UpsertFunctionOptions } from './eventingfunctionmanager';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare class ScopeEventingFunctionManager {
|
12 | private _cluster;
|
13 | private _bucketName;
|
14 | private _scopeName;
|
15 | |
16 |
|
17 |
|
18 | constructor(cluster: Cluster, bucketName: string, scopeName: string);
|
19 | /**
|
20 | * Creates or updates an eventing function.
|
21 | *
|
22 | * @param functionDefinition The description of the eventing function to upsert.
|
23 | * @param options Optional parameters for this operation.
|
24 | * @param callback A node-style callback to be invoked after execution.
|
25 | */
|
26 | upsertFunction(functionDefinition: EventingFunction, options?: UpsertFunctionOptions, callback?: NodeCallback<void>): Promise<void>;
|
27 | /**
|
28 | * Deletes an eventing function.
|
29 | *
|
30 | * @param name The name of the eventing function to delete.
|
31 | * @param options Optional parameters for this operation.
|
32 | * @param callback A node-style callback to be invoked after execution.
|
33 | */
|
34 | dropFunction(name: string, options?: DropFunctionOptions, callback?: NodeCallback<void>): Promise<void>;
|
35 | /**
|
36 | * Fetches all eventing functions.
|
37 | *
|
38 | * @param options Optional parameters for this operation.
|
39 | * @param callback A node-style callback to be invoked after execution.
|
40 | */
|
41 | getAllFunctions(options?: GetAllFunctionsOptions, callback?: NodeCallback<EventingFunction[]>): Promise<EventingFunction[]>;
|
42 | /**
|
43 | * Fetches a specific eventing function.
|
44 | *
|
45 | * @param name The name of the eventing function to fetch.
|
46 | * @param options Optional parameters for this operation.
|
47 | * @param callback A node-style callback to be invoked after execution.
|
48 | */
|
49 | getFunction(name: string, options?: GetFunctionOptions, callback?: NodeCallback<EventingFunction>): Promise<EventingFunction>;
|
50 | /**
|
51 | * Deploys an eventing function.
|
52 | *
|
53 | * @param name The name of the eventing function to deploy.
|
54 | * @param options Optional parameters for this operation.
|
55 | * @param callback A node-style callback to be invoked after execution.
|
56 | */
|
57 | deployFunction(name: string, options?: DeployFunctionOptions, callback?: NodeCallback<void>): Promise<void>;
|
58 | /**
|
59 | * Undeploys an eventing function.
|
60 | *
|
61 | * @param name The name of the eventing function to undeploy.
|
62 | * @param options Optional parameters for this operation.
|
63 | * @param callback A node-style callback to be invoked after execution.
|
64 | */
|
65 | undeployFunction(name: string, options?: DeployFunctionOptions, callback?: NodeCallback<void>): Promise<void>;
|
66 | /**
|
67 | * Pauses an eventing function.
|
68 | *
|
69 | * @param name The name of the eventing function to pause.
|
70 | * @param options Optional parameters for this operation.
|
71 | * @param callback A node-style callback to be invoked after execution.
|
72 | */
|
73 | pauseFunction(name: string, options?: PauseFunctionOptions, callback?: NodeCallback<void>): Promise<void>;
|
74 | /**
|
75 | * Resumes an eventing function.
|
76 | *
|
77 | * @param name The name of the eventing function to resume.
|
78 | * @param options Optional parameters for this operation.
|
79 | * @param callback A node-style callback to be invoked after execution.
|
80 | */
|
81 | resumeFunction(name: string, options?: ResumeFunctionOptions, callback?: NodeCallback<void>): Promise<void>;
|
82 | /**
|
83 | * Fetches the status of all eventing functions.
|
84 | *
|
85 | * @param options Optional parameters for this operation.
|
86 | * @param callback A node-style callback to be invoked after execution.
|
87 | */
|
88 | functionsStatus(options?: FunctionsStatusOptions, callback?: NodeCallback<EventingState>): Promise<EventingState>;
|
89 | }
|