| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring |
| | 12 | | { |
| | 13 | | using Models; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Threading; |
| | 17 | | using System.Threading.Tasks; |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Extension methods for Model. |
| | 21 | | /// </summary> |
| | 22 | | public static partial class ModelExtensions |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Adds an intent to a version of the application. |
| | 26 | | /// </summary> |
| | 27 | | /// <param name='operations'> |
| | 28 | | /// The operations group for this extension method. |
| | 29 | | /// </param> |
| | 30 | | /// <param name='appId'> |
| | 31 | | /// The application ID. |
| | 32 | | /// </param> |
| | 33 | | /// <param name='versionId'> |
| | 34 | | /// The version ID. |
| | 35 | | /// </param> |
| | 36 | | /// <param name='intentCreateObject'> |
| | 37 | | /// A model object containing the name of the new intent. |
| | 38 | | /// </param> |
| | 39 | | /// <param name='cancellationToken'> |
| | 40 | | /// The cancellation token. |
| | 41 | | /// </param> |
| | 42 | | public static async Task<System.Guid> AddIntentAsync(this IModel operations, System.Guid appId, string versi |
| | 43 | | { |
| 12 | 44 | | using (var _result = await operations.AddIntentWithHttpMessagesAsync(appId, versionId, intentCreateObjec |
| | 45 | | { |
| 12 | 46 | | return _result.Body; |
| | 47 | | } |
| 12 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets information about the intent models in a version of the application. |
| | 52 | | /// </summary> |
| | 53 | | /// <param name='operations'> |
| | 54 | | /// The operations group for this extension method. |
| | 55 | | /// </param> |
| | 56 | | /// <param name='appId'> |
| | 57 | | /// The application ID. |
| | 58 | | /// </param> |
| | 59 | | /// <param name='versionId'> |
| | 60 | | /// The version ID. |
| | 61 | | /// </param> |
| | 62 | | /// <param name='skip'> |
| | 63 | | /// The number of entries to skip. Default value is 0. |
| | 64 | | /// </param> |
| | 65 | | /// <param name='take'> |
| | 66 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 67 | | /// </param> |
| | 68 | | /// <param name='cancellationToken'> |
| | 69 | | /// The cancellation token. |
| | 70 | | /// </param> |
| | 71 | | public static async Task<IList<IntentClassifier>> ListIntentsAsync(this IModel operations, System.Guid appId |
| | 72 | | { |
| 4 | 73 | | using (var _result = await operations.ListIntentsWithHttpMessagesAsync(appId, versionId, skip, take, nul |
| | 74 | | { |
| 4 | 75 | | return _result.Body; |
| | 76 | | } |
| 4 | 77 | | } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Adds an entity extractor to a version of the application. |
| | 81 | | /// </summary> |
| | 82 | | /// <param name='operations'> |
| | 83 | | /// The operations group for this extension method. |
| | 84 | | /// </param> |
| | 85 | | /// <param name='appId'> |
| | 86 | | /// The application ID. |
| | 87 | | /// </param> |
| | 88 | | /// <param name='versionId'> |
| | 89 | | /// The version ID. |
| | 90 | | /// </param> |
| | 91 | | /// <param name='entityModelCreateObject'> |
| | 92 | | /// A model object containing the name of the new entity extractor and its |
| | 93 | | /// children. |
| | 94 | | /// </param> |
| | 95 | | /// <param name='cancellationToken'> |
| | 96 | | /// The cancellation token. |
| | 97 | | /// </param> |
| | 98 | | public static async Task<System.Guid> AddEntityAsync(this IModel operations, System.Guid appId, string versi |
| | 99 | | { |
| 33 | 100 | | using (var _result = await operations.AddEntityWithHttpMessagesAsync(appId, versionId, entityModelCreate |
| | 101 | | { |
| 33 | 102 | | return _result.Body; |
| | 103 | | } |
| 33 | 104 | | } |
| | 105 | |
|
| | 106 | | /// <summary> |
| | 107 | | /// Gets information about all the simple entity models in a version of the |
| | 108 | | /// application. |
| | 109 | | /// </summary> |
| | 110 | | /// <param name='operations'> |
| | 111 | | /// The operations group for this extension method. |
| | 112 | | /// </param> |
| | 113 | | /// <param name='appId'> |
| | 114 | | /// The application ID. |
| | 115 | | /// </param> |
| | 116 | | /// <param name='versionId'> |
| | 117 | | /// The version ID. |
| | 118 | | /// </param> |
| | 119 | | /// <param name='skip'> |
| | 120 | | /// The number of entries to skip. Default value is 0. |
| | 121 | | /// </param> |
| | 122 | | /// <param name='take'> |
| | 123 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 124 | | /// </param> |
| | 125 | | /// <param name='cancellationToken'> |
| | 126 | | /// The cancellation token. |
| | 127 | | /// </param> |
| | 128 | | public static async Task<IList<NDepthEntityExtractor>> ListEntitiesAsync(this IModel operations, System.Guid |
| | 129 | | { |
| 3 | 130 | | using (var _result = await operations.ListEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, nu |
| | 131 | | { |
| 3 | 132 | | return _result.Body; |
| | 133 | | } |
| 3 | 134 | | } |
| | 135 | |
|
| | 136 | | /// <summary> |
| | 137 | | /// Gets information about all the hierarchical entity models in a version of |
| | 138 | | /// the application. |
| | 139 | | /// </summary> |
| | 140 | | /// <param name='operations'> |
| | 141 | | /// The operations group for this extension method. |
| | 142 | | /// </param> |
| | 143 | | /// <param name='appId'> |
| | 144 | | /// The application ID. |
| | 145 | | /// </param> |
| | 146 | | /// <param name='versionId'> |
| | 147 | | /// The version ID. |
| | 148 | | /// </param> |
| | 149 | | /// <param name='skip'> |
| | 150 | | /// The number of entries to skip. Default value is 0. |
| | 151 | | /// </param> |
| | 152 | | /// <param name='take'> |
| | 153 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 154 | | /// </param> |
| | 155 | | /// <param name='cancellationToken'> |
| | 156 | | /// The cancellation token. |
| | 157 | | /// </param> |
| | 158 | | public static async Task<IList<HierarchicalEntityExtractor>> ListHierarchicalEntitiesAsync(this IModel opera |
| | 159 | | { |
| 0 | 160 | | using (var _result = await operations.ListHierarchicalEntitiesWithHttpMessagesAsync(appId, versionId, sk |
| | 161 | | { |
| 0 | 162 | | return _result.Body; |
| | 163 | | } |
| 0 | 164 | | } |
| | 165 | |
|
| | 166 | | /// <summary> |
| | 167 | | /// Gets information about all the composite entity models in a version of the |
| | 168 | | /// application. |
| | 169 | | /// </summary> |
| | 170 | | /// <param name='operations'> |
| | 171 | | /// The operations group for this extension method. |
| | 172 | | /// </param> |
| | 173 | | /// <param name='appId'> |
| | 174 | | /// The application ID. |
| | 175 | | /// </param> |
| | 176 | | /// <param name='versionId'> |
| | 177 | | /// The version ID. |
| | 178 | | /// </param> |
| | 179 | | /// <param name='skip'> |
| | 180 | | /// The number of entries to skip. Default value is 0. |
| | 181 | | /// </param> |
| | 182 | | /// <param name='take'> |
| | 183 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 184 | | /// </param> |
| | 185 | | /// <param name='cancellationToken'> |
| | 186 | | /// The cancellation token. |
| | 187 | | /// </param> |
| | 188 | | public static async Task<IList<CompositeEntityExtractor>> ListCompositeEntitiesAsync(this IModel operations, |
| | 189 | | { |
| 0 | 190 | | using (var _result = await operations.ListCompositeEntitiesWithHttpMessagesAsync(appId, versionId, skip, |
| | 191 | | { |
| 0 | 192 | | return _result.Body; |
| | 193 | | } |
| 0 | 194 | | } |
| | 195 | |
|
| | 196 | | /// <summary> |
| | 197 | | /// Gets information about all the list entity models in a version of the |
| | 198 | | /// application. |
| | 199 | | /// </summary> |
| | 200 | | /// <param name='operations'> |
| | 201 | | /// The operations group for this extension method. |
| | 202 | | /// </param> |
| | 203 | | /// <param name='appId'> |
| | 204 | | /// The application ID. |
| | 205 | | /// </param> |
| | 206 | | /// <param name='versionId'> |
| | 207 | | /// The version ID. |
| | 208 | | /// </param> |
| | 209 | | /// <param name='skip'> |
| | 210 | | /// The number of entries to skip. Default value is 0. |
| | 211 | | /// </param> |
| | 212 | | /// <param name='take'> |
| | 213 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 214 | | /// </param> |
| | 215 | | /// <param name='cancellationToken'> |
| | 216 | | /// The cancellation token. |
| | 217 | | /// </param> |
| | 218 | | public static async Task<IList<ClosedListEntityExtractor>> ListClosedListsAsync(this IModel operations, Syst |
| | 219 | | { |
| 2 | 220 | | using (var _result = await operations.ListClosedListsWithHttpMessagesAsync(appId, versionId, skip, take, |
| | 221 | | { |
| 2 | 222 | | return _result.Body; |
| | 223 | | } |
| 2 | 224 | | } |
| | 225 | |
|
| | 226 | | /// <summary> |
| | 227 | | /// Adds a list entity model to a version of the application. |
| | 228 | | /// </summary> |
| | 229 | | /// <param name='operations'> |
| | 230 | | /// The operations group for this extension method. |
| | 231 | | /// </param> |
| | 232 | | /// <param name='appId'> |
| | 233 | | /// The application ID. |
| | 234 | | /// </param> |
| | 235 | | /// <param name='versionId'> |
| | 236 | | /// The version ID. |
| | 237 | | /// </param> |
| | 238 | | /// <param name='closedListModelCreateObject'> |
| | 239 | | /// A model containing the name and words for the new list entity extractor. |
| | 240 | | /// </param> |
| | 241 | | /// <param name='cancellationToken'> |
| | 242 | | /// The cancellation token. |
| | 243 | | /// </param> |
| | 244 | | public static async Task<System.Guid> AddClosedListAsync(this IModel operations, System.Guid appId, string v |
| | 245 | | { |
| 14 | 246 | | using (var _result = await operations.AddClosedListWithHttpMessagesAsync(appId, versionId, closedListMod |
| | 247 | | { |
| 14 | 248 | | return _result.Body; |
| | 249 | | } |
| 14 | 250 | | } |
| | 251 | |
|
| | 252 | | /// <summary> |
| | 253 | | /// Adds a list of prebuilt entities to a version of the application. |
| | 254 | | /// </summary> |
| | 255 | | /// <param name='operations'> |
| | 256 | | /// The operations group for this extension method. |
| | 257 | | /// </param> |
| | 258 | | /// <param name='appId'> |
| | 259 | | /// The application ID. |
| | 260 | | /// </param> |
| | 261 | | /// <param name='versionId'> |
| | 262 | | /// The version ID. |
| | 263 | | /// </param> |
| | 264 | | /// <param name='prebuiltExtractorNames'> |
| | 265 | | /// An array of prebuilt entity extractor names. |
| | 266 | | /// </param> |
| | 267 | | /// <param name='cancellationToken'> |
| | 268 | | /// The cancellation token. |
| | 269 | | /// </param> |
| | 270 | | public static async Task<IList<PrebuiltEntityExtractor>> AddPrebuiltAsync(this IModel operations, System.Gui |
| | 271 | | { |
| 19 | 272 | | using (var _result = await operations.AddPrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltExtract |
| | 273 | | { |
| 19 | 274 | | return _result.Body; |
| | 275 | | } |
| 19 | 276 | | } |
| | 277 | |
|
| | 278 | | /// <summary> |
| | 279 | | /// Gets information about all the prebuilt entities in a version of the |
| | 280 | | /// application. |
| | 281 | | /// </summary> |
| | 282 | | /// <param name='operations'> |
| | 283 | | /// The operations group for this extension method. |
| | 284 | | /// </param> |
| | 285 | | /// <param name='appId'> |
| | 286 | | /// The application ID. |
| | 287 | | /// </param> |
| | 288 | | /// <param name='versionId'> |
| | 289 | | /// The version ID. |
| | 290 | | /// </param> |
| | 291 | | /// <param name='skip'> |
| | 292 | | /// The number of entries to skip. Default value is 0. |
| | 293 | | /// </param> |
| | 294 | | /// <param name='take'> |
| | 295 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 296 | | /// </param> |
| | 297 | | /// <param name='cancellationToken'> |
| | 298 | | /// The cancellation token. |
| | 299 | | /// </param> |
| | 300 | | public static async Task<IList<PrebuiltEntityExtractor>> ListPrebuiltsAsync(this IModel operations, System.G |
| | 301 | | { |
| 2 | 302 | | using (var _result = await operations.ListPrebuiltsWithHttpMessagesAsync(appId, versionId, skip, take, n |
| | 303 | | { |
| 2 | 304 | | return _result.Body; |
| | 305 | | } |
| 2 | 306 | | } |
| | 307 | |
|
| | 308 | | /// <summary> |
| | 309 | | /// Gets all the available prebuilt entities in a version of the application. |
| | 310 | | /// </summary> |
| | 311 | | /// <param name='operations'> |
| | 312 | | /// The operations group for this extension method. |
| | 313 | | /// </param> |
| | 314 | | /// <param name='appId'> |
| | 315 | | /// The application ID. |
| | 316 | | /// </param> |
| | 317 | | /// <param name='versionId'> |
| | 318 | | /// The version ID. |
| | 319 | | /// </param> |
| | 320 | | /// <param name='cancellationToken'> |
| | 321 | | /// The cancellation token. |
| | 322 | | /// </param> |
| | 323 | | public static async Task<IList<AvailablePrebuiltEntityModel>> ListPrebuiltEntitiesAsync(this IModel operatio |
| | 324 | | { |
| 1 | 325 | | using (var _result = await operations.ListPrebuiltEntitiesWithHttpMessagesAsync(appId, versionId, null, |
| | 326 | | { |
| 1 | 327 | | return _result.Body; |
| | 328 | | } |
| 1 | 329 | | } |
| | 330 | |
|
| | 331 | | /// <summary> |
| | 332 | | /// Gets information about all the intent and entity models in a version of the |
| | 333 | | /// application. |
| | 334 | | /// </summary> |
| | 335 | | /// <param name='operations'> |
| | 336 | | /// The operations group for this extension method. |
| | 337 | | /// </param> |
| | 338 | | /// <param name='appId'> |
| | 339 | | /// The application ID. |
| | 340 | | /// </param> |
| | 341 | | /// <param name='versionId'> |
| | 342 | | /// The version ID. |
| | 343 | | /// </param> |
| | 344 | | /// <param name='skip'> |
| | 345 | | /// The number of entries to skip. Default value is 0. |
| | 346 | | /// </param> |
| | 347 | | /// <param name='take'> |
| | 348 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 349 | | /// </param> |
| | 350 | | /// <param name='cancellationToken'> |
| | 351 | | /// The cancellation token. |
| | 352 | | /// </param> |
| | 353 | | public static async Task<IList<ModelInfoResponse>> ListModelsAsync(this IModel operations, System.Guid appId |
| | 354 | | { |
| 0 | 355 | | using (var _result = await operations.ListModelsWithHttpMessagesAsync(appId, versionId, skip, take, null |
| | 356 | | { |
| 0 | 357 | | return _result.Body; |
| | 358 | | } |
| 0 | 359 | | } |
| | 360 | |
|
| | 361 | | /// <summary> |
| | 362 | | /// Gets the example utterances for the given intent or entity model in a |
| | 363 | | /// version of the application. |
| | 364 | | /// </summary> |
| | 365 | | /// <param name='operations'> |
| | 366 | | /// The operations group for this extension method. |
| | 367 | | /// </param> |
| | 368 | | /// <param name='appId'> |
| | 369 | | /// The application ID. |
| | 370 | | /// </param> |
| | 371 | | /// <param name='versionId'> |
| | 372 | | /// The version ID. |
| | 373 | | /// </param> |
| | 374 | | /// <param name='modelId'> |
| | 375 | | /// The ID (GUID) of the model. |
| | 376 | | /// </param> |
| | 377 | | /// <param name='skip'> |
| | 378 | | /// The number of entries to skip. Default value is 0. |
| | 379 | | /// </param> |
| | 380 | | /// <param name='take'> |
| | 381 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 382 | | /// </param> |
| | 383 | | /// <param name='cancellationToken'> |
| | 384 | | /// The cancellation token. |
| | 385 | | /// </param> |
| | 386 | | public static async Task<IList<LabelTextObject>> ExamplesMethodAsync(this IModel operations, System.Guid app |
| | 387 | | { |
| 0 | 388 | | using (var _result = await operations.ExamplesMethodWithHttpMessagesAsync(appId, versionId, modelId, ski |
| | 389 | | { |
| 0 | 390 | | return _result.Body; |
| | 391 | | } |
| 0 | 392 | | } |
| | 393 | |
|
| | 394 | | /// <summary> |
| | 395 | | /// Gets information about the intent model in a version of the application. |
| | 396 | | /// </summary> |
| | 397 | | /// <param name='operations'> |
| | 398 | | /// The operations group for this extension method. |
| | 399 | | /// </param> |
| | 400 | | /// <param name='appId'> |
| | 401 | | /// The application ID. |
| | 402 | | /// </param> |
| | 403 | | /// <param name='versionId'> |
| | 404 | | /// The version ID. |
| | 405 | | /// </param> |
| | 406 | | /// <param name='intentId'> |
| | 407 | | /// The intent classifier ID. |
| | 408 | | /// </param> |
| | 409 | | /// <param name='cancellationToken'> |
| | 410 | | /// The cancellation token. |
| | 411 | | /// </param> |
| | 412 | | public static async Task<IntentClassifier> GetIntentAsync(this IModel operations, System.Guid appId, string |
| | 413 | | { |
| 3 | 414 | | using (var _result = await operations.GetIntentWithHttpMessagesAsync(appId, versionId, intentId, null, c |
| | 415 | | { |
| 3 | 416 | | return _result.Body; |
| | 417 | | } |
| 3 | 418 | | } |
| | 419 | |
|
| | 420 | | /// <summary> |
| | 421 | | /// Updates the name of an intent in a version of the application. |
| | 422 | | /// </summary> |
| | 423 | | /// <param name='operations'> |
| | 424 | | /// The operations group for this extension method. |
| | 425 | | /// </param> |
| | 426 | | /// <param name='appId'> |
| | 427 | | /// The application ID. |
| | 428 | | /// </param> |
| | 429 | | /// <param name='versionId'> |
| | 430 | | /// The version ID. |
| | 431 | | /// </param> |
| | 432 | | /// <param name='intentId'> |
| | 433 | | /// The intent classifier ID. |
| | 434 | | /// </param> |
| | 435 | | /// <param name='modelUpdateObject'> |
| | 436 | | /// A model object containing the new intent name. |
| | 437 | | /// </param> |
| | 438 | | /// <param name='cancellationToken'> |
| | 439 | | /// The cancellation token. |
| | 440 | | /// </param> |
| | 441 | | public static async Task<OperationStatus> UpdateIntentAsync(this IModel operations, System.Guid appId, strin |
| | 442 | | { |
| 1 | 443 | | using (var _result = await operations.UpdateIntentWithHttpMessagesAsync(appId, versionId, intentId, mode |
| | 444 | | { |
| 1 | 445 | | return _result.Body; |
| | 446 | | } |
| 1 | 447 | | } |
| | 448 | |
|
| | 449 | | /// <summary> |
| | 450 | | /// Deletes an intent from a version of the application. |
| | 451 | | /// </summary> |
| | 452 | | /// <param name='operations'> |
| | 453 | | /// The operations group for this extension method. |
| | 454 | | /// </param> |
| | 455 | | /// <param name='appId'> |
| | 456 | | /// The application ID. |
| | 457 | | /// </param> |
| | 458 | | /// <param name='versionId'> |
| | 459 | | /// The version ID. |
| | 460 | | /// </param> |
| | 461 | | /// <param name='intentId'> |
| | 462 | | /// The intent classifier ID. |
| | 463 | | /// </param> |
| | 464 | | /// <param name='deleteUtterances'> |
| | 465 | | /// If true, deletes the intent's example utterances. If false, moves the |
| | 466 | | /// example utterances to the None intent. The default value is false. |
| | 467 | | /// </param> |
| | 468 | | /// <param name='cancellationToken'> |
| | 469 | | /// The cancellation token. |
| | 470 | | /// </param> |
| | 471 | | public static async Task<OperationStatus> DeleteIntentAsync(this IModel operations, System.Guid appId, strin |
| | 472 | | { |
| 9 | 473 | | using (var _result = await operations.DeleteIntentWithHttpMessagesAsync(appId, versionId, intentId, dele |
| | 474 | | { |
| 9 | 475 | | return _result.Body; |
| | 476 | | } |
| 9 | 477 | | } |
| | 478 | |
|
| | 479 | | /// <summary> |
| | 480 | | /// Gets information about an entity model in a version of the application. |
| | 481 | | /// </summary> |
| | 482 | | /// <param name='operations'> |
| | 483 | | /// The operations group for this extension method. |
| | 484 | | /// </param> |
| | 485 | | /// <param name='appId'> |
| | 486 | | /// The application ID. |
| | 487 | | /// </param> |
| | 488 | | /// <param name='versionId'> |
| | 489 | | /// The version ID. |
| | 490 | | /// </param> |
| | 491 | | /// <param name='entityId'> |
| | 492 | | /// The entity extractor ID. |
| | 493 | | /// </param> |
| | 494 | | /// <param name='cancellationToken'> |
| | 495 | | /// The cancellation token. |
| | 496 | | /// </param> |
| | 497 | | public static async Task<NDepthEntityExtractor> GetEntityAsync(this IModel operations, System.Guid appId, st |
| | 498 | | { |
| 10 | 499 | | using (var _result = await operations.GetEntityWithHttpMessagesAsync(appId, versionId, entityId, null, c |
| | 500 | | { |
| 10 | 501 | | return _result.Body; |
| | 502 | | } |
| 10 | 503 | | } |
| | 504 | |
|
| | 505 | | /// <summary> |
| | 506 | | /// Deletes an entity or a child from a version of the application. |
| | 507 | | /// </summary> |
| | 508 | | /// <param name='operations'> |
| | 509 | | /// The operations group for this extension method. |
| | 510 | | /// </param> |
| | 511 | | /// <param name='appId'> |
| | 512 | | /// The application ID. |
| | 513 | | /// </param> |
| | 514 | | /// <param name='versionId'> |
| | 515 | | /// The version ID. |
| | 516 | | /// </param> |
| | 517 | | /// <param name='entityId'> |
| | 518 | | /// The entity extractor or the child entity extractor ID. |
| | 519 | | /// </param> |
| | 520 | | /// <param name='cancellationToken'> |
| | 521 | | /// The cancellation token. |
| | 522 | | /// </param> |
| | 523 | | public static async Task<OperationStatus> DeleteEntityAsync(this IModel operations, System.Guid appId, strin |
| | 524 | | { |
| 35 | 525 | | using (var _result = await operations.DeleteEntityWithHttpMessagesAsync(appId, versionId, entityId, null |
| | 526 | | { |
| 35 | 527 | | return _result.Body; |
| | 528 | | } |
| 35 | 529 | | } |
| | 530 | |
|
| | 531 | | /// <summary> |
| | 532 | | /// Updates the name of an entity extractor or the name and instanceOf model of |
| | 533 | | /// a child entity extractor. |
| | 534 | | /// </summary> |
| | 535 | | /// <param name='operations'> |
| | 536 | | /// The operations group for this extension method. |
| | 537 | | /// </param> |
| | 538 | | /// <param name='appId'> |
| | 539 | | /// The application ID. |
| | 540 | | /// </param> |
| | 541 | | /// <param name='versionId'> |
| | 542 | | /// The version ID. |
| | 543 | | /// </param> |
| | 544 | | /// <param name='entityId'> |
| | 545 | | /// The entity extractor or the child entity extractor ID. |
| | 546 | | /// </param> |
| | 547 | | /// <param name='entityModelUpdateObject'> |
| | 548 | | /// A model object containing the name new entity extractor or the name and |
| | 549 | | /// instance of model of a child entity extractor |
| | 550 | | /// </param> |
| | 551 | | /// <param name='cancellationToken'> |
| | 552 | | /// The cancellation token. |
| | 553 | | /// </param> |
| | 554 | | public static async Task<OperationStatus> UpdateEntityChildAsync(this IModel operations, System.Guid appId, |
| | 555 | | { |
| 3 | 556 | | using (var _result = await operations.UpdateEntityChildWithHttpMessagesAsync(appId, versionId, entityId, |
| | 557 | | { |
| 3 | 558 | | return _result.Body; |
| | 559 | | } |
| 3 | 560 | | } |
| | 561 | |
|
| | 562 | | /// <summary> |
| | 563 | | /// Gets the information of the features used by the intent in a version of the |
| | 564 | | /// application. |
| | 565 | | /// </summary> |
| | 566 | | /// <param name='operations'> |
| | 567 | | /// The operations group for this extension method. |
| | 568 | | /// </param> |
| | 569 | | /// <param name='appId'> |
| | 570 | | /// The application ID. |
| | 571 | | /// </param> |
| | 572 | | /// <param name='versionId'> |
| | 573 | | /// The version ID. |
| | 574 | | /// </param> |
| | 575 | | /// <param name='intentId'> |
| | 576 | | /// The intent classifier ID. |
| | 577 | | /// </param> |
| | 578 | | /// <param name='cancellationToken'> |
| | 579 | | /// The cancellation token. |
| | 580 | | /// </param> |
| | 581 | | public static async Task<IList<ModelFeatureInformation>> GetIntentFeaturesAsync(this IModel operations, Syst |
| | 582 | | { |
| 1 | 583 | | using (var _result = await operations.GetIntentFeaturesWithHttpMessagesAsync(appId, versionId, intentId, |
| | 584 | | { |
| 1 | 585 | | return _result.Body; |
| | 586 | | } |
| 1 | 587 | | } |
| | 588 | |
|
| | 589 | | /// <summary> |
| | 590 | | /// Updates the information of the features used by the intent in a version of |
| | 591 | | /// the application. |
| | 592 | | /// </summary> |
| | 593 | | /// <param name='operations'> |
| | 594 | | /// The operations group for this extension method. |
| | 595 | | /// </param> |
| | 596 | | /// <param name='appId'> |
| | 597 | | /// The application ID. |
| | 598 | | /// </param> |
| | 599 | | /// <param name='versionId'> |
| | 600 | | /// The version ID. |
| | 601 | | /// </param> |
| | 602 | | /// <param name='intentId'> |
| | 603 | | /// The intent classifier ID. |
| | 604 | | /// </param> |
| | 605 | | /// <param name='featureRelationsUpdateObject'> |
| | 606 | | /// A list of feature information objects containing the new feature relations. |
| | 607 | | /// </param> |
| | 608 | | /// <param name='cancellationToken'> |
| | 609 | | /// The cancellation token. |
| | 610 | | /// </param> |
| | 611 | | public static async Task<OperationStatus> ReplaceIntentFeaturesAsync(this IModel operations, System.Guid app |
| | 612 | | { |
| 0 | 613 | | using (var _result = await operations.ReplaceIntentFeaturesWithHttpMessagesAsync(appId, versionId, inten |
| | 614 | | { |
| 0 | 615 | | return _result.Body; |
| | 616 | | } |
| 0 | 617 | | } |
| | 618 | |
|
| | 619 | | /// <summary> |
| | 620 | | /// Deletes a relation from the feature relations used by the intent in a |
| | 621 | | /// version of the application. |
| | 622 | | /// </summary> |
| | 623 | | /// <param name='operations'> |
| | 624 | | /// The operations group for this extension method. |
| | 625 | | /// </param> |
| | 626 | | /// <param name='appId'> |
| | 627 | | /// The application ID. |
| | 628 | | /// </param> |
| | 629 | | /// <param name='versionId'> |
| | 630 | | /// The version ID. |
| | 631 | | /// </param> |
| | 632 | | /// <param name='intentId'> |
| | 633 | | /// The intent classifier ID. |
| | 634 | | /// </param> |
| | 635 | | /// <param name='featureRelationDeleteObject'> |
| | 636 | | /// A feature information object containing the feature relation to delete. |
| | 637 | | /// </param> |
| | 638 | | /// <param name='cancellationToken'> |
| | 639 | | /// The cancellation token. |
| | 640 | | /// </param> |
| | 641 | | public static async Task<OperationStatus> DeleteIntentFeatureAsync(this IModel operations, System.Guid appId |
| | 642 | | { |
| 1 | 643 | | using (var _result = await operations.DeleteIntentFeatureWithHttpMessagesAsync(appId, versionId, intentI |
| | 644 | | { |
| 1 | 645 | | return _result.Body; |
| | 646 | | } |
| 1 | 647 | | } |
| | 648 | |
|
| | 649 | | /// <summary> |
| | 650 | | /// Gets the information of the features used by the entity in a version of the |
| | 651 | | /// application. |
| | 652 | | /// </summary> |
| | 653 | | /// <param name='operations'> |
| | 654 | | /// The operations group for this extension method. |
| | 655 | | /// </param> |
| | 656 | | /// <param name='appId'> |
| | 657 | | /// The application ID. |
| | 658 | | /// </param> |
| | 659 | | /// <param name='versionId'> |
| | 660 | | /// The version ID. |
| | 661 | | /// </param> |
| | 662 | | /// <param name='entityId'> |
| | 663 | | /// The entity extractor ID. |
| | 664 | | /// </param> |
| | 665 | | /// <param name='cancellationToken'> |
| | 666 | | /// The cancellation token. |
| | 667 | | /// </param> |
| | 668 | | public static async Task<IList<ModelFeatureInformation>> GetEntityFeaturesAsync(this IModel operations, Syst |
| | 669 | | { |
| 2 | 670 | | using (var _result = await operations.GetEntityFeaturesWithHttpMessagesAsync(appId, versionId, entityId, |
| | 671 | | { |
| 2 | 672 | | return _result.Body; |
| | 673 | | } |
| 2 | 674 | | } |
| | 675 | |
|
| | 676 | | /// <summary> |
| | 677 | | /// Updates the information of the features used by the entity in a version of |
| | 678 | | /// the application. |
| | 679 | | /// </summary> |
| | 680 | | /// <param name='operations'> |
| | 681 | | /// The operations group for this extension method. |
| | 682 | | /// </param> |
| | 683 | | /// <param name='appId'> |
| | 684 | | /// The application ID. |
| | 685 | | /// </param> |
| | 686 | | /// <param name='versionId'> |
| | 687 | | /// The version ID. |
| | 688 | | /// </param> |
| | 689 | | /// <param name='entityId'> |
| | 690 | | /// The entity extractor ID. |
| | 691 | | /// </param> |
| | 692 | | /// <param name='featureRelationsUpdateObject'> |
| | 693 | | /// A list of feature information objects containing the new feature relations. |
| | 694 | | /// </param> |
| | 695 | | /// <param name='cancellationToken'> |
| | 696 | | /// The cancellation token. |
| | 697 | | /// </param> |
| | 698 | | public static async Task<OperationStatus> ReplaceEntityFeaturesAsync(this IModel operations, System.Guid app |
| | 699 | | { |
| 0 | 700 | | using (var _result = await operations.ReplaceEntityFeaturesWithHttpMessagesAsync(appId, versionId, entit |
| | 701 | | { |
| 0 | 702 | | return _result.Body; |
| | 703 | | } |
| 0 | 704 | | } |
| | 705 | |
|
| | 706 | | /// <summary> |
| | 707 | | /// Deletes a relation from the feature relations used by the entity in a |
| | 708 | | /// version of the application. |
| | 709 | | /// </summary> |
| | 710 | | /// <param name='operations'> |
| | 711 | | /// The operations group for this extension method. |
| | 712 | | /// </param> |
| | 713 | | /// <param name='appId'> |
| | 714 | | /// The application ID. |
| | 715 | | /// </param> |
| | 716 | | /// <param name='versionId'> |
| | 717 | | /// The version ID. |
| | 718 | | /// </param> |
| | 719 | | /// <param name='entityId'> |
| | 720 | | /// The entity extractor ID. |
| | 721 | | /// </param> |
| | 722 | | /// <param name='featureRelationDeleteObject'> |
| | 723 | | /// A feature information object containing the feature relation to delete. |
| | 724 | | /// </param> |
| | 725 | | /// <param name='cancellationToken'> |
| | 726 | | /// The cancellation token. |
| | 727 | | /// </param> |
| | 728 | | public static async Task<OperationStatus> DeleteEntityFeatureAsync(this IModel operations, System.Guid appId |
| | 729 | | { |
| 1 | 730 | | using (var _result = await operations.DeleteEntityFeatureWithHttpMessagesAsync(appId, versionId, entityI |
| | 731 | | { |
| 1 | 732 | | return _result.Body; |
| | 733 | | } |
| 1 | 734 | | } |
| | 735 | |
|
| | 736 | | /// <summary> |
| | 737 | | /// Gets information about a hierarchical entity in a version of the |
| | 738 | | /// application. |
| | 739 | | /// </summary> |
| | 740 | | /// <param name='operations'> |
| | 741 | | /// The operations group for this extension method. |
| | 742 | | /// </param> |
| | 743 | | /// <param name='appId'> |
| | 744 | | /// The application ID. |
| | 745 | | /// </param> |
| | 746 | | /// <param name='versionId'> |
| | 747 | | /// The version ID. |
| | 748 | | /// </param> |
| | 749 | | /// <param name='hEntityId'> |
| | 750 | | /// The hierarchical entity extractor ID. |
| | 751 | | /// </param> |
| | 752 | | /// <param name='cancellationToken'> |
| | 753 | | /// The cancellation token. |
| | 754 | | /// </param> |
| | 755 | | public static async Task<HierarchicalEntityExtractor> GetHierarchicalEntityAsync(this IModel operations, Sys |
| | 756 | | { |
| 0 | 757 | | using (var _result = await operations.GetHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEnti |
| | 758 | | { |
| 0 | 759 | | return _result.Body; |
| | 760 | | } |
| 0 | 761 | | } |
| | 762 | |
|
| | 763 | | /// <summary> |
| | 764 | | /// Updates the name of a hierarchical entity model in a version of the |
| | 765 | | /// application. |
| | 766 | | /// </summary> |
| | 767 | | /// <param name='operations'> |
| | 768 | | /// The operations group for this extension method. |
| | 769 | | /// </param> |
| | 770 | | /// <param name='appId'> |
| | 771 | | /// The application ID. |
| | 772 | | /// </param> |
| | 773 | | /// <param name='versionId'> |
| | 774 | | /// The version ID. |
| | 775 | | /// </param> |
| | 776 | | /// <param name='hEntityId'> |
| | 777 | | /// The hierarchical entity extractor ID. |
| | 778 | | /// </param> |
| | 779 | | /// <param name='modelUpdateObject'> |
| | 780 | | /// Model containing names of the hierarchical entity. |
| | 781 | | /// </param> |
| | 782 | | /// <param name='cancellationToken'> |
| | 783 | | /// The cancellation token. |
| | 784 | | /// </param> |
| | 785 | | public static async Task<OperationStatus> UpdateHierarchicalEntityAsync(this IModel operations, System.Guid |
| | 786 | | { |
| 0 | 787 | | using (var _result = await operations.UpdateHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hE |
| | 788 | | { |
| 0 | 789 | | return _result.Body; |
| | 790 | | } |
| 0 | 791 | | } |
| | 792 | |
|
| | 793 | | /// <summary> |
| | 794 | | /// Deletes a hierarchical entity from a version of the application. |
| | 795 | | /// </summary> |
| | 796 | | /// <param name='operations'> |
| | 797 | | /// The operations group for this extension method. |
| | 798 | | /// </param> |
| | 799 | | /// <param name='appId'> |
| | 800 | | /// The application ID. |
| | 801 | | /// </param> |
| | 802 | | /// <param name='versionId'> |
| | 803 | | /// The version ID. |
| | 804 | | /// </param> |
| | 805 | | /// <param name='hEntityId'> |
| | 806 | | /// The hierarchical entity extractor ID. |
| | 807 | | /// </param> |
| | 808 | | /// <param name='cancellationToken'> |
| | 809 | | /// The cancellation token. |
| | 810 | | /// </param> |
| | 811 | | public static async Task<OperationStatus> DeleteHierarchicalEntityAsync(this IModel operations, System.Guid |
| | 812 | | { |
| 0 | 813 | | using (var _result = await operations.DeleteHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hE |
| | 814 | | { |
| 0 | 815 | | return _result.Body; |
| | 816 | | } |
| 0 | 817 | | } |
| | 818 | |
|
| | 819 | | /// <summary> |
| | 820 | | /// Gets information about a composite entity in a version of the application. |
| | 821 | | /// </summary> |
| | 822 | | /// <param name='operations'> |
| | 823 | | /// The operations group for this extension method. |
| | 824 | | /// </param> |
| | 825 | | /// <param name='appId'> |
| | 826 | | /// The application ID. |
| | 827 | | /// </param> |
| | 828 | | /// <param name='versionId'> |
| | 829 | | /// The version ID. |
| | 830 | | /// </param> |
| | 831 | | /// <param name='cEntityId'> |
| | 832 | | /// The composite entity extractor ID. |
| | 833 | | /// </param> |
| | 834 | | /// <param name='cancellationToken'> |
| | 835 | | /// The cancellation token. |
| | 836 | | /// </param> |
| | 837 | | public static async Task<CompositeEntityExtractor> GetCompositeEntityAsync(this IModel operations, System.Gu |
| | 838 | | { |
| 0 | 839 | | using (var _result = await operations.GetCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityI |
| | 840 | | { |
| 0 | 841 | | return _result.Body; |
| | 842 | | } |
| 0 | 843 | | } |
| | 844 | |
|
| | 845 | | /// <summary> |
| | 846 | | /// Updates a composite entity in a version of the application. |
| | 847 | | /// </summary> |
| | 848 | | /// <param name='operations'> |
| | 849 | | /// The operations group for this extension method. |
| | 850 | | /// </param> |
| | 851 | | /// <param name='appId'> |
| | 852 | | /// The application ID. |
| | 853 | | /// </param> |
| | 854 | | /// <param name='versionId'> |
| | 855 | | /// The version ID. |
| | 856 | | /// </param> |
| | 857 | | /// <param name='cEntityId'> |
| | 858 | | /// The composite entity extractor ID. |
| | 859 | | /// </param> |
| | 860 | | /// <param name='compositeModelUpdateObject'> |
| | 861 | | /// A model object containing the new entity extractor name and children. |
| | 862 | | /// </param> |
| | 863 | | /// <param name='cancellationToken'> |
| | 864 | | /// The cancellation token. |
| | 865 | | /// </param> |
| | 866 | | public static async Task<OperationStatus> UpdateCompositeEntityAsync(this IModel operations, System.Guid app |
| | 867 | | { |
| 0 | 868 | | using (var _result = await operations.UpdateCompositeEntityWithHttpMessagesAsync(appId, versionId, cEnti |
| | 869 | | { |
| 0 | 870 | | return _result.Body; |
| | 871 | | } |
| 0 | 872 | | } |
| | 873 | |
|
| | 874 | | /// <summary> |
| | 875 | | /// Deletes a composite entity from a version of the application. |
| | 876 | | /// </summary> |
| | 877 | | /// <param name='operations'> |
| | 878 | | /// The operations group for this extension method. |
| | 879 | | /// </param> |
| | 880 | | /// <param name='appId'> |
| | 881 | | /// The application ID. |
| | 882 | | /// </param> |
| | 883 | | /// <param name='versionId'> |
| | 884 | | /// The version ID. |
| | 885 | | /// </param> |
| | 886 | | /// <param name='cEntityId'> |
| | 887 | | /// The composite entity extractor ID. |
| | 888 | | /// </param> |
| | 889 | | /// <param name='cancellationToken'> |
| | 890 | | /// The cancellation token. |
| | 891 | | /// </param> |
| | 892 | | public static async Task<OperationStatus> DeleteCompositeEntityAsync(this IModel operations, System.Guid app |
| | 893 | | { |
| 0 | 894 | | using (var _result = await operations.DeleteCompositeEntityWithHttpMessagesAsync(appId, versionId, cEnti |
| | 895 | | { |
| 0 | 896 | | return _result.Body; |
| | 897 | | } |
| 0 | 898 | | } |
| | 899 | |
|
| | 900 | | /// <summary> |
| | 901 | | /// Gets information about a list entity in a version of the application. |
| | 902 | | /// </summary> |
| | 903 | | /// <param name='operations'> |
| | 904 | | /// The operations group for this extension method. |
| | 905 | | /// </param> |
| | 906 | | /// <param name='appId'> |
| | 907 | | /// The application ID. |
| | 908 | | /// </param> |
| | 909 | | /// <param name='versionId'> |
| | 910 | | /// The version ID. |
| | 911 | | /// </param> |
| | 912 | | /// <param name='clEntityId'> |
| | 913 | | /// The list model ID. |
| | 914 | | /// </param> |
| | 915 | | /// <param name='cancellationToken'> |
| | 916 | | /// The cancellation token. |
| | 917 | | /// </param> |
| | 918 | | public static async Task<ClosedListEntityExtractor> GetClosedListAsync(this IModel operations, System.Guid a |
| | 919 | | { |
| 8 | 920 | | using (var _result = await operations.GetClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, n |
| | 921 | | { |
| 8 | 922 | | return _result.Body; |
| | 923 | | } |
| 8 | 924 | | } |
| | 925 | |
|
| | 926 | | /// <summary> |
| | 927 | | /// Updates the list entity in a version of the application. |
| | 928 | | /// </summary> |
| | 929 | | /// <param name='operations'> |
| | 930 | | /// The operations group for this extension method. |
| | 931 | | /// </param> |
| | 932 | | /// <param name='appId'> |
| | 933 | | /// The application ID. |
| | 934 | | /// </param> |
| | 935 | | /// <param name='versionId'> |
| | 936 | | /// The version ID. |
| | 937 | | /// </param> |
| | 938 | | /// <param name='clEntityId'> |
| | 939 | | /// The list model ID. |
| | 940 | | /// </param> |
| | 941 | | /// <param name='closedListModelUpdateObject'> |
| | 942 | | /// The new list entity name and words list. |
| | 943 | | /// </param> |
| | 944 | | /// <param name='cancellationToken'> |
| | 945 | | /// The cancellation token. |
| | 946 | | /// </param> |
| | 947 | | public static async Task<OperationStatus> UpdateClosedListAsync(this IModel operations, System.Guid appId, s |
| | 948 | | { |
| 1 | 949 | | using (var _result = await operations.UpdateClosedListWithHttpMessagesAsync(appId, versionId, clEntityId |
| | 950 | | { |
| 1 | 951 | | return _result.Body; |
| | 952 | | } |
| 1 | 953 | | } |
| | 954 | |
|
| | 955 | | /// <summary> |
| | 956 | | /// Adds a batch of sublists to an existing list entity in a version of the |
| | 957 | | /// application. |
| | 958 | | /// </summary> |
| | 959 | | /// <param name='operations'> |
| | 960 | | /// The operations group for this extension method. |
| | 961 | | /// </param> |
| | 962 | | /// <param name='appId'> |
| | 963 | | /// The application ID. |
| | 964 | | /// </param> |
| | 965 | | /// <param name='versionId'> |
| | 966 | | /// The version ID. |
| | 967 | | /// </param> |
| | 968 | | /// <param name='clEntityId'> |
| | 969 | | /// The list entity model ID. |
| | 970 | | /// </param> |
| | 971 | | /// <param name='closedListModelPatchObject'> |
| | 972 | | /// A words list batch. |
| | 973 | | /// </param> |
| | 974 | | /// <param name='cancellationToken'> |
| | 975 | | /// The cancellation token. |
| | 976 | | /// </param> |
| | 977 | | public static async Task<OperationStatus> PatchClosedListAsync(this IModel operations, System.Guid appId, st |
| | 978 | | { |
| 1 | 979 | | using (var _result = await operations.PatchClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, |
| | 980 | | { |
| 1 | 981 | | return _result.Body; |
| | 982 | | } |
| 1 | 983 | | } |
| | 984 | |
|
| | 985 | | /// <summary> |
| | 986 | | /// Deletes a list entity model from a version of the application. |
| | 987 | | /// </summary> |
| | 988 | | /// <param name='operations'> |
| | 989 | | /// The operations group for this extension method. |
| | 990 | | /// </param> |
| | 991 | | /// <param name='appId'> |
| | 992 | | /// The application ID. |
| | 993 | | /// </param> |
| | 994 | | /// <param name='versionId'> |
| | 995 | | /// The version ID. |
| | 996 | | /// </param> |
| | 997 | | /// <param name='clEntityId'> |
| | 998 | | /// The list entity model ID. |
| | 999 | | /// </param> |
| | 1000 | | /// <param name='cancellationToken'> |
| | 1001 | | /// The cancellation token. |
| | 1002 | | /// </param> |
| | 1003 | | public static async Task<OperationStatus> DeleteClosedListAsync(this IModel operations, System.Guid appId, s |
| | 1004 | | { |
| 14 | 1005 | | using (var _result = await operations.DeleteClosedListWithHttpMessagesAsync(appId, versionId, clEntityId |
| | 1006 | | { |
| 14 | 1007 | | return _result.Body; |
| | 1008 | | } |
| 14 | 1009 | | } |
| | 1010 | |
|
| | 1011 | | /// <summary> |
| | 1012 | | /// Gets information about a prebuilt entity model in a version of the |
| | 1013 | | /// application. |
| | 1014 | | /// </summary> |
| | 1015 | | /// <param name='operations'> |
| | 1016 | | /// The operations group for this extension method. |
| | 1017 | | /// </param> |
| | 1018 | | /// <param name='appId'> |
| | 1019 | | /// The application ID. |
| | 1020 | | /// </param> |
| | 1021 | | /// <param name='versionId'> |
| | 1022 | | /// The version ID. |
| | 1023 | | /// </param> |
| | 1024 | | /// <param name='prebuiltId'> |
| | 1025 | | /// The prebuilt entity extractor ID. |
| | 1026 | | /// </param> |
| | 1027 | | /// <param name='cancellationToken'> |
| | 1028 | | /// The cancellation token. |
| | 1029 | | /// </param> |
| | 1030 | | public static async Task<PrebuiltEntityExtractor> GetPrebuiltAsync(this IModel operations, System.Guid appId |
| | 1031 | | { |
| 1 | 1032 | | using (var _result = await operations.GetPrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltId, nul |
| | 1033 | | { |
| 1 | 1034 | | return _result.Body; |
| | 1035 | | } |
| 1 | 1036 | | } |
| | 1037 | |
|
| | 1038 | | /// <summary> |
| | 1039 | | /// Deletes a prebuilt entity extractor from a version of the application. |
| | 1040 | | /// </summary> |
| | 1041 | | /// <param name='operations'> |
| | 1042 | | /// The operations group for this extension method. |
| | 1043 | | /// </param> |
| | 1044 | | /// <param name='appId'> |
| | 1045 | | /// The application ID. |
| | 1046 | | /// </param> |
| | 1047 | | /// <param name='versionId'> |
| | 1048 | | /// The version ID. |
| | 1049 | | /// </param> |
| | 1050 | | /// <param name='prebuiltId'> |
| | 1051 | | /// The prebuilt entity extractor ID. |
| | 1052 | | /// </param> |
| | 1053 | | /// <param name='cancellationToken'> |
| | 1054 | | /// The cancellation token. |
| | 1055 | | /// </param> |
| | 1056 | | public static async Task<OperationStatus> DeletePrebuiltAsync(this IModel operations, System.Guid appId, str |
| | 1057 | | { |
| 26 | 1058 | | using (var _result = await operations.DeletePrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltId, |
| | 1059 | | { |
| 26 | 1060 | | return _result.Body; |
| | 1061 | | } |
| 26 | 1062 | | } |
| | 1063 | |
|
| | 1064 | | /// <summary> |
| | 1065 | | /// Deletes a sublist of a specific list entity model from a version of the |
| | 1066 | | /// application. |
| | 1067 | | /// </summary> |
| | 1068 | | /// <param name='operations'> |
| | 1069 | | /// The operations group for this extension method. |
| | 1070 | | /// </param> |
| | 1071 | | /// <param name='appId'> |
| | 1072 | | /// The application ID. |
| | 1073 | | /// </param> |
| | 1074 | | /// <param name='versionId'> |
| | 1075 | | /// The version ID. |
| | 1076 | | /// </param> |
| | 1077 | | /// <param name='clEntityId'> |
| | 1078 | | /// The list entity extractor ID. |
| | 1079 | | /// </param> |
| | 1080 | | /// <param name='subListId'> |
| | 1081 | | /// The sublist ID. |
| | 1082 | | /// </param> |
| | 1083 | | /// <param name='cancellationToken'> |
| | 1084 | | /// The cancellation token. |
| | 1085 | | /// </param> |
| | 1086 | | public static async Task<OperationStatus> DeleteSubListAsync(this IModel operations, System.Guid appId, stri |
| | 1087 | | { |
| 1 | 1088 | | using (var _result = await operations.DeleteSubListWithHttpMessagesAsync(appId, versionId, clEntityId, s |
| | 1089 | | { |
| 1 | 1090 | | return _result.Body; |
| | 1091 | | } |
| 1 | 1092 | | } |
| | 1093 | |
|
| | 1094 | | /// <summary> |
| | 1095 | | /// Updates one of the list entity's sublists in a version of the application. |
| | 1096 | | /// </summary> |
| | 1097 | | /// <param name='operations'> |
| | 1098 | | /// The operations group for this extension method. |
| | 1099 | | /// </param> |
| | 1100 | | /// <param name='appId'> |
| | 1101 | | /// The application ID. |
| | 1102 | | /// </param> |
| | 1103 | | /// <param name='versionId'> |
| | 1104 | | /// The version ID. |
| | 1105 | | /// </param> |
| | 1106 | | /// <param name='clEntityId'> |
| | 1107 | | /// The list entity extractor ID. |
| | 1108 | | /// </param> |
| | 1109 | | /// <param name='subListId'> |
| | 1110 | | /// The sublist ID. |
| | 1111 | | /// </param> |
| | 1112 | | /// <param name='wordListBaseUpdateObject'> |
| | 1113 | | /// A sublist update object containing the new canonical form and the list of |
| | 1114 | | /// words. |
| | 1115 | | /// </param> |
| | 1116 | | /// <param name='cancellationToken'> |
| | 1117 | | /// The cancellation token. |
| | 1118 | | /// </param> |
| | 1119 | | public static async Task<OperationStatus> UpdateSubListAsync(this IModel operations, System.Guid appId, stri |
| | 1120 | | { |
| 1 | 1121 | | using (var _result = await operations.UpdateSubListWithHttpMessagesAsync(appId, versionId, clEntityId, s |
| | 1122 | | { |
| 1 | 1123 | | return _result.Body; |
| | 1124 | | } |
| 1 | 1125 | | } |
| | 1126 | |
|
| | 1127 | | /// <summary> |
| | 1128 | | /// Suggests example utterances that would improve the accuracy of the intent |
| | 1129 | | /// model in a version of the application. |
| | 1130 | | /// </summary> |
| | 1131 | | /// <param name='operations'> |
| | 1132 | | /// The operations group for this extension method. |
| | 1133 | | /// </param> |
| | 1134 | | /// <param name='appId'> |
| | 1135 | | /// The application ID. |
| | 1136 | | /// </param> |
| | 1137 | | /// <param name='versionId'> |
| | 1138 | | /// The version ID. |
| | 1139 | | /// </param> |
| | 1140 | | /// <param name='intentId'> |
| | 1141 | | /// The intent classifier ID. |
| | 1142 | | /// </param> |
| | 1143 | | /// <param name='take'> |
| | 1144 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 1145 | | /// </param> |
| | 1146 | | /// <param name='enableNestedChildren'> |
| | 1147 | | /// Toggles nested/flat format |
| | 1148 | | /// </param> |
| | 1149 | | /// <param name='cancellationToken'> |
| | 1150 | | /// The cancellation token. |
| | 1151 | | /// </param> |
| | 1152 | | public static async Task<IList<IntentsSuggestionExample>> ListIntentSuggestionsAsync(this IModel operations, |
| | 1153 | | { |
| 0 | 1154 | | using (var _result = await operations.ListIntentSuggestionsWithHttpMessagesAsync(appId, versionId, inten |
| | 1155 | | { |
| 0 | 1156 | | return _result.Body; |
| | 1157 | | } |
| 0 | 1158 | | } |
| | 1159 | |
|
| | 1160 | | /// <summary> |
| | 1161 | | /// Get suggested example utterances that would improve the accuracy of the |
| | 1162 | | /// entity model in a version of the application. |
| | 1163 | | /// </summary> |
| | 1164 | | /// <param name='operations'> |
| | 1165 | | /// The operations group for this extension method. |
| | 1166 | | /// </param> |
| | 1167 | | /// <param name='appId'> |
| | 1168 | | /// The application ID. |
| | 1169 | | /// </param> |
| | 1170 | | /// <param name='versionId'> |
| | 1171 | | /// The version ID. |
| | 1172 | | /// </param> |
| | 1173 | | /// <param name='entityId'> |
| | 1174 | | /// The target entity extractor model to enhance. |
| | 1175 | | /// </param> |
| | 1176 | | /// <param name='take'> |
| | 1177 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 1178 | | /// </param> |
| | 1179 | | /// <param name='enableNestedChildren'> |
| | 1180 | | /// Toggles nested/flat format |
| | 1181 | | /// </param> |
| | 1182 | | /// <param name='cancellationToken'> |
| | 1183 | | /// The cancellation token. |
| | 1184 | | /// </param> |
| | 1185 | | public static async Task<IList<EntitiesSuggestionExample>> ListEntitySuggestionsAsync(this IModel operations |
| | 1186 | | { |
| 1 | 1187 | | using (var _result = await operations.ListEntitySuggestionsWithHttpMessagesAsync(appId, versionId, entit |
| | 1188 | | { |
| 1 | 1189 | | return _result.Body; |
| | 1190 | | } |
| 1 | 1191 | | } |
| | 1192 | |
|
| | 1193 | | /// <summary> |
| | 1194 | | /// Adds a sublist to an existing list entity in a version of the application. |
| | 1195 | | /// </summary> |
| | 1196 | | /// <param name='operations'> |
| | 1197 | | /// The operations group for this extension method. |
| | 1198 | | /// </param> |
| | 1199 | | /// <param name='appId'> |
| | 1200 | | /// The application ID. |
| | 1201 | | /// </param> |
| | 1202 | | /// <param name='versionId'> |
| | 1203 | | /// The version ID. |
| | 1204 | | /// </param> |
| | 1205 | | /// <param name='clEntityId'> |
| | 1206 | | /// The list entity extractor ID. |
| | 1207 | | /// </param> |
| | 1208 | | /// <param name='wordListCreateObject'> |
| | 1209 | | /// Words list. |
| | 1210 | | /// </param> |
| | 1211 | | /// <param name='cancellationToken'> |
| | 1212 | | /// The cancellation token. |
| | 1213 | | /// </param> |
| | 1214 | | public static async Task<long?> AddSubListAsync(this IModel operations, System.Guid appId, string versionId, |
| | 1215 | | { |
| 1 | 1216 | | using (var _result = await operations.AddSubListWithHttpMessagesAsync(appId, versionId, clEntityId, word |
| | 1217 | | { |
| 1 | 1218 | | return _result.Body; |
| | 1219 | | } |
| 1 | 1220 | | } |
| | 1221 | |
|
| | 1222 | | /// <summary> |
| | 1223 | | /// Adds a customizable prebuilt domain along with all of its intent and entity |
| | 1224 | | /// models in a version of the application. |
| | 1225 | | /// </summary> |
| | 1226 | | /// <param name='operations'> |
| | 1227 | | /// The operations group for this extension method. |
| | 1228 | | /// </param> |
| | 1229 | | /// <param name='appId'> |
| | 1230 | | /// The application ID. |
| | 1231 | | /// </param> |
| | 1232 | | /// <param name='versionId'> |
| | 1233 | | /// The version ID. |
| | 1234 | | /// </param> |
| | 1235 | | /// <param name='prebuiltDomainObject'> |
| | 1236 | | /// A prebuilt domain create object containing the name of the domain. |
| | 1237 | | /// </param> |
| | 1238 | | /// <param name='cancellationToken'> |
| | 1239 | | /// The cancellation token. |
| | 1240 | | /// </param> |
| | 1241 | | public static async Task<IList<System.Guid?>> AddCustomPrebuiltDomainAsync(this IModel operations, System.Gu |
| | 1242 | | { |
| 5 | 1243 | | using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(appId, versionId, pre |
| | 1244 | | { |
| 5 | 1245 | | return _result.Body; |
| | 1246 | | } |
| 5 | 1247 | | } |
| | 1248 | |
|
| | 1249 | | /// <summary> |
| | 1250 | | /// Adds a customizable prebuilt intent model to a version of the application. |
| | 1251 | | /// </summary> |
| | 1252 | | /// <param name='operations'> |
| | 1253 | | /// The operations group for this extension method. |
| | 1254 | | /// </param> |
| | 1255 | | /// <param name='appId'> |
| | 1256 | | /// The application ID. |
| | 1257 | | /// </param> |
| | 1258 | | /// <param name='versionId'> |
| | 1259 | | /// The version ID. |
| | 1260 | | /// </param> |
| | 1261 | | /// <param name='prebuiltDomainModelCreateObject'> |
| | 1262 | | /// A model object containing the name of the customizable prebuilt intent and |
| | 1263 | | /// the name of the domain to which this model belongs. |
| | 1264 | | /// </param> |
| | 1265 | | /// <param name='cancellationToken'> |
| | 1266 | | /// The cancellation token. |
| | 1267 | | /// </param> |
| | 1268 | | public static async Task<System.Guid> AddCustomPrebuiltIntentAsync(this IModel operations, System.Guid appId |
| | 1269 | | { |
| 1 | 1270 | | using (var _result = await operations.AddCustomPrebuiltIntentWithHttpMessagesAsync(appId, versionId, pre |
| | 1271 | | { |
| 1 | 1272 | | return _result.Body; |
| | 1273 | | } |
| 1 | 1274 | | } |
| | 1275 | |
|
| | 1276 | | /// <summary> |
| | 1277 | | /// Gets information about customizable prebuilt intents added to a version of |
| | 1278 | | /// the application. |
| | 1279 | | /// </summary> |
| | 1280 | | /// <param name='operations'> |
| | 1281 | | /// The operations group for this extension method. |
| | 1282 | | /// </param> |
| | 1283 | | /// <param name='appId'> |
| | 1284 | | /// The application ID. |
| | 1285 | | /// </param> |
| | 1286 | | /// <param name='versionId'> |
| | 1287 | | /// The version ID. |
| | 1288 | | /// </param> |
| | 1289 | | /// <param name='cancellationToken'> |
| | 1290 | | /// The cancellation token. |
| | 1291 | | /// </param> |
| | 1292 | | public static async Task<IList<IntentClassifier>> ListCustomPrebuiltIntentsAsync(this IModel operations, Sys |
| | 1293 | | { |
| 2 | 1294 | | using (var _result = await operations.ListCustomPrebuiltIntentsWithHttpMessagesAsync(appId, versionId, n |
| | 1295 | | { |
| 2 | 1296 | | return _result.Body; |
| | 1297 | | } |
| 2 | 1298 | | } |
| | 1299 | |
|
| | 1300 | | /// <summary> |
| | 1301 | | /// Adds a prebuilt entity model to a version of the application. |
| | 1302 | | /// </summary> |
| | 1303 | | /// <param name='operations'> |
| | 1304 | | /// The operations group for this extension method. |
| | 1305 | | /// </param> |
| | 1306 | | /// <param name='appId'> |
| | 1307 | | /// The application ID. |
| | 1308 | | /// </param> |
| | 1309 | | /// <param name='versionId'> |
| | 1310 | | /// The version ID. |
| | 1311 | | /// </param> |
| | 1312 | | /// <param name='prebuiltDomainModelCreateObject'> |
| | 1313 | | /// A model object containing the name of the prebuilt entity and the name of |
| | 1314 | | /// the domain to which this model belongs. |
| | 1315 | | /// </param> |
| | 1316 | | /// <param name='cancellationToken'> |
| | 1317 | | /// The cancellation token. |
| | 1318 | | /// </param> |
| | 1319 | | public static async Task<System.Guid> AddCustomPrebuiltEntityAsync(this IModel operations, System.Guid appId |
| | 1320 | | { |
| 6 | 1321 | | using (var _result = await operations.AddCustomPrebuiltEntityWithHttpMessagesAsync(appId, versionId, pre |
| | 1322 | | { |
| 6 | 1323 | | return _result.Body; |
| | 1324 | | } |
| 6 | 1325 | | } |
| | 1326 | |
|
| | 1327 | | /// <summary> |
| | 1328 | | /// Gets all prebuilt entities used in a version of the application. |
| | 1329 | | /// </summary> |
| | 1330 | | /// <param name='operations'> |
| | 1331 | | /// The operations group for this extension method. |
| | 1332 | | /// </param> |
| | 1333 | | /// <param name='appId'> |
| | 1334 | | /// The application ID. |
| | 1335 | | /// </param> |
| | 1336 | | /// <param name='versionId'> |
| | 1337 | | /// The version ID. |
| | 1338 | | /// </param> |
| | 1339 | | /// <param name='cancellationToken'> |
| | 1340 | | /// The cancellation token. |
| | 1341 | | /// </param> |
| | 1342 | | public static async Task<IList<EntityExtractor>> ListCustomPrebuiltEntitiesAsync(this IModel operations, Sys |
| | 1343 | | { |
| 2 | 1344 | | using (var _result = await operations.ListCustomPrebuiltEntitiesWithHttpMessagesAsync(appId, versionId, |
| | 1345 | | { |
| 2 | 1346 | | return _result.Body; |
| | 1347 | | } |
| 2 | 1348 | | } |
| | 1349 | |
|
| | 1350 | | /// <summary> |
| | 1351 | | /// Gets all prebuilt intent and entity model information used in a version of |
| | 1352 | | /// this application. |
| | 1353 | | /// </summary> |
| | 1354 | | /// <param name='operations'> |
| | 1355 | | /// The operations group for this extension method. |
| | 1356 | | /// </param> |
| | 1357 | | /// <param name='appId'> |
| | 1358 | | /// The application ID. |
| | 1359 | | /// </param> |
| | 1360 | | /// <param name='versionId'> |
| | 1361 | | /// The version ID. |
| | 1362 | | /// </param> |
| | 1363 | | /// <param name='cancellationToken'> |
| | 1364 | | /// The cancellation token. |
| | 1365 | | /// </param> |
| | 1366 | | public static async Task<IList<CustomPrebuiltModel>> ListCustomPrebuiltModelsAsync(this IModel operations, S |
| | 1367 | | { |
| 4 | 1368 | | using (var _result = await operations.ListCustomPrebuiltModelsWithHttpMessagesAsync(appId, versionId, nu |
| | 1369 | | { |
| 4 | 1370 | | return _result.Body; |
| | 1371 | | } |
| 4 | 1372 | | } |
| | 1373 | |
|
| | 1374 | | /// <summary> |
| | 1375 | | /// Deletes a prebuilt domain's models in a version of the application. |
| | 1376 | | /// </summary> |
| | 1377 | | /// <param name='operations'> |
| | 1378 | | /// The operations group for this extension method. |
| | 1379 | | /// </param> |
| | 1380 | | /// <param name='appId'> |
| | 1381 | | /// The application ID. |
| | 1382 | | /// </param> |
| | 1383 | | /// <param name='versionId'> |
| | 1384 | | /// The version ID. |
| | 1385 | | /// </param> |
| | 1386 | | /// <param name='domainName'> |
| | 1387 | | /// Domain name. |
| | 1388 | | /// </param> |
| | 1389 | | /// <param name='cancellationToken'> |
| | 1390 | | /// The cancellation token. |
| | 1391 | | /// </param> |
| | 1392 | | public static async Task<OperationStatus> DeleteCustomPrebuiltDomainAsync(this IModel operations, System.Gui |
| | 1393 | | { |
| 5 | 1394 | | using (var _result = await operations.DeleteCustomPrebuiltDomainWithHttpMessagesAsync(appId, versionId, |
| | 1395 | | { |
| 5 | 1396 | | return _result.Body; |
| | 1397 | | } |
| 5 | 1398 | | } |
| | 1399 | |
|
| | 1400 | | /// <summary> |
| | 1401 | | /// Creates a single child in an existing entity model hierarchy in a version |
| | 1402 | | /// of the application. |
| | 1403 | | /// </summary> |
| | 1404 | | /// <param name='operations'> |
| | 1405 | | /// The operations group for this extension method. |
| | 1406 | | /// </param> |
| | 1407 | | /// <param name='appId'> |
| | 1408 | | /// The application ID. |
| | 1409 | | /// </param> |
| | 1410 | | /// <param name='versionId'> |
| | 1411 | | /// The version ID. |
| | 1412 | | /// </param> |
| | 1413 | | /// <param name='entityId'> |
| | 1414 | | /// The entity extractor ID. |
| | 1415 | | /// </param> |
| | 1416 | | /// <param name='childEntityModelCreateObject'> |
| | 1417 | | /// A model object containing the name of the new child model and its children. |
| | 1418 | | /// </param> |
| | 1419 | | /// <param name='cancellationToken'> |
| | 1420 | | /// The cancellation token. |
| | 1421 | | /// </param> |
| | 1422 | | public static async Task<System.Guid> AddEntityChildAsync(this IModel operations, System.Guid appId, string |
| | 1423 | | { |
| 3 | 1424 | | using (var _result = await operations.AddEntityChildWithHttpMessagesAsync(appId, versionId, entityId, ch |
| | 1425 | | { |
| 3 | 1426 | | return _result.Body; |
| | 1427 | | } |
| 3 | 1428 | | } |
| | 1429 | |
|
| | 1430 | | /// <summary> |
| | 1431 | | /// Gets information about the child's model contained in an hierarchical |
| | 1432 | | /// entity child model in a version of the application. |
| | 1433 | | /// </summary> |
| | 1434 | | /// <param name='operations'> |
| | 1435 | | /// The operations group for this extension method. |
| | 1436 | | /// </param> |
| | 1437 | | /// <param name='appId'> |
| | 1438 | | /// The application ID. |
| | 1439 | | /// </param> |
| | 1440 | | /// <param name='versionId'> |
| | 1441 | | /// The version ID. |
| | 1442 | | /// </param> |
| | 1443 | | /// <param name='hEntityId'> |
| | 1444 | | /// The hierarchical entity extractor ID. |
| | 1445 | | /// </param> |
| | 1446 | | /// <param name='hChildId'> |
| | 1447 | | /// The hierarchical entity extractor child ID. |
| | 1448 | | /// </param> |
| | 1449 | | /// <param name='cancellationToken'> |
| | 1450 | | /// The cancellation token. |
| | 1451 | | /// </param> |
| | 1452 | | public static async Task<HierarchicalChildEntity> GetHierarchicalEntityChildAsync(this IModel operations, Sy |
| | 1453 | | { |
| 0 | 1454 | | using (var _result = await operations.GetHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, |
| | 1455 | | { |
| 0 | 1456 | | return _result.Body; |
| | 1457 | | } |
| 0 | 1458 | | } |
| | 1459 | |
|
| | 1460 | | /// <summary> |
| | 1461 | | /// Renames a single child in an existing hierarchical entity model in a |
| | 1462 | | /// version of the application. |
| | 1463 | | /// </summary> |
| | 1464 | | /// <param name='operations'> |
| | 1465 | | /// The operations group for this extension method. |
| | 1466 | | /// </param> |
| | 1467 | | /// <param name='appId'> |
| | 1468 | | /// The application ID. |
| | 1469 | | /// </param> |
| | 1470 | | /// <param name='versionId'> |
| | 1471 | | /// The version ID. |
| | 1472 | | /// </param> |
| | 1473 | | /// <param name='hEntityId'> |
| | 1474 | | /// The hierarchical entity extractor ID. |
| | 1475 | | /// </param> |
| | 1476 | | /// <param name='hChildId'> |
| | 1477 | | /// The hierarchical entity extractor child ID. |
| | 1478 | | /// </param> |
| | 1479 | | /// <param name='hierarchicalChildModelUpdateObject'> |
| | 1480 | | /// Model object containing new name of the hierarchical entity child. |
| | 1481 | | /// </param> |
| | 1482 | | /// <param name='cancellationToken'> |
| | 1483 | | /// The cancellation token. |
| | 1484 | | /// </param> |
| | 1485 | | public static async Task<OperationStatus> UpdateHierarchicalEntityChildAsync(this IModel operations, System. |
| | 1486 | | { |
| 0 | 1487 | | using (var _result = await operations.UpdateHierarchicalEntityChildWithHttpMessagesAsync(appId, versionI |
| | 1488 | | { |
| 0 | 1489 | | return _result.Body; |
| | 1490 | | } |
| 0 | 1491 | | } |
| | 1492 | |
|
| | 1493 | | /// <summary> |
| | 1494 | | /// Deletes a hierarchical entity extractor child in a version of the |
| | 1495 | | /// application. |
| | 1496 | | /// </summary> |
| | 1497 | | /// <param name='operations'> |
| | 1498 | | /// The operations group for this extension method. |
| | 1499 | | /// </param> |
| | 1500 | | /// <param name='appId'> |
| | 1501 | | /// The application ID. |
| | 1502 | | /// </param> |
| | 1503 | | /// <param name='versionId'> |
| | 1504 | | /// The version ID. |
| | 1505 | | /// </param> |
| | 1506 | | /// <param name='hEntityId'> |
| | 1507 | | /// The hierarchical entity extractor ID. |
| | 1508 | | /// </param> |
| | 1509 | | /// <param name='hChildId'> |
| | 1510 | | /// The hierarchical entity extractor child ID. |
| | 1511 | | /// </param> |
| | 1512 | | /// <param name='cancellationToken'> |
| | 1513 | | /// The cancellation token. |
| | 1514 | | /// </param> |
| | 1515 | | public static async Task<OperationStatus> DeleteHierarchicalEntityChildAsync(this IModel operations, System. |
| | 1516 | | { |
| 0 | 1517 | | using (var _result = await operations.DeleteHierarchicalEntityChildWithHttpMessagesAsync(appId, versionI |
| | 1518 | | { |
| 0 | 1519 | | return _result.Body; |
| | 1520 | | } |
| 0 | 1521 | | } |
| | 1522 | |
|
| | 1523 | | /// <summary> |
| | 1524 | | /// Creates a single child in an existing composite entity model in a version |
| | 1525 | | /// of the application. |
| | 1526 | | /// </summary> |
| | 1527 | | /// <param name='operations'> |
| | 1528 | | /// The operations group for this extension method. |
| | 1529 | | /// </param> |
| | 1530 | | /// <param name='appId'> |
| | 1531 | | /// The application ID. |
| | 1532 | | /// </param> |
| | 1533 | | /// <param name='versionId'> |
| | 1534 | | /// The version ID. |
| | 1535 | | /// </param> |
| | 1536 | | /// <param name='cEntityId'> |
| | 1537 | | /// The composite entity extractor ID. |
| | 1538 | | /// </param> |
| | 1539 | | /// <param name='compositeChildModelCreateObject'> |
| | 1540 | | /// A model object containing the name of the new composite child model. |
| | 1541 | | /// </param> |
| | 1542 | | /// <param name='cancellationToken'> |
| | 1543 | | /// The cancellation token. |
| | 1544 | | /// </param> |
| | 1545 | | public static async Task<System.Guid> AddCompositeEntityChildAsync(this IModel operations, System.Guid appId |
| | 1546 | | { |
| 0 | 1547 | | using (var _result = await operations.AddCompositeEntityChildWithHttpMessagesAsync(appId, versionId, cEn |
| | 1548 | | { |
| 0 | 1549 | | return _result.Body; |
| | 1550 | | } |
| 0 | 1551 | | } |
| | 1552 | |
|
| | 1553 | | /// <summary> |
| | 1554 | | /// Deletes a composite entity extractor child from a version of the |
| | 1555 | | /// application. |
| | 1556 | | /// </summary> |
| | 1557 | | /// <param name='operations'> |
| | 1558 | | /// The operations group for this extension method. |
| | 1559 | | /// </param> |
| | 1560 | | /// <param name='appId'> |
| | 1561 | | /// The application ID. |
| | 1562 | | /// </param> |
| | 1563 | | /// <param name='versionId'> |
| | 1564 | | /// The version ID. |
| | 1565 | | /// </param> |
| | 1566 | | /// <param name='cEntityId'> |
| | 1567 | | /// The composite entity extractor ID. |
| | 1568 | | /// </param> |
| | 1569 | | /// <param name='cChildId'> |
| | 1570 | | /// The hierarchical entity extractor child ID. |
| | 1571 | | /// </param> |
| | 1572 | | /// <param name='cancellationToken'> |
| | 1573 | | /// The cancellation token. |
| | 1574 | | /// </param> |
| | 1575 | | public static async Task<OperationStatus> DeleteCompositeEntityChildAsync(this IModel operations, System.Gui |
| | 1576 | | { |
| 0 | 1577 | | using (var _result = await operations.DeleteCompositeEntityChildWithHttpMessagesAsync(appId, versionId, |
| | 1578 | | { |
| 0 | 1579 | | return _result.Body; |
| | 1580 | | } |
| 0 | 1581 | | } |
| | 1582 | |
|
| | 1583 | | /// <summary> |
| | 1584 | | /// Gets information about the regular expression entity models in a version of |
| | 1585 | | /// the application. |
| | 1586 | | /// </summary> |
| | 1587 | | /// <param name='operations'> |
| | 1588 | | /// The operations group for this extension method. |
| | 1589 | | /// </param> |
| | 1590 | | /// <param name='appId'> |
| | 1591 | | /// The application ID. |
| | 1592 | | /// </param> |
| | 1593 | | /// <param name='versionId'> |
| | 1594 | | /// The version ID. |
| | 1595 | | /// </param> |
| | 1596 | | /// <param name='skip'> |
| | 1597 | | /// The number of entries to skip. Default value is 0. |
| | 1598 | | /// </param> |
| | 1599 | | /// <param name='take'> |
| | 1600 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 1601 | | /// </param> |
| | 1602 | | /// <param name='cancellationToken'> |
| | 1603 | | /// The cancellation token. |
| | 1604 | | /// </param> |
| | 1605 | | public static async Task<IList<RegexEntityExtractor>> ListRegexEntityInfosAsync(this IModel operations, Syst |
| | 1606 | | { |
| 2 | 1607 | | using (var _result = await operations.ListRegexEntityInfosWithHttpMessagesAsync(appId, versionId, skip, |
| | 1608 | | { |
| 2 | 1609 | | return _result.Body; |
| | 1610 | | } |
| 2 | 1611 | | } |
| | 1612 | |
|
| | 1613 | | /// <summary> |
| | 1614 | | /// Adds a regular expression entity model to a version of the application. |
| | 1615 | | /// </summary> |
| | 1616 | | /// <param name='operations'> |
| | 1617 | | /// The operations group for this extension method. |
| | 1618 | | /// </param> |
| | 1619 | | /// <param name='appId'> |
| | 1620 | | /// The application ID. |
| | 1621 | | /// </param> |
| | 1622 | | /// <param name='versionId'> |
| | 1623 | | /// The version ID. |
| | 1624 | | /// </param> |
| | 1625 | | /// <param name='regexEntityExtractorCreateObj'> |
| | 1626 | | /// A model object containing the name and regex pattern for the new regular |
| | 1627 | | /// expression entity extractor. |
| | 1628 | | /// </param> |
| | 1629 | | /// <param name='cancellationToken'> |
| | 1630 | | /// The cancellation token. |
| | 1631 | | /// </param> |
| | 1632 | | public static async Task<System.Guid> CreateRegexEntityModelAsync(this IModel operations, System.Guid appId, |
| | 1633 | | { |
| 10 | 1634 | | using (var _result = await operations.CreateRegexEntityModelWithHttpMessagesAsync(appId, versionId, rege |
| | 1635 | | { |
| 10 | 1636 | | return _result.Body; |
| | 1637 | | } |
| 10 | 1638 | | } |
| | 1639 | |
|
| | 1640 | | /// <summary> |
| | 1641 | | /// Get information about the Pattern.Any entity models in a version of the |
| | 1642 | | /// application. |
| | 1643 | | /// </summary> |
| | 1644 | | /// <param name='operations'> |
| | 1645 | | /// The operations group for this extension method. |
| | 1646 | | /// </param> |
| | 1647 | | /// <param name='appId'> |
| | 1648 | | /// The application ID. |
| | 1649 | | /// </param> |
| | 1650 | | /// <param name='versionId'> |
| | 1651 | | /// The version ID. |
| | 1652 | | /// </param> |
| | 1653 | | /// <param name='skip'> |
| | 1654 | | /// The number of entries to skip. Default value is 0. |
| | 1655 | | /// </param> |
| | 1656 | | /// <param name='take'> |
| | 1657 | | /// The number of entries to return. Maximum page size is 500. Default is 100. |
| | 1658 | | /// </param> |
| | 1659 | | /// <param name='cancellationToken'> |
| | 1660 | | /// The cancellation token. |
| | 1661 | | /// </param> |
| | 1662 | | public static async Task<IList<PatternAnyEntityExtractor>> ListPatternAnyEntityInfosAsync(this IModel operat |
| | 1663 | | { |
| 2 | 1664 | | using (var _result = await operations.ListPatternAnyEntityInfosWithHttpMessagesAsync(appId, versionId, s |
| | 1665 | | { |
| 2 | 1666 | | return _result.Body; |
| | 1667 | | } |
| 2 | 1668 | | } |
| | 1669 | |
|
| | 1670 | | /// <summary> |
| | 1671 | | /// Adds a pattern.any entity extractor to a version of the application. |
| | 1672 | | /// </summary> |
| | 1673 | | /// <param name='operations'> |
| | 1674 | | /// The operations group for this extension method. |
| | 1675 | | /// </param> |
| | 1676 | | /// <param name='appId'> |
| | 1677 | | /// The application ID. |
| | 1678 | | /// </param> |
| | 1679 | | /// <param name='versionId'> |
| | 1680 | | /// The version ID. |
| | 1681 | | /// </param> |
| | 1682 | | /// <param name='extractorCreateObject'> |
| | 1683 | | /// A model object containing the name and explicit list for the new |
| | 1684 | | /// Pattern.Any entity extractor. |
| | 1685 | | /// </param> |
| | 1686 | | /// <param name='cancellationToken'> |
| | 1687 | | /// The cancellation token. |
| | 1688 | | /// </param> |
| | 1689 | | public static async Task<System.Guid> CreatePatternAnyEntityModelAsync(this IModel operations, System.Guid a |
| | 1690 | | { |
| 15 | 1691 | | using (var _result = await operations.CreatePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, |
| | 1692 | | { |
| 15 | 1693 | | return _result.Body; |
| | 1694 | | } |
| 15 | 1695 | | } |
| | 1696 | |
|
| | 1697 | | /// <summary> |
| | 1698 | | /// Get all roles for an entity in a version of the application |
| | 1699 | | /// </summary> |
| | 1700 | | /// <param name='operations'> |
| | 1701 | | /// The operations group for this extension method. |
| | 1702 | | /// </param> |
| | 1703 | | /// <param name='appId'> |
| | 1704 | | /// The application ID. |
| | 1705 | | /// </param> |
| | 1706 | | /// <param name='versionId'> |
| | 1707 | | /// The version ID. |
| | 1708 | | /// </param> |
| | 1709 | | /// <param name='entityId'> |
| | 1710 | | /// entity Id |
| | 1711 | | /// </param> |
| | 1712 | | /// <param name='cancellationToken'> |
| | 1713 | | /// The cancellation token. |
| | 1714 | | /// </param> |
| | 1715 | | public static async Task<IList<EntityRole>> ListEntityRolesAsync(this IModel operations, System.Guid appId, |
| | 1716 | | { |
| 3 | 1717 | | using (var _result = await operations.ListEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, n |
| | 1718 | | { |
| 3 | 1719 | | return _result.Body; |
| | 1720 | | } |
| 3 | 1721 | | } |
| | 1722 | |
|
| | 1723 | | /// <summary> |
| | 1724 | | /// Create an entity role in a version of the application. |
| | 1725 | | /// </summary> |
| | 1726 | | /// <param name='operations'> |
| | 1727 | | /// The operations group for this extension method. |
| | 1728 | | /// </param> |
| | 1729 | | /// <param name='appId'> |
| | 1730 | | /// The application ID. |
| | 1731 | | /// </param> |
| | 1732 | | /// <param name='versionId'> |
| | 1733 | | /// The version ID. |
| | 1734 | | /// </param> |
| | 1735 | | /// <param name='entityId'> |
| | 1736 | | /// The entity model ID. |
| | 1737 | | /// </param> |
| | 1738 | | /// <param name='entityRoleCreateObject'> |
| | 1739 | | /// An entity role object containing the name of role. |
| | 1740 | | /// </param> |
| | 1741 | | /// <param name='cancellationToken'> |
| | 1742 | | /// The cancellation token. |
| | 1743 | | /// </param> |
| | 1744 | | public static async Task<System.Guid> CreateEntityRoleAsync(this IModel operations, System.Guid appId, strin |
| | 1745 | | { |
| 5 | 1746 | | using (var _result = await operations.CreateEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, |
| | 1747 | | { |
| 5 | 1748 | | return _result.Body; |
| | 1749 | | } |
| 5 | 1750 | | } |
| | 1751 | |
|
| | 1752 | | /// <summary> |
| | 1753 | | /// Get a prebuilt entity's roles in a version of the application. |
| | 1754 | | /// </summary> |
| | 1755 | | /// <param name='operations'> |
| | 1756 | | /// The operations group for this extension method. |
| | 1757 | | /// </param> |
| | 1758 | | /// <param name='appId'> |
| | 1759 | | /// The application ID. |
| | 1760 | | /// </param> |
| | 1761 | | /// <param name='versionId'> |
| | 1762 | | /// The version ID. |
| | 1763 | | /// </param> |
| | 1764 | | /// <param name='entityId'> |
| | 1765 | | /// entity Id |
| | 1766 | | /// </param> |
| | 1767 | | /// <param name='cancellationToken'> |
| | 1768 | | /// The cancellation token. |
| | 1769 | | /// </param> |
| | 1770 | | public static async Task<IList<EntityRole>> ListPrebuiltEntityRolesAsync(this IModel operations, System.Guid |
| | 1771 | | { |
| 3 | 1772 | | using (var _result = await operations.ListPrebuiltEntityRolesWithHttpMessagesAsync(appId, versionId, ent |
| | 1773 | | { |
| 3 | 1774 | | return _result.Body; |
| | 1775 | | } |
| 3 | 1776 | | } |
| | 1777 | |
|
| | 1778 | | /// <summary> |
| | 1779 | | /// Create a role for a prebuilt entity in a version of the application. |
| | 1780 | | /// </summary> |
| | 1781 | | /// <param name='operations'> |
| | 1782 | | /// The operations group for this extension method. |
| | 1783 | | /// </param> |
| | 1784 | | /// <param name='appId'> |
| | 1785 | | /// The application ID. |
| | 1786 | | /// </param> |
| | 1787 | | /// <param name='versionId'> |
| | 1788 | | /// The version ID. |
| | 1789 | | /// </param> |
| | 1790 | | /// <param name='entityId'> |
| | 1791 | | /// The entity model ID. |
| | 1792 | | /// </param> |
| | 1793 | | /// <param name='entityRoleCreateObject'> |
| | 1794 | | /// An entity role object containing the name of role. |
| | 1795 | | /// </param> |
| | 1796 | | /// <param name='cancellationToken'> |
| | 1797 | | /// The cancellation token. |
| | 1798 | | /// </param> |
| | 1799 | | public static async Task<System.Guid> CreatePrebuiltEntityRoleAsync(this IModel operations, System.Guid appI |
| | 1800 | | { |
| 5 | 1801 | | using (var _result = await operations.CreatePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, en |
| | 1802 | | { |
| 5 | 1803 | | return _result.Body; |
| | 1804 | | } |
| 5 | 1805 | | } |
| | 1806 | |
|
| | 1807 | | /// <summary> |
| | 1808 | | /// Get all roles for a list entity in a version of the application. |
| | 1809 | | /// </summary> |
| | 1810 | | /// <param name='operations'> |
| | 1811 | | /// The operations group for this extension method. |
| | 1812 | | /// </param> |
| | 1813 | | /// <param name='appId'> |
| | 1814 | | /// The application ID. |
| | 1815 | | /// </param> |
| | 1816 | | /// <param name='versionId'> |
| | 1817 | | /// The version ID. |
| | 1818 | | /// </param> |
| | 1819 | | /// <param name='entityId'> |
| | 1820 | | /// entity Id |
| | 1821 | | /// </param> |
| | 1822 | | /// <param name='cancellationToken'> |
| | 1823 | | /// The cancellation token. |
| | 1824 | | /// </param> |
| | 1825 | | public static async Task<IList<EntityRole>> ListClosedListEntityRolesAsync(this IModel operations, System.Gu |
| | 1826 | | { |
| 3 | 1827 | | using (var _result = await operations.ListClosedListEntityRolesWithHttpMessagesAsync(appId, versionId, e |
| | 1828 | | { |
| 3 | 1829 | | return _result.Body; |
| | 1830 | | } |
| 3 | 1831 | | } |
| | 1832 | |
|
| | 1833 | | /// <summary> |
| | 1834 | | /// Create a role for a list entity in a version of the application. |
| | 1835 | | /// </summary> |
| | 1836 | | /// <param name='operations'> |
| | 1837 | | /// The operations group for this extension method. |
| | 1838 | | /// </param> |
| | 1839 | | /// <param name='appId'> |
| | 1840 | | /// The application ID. |
| | 1841 | | /// </param> |
| | 1842 | | /// <param name='versionId'> |
| | 1843 | | /// The version ID. |
| | 1844 | | /// </param> |
| | 1845 | | /// <param name='entityId'> |
| | 1846 | | /// The entity model ID. |
| | 1847 | | /// </param> |
| | 1848 | | /// <param name='entityRoleCreateObject'> |
| | 1849 | | /// An entity role object containing the name of role. |
| | 1850 | | /// </param> |
| | 1851 | | /// <param name='cancellationToken'> |
| | 1852 | | /// The cancellation token. |
| | 1853 | | /// </param> |
| | 1854 | | public static async Task<System.Guid> CreateClosedListEntityRoleAsync(this IModel operations, System.Guid ap |
| | 1855 | | { |
| 5 | 1856 | | using (var _result = await operations.CreateClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, |
| | 1857 | | { |
| 5 | 1858 | | return _result.Body; |
| | 1859 | | } |
| 5 | 1860 | | } |
| | 1861 | |
|
| | 1862 | | /// <summary> |
| | 1863 | | /// Get all roles for a regular expression entity in a version of the |
| | 1864 | | /// application. |
| | 1865 | | /// </summary> |
| | 1866 | | /// <param name='operations'> |
| | 1867 | | /// The operations group for this extension method. |
| | 1868 | | /// </param> |
| | 1869 | | /// <param name='appId'> |
| | 1870 | | /// The application ID. |
| | 1871 | | /// </param> |
| | 1872 | | /// <param name='versionId'> |
| | 1873 | | /// The version ID. |
| | 1874 | | /// </param> |
| | 1875 | | /// <param name='entityId'> |
| | 1876 | | /// entity Id |
| | 1877 | | /// </param> |
| | 1878 | | /// <param name='cancellationToken'> |
| | 1879 | | /// The cancellation token. |
| | 1880 | | /// </param> |
| | 1881 | | public static async Task<IList<EntityRole>> ListRegexEntityRolesAsync(this IModel operations, System.Guid ap |
| | 1882 | | { |
| 3 | 1883 | | using (var _result = await operations.ListRegexEntityRolesWithHttpMessagesAsync(appId, versionId, entity |
| | 1884 | | { |
| 3 | 1885 | | return _result.Body; |
| | 1886 | | } |
| 3 | 1887 | | } |
| | 1888 | |
|
| | 1889 | | /// <summary> |
| | 1890 | | /// Create a role for an regular expression entity in a version of the |
| | 1891 | | /// application. |
| | 1892 | | /// </summary> |
| | 1893 | | /// <param name='operations'> |
| | 1894 | | /// The operations group for this extension method. |
| | 1895 | | /// </param> |
| | 1896 | | /// <param name='appId'> |
| | 1897 | | /// The application ID. |
| | 1898 | | /// </param> |
| | 1899 | | /// <param name='versionId'> |
| | 1900 | | /// The version ID. |
| | 1901 | | /// </param> |
| | 1902 | | /// <param name='entityId'> |
| | 1903 | | /// The entity model ID. |
| | 1904 | | /// </param> |
| | 1905 | | /// <param name='entityRoleCreateObject'> |
| | 1906 | | /// An entity role object containing the name of role. |
| | 1907 | | /// </param> |
| | 1908 | | /// <param name='cancellationToken'> |
| | 1909 | | /// The cancellation token. |
| | 1910 | | /// </param> |
| | 1911 | | public static async Task<System.Guid> CreateRegexEntityRoleAsync(this IModel operations, System.Guid appId, |
| | 1912 | | { |
| 5 | 1913 | | using (var _result = await operations.CreateRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entit |
| | 1914 | | { |
| 5 | 1915 | | return _result.Body; |
| | 1916 | | } |
| 5 | 1917 | | } |
| | 1918 | |
|
| | 1919 | | /// <summary> |
| | 1920 | | /// Get all roles for a composite entity in a version of the application |
| | 1921 | | /// </summary> |
| | 1922 | | /// <param name='operations'> |
| | 1923 | | /// The operations group for this extension method. |
| | 1924 | | /// </param> |
| | 1925 | | /// <param name='appId'> |
| | 1926 | | /// The application ID. |
| | 1927 | | /// </param> |
| | 1928 | | /// <param name='versionId'> |
| | 1929 | | /// The version ID. |
| | 1930 | | /// </param> |
| | 1931 | | /// <param name='cEntityId'> |
| | 1932 | | /// The composite entity extractor ID. |
| | 1933 | | /// </param> |
| | 1934 | | /// <param name='cancellationToken'> |
| | 1935 | | /// The cancellation token. |
| | 1936 | | /// </param> |
| | 1937 | | public static async Task<IList<EntityRole>> ListCompositeEntityRolesAsync(this IModel operations, System.Gui |
| | 1938 | | { |
| 0 | 1939 | | using (var _result = await operations.ListCompositeEntityRolesWithHttpMessagesAsync(appId, versionId, cE |
| | 1940 | | { |
| 0 | 1941 | | return _result.Body; |
| | 1942 | | } |
| 0 | 1943 | | } |
| | 1944 | |
|
| | 1945 | | /// <summary> |
| | 1946 | | /// Create a role for a composite entity in a version of the application. |
| | 1947 | | /// </summary> |
| | 1948 | | /// <param name='operations'> |
| | 1949 | | /// The operations group for this extension method. |
| | 1950 | | /// </param> |
| | 1951 | | /// <param name='appId'> |
| | 1952 | | /// The application ID. |
| | 1953 | | /// </param> |
| | 1954 | | /// <param name='versionId'> |
| | 1955 | | /// The version ID. |
| | 1956 | | /// </param> |
| | 1957 | | /// <param name='cEntityId'> |
| | 1958 | | /// The composite entity extractor ID. |
| | 1959 | | /// </param> |
| | 1960 | | /// <param name='entityRoleCreateObject'> |
| | 1961 | | /// An entity role object containing the name of role. |
| | 1962 | | /// </param> |
| | 1963 | | /// <param name='cancellationToken'> |
| | 1964 | | /// The cancellation token. |
| | 1965 | | /// </param> |
| | 1966 | | public static async Task<System.Guid> CreateCompositeEntityRoleAsync(this IModel operations, System.Guid app |
| | 1967 | | { |
| 0 | 1968 | | using (var _result = await operations.CreateCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, c |
| | 1969 | | { |
| 0 | 1970 | | return _result.Body; |
| | 1971 | | } |
| 0 | 1972 | | } |
| | 1973 | |
|
| | 1974 | | /// <summary> |
| | 1975 | | /// Get all roles for a Pattern.any entity in a version of the application |
| | 1976 | | /// </summary> |
| | 1977 | | /// <param name='operations'> |
| | 1978 | | /// The operations group for this extension method. |
| | 1979 | | /// </param> |
| | 1980 | | /// <param name='appId'> |
| | 1981 | | /// The application ID. |
| | 1982 | | /// </param> |
| | 1983 | | /// <param name='versionId'> |
| | 1984 | | /// The version ID. |
| | 1985 | | /// </param> |
| | 1986 | | /// <param name='entityId'> |
| | 1987 | | /// entity Id |
| | 1988 | | /// </param> |
| | 1989 | | /// <param name='cancellationToken'> |
| | 1990 | | /// The cancellation token. |
| | 1991 | | /// </param> |
| | 1992 | | public static async Task<IList<EntityRole>> ListPatternAnyEntityRolesAsync(this IModel operations, System.Gu |
| | 1993 | | { |
| 3 | 1994 | | using (var _result = await operations.ListPatternAnyEntityRolesWithHttpMessagesAsync(appId, versionId, e |
| | 1995 | | { |
| 3 | 1996 | | return _result.Body; |
| | 1997 | | } |
| 3 | 1998 | | } |
| | 1999 | |
|
| | 2000 | | /// <summary> |
| | 2001 | | /// Create a role for an Pattern.any entity in a version of the application. |
| | 2002 | | /// </summary> |
| | 2003 | | /// <param name='operations'> |
| | 2004 | | /// The operations group for this extension method. |
| | 2005 | | /// </param> |
| | 2006 | | /// <param name='appId'> |
| | 2007 | | /// The application ID. |
| | 2008 | | /// </param> |
| | 2009 | | /// <param name='versionId'> |
| | 2010 | | /// The version ID. |
| | 2011 | | /// </param> |
| | 2012 | | /// <param name='entityId'> |
| | 2013 | | /// The entity model ID. |
| | 2014 | | /// </param> |
| | 2015 | | /// <param name='entityRoleCreateObject'> |
| | 2016 | | /// An entity role object containing the name of role. |
| | 2017 | | /// </param> |
| | 2018 | | /// <param name='cancellationToken'> |
| | 2019 | | /// The cancellation token. |
| | 2020 | | /// </param> |
| | 2021 | | public static async Task<System.Guid> CreatePatternAnyEntityRoleAsync(this IModel operations, System.Guid ap |
| | 2022 | | { |
| 5 | 2023 | | using (var _result = await operations.CreatePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, |
| | 2024 | | { |
| 5 | 2025 | | return _result.Body; |
| | 2026 | | } |
| 5 | 2027 | | } |
| | 2028 | |
|
| | 2029 | | /// <summary> |
| | 2030 | | /// Get all roles for a hierarchical entity in a version of the application |
| | 2031 | | /// </summary> |
| | 2032 | | /// <param name='operations'> |
| | 2033 | | /// The operations group for this extension method. |
| | 2034 | | /// </param> |
| | 2035 | | /// <param name='appId'> |
| | 2036 | | /// The application ID. |
| | 2037 | | /// </param> |
| | 2038 | | /// <param name='versionId'> |
| | 2039 | | /// The version ID. |
| | 2040 | | /// </param> |
| | 2041 | | /// <param name='hEntityId'> |
| | 2042 | | /// The hierarchical entity extractor ID. |
| | 2043 | | /// </param> |
| | 2044 | | /// <param name='cancellationToken'> |
| | 2045 | | /// The cancellation token. |
| | 2046 | | /// </param> |
| | 2047 | | public static async Task<IList<EntityRole>> ListHierarchicalEntityRolesAsync(this IModel operations, System. |
| | 2048 | | { |
| 0 | 2049 | | using (var _result = await operations.ListHierarchicalEntityRolesWithHttpMessagesAsync(appId, versionId, |
| | 2050 | | { |
| 0 | 2051 | | return _result.Body; |
| | 2052 | | } |
| 0 | 2053 | | } |
| | 2054 | |
|
| | 2055 | | /// <summary> |
| | 2056 | | /// Create a role for an hierarchical entity in a version of the application. |
| | 2057 | | /// </summary> |
| | 2058 | | /// <param name='operations'> |
| | 2059 | | /// The operations group for this extension method. |
| | 2060 | | /// </param> |
| | 2061 | | /// <param name='appId'> |
| | 2062 | | /// The application ID. |
| | 2063 | | /// </param> |
| | 2064 | | /// <param name='versionId'> |
| | 2065 | | /// The version ID. |
| | 2066 | | /// </param> |
| | 2067 | | /// <param name='hEntityId'> |
| | 2068 | | /// The hierarchical entity extractor ID. |
| | 2069 | | /// </param> |
| | 2070 | | /// <param name='entityRoleCreateObject'> |
| | 2071 | | /// An entity role object containing the name of role. |
| | 2072 | | /// </param> |
| | 2073 | | /// <param name='cancellationToken'> |
| | 2074 | | /// The cancellation token. |
| | 2075 | | /// </param> |
| | 2076 | | public static async Task<System.Guid> CreateHierarchicalEntityRoleAsync(this IModel operations, System.Guid |
| | 2077 | | { |
| 0 | 2078 | | using (var _result = await operations.CreateHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId |
| | 2079 | | { |
| 0 | 2080 | | return _result.Body; |
| | 2081 | | } |
| 0 | 2082 | | } |
| | 2083 | |
|
| | 2084 | | /// <summary> |
| | 2085 | | /// Get all roles for a prebuilt entity in a version of the application |
| | 2086 | | /// </summary> |
| | 2087 | | /// <param name='operations'> |
| | 2088 | | /// The operations group for this extension method. |
| | 2089 | | /// </param> |
| | 2090 | | /// <param name='appId'> |
| | 2091 | | /// The application ID. |
| | 2092 | | /// </param> |
| | 2093 | | /// <param name='versionId'> |
| | 2094 | | /// The version ID. |
| | 2095 | | /// </param> |
| | 2096 | | /// <param name='entityId'> |
| | 2097 | | /// entity Id |
| | 2098 | | /// </param> |
| | 2099 | | /// <param name='cancellationToken'> |
| | 2100 | | /// The cancellation token. |
| | 2101 | | /// </param> |
| | 2102 | | public static async Task<IList<EntityRole>> ListCustomPrebuiltEntityRolesAsync(this IModel operations, Syste |
| | 2103 | | { |
| 3 | 2104 | | using (var _result = await operations.ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(appId, versionI |
| | 2105 | | { |
| 3 | 2106 | | return _result.Body; |
| | 2107 | | } |
| 3 | 2108 | | } |
| | 2109 | |
|
| | 2110 | | /// <summary> |
| | 2111 | | /// Create a role for a prebuilt entity in a version of the application. |
| | 2112 | | /// </summary> |
| | 2113 | | /// <param name='operations'> |
| | 2114 | | /// The operations group for this extension method. |
| | 2115 | | /// </param> |
| | 2116 | | /// <param name='appId'> |
| | 2117 | | /// The application ID. |
| | 2118 | | /// </param> |
| | 2119 | | /// <param name='versionId'> |
| | 2120 | | /// The version ID. |
| | 2121 | | /// </param> |
| | 2122 | | /// <param name='entityId'> |
| | 2123 | | /// The entity model ID. |
| | 2124 | | /// </param> |
| | 2125 | | /// <param name='entityRoleCreateObject'> |
| | 2126 | | /// An entity role object containing the name of role. |
| | 2127 | | /// </param> |
| | 2128 | | /// <param name='cancellationToken'> |
| | 2129 | | /// The cancellation token. |
| | 2130 | | /// </param> |
| | 2131 | | public static async Task<System.Guid> CreateCustomPrebuiltEntityRoleAsync(this IModel operations, System.Gui |
| | 2132 | | { |
| 5 | 2133 | | using (var _result = await operations.CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(appId, version |
| | 2134 | | { |
| 5 | 2135 | | return _result.Body; |
| | 2136 | | } |
| 5 | 2137 | | } |
| | 2138 | |
|
| | 2139 | | /// <summary> |
| | 2140 | | /// Get the explicit (exception) list of the pattern.any entity in a version of |
| | 2141 | | /// the application. |
| | 2142 | | /// </summary> |
| | 2143 | | /// <param name='operations'> |
| | 2144 | | /// The operations group for this extension method. |
| | 2145 | | /// </param> |
| | 2146 | | /// <param name='appId'> |
| | 2147 | | /// The application ID. |
| | 2148 | | /// </param> |
| | 2149 | | /// <param name='versionId'> |
| | 2150 | | /// The version ID. |
| | 2151 | | /// </param> |
| | 2152 | | /// <param name='entityId'> |
| | 2153 | | /// The Pattern.Any entity id. |
| | 2154 | | /// </param> |
| | 2155 | | /// <param name='cancellationToken'> |
| | 2156 | | /// The cancellation token. |
| | 2157 | | /// </param> |
| | 2158 | | public static async Task<IList<ExplicitListItem>> GetExplicitListAsync(this IModel operations, System.Guid a |
| | 2159 | | { |
| 2 | 2160 | | using (var _result = await operations.GetExplicitListWithHttpMessagesAsync(appId, versionId, entityId, n |
| | 2161 | | { |
| 2 | 2162 | | return _result.Body; |
| | 2163 | | } |
| 2 | 2164 | | } |
| | 2165 | |
|
| | 2166 | | /// <summary> |
| | 2167 | | /// Add a new exception to the explicit list for the Pattern.Any entity in a |
| | 2168 | | /// version of the application. |
| | 2169 | | /// </summary> |
| | 2170 | | /// <param name='operations'> |
| | 2171 | | /// The operations group for this extension method. |
| | 2172 | | /// </param> |
| | 2173 | | /// <param name='appId'> |
| | 2174 | | /// The application ID. |
| | 2175 | | /// </param> |
| | 2176 | | /// <param name='versionId'> |
| | 2177 | | /// The version ID. |
| | 2178 | | /// </param> |
| | 2179 | | /// <param name='entityId'> |
| | 2180 | | /// The Pattern.Any entity extractor ID. |
| | 2181 | | /// </param> |
| | 2182 | | /// <param name='item'> |
| | 2183 | | /// The new explicit list item. |
| | 2184 | | /// </param> |
| | 2185 | | /// <param name='cancellationToken'> |
| | 2186 | | /// The cancellation token. |
| | 2187 | | /// </param> |
| | 2188 | | public static async Task<int?> AddExplicitListItemAsync(this IModel operations, System.Guid appId, string ve |
| | 2189 | | { |
| 4 | 2190 | | using (var _result = await operations.AddExplicitListItemWithHttpMessagesAsync(appId, versionId, entityI |
| | 2191 | | { |
| 4 | 2192 | | return _result.Body; |
| | 2193 | | } |
| 4 | 2194 | | } |
| | 2195 | |
|
| | 2196 | | /// <summary> |
| | 2197 | | /// Gets information about a regular expression entity in a version of the |
| | 2198 | | /// application. |
| | 2199 | | /// </summary> |
| | 2200 | | /// <param name='operations'> |
| | 2201 | | /// The operations group for this extension method. |
| | 2202 | | /// </param> |
| | 2203 | | /// <param name='appId'> |
| | 2204 | | /// The application ID. |
| | 2205 | | /// </param> |
| | 2206 | | /// <param name='versionId'> |
| | 2207 | | /// The version ID. |
| | 2208 | | /// </param> |
| | 2209 | | /// <param name='regexEntityId'> |
| | 2210 | | /// The regular expression entity model ID. |
| | 2211 | | /// </param> |
| | 2212 | | /// <param name='cancellationToken'> |
| | 2213 | | /// The cancellation token. |
| | 2214 | | /// </param> |
| | 2215 | | public static async Task<RegexEntityExtractor> GetRegexEntityEntityInfoAsync(this IModel operations, System. |
| | 2216 | | { |
| 2 | 2217 | | using (var _result = await operations.GetRegexEntityEntityInfoWithHttpMessagesAsync(appId, versionId, re |
| | 2218 | | { |
| 2 | 2219 | | return _result.Body; |
| | 2220 | | } |
| 2 | 2221 | | } |
| | 2222 | |
|
| | 2223 | | /// <summary> |
| | 2224 | | /// Updates the regular expression entity in a version of the application. |
| | 2225 | | /// </summary> |
| | 2226 | | /// <param name='operations'> |
| | 2227 | | /// The operations group for this extension method. |
| | 2228 | | /// </param> |
| | 2229 | | /// <param name='appId'> |
| | 2230 | | /// The application ID. |
| | 2231 | | /// </param> |
| | 2232 | | /// <param name='versionId'> |
| | 2233 | | /// The version ID. |
| | 2234 | | /// </param> |
| | 2235 | | /// <param name='regexEntityId'> |
| | 2236 | | /// The regular expression entity extractor ID. |
| | 2237 | | /// </param> |
| | 2238 | | /// <param name='regexEntityUpdateObject'> |
| | 2239 | | /// An object containing the new entity name and regex pattern. |
| | 2240 | | /// </param> |
| | 2241 | | /// <param name='cancellationToken'> |
| | 2242 | | /// The cancellation token. |
| | 2243 | | /// </param> |
| | 2244 | | public static async Task<OperationStatus> UpdateRegexEntityModelAsync(this IModel operations, System.Guid ap |
| | 2245 | | { |
| 1 | 2246 | | using (var _result = await operations.UpdateRegexEntityModelWithHttpMessagesAsync(appId, versionId, rege |
| | 2247 | | { |
| 1 | 2248 | | return _result.Body; |
| | 2249 | | } |
| 1 | 2250 | | } |
| | 2251 | |
|
| | 2252 | | /// <summary> |
| | 2253 | | /// Deletes a regular expression entity from a version of the application. |
| | 2254 | | /// </summary> |
| | 2255 | | /// <param name='operations'> |
| | 2256 | | /// The operations group for this extension method. |
| | 2257 | | /// </param> |
| | 2258 | | /// <param name='appId'> |
| | 2259 | | /// The application ID. |
| | 2260 | | /// </param> |
| | 2261 | | /// <param name='versionId'> |
| | 2262 | | /// The version ID. |
| | 2263 | | /// </param> |
| | 2264 | | /// <param name='regexEntityId'> |
| | 2265 | | /// The regular expression entity extractor ID. |
| | 2266 | | /// </param> |
| | 2267 | | /// <param name='cancellationToken'> |
| | 2268 | | /// The cancellation token. |
| | 2269 | | /// </param> |
| | 2270 | | public static async Task<OperationStatus> DeleteRegexEntityModelAsync(this IModel operations, System.Guid ap |
| | 2271 | | { |
| 10 | 2272 | | using (var _result = await operations.DeleteRegexEntityModelWithHttpMessagesAsync(appId, versionId, rege |
| | 2273 | | { |
| 10 | 2274 | | return _result.Body; |
| | 2275 | | } |
| 10 | 2276 | | } |
| | 2277 | |
|
| | 2278 | | /// <summary> |
| | 2279 | | /// Gets information about the Pattern.Any model in a version of the |
| | 2280 | | /// application. |
| | 2281 | | /// </summary> |
| | 2282 | | /// <param name='operations'> |
| | 2283 | | /// The operations group for this extension method. |
| | 2284 | | /// </param> |
| | 2285 | | /// <param name='appId'> |
| | 2286 | | /// The application ID. |
| | 2287 | | /// </param> |
| | 2288 | | /// <param name='versionId'> |
| | 2289 | | /// The version ID. |
| | 2290 | | /// </param> |
| | 2291 | | /// <param name='entityId'> |
| | 2292 | | /// The entity extractor ID. |
| | 2293 | | /// </param> |
| | 2294 | | /// <param name='cancellationToken'> |
| | 2295 | | /// The cancellation token. |
| | 2296 | | /// </param> |
| | 2297 | | public static async Task<PatternAnyEntityExtractor> GetPatternAnyEntityInfoAsync(this IModel operations, Sys |
| | 2298 | | { |
| 3 | 2299 | | using (var _result = await operations.GetPatternAnyEntityInfoWithHttpMessagesAsync(appId, versionId, ent |
| | 2300 | | { |
| 3 | 2301 | | return _result.Body; |
| | 2302 | | } |
| 3 | 2303 | | } |
| | 2304 | |
|
| | 2305 | | /// <summary> |
| | 2306 | | /// Updates the name and explicit (exception) list of a Pattern.Any entity |
| | 2307 | | /// model in a version of the application. |
| | 2308 | | /// </summary> |
| | 2309 | | /// <param name='operations'> |
| | 2310 | | /// The operations group for this extension method. |
| | 2311 | | /// </param> |
| | 2312 | | /// <param name='appId'> |
| | 2313 | | /// The application ID. |
| | 2314 | | /// </param> |
| | 2315 | | /// <param name='versionId'> |
| | 2316 | | /// The version ID. |
| | 2317 | | /// </param> |
| | 2318 | | /// <param name='entityId'> |
| | 2319 | | /// The Pattern.Any entity extractor ID. |
| | 2320 | | /// </param> |
| | 2321 | | /// <param name='patternAnyUpdateObject'> |
| | 2322 | | /// An object containing the explicit list of the Pattern.Any entity. |
| | 2323 | | /// </param> |
| | 2324 | | /// <param name='cancellationToken'> |
| | 2325 | | /// The cancellation token. |
| | 2326 | | /// </param> |
| | 2327 | | public static async Task<OperationStatus> UpdatePatternAnyEntityModelAsync(this IModel operations, System.Gu |
| | 2328 | | { |
| 1 | 2329 | | using (var _result = await operations.UpdatePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, |
| | 2330 | | { |
| 1 | 2331 | | return _result.Body; |
| | 2332 | | } |
| 1 | 2333 | | } |
| | 2334 | |
|
| | 2335 | | /// <summary> |
| | 2336 | | /// Deletes a Pattern.Any entity extractor from a version of the application. |
| | 2337 | | /// </summary> |
| | 2338 | | /// <param name='operations'> |
| | 2339 | | /// The operations group for this extension method. |
| | 2340 | | /// </param> |
| | 2341 | | /// <param name='appId'> |
| | 2342 | | /// The application ID. |
| | 2343 | | /// </param> |
| | 2344 | | /// <param name='versionId'> |
| | 2345 | | /// The version ID. |
| | 2346 | | /// </param> |
| | 2347 | | /// <param name='entityId'> |
| | 2348 | | /// The Pattern.Any entity extractor ID. |
| | 2349 | | /// </param> |
| | 2350 | | /// <param name='cancellationToken'> |
| | 2351 | | /// The cancellation token. |
| | 2352 | | /// </param> |
| | 2353 | | public static async Task<OperationStatus> DeletePatternAnyEntityModelAsync(this IModel operations, System.Gu |
| | 2354 | | { |
| 15 | 2355 | | using (var _result = await operations.DeletePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, |
| | 2356 | | { |
| 15 | 2357 | | return _result.Body; |
| | 2358 | | } |
| 15 | 2359 | | } |
| | 2360 | |
|
| | 2361 | | /// <summary> |
| | 2362 | | /// Get one role for a given entity in a version of the application |
| | 2363 | | /// </summary> |
| | 2364 | | /// <param name='operations'> |
| | 2365 | | /// The operations group for this extension method. |
| | 2366 | | /// </param> |
| | 2367 | | /// <param name='appId'> |
| | 2368 | | /// The application ID. |
| | 2369 | | /// </param> |
| | 2370 | | /// <param name='versionId'> |
| | 2371 | | /// The version ID. |
| | 2372 | | /// </param> |
| | 2373 | | /// <param name='entityId'> |
| | 2374 | | /// entity ID. |
| | 2375 | | /// </param> |
| | 2376 | | /// <param name='roleId'> |
| | 2377 | | /// entity role ID. |
| | 2378 | | /// </param> |
| | 2379 | | /// <param name='cancellationToken'> |
| | 2380 | | /// The cancellation token. |
| | 2381 | | /// </param> |
| | 2382 | | public static async Task<EntityRole> GetEntityRoleAsync(this IModel operations, System.Guid appId, string ve |
| | 2383 | | { |
| 2 | 2384 | | using (var _result = await operations.GetEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, rol |
| | 2385 | | { |
| 2 | 2386 | | return _result.Body; |
| | 2387 | | } |
| 2 | 2388 | | } |
| | 2389 | |
|
| | 2390 | | /// <summary> |
| | 2391 | | /// Update a role for a given entity in a version of the application. |
| | 2392 | | /// </summary> |
| | 2393 | | /// <param name='operations'> |
| | 2394 | | /// The operations group for this extension method. |
| | 2395 | | /// </param> |
| | 2396 | | /// <param name='appId'> |
| | 2397 | | /// The application ID. |
| | 2398 | | /// </param> |
| | 2399 | | /// <param name='versionId'> |
| | 2400 | | /// The version ID. |
| | 2401 | | /// </param> |
| | 2402 | | /// <param name='entityId'> |
| | 2403 | | /// The entity ID. |
| | 2404 | | /// </param> |
| | 2405 | | /// <param name='roleId'> |
| | 2406 | | /// The entity role ID. |
| | 2407 | | /// </param> |
| | 2408 | | /// <param name='entityRoleUpdateObject'> |
| | 2409 | | /// The new entity role. |
| | 2410 | | /// </param> |
| | 2411 | | /// <param name='cancellationToken'> |
| | 2412 | | /// The cancellation token. |
| | 2413 | | /// </param> |
| | 2414 | | public static async Task<OperationStatus> UpdateEntityRoleAsync(this IModel operations, System.Guid appId, s |
| | 2415 | | { |
| 1 | 2416 | | using (var _result = await operations.UpdateEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, |
| | 2417 | | { |
| 1 | 2418 | | return _result.Body; |
| | 2419 | | } |
| 1 | 2420 | | } |
| | 2421 | |
|
| | 2422 | | /// <summary> |
| | 2423 | | /// Delete an entity role in a version of the application. |
| | 2424 | | /// </summary> |
| | 2425 | | /// <param name='operations'> |
| | 2426 | | /// The operations group for this extension method. |
| | 2427 | | /// </param> |
| | 2428 | | /// <param name='appId'> |
| | 2429 | | /// The application ID. |
| | 2430 | | /// </param> |
| | 2431 | | /// <param name='versionId'> |
| | 2432 | | /// The version ID. |
| | 2433 | | /// </param> |
| | 2434 | | /// <param name='entityId'> |
| | 2435 | | /// The entity ID. |
| | 2436 | | /// </param> |
| | 2437 | | /// <param name='roleId'> |
| | 2438 | | /// The entity role Id. |
| | 2439 | | /// </param> |
| | 2440 | | /// <param name='cancellationToken'> |
| | 2441 | | /// The cancellation token. |
| | 2442 | | /// </param> |
| | 2443 | | public static async Task<OperationStatus> DeleteEntityRoleAsync(this IModel operations, System.Guid appId, s |
| | 2444 | | { |
| 1 | 2445 | | using (var _result = await operations.DeleteEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, |
| | 2446 | | { |
| 1 | 2447 | | return _result.Body; |
| | 2448 | | } |
| 1 | 2449 | | } |
| | 2450 | |
|
| | 2451 | | /// <summary> |
| | 2452 | | /// Get one role for a given prebuilt entity in a version of the application |
| | 2453 | | /// </summary> |
| | 2454 | | /// <param name='operations'> |
| | 2455 | | /// The operations group for this extension method. |
| | 2456 | | /// </param> |
| | 2457 | | /// <param name='appId'> |
| | 2458 | | /// The application ID. |
| | 2459 | | /// </param> |
| | 2460 | | /// <param name='versionId'> |
| | 2461 | | /// The version ID. |
| | 2462 | | /// </param> |
| | 2463 | | /// <param name='entityId'> |
| | 2464 | | /// entity ID. |
| | 2465 | | /// </param> |
| | 2466 | | /// <param name='roleId'> |
| | 2467 | | /// entity role ID. |
| | 2468 | | /// </param> |
| | 2469 | | /// <param name='cancellationToken'> |
| | 2470 | | /// The cancellation token. |
| | 2471 | | /// </param> |
| | 2472 | | public static async Task<EntityRole> GetPrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, s |
| | 2473 | | { |
| 2 | 2474 | | using (var _result = await operations.GetPrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entit |
| | 2475 | | { |
| 2 | 2476 | | return _result.Body; |
| | 2477 | | } |
| 2 | 2478 | | } |
| | 2479 | |
|
| | 2480 | | /// <summary> |
| | 2481 | | /// Update a role for a given prebuilt entity in a version of the application |
| | 2482 | | /// </summary> |
| | 2483 | | /// <param name='operations'> |
| | 2484 | | /// The operations group for this extension method. |
| | 2485 | | /// </param> |
| | 2486 | | /// <param name='appId'> |
| | 2487 | | /// The application ID. |
| | 2488 | | /// </param> |
| | 2489 | | /// <param name='versionId'> |
| | 2490 | | /// The version ID. |
| | 2491 | | /// </param> |
| | 2492 | | /// <param name='entityId'> |
| | 2493 | | /// The entity ID. |
| | 2494 | | /// </param> |
| | 2495 | | /// <param name='roleId'> |
| | 2496 | | /// The entity role ID. |
| | 2497 | | /// </param> |
| | 2498 | | /// <param name='entityRoleUpdateObject'> |
| | 2499 | | /// The new entity role. |
| | 2500 | | /// </param> |
| | 2501 | | /// <param name='cancellationToken'> |
| | 2502 | | /// The cancellation token. |
| | 2503 | | /// </param> |
| | 2504 | | public static async Task<OperationStatus> UpdatePrebuiltEntityRoleAsync(this IModel operations, System.Guid |
| | 2505 | | { |
| 1 | 2506 | | using (var _result = await operations.UpdatePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, en |
| | 2507 | | { |
| 1 | 2508 | | return _result.Body; |
| | 2509 | | } |
| 1 | 2510 | | } |
| | 2511 | |
|
| | 2512 | | /// <summary> |
| | 2513 | | /// Delete a role in a prebuilt entity in a version of the application. |
| | 2514 | | /// </summary> |
| | 2515 | | /// <param name='operations'> |
| | 2516 | | /// The operations group for this extension method. |
| | 2517 | | /// </param> |
| | 2518 | | /// <param name='appId'> |
| | 2519 | | /// The application ID. |
| | 2520 | | /// </param> |
| | 2521 | | /// <param name='versionId'> |
| | 2522 | | /// The version ID. |
| | 2523 | | /// </param> |
| | 2524 | | /// <param name='entityId'> |
| | 2525 | | /// The entity ID. |
| | 2526 | | /// </param> |
| | 2527 | | /// <param name='roleId'> |
| | 2528 | | /// The entity role Id. |
| | 2529 | | /// </param> |
| | 2530 | | /// <param name='cancellationToken'> |
| | 2531 | | /// The cancellation token. |
| | 2532 | | /// </param> |
| | 2533 | | public static async Task<OperationStatus> DeletePrebuiltEntityRoleAsync(this IModel operations, System.Guid |
| | 2534 | | { |
| 1 | 2535 | | using (var _result = await operations.DeletePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, en |
| | 2536 | | { |
| 1 | 2537 | | return _result.Body; |
| | 2538 | | } |
| 1 | 2539 | | } |
| | 2540 | |
|
| | 2541 | | /// <summary> |
| | 2542 | | /// Get one role for a given list entity in a version of the application. |
| | 2543 | | /// </summary> |
| | 2544 | | /// <param name='operations'> |
| | 2545 | | /// The operations group for this extension method. |
| | 2546 | | /// </param> |
| | 2547 | | /// <param name='appId'> |
| | 2548 | | /// The application ID. |
| | 2549 | | /// </param> |
| | 2550 | | /// <param name='versionId'> |
| | 2551 | | /// The version ID. |
| | 2552 | | /// </param> |
| | 2553 | | /// <param name='entityId'> |
| | 2554 | | /// entity ID. |
| | 2555 | | /// </param> |
| | 2556 | | /// <param name='roleId'> |
| | 2557 | | /// entity role ID. |
| | 2558 | | /// </param> |
| | 2559 | | /// <param name='cancellationToken'> |
| | 2560 | | /// The cancellation token. |
| | 2561 | | /// </param> |
| | 2562 | | public static async Task<EntityRole> GetClosedListEntityRoleAsync(this IModel operations, System.Guid appId, |
| | 2563 | | { |
| 2 | 2564 | | using (var _result = await operations.GetClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, ent |
| | 2565 | | { |
| 2 | 2566 | | return _result.Body; |
| | 2567 | | } |
| 2 | 2568 | | } |
| | 2569 | |
|
| | 2570 | | /// <summary> |
| | 2571 | | /// Update a role for a given list entity in a version of the application. |
| | 2572 | | /// </summary> |
| | 2573 | | /// <param name='operations'> |
| | 2574 | | /// The operations group for this extension method. |
| | 2575 | | /// </param> |
| | 2576 | | /// <param name='appId'> |
| | 2577 | | /// The application ID. |
| | 2578 | | /// </param> |
| | 2579 | | /// <param name='versionId'> |
| | 2580 | | /// The version ID. |
| | 2581 | | /// </param> |
| | 2582 | | /// <param name='entityId'> |
| | 2583 | | /// The entity ID. |
| | 2584 | | /// </param> |
| | 2585 | | /// <param name='roleId'> |
| | 2586 | | /// The entity role ID. |
| | 2587 | | /// </param> |
| | 2588 | | /// <param name='entityRoleUpdateObject'> |
| | 2589 | | /// The new entity role. |
| | 2590 | | /// </param> |
| | 2591 | | /// <param name='cancellationToken'> |
| | 2592 | | /// The cancellation token. |
| | 2593 | | /// </param> |
| | 2594 | | public static async Task<OperationStatus> UpdateClosedListEntityRoleAsync(this IModel operations, System.Gui |
| | 2595 | | { |
| 1 | 2596 | | using (var _result = await operations.UpdateClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, |
| | 2597 | | { |
| 1 | 2598 | | return _result.Body; |
| | 2599 | | } |
| 1 | 2600 | | } |
| | 2601 | |
|
| | 2602 | | /// <summary> |
| | 2603 | | /// Delete a role for a given list entity in a version of the application. |
| | 2604 | | /// </summary> |
| | 2605 | | /// <param name='operations'> |
| | 2606 | | /// The operations group for this extension method. |
| | 2607 | | /// </param> |
| | 2608 | | /// <param name='appId'> |
| | 2609 | | /// The application ID. |
| | 2610 | | /// </param> |
| | 2611 | | /// <param name='versionId'> |
| | 2612 | | /// The version ID. |
| | 2613 | | /// </param> |
| | 2614 | | /// <param name='entityId'> |
| | 2615 | | /// The entity ID. |
| | 2616 | | /// </param> |
| | 2617 | | /// <param name='roleId'> |
| | 2618 | | /// The entity role Id. |
| | 2619 | | /// </param> |
| | 2620 | | /// <param name='cancellationToken'> |
| | 2621 | | /// The cancellation token. |
| | 2622 | | /// </param> |
| | 2623 | | public static async Task<OperationStatus> DeleteClosedListEntityRoleAsync(this IModel operations, System.Gui |
| | 2624 | | { |
| 1 | 2625 | | using (var _result = await operations.DeleteClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, |
| | 2626 | | { |
| 1 | 2627 | | return _result.Body; |
| | 2628 | | } |
| 1 | 2629 | | } |
| | 2630 | |
|
| | 2631 | | /// <summary> |
| | 2632 | | /// Get one role for a given regular expression entity in a version of the |
| | 2633 | | /// application. |
| | 2634 | | /// </summary> |
| | 2635 | | /// <param name='operations'> |
| | 2636 | | /// The operations group for this extension method. |
| | 2637 | | /// </param> |
| | 2638 | | /// <param name='appId'> |
| | 2639 | | /// The application ID. |
| | 2640 | | /// </param> |
| | 2641 | | /// <param name='versionId'> |
| | 2642 | | /// The version ID. |
| | 2643 | | /// </param> |
| | 2644 | | /// <param name='entityId'> |
| | 2645 | | /// entity ID. |
| | 2646 | | /// </param> |
| | 2647 | | /// <param name='roleId'> |
| | 2648 | | /// entity role ID. |
| | 2649 | | /// </param> |
| | 2650 | | /// <param name='cancellationToken'> |
| | 2651 | | /// The cancellation token. |
| | 2652 | | /// </param> |
| | 2653 | | public static async Task<EntityRole> GetRegexEntityRoleAsync(this IModel operations, System.Guid appId, stri |
| | 2654 | | { |
| 2 | 2655 | | using (var _result = await operations.GetRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId |
| | 2656 | | { |
| 2 | 2657 | | return _result.Body; |
| | 2658 | | } |
| 2 | 2659 | | } |
| | 2660 | |
|
| | 2661 | | /// <summary> |
| | 2662 | | /// Update a role for a given regular expression entity in a version of the |
| | 2663 | | /// application |
| | 2664 | | /// </summary> |
| | 2665 | | /// <param name='operations'> |
| | 2666 | | /// The operations group for this extension method. |
| | 2667 | | /// </param> |
| | 2668 | | /// <param name='appId'> |
| | 2669 | | /// The application ID. |
| | 2670 | | /// </param> |
| | 2671 | | /// <param name='versionId'> |
| | 2672 | | /// The version ID. |
| | 2673 | | /// </param> |
| | 2674 | | /// <param name='entityId'> |
| | 2675 | | /// The entity ID. |
| | 2676 | | /// </param> |
| | 2677 | | /// <param name='roleId'> |
| | 2678 | | /// The entity role ID. |
| | 2679 | | /// </param> |
| | 2680 | | /// <param name='entityRoleUpdateObject'> |
| | 2681 | | /// The new entity role. |
| | 2682 | | /// </param> |
| | 2683 | | /// <param name='cancellationToken'> |
| | 2684 | | /// The cancellation token. |
| | 2685 | | /// </param> |
| | 2686 | | public static async Task<OperationStatus> UpdateRegexEntityRoleAsync(this IModel operations, System.Guid app |
| | 2687 | | { |
| 1 | 2688 | | using (var _result = await operations.UpdateRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entit |
| | 2689 | | { |
| 1 | 2690 | | return _result.Body; |
| | 2691 | | } |
| 1 | 2692 | | } |
| | 2693 | |
|
| | 2694 | | /// <summary> |
| | 2695 | | /// Delete a role for a given regular expression in a version of the |
| | 2696 | | /// application. |
| | 2697 | | /// </summary> |
| | 2698 | | /// <param name='operations'> |
| | 2699 | | /// The operations group for this extension method. |
| | 2700 | | /// </param> |
| | 2701 | | /// <param name='appId'> |
| | 2702 | | /// The application ID. |
| | 2703 | | /// </param> |
| | 2704 | | /// <param name='versionId'> |
| | 2705 | | /// The version ID. |
| | 2706 | | /// </param> |
| | 2707 | | /// <param name='entityId'> |
| | 2708 | | /// The entity ID. |
| | 2709 | | /// </param> |
| | 2710 | | /// <param name='roleId'> |
| | 2711 | | /// The entity role Id. |
| | 2712 | | /// </param> |
| | 2713 | | /// <param name='cancellationToken'> |
| | 2714 | | /// The cancellation token. |
| | 2715 | | /// </param> |
| | 2716 | | public static async Task<OperationStatus> DeleteRegexEntityRoleAsync(this IModel operations, System.Guid app |
| | 2717 | | { |
| 1 | 2718 | | using (var _result = await operations.DeleteRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entit |
| | 2719 | | { |
| 1 | 2720 | | return _result.Body; |
| | 2721 | | } |
| 1 | 2722 | | } |
| | 2723 | |
|
| | 2724 | | /// <summary> |
| | 2725 | | /// Get one role for a given composite entity in a version of the application |
| | 2726 | | /// </summary> |
| | 2727 | | /// <param name='operations'> |
| | 2728 | | /// The operations group for this extension method. |
| | 2729 | | /// </param> |
| | 2730 | | /// <param name='appId'> |
| | 2731 | | /// The application ID. |
| | 2732 | | /// </param> |
| | 2733 | | /// <param name='versionId'> |
| | 2734 | | /// The version ID. |
| | 2735 | | /// </param> |
| | 2736 | | /// <param name='cEntityId'> |
| | 2737 | | /// The composite entity extractor ID. |
| | 2738 | | /// </param> |
| | 2739 | | /// <param name='roleId'> |
| | 2740 | | /// entity role ID. |
| | 2741 | | /// </param> |
| | 2742 | | /// <param name='cancellationToken'> |
| | 2743 | | /// The cancellation token. |
| | 2744 | | /// </param> |
| | 2745 | | public static async Task<EntityRole> GetCompositeEntityRoleAsync(this IModel operations, System.Guid appId, |
| | 2746 | | { |
| 0 | 2747 | | using (var _result = await operations.GetCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEnt |
| | 2748 | | { |
| 0 | 2749 | | return _result.Body; |
| | 2750 | | } |
| 0 | 2751 | | } |
| | 2752 | |
|
| | 2753 | | /// <summary> |
| | 2754 | | /// Update a role for a given composite entity in a version of the application |
| | 2755 | | /// </summary> |
| | 2756 | | /// <param name='operations'> |
| | 2757 | | /// The operations group for this extension method. |
| | 2758 | | /// </param> |
| | 2759 | | /// <param name='appId'> |
| | 2760 | | /// The application ID. |
| | 2761 | | /// </param> |
| | 2762 | | /// <param name='versionId'> |
| | 2763 | | /// The version ID. |
| | 2764 | | /// </param> |
| | 2765 | | /// <param name='cEntityId'> |
| | 2766 | | /// The composite entity extractor ID. |
| | 2767 | | /// </param> |
| | 2768 | | /// <param name='roleId'> |
| | 2769 | | /// The entity role ID. |
| | 2770 | | /// </param> |
| | 2771 | | /// <param name='entityRoleUpdateObject'> |
| | 2772 | | /// The new entity role. |
| | 2773 | | /// </param> |
| | 2774 | | /// <param name='cancellationToken'> |
| | 2775 | | /// The cancellation token. |
| | 2776 | | /// </param> |
| | 2777 | | public static async Task<OperationStatus> UpdateCompositeEntityRoleAsync(this IModel operations, System.Guid |
| | 2778 | | { |
| 0 | 2779 | | using (var _result = await operations.UpdateCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, c |
| | 2780 | | { |
| 0 | 2781 | | return _result.Body; |
| | 2782 | | } |
| 0 | 2783 | | } |
| | 2784 | |
|
| | 2785 | | /// <summary> |
| | 2786 | | /// Delete a role for a given composite entity in a version of the application. |
| | 2787 | | /// </summary> |
| | 2788 | | /// <param name='operations'> |
| | 2789 | | /// The operations group for this extension method. |
| | 2790 | | /// </param> |
| | 2791 | | /// <param name='appId'> |
| | 2792 | | /// The application ID. |
| | 2793 | | /// </param> |
| | 2794 | | /// <param name='versionId'> |
| | 2795 | | /// The version ID. |
| | 2796 | | /// </param> |
| | 2797 | | /// <param name='cEntityId'> |
| | 2798 | | /// The composite entity extractor ID. |
| | 2799 | | /// </param> |
| | 2800 | | /// <param name='roleId'> |
| | 2801 | | /// The entity role Id. |
| | 2802 | | /// </param> |
| | 2803 | | /// <param name='cancellationToken'> |
| | 2804 | | /// The cancellation token. |
| | 2805 | | /// </param> |
| | 2806 | | public static async Task<OperationStatus> DeleteCompositeEntityRoleAsync(this IModel operations, System.Guid |
| | 2807 | | { |
| 0 | 2808 | | using (var _result = await operations.DeleteCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, c |
| | 2809 | | { |
| 0 | 2810 | | return _result.Body; |
| | 2811 | | } |
| 0 | 2812 | | } |
| | 2813 | |
|
| | 2814 | | /// <summary> |
| | 2815 | | /// Get one role for a given Pattern.any entity in a version of the |
| | 2816 | | /// application. |
| | 2817 | | /// </summary> |
| | 2818 | | /// <param name='operations'> |
| | 2819 | | /// The operations group for this extension method. |
| | 2820 | | /// </param> |
| | 2821 | | /// <param name='appId'> |
| | 2822 | | /// The application ID. |
| | 2823 | | /// </param> |
| | 2824 | | /// <param name='versionId'> |
| | 2825 | | /// The version ID. |
| | 2826 | | /// </param> |
| | 2827 | | /// <param name='entityId'> |
| | 2828 | | /// entity ID. |
| | 2829 | | /// </param> |
| | 2830 | | /// <param name='roleId'> |
| | 2831 | | /// entity role ID. |
| | 2832 | | /// </param> |
| | 2833 | | /// <param name='cancellationToken'> |
| | 2834 | | /// The cancellation token. |
| | 2835 | | /// </param> |
| | 2836 | | public static async Task<EntityRole> GetPatternAnyEntityRoleAsync(this IModel operations, System.Guid appId, |
| | 2837 | | { |
| 2 | 2838 | | using (var _result = await operations.GetPatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, ent |
| | 2839 | | { |
| 2 | 2840 | | return _result.Body; |
| | 2841 | | } |
| 2 | 2842 | | } |
| | 2843 | |
|
| | 2844 | | /// <summary> |
| | 2845 | | /// Update a role for a given Pattern.any entity in a version of the |
| | 2846 | | /// application. |
| | 2847 | | /// </summary> |
| | 2848 | | /// <param name='operations'> |
| | 2849 | | /// The operations group for this extension method. |
| | 2850 | | /// </param> |
| | 2851 | | /// <param name='appId'> |
| | 2852 | | /// The application ID. |
| | 2853 | | /// </param> |
| | 2854 | | /// <param name='versionId'> |
| | 2855 | | /// The version ID. |
| | 2856 | | /// </param> |
| | 2857 | | /// <param name='entityId'> |
| | 2858 | | /// The entity ID. |
| | 2859 | | /// </param> |
| | 2860 | | /// <param name='roleId'> |
| | 2861 | | /// The entity role ID. |
| | 2862 | | /// </param> |
| | 2863 | | /// <param name='entityRoleUpdateObject'> |
| | 2864 | | /// The new entity role. |
| | 2865 | | /// </param> |
| | 2866 | | /// <param name='cancellationToken'> |
| | 2867 | | /// The cancellation token. |
| | 2868 | | /// </param> |
| | 2869 | | public static async Task<OperationStatus> UpdatePatternAnyEntityRoleAsync(this IModel operations, System.Gui |
| | 2870 | | { |
| 1 | 2871 | | using (var _result = await operations.UpdatePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, |
| | 2872 | | { |
| 1 | 2873 | | return _result.Body; |
| | 2874 | | } |
| 1 | 2875 | | } |
| | 2876 | |
|
| | 2877 | | /// <summary> |
| | 2878 | | /// Delete a role for a given Pattern.any entity in a version of the |
| | 2879 | | /// application. |
| | 2880 | | /// </summary> |
| | 2881 | | /// <param name='operations'> |
| | 2882 | | /// The operations group for this extension method. |
| | 2883 | | /// </param> |
| | 2884 | | /// <param name='appId'> |
| | 2885 | | /// The application ID. |
| | 2886 | | /// </param> |
| | 2887 | | /// <param name='versionId'> |
| | 2888 | | /// The version ID. |
| | 2889 | | /// </param> |
| | 2890 | | /// <param name='entityId'> |
| | 2891 | | /// The entity ID. |
| | 2892 | | /// </param> |
| | 2893 | | /// <param name='roleId'> |
| | 2894 | | /// The entity role Id. |
| | 2895 | | /// </param> |
| | 2896 | | /// <param name='cancellationToken'> |
| | 2897 | | /// The cancellation token. |
| | 2898 | | /// </param> |
| | 2899 | | public static async Task<OperationStatus> DeletePatternAnyEntityRoleAsync(this IModel operations, System.Gui |
| | 2900 | | { |
| 1 | 2901 | | using (var _result = await operations.DeletePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, |
| | 2902 | | { |
| 1 | 2903 | | return _result.Body; |
| | 2904 | | } |
| 1 | 2905 | | } |
| | 2906 | |
|
| | 2907 | | /// <summary> |
| | 2908 | | /// Get one role for a given hierarchical entity in a version of the |
| | 2909 | | /// application. |
| | 2910 | | /// </summary> |
| | 2911 | | /// <param name='operations'> |
| | 2912 | | /// The operations group for this extension method. |
| | 2913 | | /// </param> |
| | 2914 | | /// <param name='appId'> |
| | 2915 | | /// The application ID. |
| | 2916 | | /// </param> |
| | 2917 | | /// <param name='versionId'> |
| | 2918 | | /// The version ID. |
| | 2919 | | /// </param> |
| | 2920 | | /// <param name='hEntityId'> |
| | 2921 | | /// The hierarchical entity extractor ID. |
| | 2922 | | /// </param> |
| | 2923 | | /// <param name='roleId'> |
| | 2924 | | /// entity role ID. |
| | 2925 | | /// </param> |
| | 2926 | | /// <param name='cancellationToken'> |
| | 2927 | | /// The cancellation token. |
| | 2928 | | /// </param> |
| | 2929 | | public static async Task<EntityRole> GetHierarchicalEntityRoleAsync(this IModel operations, System.Guid appI |
| | 2930 | | { |
| 0 | 2931 | | using (var _result = await operations.GetHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, h |
| | 2932 | | { |
| 0 | 2933 | | return _result.Body; |
| | 2934 | | } |
| 0 | 2935 | | } |
| | 2936 | |
|
| | 2937 | | /// <summary> |
| | 2938 | | /// Update a role for a given hierarchical entity in a version of the |
| | 2939 | | /// application. |
| | 2940 | | /// </summary> |
| | 2941 | | /// <param name='operations'> |
| | 2942 | | /// The operations group for this extension method. |
| | 2943 | | /// </param> |
| | 2944 | | /// <param name='appId'> |
| | 2945 | | /// The application ID. |
| | 2946 | | /// </param> |
| | 2947 | | /// <param name='versionId'> |
| | 2948 | | /// The version ID. |
| | 2949 | | /// </param> |
| | 2950 | | /// <param name='hEntityId'> |
| | 2951 | | /// The hierarchical entity extractor ID. |
| | 2952 | | /// </param> |
| | 2953 | | /// <param name='roleId'> |
| | 2954 | | /// The entity role ID. |
| | 2955 | | /// </param> |
| | 2956 | | /// <param name='entityRoleUpdateObject'> |
| | 2957 | | /// The new entity role. |
| | 2958 | | /// </param> |
| | 2959 | | /// <param name='cancellationToken'> |
| | 2960 | | /// The cancellation token. |
| | 2961 | | /// </param> |
| | 2962 | | public static async Task<OperationStatus> UpdateHierarchicalEntityRoleAsync(this IModel operations, System.G |
| | 2963 | | { |
| 0 | 2964 | | using (var _result = await operations.UpdateHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId |
| | 2965 | | { |
| 0 | 2966 | | return _result.Body; |
| | 2967 | | } |
| 0 | 2968 | | } |
| | 2969 | |
|
| | 2970 | | /// <summary> |
| | 2971 | | /// Delete a role for a given hierarchical role in a version of the |
| | 2972 | | /// application. |
| | 2973 | | /// </summary> |
| | 2974 | | /// <param name='operations'> |
| | 2975 | | /// The operations group for this extension method. |
| | 2976 | | /// </param> |
| | 2977 | | /// <param name='appId'> |
| | 2978 | | /// The application ID. |
| | 2979 | | /// </param> |
| | 2980 | | /// <param name='versionId'> |
| | 2981 | | /// The version ID. |
| | 2982 | | /// </param> |
| | 2983 | | /// <param name='hEntityId'> |
| | 2984 | | /// The hierarchical entity extractor ID. |
| | 2985 | | /// </param> |
| | 2986 | | /// <param name='roleId'> |
| | 2987 | | /// The entity role Id. |
| | 2988 | | /// </param> |
| | 2989 | | /// <param name='cancellationToken'> |
| | 2990 | | /// The cancellation token. |
| | 2991 | | /// </param> |
| | 2992 | | public static async Task<OperationStatus> DeleteHierarchicalEntityRoleAsync(this IModel operations, System.G |
| | 2993 | | { |
| 0 | 2994 | | using (var _result = await operations.DeleteHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId |
| | 2995 | | { |
| 0 | 2996 | | return _result.Body; |
| | 2997 | | } |
| 0 | 2998 | | } |
| | 2999 | |
|
| | 3000 | | /// <summary> |
| | 3001 | | /// Get one role for a given prebuilt entity in a version of the application. |
| | 3002 | | /// </summary> |
| | 3003 | | /// <param name='operations'> |
| | 3004 | | /// The operations group for this extension method. |
| | 3005 | | /// </param> |
| | 3006 | | /// <param name='appId'> |
| | 3007 | | /// The application ID. |
| | 3008 | | /// </param> |
| | 3009 | | /// <param name='versionId'> |
| | 3010 | | /// The version ID. |
| | 3011 | | /// </param> |
| | 3012 | | /// <param name='entityId'> |
| | 3013 | | /// entity ID. |
| | 3014 | | /// </param> |
| | 3015 | | /// <param name='roleId'> |
| | 3016 | | /// entity role ID. |
| | 3017 | | /// </param> |
| | 3018 | | /// <param name='cancellationToken'> |
| | 3019 | | /// The cancellation token. |
| | 3020 | | /// </param> |
| | 3021 | | public static async Task<EntityRole> GetCustomEntityRoleAsync(this IModel operations, System.Guid appId, str |
| | 3022 | | { |
| 2 | 3023 | | using (var _result = await operations.GetCustomEntityRoleWithHttpMessagesAsync(appId, versionId, entityI |
| | 3024 | | { |
| 2 | 3025 | | return _result.Body; |
| | 3026 | | } |
| 2 | 3027 | | } |
| | 3028 | |
|
| | 3029 | | /// <summary> |
| | 3030 | | /// Update a role for a given prebuilt entity in a version of the application. |
| | 3031 | | /// </summary> |
| | 3032 | | /// <param name='operations'> |
| | 3033 | | /// The operations group for this extension method. |
| | 3034 | | /// </param> |
| | 3035 | | /// <param name='appId'> |
| | 3036 | | /// The application ID. |
| | 3037 | | /// </param> |
| | 3038 | | /// <param name='versionId'> |
| | 3039 | | /// The version ID. |
| | 3040 | | /// </param> |
| | 3041 | | /// <param name='entityId'> |
| | 3042 | | /// The entity ID. |
| | 3043 | | /// </param> |
| | 3044 | | /// <param name='roleId'> |
| | 3045 | | /// The entity role ID. |
| | 3046 | | /// </param> |
| | 3047 | | /// <param name='entityRoleUpdateObject'> |
| | 3048 | | /// The new entity role. |
| | 3049 | | /// </param> |
| | 3050 | | /// <param name='cancellationToken'> |
| | 3051 | | /// The cancellation token. |
| | 3052 | | /// </param> |
| | 3053 | | public static async Task<OperationStatus> UpdateCustomPrebuiltEntityRoleAsync(this IModel operations, System |
| | 3054 | | { |
| 1 | 3055 | | using (var _result = await operations.UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(appId, version |
| | 3056 | | { |
| 1 | 3057 | | return _result.Body; |
| | 3058 | | } |
| 1 | 3059 | | } |
| | 3060 | |
|
| | 3061 | | /// <summary> |
| | 3062 | | /// Delete a role for a given prebuilt entity in a version of the application. |
| | 3063 | | /// </summary> |
| | 3064 | | /// <param name='operations'> |
| | 3065 | | /// The operations group for this extension method. |
| | 3066 | | /// </param> |
| | 3067 | | /// <param name='appId'> |
| | 3068 | | /// The application ID. |
| | 3069 | | /// </param> |
| | 3070 | | /// <param name='versionId'> |
| | 3071 | | /// The version ID. |
| | 3072 | | /// </param> |
| | 3073 | | /// <param name='entityId'> |
| | 3074 | | /// The entity ID. |
| | 3075 | | /// </param> |
| | 3076 | | /// <param name='roleId'> |
| | 3077 | | /// The entity role Id. |
| | 3078 | | /// </param> |
| | 3079 | | /// <param name='cancellationToken'> |
| | 3080 | | /// The cancellation token. |
| | 3081 | | /// </param> |
| | 3082 | | public static async Task<OperationStatus> DeleteCustomEntityRoleAsync(this IModel operations, System.Guid ap |
| | 3083 | | { |
| 1 | 3084 | | using (var _result = await operations.DeleteCustomEntityRoleWithHttpMessagesAsync(appId, versionId, enti |
| | 3085 | | { |
| 1 | 3086 | | return _result.Body; |
| | 3087 | | } |
| 1 | 3088 | | } |
| | 3089 | |
|
| | 3090 | | /// <summary> |
| | 3091 | | /// Get the explicit (exception) list of the pattern.any entity in a version of |
| | 3092 | | /// the application. |
| | 3093 | | /// </summary> |
| | 3094 | | /// <param name='operations'> |
| | 3095 | | /// The operations group for this extension method. |
| | 3096 | | /// </param> |
| | 3097 | | /// <param name='appId'> |
| | 3098 | | /// The application ID. |
| | 3099 | | /// </param> |
| | 3100 | | /// <param name='versionId'> |
| | 3101 | | /// The version ID. |
| | 3102 | | /// </param> |
| | 3103 | | /// <param name='entityId'> |
| | 3104 | | /// The Pattern.Any entity Id. |
| | 3105 | | /// </param> |
| | 3106 | | /// <param name='itemId'> |
| | 3107 | | /// The explicit list item Id. |
| | 3108 | | /// </param> |
| | 3109 | | /// <param name='cancellationToken'> |
| | 3110 | | /// The cancellation token. |
| | 3111 | | /// </param> |
| | 3112 | | public static async Task<ExplicitListItem> GetExplicitListItemAsync(this IModel operations, System.Guid appI |
| | 3113 | | { |
| 3 | 3114 | | using (var _result = await operations.GetExplicitListItemWithHttpMessagesAsync(appId, versionId, entityI |
| | 3115 | | { |
| 3 | 3116 | | return _result.Body; |
| | 3117 | | } |
| 3 | 3118 | | } |
| | 3119 | |
|
| | 3120 | | /// <summary> |
| | 3121 | | /// Updates an explicit (exception) list item for a Pattern.Any entity in a |
| | 3122 | | /// version of the application. |
| | 3123 | | /// </summary> |
| | 3124 | | /// <param name='operations'> |
| | 3125 | | /// The operations group for this extension method. |
| | 3126 | | /// </param> |
| | 3127 | | /// <param name='appId'> |
| | 3128 | | /// The application ID. |
| | 3129 | | /// </param> |
| | 3130 | | /// <param name='versionId'> |
| | 3131 | | /// The version ID. |
| | 3132 | | /// </param> |
| | 3133 | | /// <param name='entityId'> |
| | 3134 | | /// The Pattern.Any entity extractor ID. |
| | 3135 | | /// </param> |
| | 3136 | | /// <param name='itemId'> |
| | 3137 | | /// The explicit list item ID. |
| | 3138 | | /// </param> |
| | 3139 | | /// <param name='item'> |
| | 3140 | | /// The new explicit list item. |
| | 3141 | | /// </param> |
| | 3142 | | /// <param name='cancellationToken'> |
| | 3143 | | /// The cancellation token. |
| | 3144 | | /// </param> |
| | 3145 | | public static async Task<OperationStatus> UpdateExplicitListItemAsync(this IModel operations, System.Guid ap |
| | 3146 | | { |
| 1 | 3147 | | using (var _result = await operations.UpdateExplicitListItemWithHttpMessagesAsync(appId, versionId, enti |
| | 3148 | | { |
| 1 | 3149 | | return _result.Body; |
| | 3150 | | } |
| 1 | 3151 | | } |
| | 3152 | |
|
| | 3153 | | /// <summary> |
| | 3154 | | /// Delete an item from the explicit (exception) list for a Pattern.any entity |
| | 3155 | | /// in a version of the application. |
| | 3156 | | /// </summary> |
| | 3157 | | /// <param name='operations'> |
| | 3158 | | /// The operations group for this extension method. |
| | 3159 | | /// </param> |
| | 3160 | | /// <param name='appId'> |
| | 3161 | | /// The application ID. |
| | 3162 | | /// </param> |
| | 3163 | | /// <param name='versionId'> |
| | 3164 | | /// The version ID. |
| | 3165 | | /// </param> |
| | 3166 | | /// <param name='entityId'> |
| | 3167 | | /// The pattern.any entity id. |
| | 3168 | | /// </param> |
| | 3169 | | /// <param name='itemId'> |
| | 3170 | | /// The explicit list item which will be deleted. |
| | 3171 | | /// </param> |
| | 3172 | | /// <param name='cancellationToken'> |
| | 3173 | | /// The cancellation token. |
| | 3174 | | /// </param> |
| | 3175 | | public static async Task<OperationStatus> DeleteExplicitListItemAsync(this IModel operations, System.Guid ap |
| | 3176 | | { |
| 1 | 3177 | | using (var _result = await operations.DeleteExplicitListItemWithHttpMessagesAsync(appId, versionId, enti |
| | 3178 | | { |
| 1 | 3179 | | return _result.Body; |
| | 3180 | | } |
| 1 | 3181 | | } |
| | 3182 | |
|
| | 3183 | | } |
| | 3184 | | } |