blob: 57d8cf45669287450e5c1084969f60b3abab2914 [file] [log] [blame]
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v3beta1.html">Dialogflow API</a> . <a href="dialogflow_v3beta1.projects.html">projects</a> . <a href="dialogflow_v3beta1.projects.locations.html">locations</a> . <a href="dialogflow_v3beta1.projects.locations.agents.html">agents</a> . <a href="dialogflow_v3beta1.projects.locations.agents.webhooks.html">webhooks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a webhook in the specified agent.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes the specified webhook.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Retrieves the specified webhook.</p>
89<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080090 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Returns the list of all webhooks in the specified agent.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Updates the specified webhook.</p>
98<h3>Method Details</h3>
99<div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102</div>
103
104<div class="method">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>Creates a webhook in the specified agent.
107
108Args:
109 parent: string, Required. The agent to create a webhook for. Format: `projects//locations//agents/`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113{ # Webhooks host the developer&#x27;s business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow&#x27;s natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800114 &quot;timeout&quot;: &quot;A String&quot;, # Webhook execution timeout. Execution is considered failed if Dialogflow doesn&#x27;t receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
115 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
116 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
117 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800119 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
120 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
121 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
122 },
123 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: `projects//locations//agents//webhooks/`.
124 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
125 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
126}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133Returns:
134 An object of the form:
135
136 { # Webhooks host the developer&#x27;s business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow&#x27;s natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800137 &quot;timeout&quot;: &quot;A String&quot;, # Webhook execution timeout. Execution is considered failed if Dialogflow doesn&#x27;t receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
138 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
139 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
140 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700141 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800142 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
143 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
144 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
145 },
146 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: `projects//locations//agents//webhooks/`.
147 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
148 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
149 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700150</div>
151
152<div class="method">
153 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
154 <pre>Deletes the specified webhook.
155
156Args:
157 name: string, Required. The name of the webhook to delete. Format: `projects//locations//agents//webhooks/`. (required)
158 force: boolean, This field has no effect for webhook not being used. For webhooks that are used by pages/flows/transition route groups: * If `force` is set to false, an error will be returned with message indicating the referenced resources. * If `force` is set to true, Dialogflow will remove the webhook, as well as any references to the webhook (i.e. Webhook and tagin fulfillments that point to this webhook will be removed).
159 x__xgafv: string, V1 error format.
160 Allowed values
161 1 - v1 error format
162 2 - v2 error format
163
164Returns:
165 An object of the form:
166
167 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
168 }</pre>
169</div>
170
171<div class="method">
172 <code class="details" id="get">get(name, x__xgafv=None)</code>
173 <pre>Retrieves the specified webhook.
174
175Args:
176 name: string, Required. The name of the webhook. Format: `projects//locations//agents//webhooks/`. (required)
177 x__xgafv: string, V1 error format.
178 Allowed values
179 1 - v1 error format
180 2 - v2 error format
181
182Returns:
183 An object of the form:
184
185 { # Webhooks host the developer&#x27;s business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow&#x27;s natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800186 &quot;timeout&quot;: &quot;A String&quot;, # Webhook execution timeout. Execution is considered failed if Dialogflow doesn&#x27;t receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
187 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
188 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
189 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800191 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
192 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
193 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
194 },
195 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: `projects//locations//agents//webhooks/`.
196 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
197 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
198 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199</div>
200
201<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800202 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 <pre>Returns the list of all webhooks in the specified agent.
204
205Args:
206 parent: string, Required. The agent to list all webhooks for. Format: `projects//locations//agents/`. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700207 pageToken: string, The next_page_token value returned from a previous list request.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800208 pageSize: integer, The maximum number of items to return in a single page. By default 100 and at most 1000.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214Returns:
215 An object of the form:
216
217 { # The response message for Webhooks.ListWebhooks.
218 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
219 &quot;webhooks&quot;: [ # The list of webhooks. There will be a maximum number of items returned based on the page_size field in the request.
220 { # Webhooks host the developer&#x27;s business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow&#x27;s natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800221 &quot;timeout&quot;: &quot;A String&quot;, # Webhook execution timeout. Execution is considered failed if Dialogflow doesn&#x27;t receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
222 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
223 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
224 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700225 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800226 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
227 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
228 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800230 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: `projects//locations//agents//webhooks/`.
231 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
232 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
233 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700234 ],
235 }</pre>
236</div>
237
238<div class="method">
239 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
240 <pre>Retrieves the next page of results.
241
242Args:
243 previous_request: The request for the previous page. (required)
244 previous_response: The response from the request for the previous page. (required)
245
246Returns:
247 A request object that you can call &#x27;execute()&#x27; on to request the next
248 page. Returns None if there are no more items in the collection.
249 </pre>
250</div>
251
252<div class="method">
253 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
254 <pre>Updates the specified webhook.
255
256Args:
257 name: string, The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: `projects//locations//agents//webhooks/`. (required)
258 body: object, The request body.
259 The object takes the form of:
260
261{ # Webhooks host the developer&#x27;s business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow&#x27;s natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800262 &quot;timeout&quot;: &quot;A String&quot;, # Webhook execution timeout. Execution is considered failed if Dialogflow doesn&#x27;t receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
263 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
264 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
265 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700266 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800267 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
268 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
269 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
270 },
271 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: `projects//locations//agents//webhooks/`.
272 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
273 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
274}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700275
276 updateMask: string, The mask to control which fields get updated. If the mask is not present, all fields will be updated.
277 x__xgafv: string, V1 error format.
278 Allowed values
279 1 - v1 error format
280 2 - v2 error format
281
282Returns:
283 An object of the form:
284
285 { # Webhooks host the developer&#x27;s business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow&#x27;s natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800286 &quot;timeout&quot;: &quot;A String&quot;, # Webhook execution timeout. Execution is considered failed if Dialogflow doesn&#x27;t receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
287 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
288 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
289 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700290 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800291 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
292 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
293 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
294 },
295 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: `projects//locations//agents//webhooks/`.
296 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
297 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
298 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700299</div>
300
301</body></html>