forked from elasticio/google-pubsub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.json
111 lines (111 loc) · 2.85 KB
/
component.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"title": "Google Pubsub",
"description": "Interact with Google Pub-Sub API",
"buildType": "docker",
"version": "1.8.0",
"env": [
"GOOGLE_APP_ID",
"GOOGLE_APP_SECRET"
],
"credentials": {
"fields": {
"projectId": {
"label": "Project ID",
"viewClass": "TextFieldView",
"placeholder": "Your google project ID",
"required": true
},
"client_email": {
"label": "SA Client Email",
"viewClass": "TextFieldView",
"required": true
},
"private_key": {
"label": "SA Private Key",
"viewClass": "TextAreaView",
"required": true
}
}
},
"actions": {
"pub": {
"title": "Publish",
"note": "The Publish action retrieves message body from a previous step and sends a message to a Topic while remaining unaware of any existing subscriptions.",
"main": "./lib/actions/pub.js",
"fields": {
"topicName": {
"label": "Topic Name",
"viewClass": "TextFieldView",
"placeholder": "projects/elasticio-test-project/topics/test",
"required": true
}
},
"metadata": {
"out": {
"type": "object",
"properties": {
"MessageId": {
"type": "string",
"required": true
}
}
}
}
}
},
"triggers": {
"subscribe": {
"title": "Subscribe (deprecated)",
"note": "The Subscribe trigger receives a message from a Topic, emits it, and sends an acknowledgment to Pub/Sub.",
"main": "./lib/triggers/pull.js",
"type": "polling",
"deprecated": true,
"fields": {
"topicName": {
"label": "Topic Name",
"viewClass": "TextFieldView",
"placeholder": "projects/elasticio-test-project/topics/test",
"required": true
}
}
},
"newSubscribe": {
"title": "Subscribe",
"note": "The Subscribe trigger receives a message from a Topic, emits it, and sends an acknowledgment to Pub/Sub.",
"main": "./lib/triggers/subscribe.js",
"type": "polling",
"fields": {
"topic": {
"label": "Select topic to subscribe",
"viewClass": "SelectView",
"required": false,
"model": "getTopicsList"
}
},
"metadata": {
"out": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {}
},
"data": {
"type": "object",
"properties": {}
},
"publishTime": {
"type": "string"
},
"received": {
"type": "string"
}
}
}
}
}
}
}