azure_cognitiveservices_luisauthoring 0.17.3 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring.rb +0 -0
  4. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/apps.rb +0 -0
  5. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/azure_accounts.rb +0 -0
  6. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/examples.rb +0 -0
  7. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/features.rb +0 -0
  8. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/luis_authoring_client.rb +1 -1
  9. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb +0 -0
  10. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/app_version_setting_object.rb +0 -0
  11. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_create_object.rb +0 -0
  12. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_info_response.rb +0 -0
  13. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_publish_object.rb +0 -0
  14. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_setting_update_object.rb +0 -0
  15. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_settings.rb +0 -0
  16. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_update_object.rb +0 -0
  17. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/available_culture.rb +0 -0
  18. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/available_prebuilt_entity_model.rb +0 -0
  19. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/azure_account_info_object.rb +0 -0
  20. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/batch_label_example.rb +0 -0
  21. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/child_entity.rb +0 -0
  22. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list.rb +0 -0
  23. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_entity_extractor.rb +0 -0
  24. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_create_object.rb +0 -0
  25. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_patch_object.rb +0 -0
  26. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_update_object.rb +0 -0
  27. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/collaborators_array.rb +0 -0
  28. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/composite_child_model_create_object.rb +0 -0
  29. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/composite_entity_extractor.rb +0 -0
  30. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/composite_entity_model.rb +0 -0
  31. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/custom_prebuilt_model.rb +0 -0
  32. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/endpoint_info.rb +0 -0
  33. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/enqueue_training_response.rb +0 -0
  34. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entities_suggestion_example.rb +0 -0
  35. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_extractor.rb +0 -0
  36. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb +0 -0
  37. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb +0 -0
  38. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_model_info.rb +0 -0
  39. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_prediction.rb +0 -0
  40. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_role.rb +0 -0
  41. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_role_create_object.rb +0 -0
  42. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_role_update_object.rb +0 -0
  43. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/error_response.rb +0 -0
  44. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb +0 -0
  45. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item.rb +0 -0
  46. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item_create_object.rb +0 -0
  47. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item_update_object.rb +0 -0
  48. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/feature_info_object.rb +0 -0
  49. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/features_response_object.rb +0 -0
  50. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_entity.rb +0 -0
  51. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_model_create_object.rb +0 -0
  52. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_model_update_object.rb +0 -0
  53. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_entity_extractor.rb +0 -0
  54. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_entity_model.rb +0 -0
  55. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_model.rb +0 -0
  56. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intent_classifier.rb +0 -0
  57. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intent_prediction.rb +0 -0
  58. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb +0 -0
  59. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonentity.rb +0 -0
  60. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonmodel_feature.rb +0 -0
  61. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonregex_feature.rb +0 -0
  62. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonutterance.rb +0 -0
  63. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_example_response.rb +0 -0
  64. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_text_object.rb +0 -0
  65. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb +0 -0
  66. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/luis_app.rb +0 -0
  67. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_create_object.rb +0 -0
  68. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_info.rb +0 -0
  69. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_info_response.rb +0 -0
  70. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_training_details.rb +0 -0
  71. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_training_info.rb +0 -0
  72. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_update_object.rb +0 -0
  73. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/operation_error.rb +0 -0
  74. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/operation_status.rb +0 -0
  75. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/operation_status_type.rb +0 -0
  76. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any.rb +0 -0
  77. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_entity_extractor.rb +0 -0
  78. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_model_create_object.rb +0 -0
  79. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_model_update_object.rb +0 -0
  80. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_create_object.rb +0 -0
  81. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_feature_info.rb +0 -0
  82. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule.rb +0 -0
  83. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_create_object.rb +0 -0
  84. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_info.rb +0 -0
  85. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_update_object.rb +0 -0
  86. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_update_object.rb +0 -0
  87. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/personal_assistants_response.rb +0 -0
  88. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/phrase_list_feature_info.rb +0 -0
  89. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/phraselist_create_object.rb +0 -0
  90. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/phraselist_update_object.rb +0 -0
  91. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain.rb +0 -0
  92. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_create_base_object.rb +0 -0
  93. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_create_object.rb +0 -0
  94. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_item.rb +0 -0
  95. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_model_create_object.rb +0 -0
  96. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_object.rb +0 -0
  97. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_entity.rb +0 -0
  98. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_entity_extractor.rb +0 -0
  99. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/production_or_staging_endpoint_info.rb +0 -0
  100. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/publish_setting_update_object.rb +0 -0
  101. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/publish_settings.rb +0 -0
  102. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_entity.rb +0 -0
  103. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_entity_extractor.rb +0 -0
  104. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_model_create_object.rb +0 -0
  105. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_model_update_object.rb +0 -0
  106. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/sub_closed_list.rb +0 -0
  107. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/sub_closed_list_response.rb +0 -0
  108. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/task_update_object.rb +0 -0
  109. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/training_status.rb +0 -0
  110. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/user_access_list.rb +0 -0
  111. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/user_collaborator.rb +0 -0
  112. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/version_info.rb +0 -0
  113. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/word_list_base_update_object.rb +0 -0
  114. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/word_list_object.rb +0 -0
  115. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/module_definition.rb +0 -0
  116. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/pattern.rb +0 -0
  117. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/permissions.rb +0 -0
  118. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/settings.rb +0 -0
  119. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/train.rb +0 -0
  120. data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb +0 -0
  121. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring.rb +145 -0
  122. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/apps.rb +2274 -0
  123. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/azure_accounts.rb +461 -0
  124. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/examples.rb +519 -0
  125. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/features.rb +914 -0
  126. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/luis_authoring_client.rb +167 -0
  127. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/model.rb +12291 -0
  128. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/app_version_setting_object.rb +57 -0
  129. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/application_create_object.rb +106 -0
  130. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/application_info_response.rb +158 -0
  131. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/application_publish_object.rb +59 -0
  132. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/application_setting_update_object.rb +47 -0
  133. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/application_settings.rb +59 -0
  134. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/application_update_object.rb +57 -0
  135. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/available_culture.rb +57 -0
  136. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/available_prebuilt_entity_model.rb +68 -0
  137. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/azure_account_info_object.rb +68 -0
  138. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/batch_label_example.rb +70 -0
  139. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/child_entity.rb +115 -0
  140. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/child_entity_model_create_object.rb +77 -0
  141. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/closed_list.rb +85 -0
  142. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/closed_list_entity_extractor.rb +124 -0
  143. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_create_object.rb +66 -0
  144. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_patch_object.rb +55 -0
  145. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_update_object.rb +66 -0
  146. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/collaborators_array.rb +55 -0
  147. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/composite_child_model_create_object.rb +47 -0
  148. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/composite_entity_extractor.rb +124 -0
  149. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/composite_entity_model.rb +65 -0
  150. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/custom_prebuilt_model.rb +126 -0
  151. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/endpoint_info.rb +125 -0
  152. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/enqueue_training_response.rb +58 -0
  153. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entities_suggestion_example.rb +106 -0
  154. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_extractor.rb +126 -0
  155. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb +93 -0
  156. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb +82 -0
  157. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_model_create_object.rb +66 -0
  158. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_model_info.rb +87 -0
  159. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_model_update_object.rb +57 -0
  160. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_prediction.rb +81 -0
  161. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_role.rb +57 -0
  162. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_role_create_object.rb +46 -0
  163. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/entity_role_update_object.rb +46 -0
  164. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/error_response.rb +65 -0
  165. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb +79 -0
  166. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item.rb +57 -0
  167. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item_create_object.rb +46 -0
  168. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item_update_object.rb +46 -0
  169. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/feature_info_object.rb +80 -0
  170. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/features_response_object.rb +75 -0
  171. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_entity.rb +92 -0
  172. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_model_update_object.rb +47 -0
  173. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_entity_extractor.rb +124 -0
  174. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_model.rb +118 -0
  175. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/intent_classifier.rb +89 -0
  176. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/intent_prediction.rb +57 -0
  177. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb +106 -0
  178. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/json_child.rb +98 -0
  179. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/json_model_feature_information.rb +58 -0
  180. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/jsonentity.rb +81 -0
  181. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/jsonmodel_feature.rb +100 -0
  182. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/jsonregex_feature.rb +68 -0
  183. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/jsonutterance.rb +77 -0
  184. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/label_example_response.rb +57 -0
  185. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/label_text_object.rb +57 -0
  186. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb +148 -0
  187. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/luis_app.rb +338 -0
  188. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/model_create_object.rb +46 -0
  189. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/model_feature_information.rb +58 -0
  190. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/model_info.rb +84 -0
  191. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/model_info_response.rb +197 -0
  192. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/model_training_details.rb +91 -0
  193. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/model_training_info.rb +58 -0
  194. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/model_update_object.rb +46 -0
  195. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/ndepth_entity_extractor.rb +146 -0
  196. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/operation_error.rb +57 -0
  197. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/operation_status.rb +58 -0
  198. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/operation_status_type.rb +17 -0
  199. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_any.rb +84 -0
  200. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_entity_extractor.rb +124 -0
  201. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_model_create_object.rb +65 -0
  202. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_model_update_object.rb +65 -0
  203. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_feature_info.rb +78 -0
  204. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule.rb +57 -0
  205. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_create_object.rb +57 -0
  206. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_info.rb +68 -0
  207. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/pattern_rule_update_object.rb +68 -0
  208. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/personal_assistants_response.rb +74 -0
  209. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/phrase_list_feature_info.rb +99 -0
  210. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/phraselist_create_object.rb +91 -0
  211. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/phraselist_update_object.rb +107 -0
  212. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain.rb +119 -0
  213. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_create_base_object.rb +47 -0
  214. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_create_object.rb +58 -0
  215. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_item.rb +69 -0
  216. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_model_create_object.rb +58 -0
  217. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_domain_object.rb +58 -0
  218. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_entity.rb +65 -0
  219. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_entity_extractor.rb +104 -0
  220. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/production_or_staging_endpoint_info.rb +100 -0
  221. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/publish_setting_update_object.rb +71 -0
  222. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/publish_settings.rb +80 -0
  223. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/regex_entity.rb +76 -0
  224. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/regex_entity_extractor.rb +115 -0
  225. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/regex_model_create_object.rb +57 -0
  226. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/regex_model_update_object.rb +57 -0
  227. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/sub_closed_list.rb +65 -0
  228. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/sub_closed_list_response.rb +70 -0
  229. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/task_update_object.rb +46 -0
  230. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/training_status.rb +17 -0
  231. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/user_access_list.rb +65 -0
  232. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/user_collaborator.rb +47 -0
  233. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/version_info.rb +177 -0
  234. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/word_list_base_update_object.rb +65 -0
  235. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/models/word_list_object.rb +65 -0
  236. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/module_definition.rb +9 -0
  237. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/pattern.rb +979 -0
  238. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/permissions.rb +435 -0
  239. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/settings.rb +257 -0
  240. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/train.rb +251 -0
  241. data/lib/3.0-preview/generated/azure_cognitiveservices_luisauthoring/versions.rb +871 -0
  242. data/lib/azure_cognitiveservices_luisauthoring.rb +7 -6
  243. data/lib/module_definition.rb +7 -7
  244. data/lib/profiles/latest/luisauthoring_latest_profile_client.rb +38 -38
  245. data/lib/profiles/latest/luisauthoring_module_definition.rb +8 -8
  246. data/lib/profiles/latest/modules/luisauthoring_profile_module.rb +509 -497
  247. data/lib/version.rb +7 -7
  248. metadata +124 -3
@@ -0,0 +1,914 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::LuisAuthoring::V3_0_preview
7
+ #
8
+ # Features
9
+ #
10
+ class Features
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Features class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [LuisAuthoringClient] reference to the LuisAuthoringClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Creates a new phraselist feature in a version of the application.
26
+ #
27
+ # @param app_id The application ID.
28
+ # @param version_id [String] The version ID.
29
+ # @param phraselist_create_object [PhraselistCreateObject] A Phraselist object
30
+ # containing Name, comma-separated Phrases and the isExchangeable boolean.
31
+ # Default value for isExchangeable is true.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Number] operation results.
36
+ #
37
+ def add_phrase_list(app_id, version_id, phraselist_create_object, custom_headers:nil)
38
+ response = add_phrase_list_async(app_id, version_id, phraselist_create_object, custom_headers:custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # Creates a new phraselist feature in a version of the application.
44
+ #
45
+ # @param app_id The application ID.
46
+ # @param version_id [String] The version ID.
47
+ # @param phraselist_create_object [PhraselistCreateObject] A Phraselist object
48
+ # containing Name, comma-separated Phrases and the isExchangeable boolean.
49
+ # Default value for isExchangeable is true.
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def add_phrase_list_with_http_info(app_id, version_id, phraselist_create_object, custom_headers:nil)
56
+ add_phrase_list_async(app_id, version_id, phraselist_create_object, custom_headers:custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # Creates a new phraselist feature in a version of the application.
61
+ #
62
+ # @param app_id The application ID.
63
+ # @param version_id [String] The version ID.
64
+ # @param phraselist_create_object [PhraselistCreateObject] A Phraselist object
65
+ # containing Name, comma-separated Phrases and the isExchangeable boolean.
66
+ # Default value for isExchangeable is true.
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def add_phrase_list_async(app_id, version_id, phraselist_create_object, custom_headers:nil)
73
+ fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
74
+ fail ArgumentError, 'app_id is nil' if app_id.nil?
75
+ fail ArgumentError, 'version_id is nil' if version_id.nil?
76
+ fail ArgumentError, 'phraselist_create_object is nil' if phraselist_create_object.nil?
77
+
78
+
79
+ request_headers = {}
80
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
81
+
82
+ # Set Headers
83
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
84
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
85
+
86
+ # Serialize Request
87
+ request_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::PhraselistCreateObject.mapper()
88
+ request_content = @client.serialize(request_mapper, phraselist_create_object)
89
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
90
+
91
+ path_template = 'apps/{appId}/versions/{versionId}/phraselists'
92
+
93
+ request_url = @base_url || @client.base_url
94
+ request_url = request_url.gsub('{Endpoint}', @client.endpoint)
95
+
96
+ options = {
97
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
98
+ path_params: {'appId' => app_id,'versionId' => version_id},
99
+ body: request_content,
100
+ headers: request_headers.merge(custom_headers || {}),
101
+ base_url: request_url
102
+ }
103
+ promise = @client.make_request_async(:post, path_template, options)
104
+
105
+ promise = promise.then do |result|
106
+ http_response = result.response
107
+ status_code = http_response.status
108
+ response_content = http_response.body
109
+ unless status_code == 201
110
+ error_model = JSON.load(response_content)
111
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
112
+ end
113
+
114
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
115
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
116
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
117
+ # Deserialize Response
118
+ if status_code == 201
119
+ begin
120
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
121
+ result_mapper = {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'parsed_response',
125
+ type: {
126
+ name: 'Number'
127
+ }
128
+ }
129
+ result.body = @client.deserialize(result_mapper, parsed_response)
130
+ rescue Exception => e
131
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
132
+ end
133
+ end
134
+
135
+ result
136
+ end
137
+
138
+ promise.execute
139
+ end
140
+
141
+ #
142
+ # Gets all the phraselist features in a version of the application.
143
+ #
144
+ # @param app_id The application ID.
145
+ # @param version_id [String] The version ID.
146
+ # @param skip [Integer] The number of entries to skip. Default value is 0.
147
+ # @param take [Integer] The number of entries to return. Maximum page size is
148
+ # 500. Default is 100.
149
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
150
+ # will be added to the HTTP request.
151
+ #
152
+ # @return [Array] operation results.
153
+ #
154
+ def list_phrase_lists(app_id, version_id, skip:0, take:100, custom_headers:nil)
155
+ response = list_phrase_lists_async(app_id, version_id, skip:skip, take:take, custom_headers:custom_headers).value!
156
+ response.body unless response.nil?
157
+ end
158
+
159
+ #
160
+ # Gets all the phraselist features in a version of the application.
161
+ #
162
+ # @param app_id The application ID.
163
+ # @param version_id [String] The version ID.
164
+ # @param skip [Integer] The number of entries to skip. Default value is 0.
165
+ # @param take [Integer] The number of entries to return. Maximum page size is
166
+ # 500. Default is 100.
167
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
168
+ # will be added to the HTTP request.
169
+ #
170
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
171
+ #
172
+ def list_phrase_lists_with_http_info(app_id, version_id, skip:0, take:100, custom_headers:nil)
173
+ list_phrase_lists_async(app_id, version_id, skip:skip, take:take, custom_headers:custom_headers).value!
174
+ end
175
+
176
+ #
177
+ # Gets all the phraselist features in a version of the application.
178
+ #
179
+ # @param app_id The application ID.
180
+ # @param version_id [String] The version ID.
181
+ # @param skip [Integer] The number of entries to skip. Default value is 0.
182
+ # @param take [Integer] The number of entries to return. Maximum page size is
183
+ # 500. Default is 100.
184
+ # @param [Hash{String => String}] A hash of custom headers that will be added
185
+ # to the HTTP request.
186
+ #
187
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
188
+ #
189
+ def list_phrase_lists_async(app_id, version_id, skip:0, take:100, custom_headers:nil)
190
+ fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
191
+ fail ArgumentError, 'app_id is nil' if app_id.nil?
192
+ fail ArgumentError, 'version_id is nil' if version_id.nil?
193
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
194
+ fail ArgumentError, "'take' should satisfy the constraint - 'InclusiveMaximum': '500'" if !take.nil? && take > 500
195
+ fail ArgumentError, "'take' should satisfy the constraint - 'InclusiveMinimum': '0'" if !take.nil? && take < 0
196
+
197
+
198
+ request_headers = {}
199
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
200
+
201
+ # Set Headers
202
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
203
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
204
+ path_template = 'apps/{appId}/versions/{versionId}/phraselists'
205
+
206
+ request_url = @base_url || @client.base_url
207
+ request_url = request_url.gsub('{Endpoint}', @client.endpoint)
208
+
209
+ options = {
210
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
211
+ path_params: {'appId' => app_id,'versionId' => version_id},
212
+ query_params: {'skip' => skip,'take' => take},
213
+ headers: request_headers.merge(custom_headers || {}),
214
+ base_url: request_url
215
+ }
216
+ promise = @client.make_request_async(:get, path_template, options)
217
+
218
+ promise = promise.then do |result|
219
+ http_response = result.response
220
+ status_code = http_response.status
221
+ response_content = http_response.body
222
+ unless status_code == 200
223
+ error_model = JSON.load(response_content)
224
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
225
+ end
226
+
227
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
228
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
229
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
230
+ # Deserialize Response
231
+ if status_code == 200
232
+ begin
233
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
234
+ result_mapper = {
235
+ client_side_validation: true,
236
+ required: false,
237
+ serialized_name: 'parsed_response',
238
+ type: {
239
+ name: 'Sequence',
240
+ element: {
241
+ client_side_validation: true,
242
+ required: false,
243
+ serialized_name: 'PhraseListFeatureInfoElementType',
244
+ type: {
245
+ name: 'Composite',
246
+ class_name: 'PhraseListFeatureInfo'
247
+ }
248
+ }
249
+ }
250
+ }
251
+ result.body = @client.deserialize(result_mapper, parsed_response)
252
+ rescue Exception => e
253
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
254
+ end
255
+ end
256
+
257
+ result
258
+ end
259
+
260
+ promise.execute
261
+ end
262
+
263
+ #
264
+ # Gets all the extraction phraselist and pattern features in a version of the
265
+ # application.
266
+ #
267
+ # @param app_id The application ID.
268
+ # @param version_id [String] The version ID.
269
+ # @param skip [Integer] The number of entries to skip. Default value is 0.
270
+ # @param take [Integer] The number of entries to return. Maximum page size is
271
+ # 500. Default is 100.
272
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
273
+ # will be added to the HTTP request.
274
+ #
275
+ # @return [FeaturesResponseObject] operation results.
276
+ #
277
+ def list(app_id, version_id, skip:0, take:100, custom_headers:nil)
278
+ response = list_async(app_id, version_id, skip:skip, take:take, custom_headers:custom_headers).value!
279
+ response.body unless response.nil?
280
+ end
281
+
282
+ #
283
+ # Gets all the extraction phraselist and pattern features in a version of the
284
+ # application.
285
+ #
286
+ # @param app_id The application ID.
287
+ # @param version_id [String] The version ID.
288
+ # @param skip [Integer] The number of entries to skip. Default value is 0.
289
+ # @param take [Integer] The number of entries to return. Maximum page size is
290
+ # 500. Default is 100.
291
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
292
+ # will be added to the HTTP request.
293
+ #
294
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
295
+ #
296
+ def list_with_http_info(app_id, version_id, skip:0, take:100, custom_headers:nil)
297
+ list_async(app_id, version_id, skip:skip, take:take, custom_headers:custom_headers).value!
298
+ end
299
+
300
+ #
301
+ # Gets all the extraction phraselist and pattern features in a version of the
302
+ # application.
303
+ #
304
+ # @param app_id The application ID.
305
+ # @param version_id [String] The version ID.
306
+ # @param skip [Integer] The number of entries to skip. Default value is 0.
307
+ # @param take [Integer] The number of entries to return. Maximum page size is
308
+ # 500. Default is 100.
309
+ # @param [Hash{String => String}] A hash of custom headers that will be added
310
+ # to the HTTP request.
311
+ #
312
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
313
+ #
314
+ def list_async(app_id, version_id, skip:0, take:100, custom_headers:nil)
315
+ fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
316
+ fail ArgumentError, 'app_id is nil' if app_id.nil?
317
+ fail ArgumentError, 'version_id is nil' if version_id.nil?
318
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
319
+ fail ArgumentError, "'take' should satisfy the constraint - 'InclusiveMaximum': '500'" if !take.nil? && take > 500
320
+ fail ArgumentError, "'take' should satisfy the constraint - 'InclusiveMinimum': '0'" if !take.nil? && take < 0
321
+
322
+
323
+ request_headers = {}
324
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
325
+
326
+ # Set Headers
327
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
328
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
329
+ path_template = 'apps/{appId}/versions/{versionId}/features'
330
+
331
+ request_url = @base_url || @client.base_url
332
+ request_url = request_url.gsub('{Endpoint}', @client.endpoint)
333
+
334
+ options = {
335
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
336
+ path_params: {'appId' => app_id,'versionId' => version_id},
337
+ query_params: {'skip' => skip,'take' => take},
338
+ headers: request_headers.merge(custom_headers || {}),
339
+ base_url: request_url
340
+ }
341
+ promise = @client.make_request_async(:get, path_template, options)
342
+
343
+ promise = promise.then do |result|
344
+ http_response = result.response
345
+ status_code = http_response.status
346
+ response_content = http_response.body
347
+ unless status_code == 200
348
+ error_model = JSON.load(response_content)
349
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
350
+ end
351
+
352
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
353
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
354
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
355
+ # Deserialize Response
356
+ if status_code == 200
357
+ begin
358
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
359
+ result_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::FeaturesResponseObject.mapper()
360
+ result.body = @client.deserialize(result_mapper, parsed_response)
361
+ rescue Exception => e
362
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
363
+ end
364
+ end
365
+
366
+ result
367
+ end
368
+
369
+ promise.execute
370
+ end
371
+
372
+ #
373
+ # Gets phraselist feature info in a version of the application.
374
+ #
375
+ # @param app_id The application ID.
376
+ # @param version_id [String] The version ID.
377
+ # @param phraselist_id [Integer] The ID of the feature to be retrieved.
378
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
379
+ # will be added to the HTTP request.
380
+ #
381
+ # @return [PhraseListFeatureInfo] operation results.
382
+ #
383
+ def get_phrase_list(app_id, version_id, phraselist_id, custom_headers:nil)
384
+ response = get_phrase_list_async(app_id, version_id, phraselist_id, custom_headers:custom_headers).value!
385
+ response.body unless response.nil?
386
+ end
387
+
388
+ #
389
+ # Gets phraselist feature info in a version of the application.
390
+ #
391
+ # @param app_id The application ID.
392
+ # @param version_id [String] The version ID.
393
+ # @param phraselist_id [Integer] The ID of the feature to be retrieved.
394
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
395
+ # will be added to the HTTP request.
396
+ #
397
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
398
+ #
399
+ def get_phrase_list_with_http_info(app_id, version_id, phraselist_id, custom_headers:nil)
400
+ get_phrase_list_async(app_id, version_id, phraselist_id, custom_headers:custom_headers).value!
401
+ end
402
+
403
+ #
404
+ # Gets phraselist feature info in a version of the application.
405
+ #
406
+ # @param app_id The application ID.
407
+ # @param version_id [String] The version ID.
408
+ # @param phraselist_id [Integer] The ID of the feature to be retrieved.
409
+ # @param [Hash{String => String}] A hash of custom headers that will be added
410
+ # to the HTTP request.
411
+ #
412
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
413
+ #
414
+ def get_phrase_list_async(app_id, version_id, phraselist_id, custom_headers:nil)
415
+ fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
416
+ fail ArgumentError, 'app_id is nil' if app_id.nil?
417
+ fail ArgumentError, 'version_id is nil' if version_id.nil?
418
+ fail ArgumentError, 'phraselist_id is nil' if phraselist_id.nil?
419
+
420
+
421
+ request_headers = {}
422
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
423
+
424
+ # Set Headers
425
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
426
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
427
+ path_template = 'apps/{appId}/versions/{versionId}/phraselists/{phraselistId}'
428
+
429
+ request_url = @base_url || @client.base_url
430
+ request_url = request_url.gsub('{Endpoint}', @client.endpoint)
431
+
432
+ options = {
433
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
434
+ path_params: {'appId' => app_id,'versionId' => version_id,'phraselistId' => phraselist_id},
435
+ headers: request_headers.merge(custom_headers || {}),
436
+ base_url: request_url
437
+ }
438
+ promise = @client.make_request_async(:get, path_template, options)
439
+
440
+ promise = promise.then do |result|
441
+ http_response = result.response
442
+ status_code = http_response.status
443
+ response_content = http_response.body
444
+ unless status_code == 200
445
+ error_model = JSON.load(response_content)
446
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
447
+ end
448
+
449
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
450
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
451
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
452
+ # Deserialize Response
453
+ if status_code == 200
454
+ begin
455
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
456
+ result_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::PhraseListFeatureInfo.mapper()
457
+ result.body = @client.deserialize(result_mapper, parsed_response)
458
+ rescue Exception => e
459
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
460
+ end
461
+ end
462
+
463
+ result
464
+ end
465
+
466
+ promise.execute
467
+ end
468
+
469
+ #
470
+ # Updates the phrases, the state and the name of the phraselist feature in a
471
+ # version of the application.
472
+ #
473
+ # @param app_id The application ID.
474
+ # @param version_id [String] The version ID.
475
+ # @param phraselist_id [Integer] The ID of the feature to be updated.
476
+ # @param phraselist_update_object [PhraselistUpdateObject] The new values for:
477
+ # - Just a boolean called IsActive, in which case the status of the feature
478
+ # will be changed. - Name, Pattern, Mode, and a boolean called IsActive to
479
+ # update the feature.
480
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
481
+ # will be added to the HTTP request.
482
+ #
483
+ # @return [OperationStatus] operation results.
484
+ #
485
+ def update_phrase_list(app_id, version_id, phraselist_id, phraselist_update_object:nil, custom_headers:nil)
486
+ response = update_phrase_list_async(app_id, version_id, phraselist_id, phraselist_update_object:phraselist_update_object, custom_headers:custom_headers).value!
487
+ response.body unless response.nil?
488
+ end
489
+
490
+ #
491
+ # Updates the phrases, the state and the name of the phraselist feature in a
492
+ # version of the application.
493
+ #
494
+ # @param app_id The application ID.
495
+ # @param version_id [String] The version ID.
496
+ # @param phraselist_id [Integer] The ID of the feature to be updated.
497
+ # @param phraselist_update_object [PhraselistUpdateObject] The new values for:
498
+ # - Just a boolean called IsActive, in which case the status of the feature
499
+ # will be changed. - Name, Pattern, Mode, and a boolean called IsActive to
500
+ # update the feature.
501
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
502
+ # will be added to the HTTP request.
503
+ #
504
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
505
+ #
506
+ def update_phrase_list_with_http_info(app_id, version_id, phraselist_id, phraselist_update_object:nil, custom_headers:nil)
507
+ update_phrase_list_async(app_id, version_id, phraselist_id, phraselist_update_object:phraselist_update_object, custom_headers:custom_headers).value!
508
+ end
509
+
510
+ #
511
+ # Updates the phrases, the state and the name of the phraselist feature in a
512
+ # version of the application.
513
+ #
514
+ # @param app_id The application ID.
515
+ # @param version_id [String] The version ID.
516
+ # @param phraselist_id [Integer] The ID of the feature to be updated.
517
+ # @param phraselist_update_object [PhraselistUpdateObject] The new values for:
518
+ # - Just a boolean called IsActive, in which case the status of the feature
519
+ # will be changed. - Name, Pattern, Mode, and a boolean called IsActive to
520
+ # update the feature.
521
+ # @param [Hash{String => String}] A hash of custom headers that will be added
522
+ # to the HTTP request.
523
+ #
524
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
525
+ #
526
+ def update_phrase_list_async(app_id, version_id, phraselist_id, phraselist_update_object:nil, custom_headers:nil)
527
+ fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
528
+ fail ArgumentError, 'app_id is nil' if app_id.nil?
529
+ fail ArgumentError, 'version_id is nil' if version_id.nil?
530
+ fail ArgumentError, 'phraselist_id is nil' if phraselist_id.nil?
531
+
532
+
533
+ request_headers = {}
534
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
535
+
536
+ # Set Headers
537
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
538
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
539
+
540
+ # Serialize Request
541
+ request_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::PhraselistUpdateObject.mapper()
542
+ request_content = @client.serialize(request_mapper, phraselist_update_object)
543
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
544
+
545
+ path_template = 'apps/{appId}/versions/{versionId}/phraselists/{phraselistId}'
546
+
547
+ request_url = @base_url || @client.base_url
548
+ request_url = request_url.gsub('{Endpoint}', @client.endpoint)
549
+
550
+ options = {
551
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
552
+ path_params: {'appId' => app_id,'versionId' => version_id,'phraselistId' => phraselist_id},
553
+ body: request_content,
554
+ headers: request_headers.merge(custom_headers || {}),
555
+ base_url: request_url
556
+ }
557
+ promise = @client.make_request_async(:put, path_template, options)
558
+
559
+ promise = promise.then do |result|
560
+ http_response = result.response
561
+ status_code = http_response.status
562
+ response_content = http_response.body
563
+ unless status_code == 200
564
+ error_model = JSON.load(response_content)
565
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
566
+ end
567
+
568
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
569
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
570
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
571
+ # Deserialize Response
572
+ if status_code == 200
573
+ begin
574
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
575
+ result_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::OperationStatus.mapper()
576
+ result.body = @client.deserialize(result_mapper, parsed_response)
577
+ rescue Exception => e
578
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
579
+ end
580
+ end
581
+
582
+ result
583
+ end
584
+
585
+ promise.execute
586
+ end
587
+
588
+ #
589
+ # Deletes a phraselist feature from a version of the application.
590
+ #
591
+ # @param app_id The application ID.
592
+ # @param version_id [String] The version ID.
593
+ # @param phraselist_id [Integer] The ID of the feature to be deleted.
594
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
595
+ # will be added to the HTTP request.
596
+ #
597
+ # @return [OperationStatus] operation results.
598
+ #
599
+ def delete_phrase_list(app_id, version_id, phraselist_id, custom_headers:nil)
600
+ response = delete_phrase_list_async(app_id, version_id, phraselist_id, custom_headers:custom_headers).value!
601
+ response.body unless response.nil?
602
+ end
603
+
604
+ #
605
+ # Deletes a phraselist feature from a version of the application.
606
+ #
607
+ # @param app_id The application ID.
608
+ # @param version_id [String] The version ID.
609
+ # @param phraselist_id [Integer] The ID of the feature to be deleted.
610
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
611
+ # will be added to the HTTP request.
612
+ #
613
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
614
+ #
615
+ def delete_phrase_list_with_http_info(app_id, version_id, phraselist_id, custom_headers:nil)
616
+ delete_phrase_list_async(app_id, version_id, phraselist_id, custom_headers:custom_headers).value!
617
+ end
618
+
619
+ #
620
+ # Deletes a phraselist feature from a version of the application.
621
+ #
622
+ # @param app_id The application ID.
623
+ # @param version_id [String] The version ID.
624
+ # @param phraselist_id [Integer] The ID of the feature to be deleted.
625
+ # @param [Hash{String => String}] A hash of custom headers that will be added
626
+ # to the HTTP request.
627
+ #
628
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
629
+ #
630
+ def delete_phrase_list_async(app_id, version_id, phraselist_id, custom_headers:nil)
631
+ fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
632
+ fail ArgumentError, 'app_id is nil' if app_id.nil?
633
+ fail ArgumentError, 'version_id is nil' if version_id.nil?
634
+ fail ArgumentError, 'phraselist_id is nil' if phraselist_id.nil?
635
+
636
+
637
+ request_headers = {}
638
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
639
+
640
+ # Set Headers
641
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
642
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
643
+ path_template = 'apps/{appId}/versions/{versionId}/phraselists/{phraselistId}'
644
+
645
+ request_url = @base_url || @client.base_url
646
+ request_url = request_url.gsub('{Endpoint}', @client.endpoint)
647
+
648
+ options = {
649
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
650
+ path_params: {'appId' => app_id,'versionId' => version_id,'phraselistId' => phraselist_id},
651
+ headers: request_headers.merge(custom_headers || {}),
652
+ base_url: request_url
653
+ }
654
+ promise = @client.make_request_async(:delete, path_template, options)
655
+
656
+ promise = promise.then do |result|
657
+ http_response = result.response
658
+ status_code = http_response.status
659
+ response_content = http_response.body
660
+ unless status_code == 200
661
+ error_model = JSON.load(response_content)
662
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
663
+ end
664
+
665
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
666
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
667
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
668
+ # Deserialize Response
669
+ if status_code == 200
670
+ begin
671
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
672
+ result_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::OperationStatus.mapper()
673
+ result.body = @client.deserialize(result_mapper, parsed_response)
674
+ rescue Exception => e
675
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
676
+ end
677
+ end
678
+
679
+ result
680
+ end
681
+
682
+ promise.execute
683
+ end
684
+
685
+ #
686
+ # Adds a new feature relation to be used by the intent in a version of the
687
+ # application.
688
+ #
689
+ # @param app_id The application ID.
690
+ # @param version_id [String] The version ID.
691
+ # @param intent_id The intent classifier ID.
692
+ # @param feature_relation_create_object [ModelFeatureInformation] A Feature
693
+ # relation information object.
694
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
695
+ # will be added to the HTTP request.
696
+ #
697
+ # @return [OperationStatus] operation results.
698
+ #
699
+ def add_intent_feature(app_id, version_id, intent_id, feature_relation_create_object, custom_headers:nil)
700
+ response = add_intent_feature_async(app_id, version_id, intent_id, feature_relation_create_object, custom_headers:custom_headers).value!
701
+ response.body unless response.nil?
702
+ end
703
+
704
+ #
705
+ # Adds a new feature relation to be used by the intent in a version of the
706
+ # application.
707
+ #
708
+ # @param app_id The application ID.
709
+ # @param version_id [String] The version ID.
710
+ # @param intent_id The intent classifier ID.
711
+ # @param feature_relation_create_object [ModelFeatureInformation] A Feature
712
+ # relation information object.
713
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
714
+ # will be added to the HTTP request.
715
+ #
716
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
717
+ #
718
+ def add_intent_feature_with_http_info(app_id, version_id, intent_id, feature_relation_create_object, custom_headers:nil)
719
+ add_intent_feature_async(app_id, version_id, intent_id, feature_relation_create_object, custom_headers:custom_headers).value!
720
+ end
721
+
722
+ #
723
+ # Adds a new feature relation to be used by the intent in a version of the
724
+ # application.
725
+ #
726
+ # @param app_id The application ID.
727
+ # @param version_id [String] The version ID.
728
+ # @param intent_id The intent classifier ID.
729
+ # @param feature_relation_create_object [ModelFeatureInformation] A Feature
730
+ # relation information object.
731
+ # @param [Hash{String => String}] A hash of custom headers that will be added
732
+ # to the HTTP request.
733
+ #
734
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
735
+ #
736
+ def add_intent_feature_async(app_id, version_id, intent_id, feature_relation_create_object, custom_headers:nil)
737
+ fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
738
+ fail ArgumentError, 'app_id is nil' if app_id.nil?
739
+ fail ArgumentError, 'version_id is nil' if version_id.nil?
740
+ fail ArgumentError, 'intent_id is nil' if intent_id.nil?
741
+ fail ArgumentError, 'feature_relation_create_object is nil' if feature_relation_create_object.nil?
742
+
743
+
744
+ request_headers = {}
745
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
746
+
747
+ # Set Headers
748
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
749
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
750
+
751
+ # Serialize Request
752
+ request_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::ModelFeatureInformation.mapper()
753
+ request_content = @client.serialize(request_mapper, feature_relation_create_object)
754
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
755
+
756
+ path_template = 'apps/{appId}/versions/{versionId}/intents/{intentId}/features'
757
+
758
+ request_url = @base_url || @client.base_url
759
+ request_url = request_url.gsub('{Endpoint}', @client.endpoint)
760
+
761
+ options = {
762
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
763
+ path_params: {'appId' => app_id,'versionId' => version_id,'intentId' => intent_id},
764
+ body: request_content,
765
+ headers: request_headers.merge(custom_headers || {}),
766
+ base_url: request_url
767
+ }
768
+ promise = @client.make_request_async(:post, path_template, options)
769
+
770
+ promise = promise.then do |result|
771
+ http_response = result.response
772
+ status_code = http_response.status
773
+ response_content = http_response.body
774
+ unless status_code == 200
775
+ error_model = JSON.load(response_content)
776
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
777
+ end
778
+
779
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
780
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
781
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
782
+ # Deserialize Response
783
+ if status_code == 200
784
+ begin
785
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
786
+ result_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::OperationStatus.mapper()
787
+ result.body = @client.deserialize(result_mapper, parsed_response)
788
+ rescue Exception => e
789
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
790
+ end
791
+ end
792
+
793
+ result
794
+ end
795
+
796
+ promise.execute
797
+ end
798
+
799
+ #
800
+ # Adds a new feature relation to be used by the entity in a version of the
801
+ # application.
802
+ #
803
+ # @param app_id The application ID.
804
+ # @param version_id [String] The version ID.
805
+ # @param entity_id The entity extractor ID.
806
+ # @param feature_relation_create_object [ModelFeatureInformation] A Feature
807
+ # relation information object.
808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
+ # will be added to the HTTP request.
810
+ #
811
+ # @return [OperationStatus] operation results.
812
+ #
813
+ def add_entity_feature(app_id, version_id, entity_id, feature_relation_create_object, custom_headers:nil)
814
+ response = add_entity_feature_async(app_id, version_id, entity_id, feature_relation_create_object, custom_headers:custom_headers).value!
815
+ response.body unless response.nil?
816
+ end
817
+
818
+ #
819
+ # Adds a new feature relation to be used by the entity in a version of the
820
+ # application.
821
+ #
822
+ # @param app_id The application ID.
823
+ # @param version_id [String] The version ID.
824
+ # @param entity_id The entity extractor ID.
825
+ # @param feature_relation_create_object [ModelFeatureInformation] A Feature
826
+ # relation information object.
827
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
828
+ # will be added to the HTTP request.
829
+ #
830
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
831
+ #
832
+ def add_entity_feature_with_http_info(app_id, version_id, entity_id, feature_relation_create_object, custom_headers:nil)
833
+ add_entity_feature_async(app_id, version_id, entity_id, feature_relation_create_object, custom_headers:custom_headers).value!
834
+ end
835
+
836
+ #
837
+ # Adds a new feature relation to be used by the entity in a version of the
838
+ # application.
839
+ #
840
+ # @param app_id The application ID.
841
+ # @param version_id [String] The version ID.
842
+ # @param entity_id The entity extractor ID.
843
+ # @param feature_relation_create_object [ModelFeatureInformation] A Feature
844
+ # relation information object.
845
+ # @param [Hash{String => String}] A hash of custom headers that will be added
846
+ # to the HTTP request.
847
+ #
848
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
849
+ #
850
+ def add_entity_feature_async(app_id, version_id, entity_id, feature_relation_create_object, custom_headers:nil)
851
+ fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
852
+ fail ArgumentError, 'app_id is nil' if app_id.nil?
853
+ fail ArgumentError, 'version_id is nil' if version_id.nil?
854
+ fail ArgumentError, 'entity_id is nil' if entity_id.nil?
855
+ fail ArgumentError, 'feature_relation_create_object is nil' if feature_relation_create_object.nil?
856
+
857
+
858
+ request_headers = {}
859
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
860
+
861
+ # Set Headers
862
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
863
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
864
+
865
+ # Serialize Request
866
+ request_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::ModelFeatureInformation.mapper()
867
+ request_content = @client.serialize(request_mapper, feature_relation_create_object)
868
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
869
+
870
+ path_template = 'apps/{appId}/versions/{versionId}/entities/{entityId}/features'
871
+
872
+ request_url = @base_url || @client.base_url
873
+ request_url = request_url.gsub('{Endpoint}', @client.endpoint)
874
+
875
+ options = {
876
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
877
+ path_params: {'appId' => app_id,'versionId' => version_id,'entityId' => entity_id},
878
+ body: request_content,
879
+ headers: request_headers.merge(custom_headers || {}),
880
+ base_url: request_url
881
+ }
882
+ promise = @client.make_request_async(:post, path_template, options)
883
+
884
+ promise = promise.then do |result|
885
+ http_response = result.response
886
+ status_code = http_response.status
887
+ response_content = http_response.body
888
+ unless status_code == 200
889
+ error_model = JSON.load(response_content)
890
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
891
+ end
892
+
893
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
894
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
895
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
896
+ # Deserialize Response
897
+ if status_code == 200
898
+ begin
899
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
900
+ result_mapper = Azure::CognitiveServices::LuisAuthoring::V3_0_preview::Models::OperationStatus.mapper()
901
+ result.body = @client.deserialize(result_mapper, parsed_response)
902
+ rescue Exception => e
903
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
904
+ end
905
+ end
906
+
907
+ result
908
+ end
909
+
910
+ promise.execute
911
+ end
912
+
913
+ end
914
+ end