blob: dbf5087bcec357f6fdcfcdbfb2df4ec966f90106 [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 Bot0d561ef2020-11-25 07:50:41 -080090 <code><a href="#list">list(parent, pageSize=None, pageToken=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 Bot0d561ef2020-11-25 07:50:41 -0800114 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
115 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
116 &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/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800117 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800118 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
119 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800120 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
121 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700122 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800123 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800124 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800125 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800126}
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 Bot0d561ef2020-11-25 07:50:41 -0800137 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
138 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
139 &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/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800140 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800141 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
142 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800143 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
144 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800146 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800147 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800148 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800149 }</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 Bot0d561ef2020-11-25 07:50:41 -0800186 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
187 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
188 &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/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800189 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800190 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
191 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800192 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
193 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700194 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800195 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800196 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800197 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800198 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199</div>
200
201<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800202 <code class="details" id="list">list(parent, pageSize=None, pageToken=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)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800207 pageSize: integer, The maximum number of items to return in a single page. By default 100 and at most 1000.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800208 pageToken: string, The next_page_token value returned from a previous list request.
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 Bot0d561ef2020-11-25 07:50:41 -0800221 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
222 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
223 &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/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800224 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800225 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
226 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800227 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
228 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800230 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700231 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800232 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800233 },
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 Bot0d561ef2020-11-25 07:50:41 -0800262 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
263 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
264 &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/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800265 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800266 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
267 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800268 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
269 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800271 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800272 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800273 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800274}
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 Bot0d561ef2020-11-25 07:50:41 -0800286 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the webhook, unique within the agent.
287 &quot;disabled&quot;: True or False, # Indicates whether the webhook is disabled.
288 &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/`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800289 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800290 &quot;password&quot;: &quot;A String&quot;, # The password for HTTP Basic authentication.
291 &quot;uri&quot;: &quot;A String&quot;, # Required. The webhook URI for receiving POST requests. It must use https protocol.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800292 &quot;requestHeaders&quot;: { # The HTTP request headers to send together with webhook requests.
293 &quot;a_key&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700294 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800295 &quot;username&quot;: &quot;A String&quot;, # The user name for HTTP Basic authentication.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800296 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800297 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800298 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700299</div>
300
301</body></html>