blob: 11744e9092047d2c1e7a586e6b8e056150bea78a [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.flows.html">flows</a> . <a href="dialogflow_v3beta1.projects.locations.agents.flows.versions.html">versions</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 Version in the specified Flow.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes the specified Version.</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 Version.</p>
89<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -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 versions in the specified Flow.</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="#load">load(name, body=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Loads a specified version to draft version.</p>
98<p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Updates the specified Version.</p>
101<h3>Method Details</h3>
102<div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
108 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
109 <pre>Creates a Version in the specified Flow.
110
111Args:
112 parent: string, Required. The Flow to create an Version for. Format: `projects//locations//agents//flows/`. (required)
113 body: object, The request body.
114 The object takes the form of:
115
116{ # Represents a version of a flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800117 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the version.
118 &quot;description&quot;: &quot;A String&quot;, # The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.
119 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the version. Limit of 64 characters.
120 &quot;name&quot;: &quot;A String&quot;, # Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.
121 &quot;nluSettings&quot;: { # Settings related to NLU. # Output only. The NLU settings of the flow at version creation.
122 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
123 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
124 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
125 },
126 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this version. This field is read-only and cannot be set by create and update methods.
127}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134Returns:
135 An object of the form:
136
137 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800138 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
139 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
140 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
141 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
142 {
143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
144 },
145 ],
146 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
147 },
148 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
152 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
154 },
155}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700156</div>
157
158<div class="method">
159 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
160 <pre>Deletes the specified Version.
161
162Args:
163 name: string, Required. The name of the Version to delete. Format: `projects//locations//agents//flows//versions/`. (required)
164 x__xgafv: string, V1 error format.
165 Allowed values
166 1 - v1 error format
167 2 - v2 error format
168
169Returns:
170 An object of the form:
171
172 { # 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 `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800173}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700174</div>
175
176<div class="method">
177 <code class="details" id="get">get(name, x__xgafv=None)</code>
178 <pre>Retrieves the specified Version.
179
180Args:
181 name: string, Required. The name of the Version. Format: `projects//locations//agents//flows//versions/`. (required)
182 x__xgafv: string, V1 error format.
183 Allowed values
184 1 - v1 error format
185 2 - v2 error format
186
187Returns:
188 An object of the form:
189
190 { # Represents a version of a flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the version.
192 &quot;description&quot;: &quot;A String&quot;, # The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.
193 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the version. Limit of 64 characters.
194 &quot;name&quot;: &quot;A String&quot;, # Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.
195 &quot;nluSettings&quot;: { # Settings related to NLU. # Output only. The NLU settings of the flow at version creation.
196 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
197 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
198 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
199 },
200 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this version. This field is read-only and cannot be set by create and update methods.
201}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700202</div>
203
204<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800205 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700206 <pre>Returns the list of all versions in the specified Flow.
207
208Args:
209 parent: string, Required. The Flow to list all versions for. Format: `projects//locations//agents//flows/`. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800210 pageSize: integer, The maximum number of items to return in a single page. By default 20 and at most 100.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800211 pageToken: string, The next_page_token value returned from a previous list request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700212 x__xgafv: string, V1 error format.
213 Allowed values
214 1 - v1 error format
215 2 - v2 error format
216
217Returns:
218 An object of the form:
219
220 { # The response message for Versions.ListVersions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800221 &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.
222 &quot;versions&quot;: [ # A list of versions. There will be a maximum number of items returned based on the page_size field in the request. The list may in some cases be empty or contain fewer entries than page_size even if this isn&#x27;t the last page.
223 { # Represents a version of a flow.
224 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the version.
225 &quot;description&quot;: &quot;A String&quot;, # The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.
226 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the version. Limit of 64 characters.
227 &quot;name&quot;: &quot;A String&quot;, # Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.
228 &quot;nluSettings&quot;: { # Settings related to NLU. # Output only. The NLU settings of the flow at version creation.
229 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
230 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
231 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
232 },
233 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this version. This field is read-only and cannot be set by create and update methods.
234 },
235 ],
236}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700237</div>
238
239<div class="method">
240 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
241 <pre>Retrieves the next page of results.
242
243Args:
244 previous_request: The request for the previous page. (required)
245 previous_response: The response from the request for the previous page. (required)
246
247Returns:
248 A request object that you can call &#x27;execute()&#x27; on to request the next
249 page. Returns None if there are no more items in the collection.
250 </pre>
251</div>
252
253<div class="method">
254 <code class="details" id="load">load(name, body=None, x__xgafv=None)</code>
255 <pre>Loads a specified version to draft version.
256
257Args:
258 name: string, Required. The Version to be loaded to draft version. Format: `projects//locations//agents//flows//versions/`. (required)
259 body: object, The request body.
260 The object takes the form of:
261
262{ # The request message for Versions.LoadVersion.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800263 &quot;allowOverrideAgentResources&quot;: True or False, # This field is used to prevent accidental overwrite of other agent resources in the draft version, which can potentially impact other flow&#x27;s behavior. If `allow_override_agent_resources` is false, conflicted agent-level resources will not be overridden (i.e. intents, entities, webhooks).
264}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265
266 x__xgafv: string, V1 error format.
267 Allowed values
268 1 - v1 error format
269 2 - v2 error format
270
271Returns:
272 An object of the form:
273
274 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800275 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
276 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
277 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
278 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
279 {
280 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
281 },
282 ],
283 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
284 },
285 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
286 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
287 },
288 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
289 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
290 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
291 },
292}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700293</div>
294
295<div class="method">
296 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
297 <pre>Updates the specified Version.
298
299Args:
300 name: string, Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation. (required)
301 body: object, The request body.
302 The object takes the form of:
303
304{ # Represents a version of a flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800305 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the version.
306 &quot;description&quot;: &quot;A String&quot;, # The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.
307 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the version. Limit of 64 characters.
308 &quot;name&quot;: &quot;A String&quot;, # Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.
309 &quot;nluSettings&quot;: { # Settings related to NLU. # Output only. The NLU settings of the flow at version creation.
310 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
311 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
312 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
313 },
314 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this version. This field is read-only and cannot be set by create and update methods.
315}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700316
317 updateMask: string, Required. The mask to control which fields get updated. Currently only `description` and `display_name` can be updated.
318 x__xgafv: string, V1 error format.
319 Allowed values
320 1 - v1 error format
321 2 - v2 error format
322
323Returns:
324 An object of the form:
325
326 { # Represents a version of a flow.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800327 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the version.
328 &quot;description&quot;: &quot;A String&quot;, # The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected.
329 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the version. Limit of 64 characters.
330 &quot;name&quot;: &quot;A String&quot;, # Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.
331 &quot;nluSettings&quot;: { # Settings related to NLU. # Output only. The NLU settings of the flow at version creation.
332 &quot;classificationThreshold&quot;: 3.14, # To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a no-match event will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
333 &quot;modelTrainingMode&quot;: &quot;A String&quot;, # Indicates NLU model training mode.
334 &quot;modelType&quot;: &quot;A String&quot;, # Indicates the type of NLU model.
335 },
336 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this version. This field is read-only and cannot be set by create and update methods.
337}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700338</div>
339
340</body></html>