google-api-client 0.48.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (702) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +0 -14
  3. data/CHANGELOG.md +408 -0
  4. data/OVERVIEW.md +36 -27
  5. data/generated/google/apis/accessapproval_v1.rb +1 -1
  6. data/generated/google/apis/accessapproval_v1/service.rb +12 -9
  7. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  8. data/generated/google/apis/accesscontextmanager_v1/classes.rb +326 -0
  9. data/generated/google/apis/accesscontextmanager_v1/representations.rb +139 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +50 -6
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +18 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +3 -1
  14. data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
  15. data/generated/google/apis/admin_datatransfer_v1/classes.rb +6 -16
  16. data/generated/google/apis/admin_datatransfer_v1/service.rb +3 -3
  17. data/generated/google/apis/admin_directory_v1.rb +2 -2
  18. data/generated/google/apis/admin_directory_v1/classes.rb +453 -321
  19. data/generated/google/apis/admin_directory_v1/representations.rb +15 -15
  20. data/generated/google/apis/admin_directory_v1/service.rb +325 -185
  21. data/generated/google/apis/admin_reports_v1.rb +2 -2
  22. data/generated/google/apis/admin_reports_v1/classes.rb +48 -43
  23. data/generated/google/apis/admin_reports_v1/service.rb +198 -179
  24. data/generated/google/apis/admob_v1.rb +4 -1
  25. data/generated/google/apis/admob_v1/service.rb +4 -0
  26. data/{lib/google/apis/generator/templates/representations.rb.tmpl → generated/google/apis/admob_v1beta.rb} +18 -12
  27. data/generated/google/apis/admob_v1beta/classes.rb +1035 -0
  28. data/generated/google/apis/admob_v1beta/representations.rb +472 -0
  29. data/generated/google/apis/admob_v1beta/service.rb +279 -0
  30. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  31. data/generated/google/apis/analytics_v3/service.rb +1 -1
  32. data/generated/google/apis/analyticsadmin_v1alpha.rb +2 -2
  33. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +19 -10
  34. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +1 -0
  35. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +45 -25
  36. data/generated/google/apis/analyticsdata_v1alpha.rb +2 -2
  37. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +243 -63
  38. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +52 -14
  39. data/generated/google/apis/analyticsdata_v1alpha/service.rb +43 -34
  40. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  41. data/generated/google/apis/androidenterprise_v1/classes.rb +6 -0
  42. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  43. data/generated/google/apis/androidenterprise_v1/service.rb +4 -1
  44. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  45. data/generated/google/apis/androidmanagement_v1/classes.rb +69 -4
  46. data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
  47. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  48. data/generated/google/apis/androidpublisher_v3/service.rb +4 -4
  49. data/{lib/google/apis/core/logging.rb → generated/google/apis/apigateway_v1.rb} +14 -10
  50. data/generated/google/apis/apigateway_v1/classes.rb +1116 -0
  51. data/generated/google/apis/apigateway_v1/representations.rb +442 -0
  52. data/generated/google/apis/apigateway_v1/service.rb +1172 -0
  53. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  54. data/generated/google/apis/apigateway_v1beta/classes.rb +24 -16
  55. data/generated/google/apis/apigateway_v1beta/representations.rb +1 -0
  56. data/generated/google/apis/apigee_v1.rb +1 -1
  57. data/generated/google/apis/apigee_v1/classes.rb +457 -106
  58. data/generated/google/apis/apigee_v1/representations.rb +150 -0
  59. data/generated/google/apis/apigee_v1/service.rb +973 -155
  60. data/generated/google/apis/appengine_v1.rb +1 -1
  61. data/generated/google/apis/appengine_v1/classes.rb +7 -0
  62. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  63. data/generated/google/apis/appengine_v1beta.rb +1 -1
  64. data/generated/google/apis/appengine_v1beta/classes.rb +8 -0
  65. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  66. data/generated/google/apis/area120tables_v1alpha1.rb +4 -1
  67. data/generated/google/apis/area120tables_v1alpha1/classes.rb +58 -0
  68. data/generated/google/apis/area120tables_v1alpha1/representations.rb +31 -0
  69. data/generated/google/apis/area120tables_v1alpha1/service.rb +67 -0
  70. data/generated/google/apis/artifactregistry_v1.rb +38 -0
  71. data/generated/google/apis/{displayvideo_v1beta2 → artifactregistry_v1}/classes.rb +104 -8
  72. data/generated/google/apis/{displayvideo_v1beta → artifactregistry_v1}/representations.rb +49 -5
  73. data/generated/google/apis/artifactregistry_v1/service.rb +210 -0
  74. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  75. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +0 -127
  76. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +0 -63
  77. data/generated/google/apis/artifactregistry_v1beta1/service.rb +4 -1
  78. data/generated/google/apis/artifactregistry_v1beta2.rb +38 -0
  79. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +917 -0
  80. data/generated/google/apis/artifactregistry_v1beta2/representations.rb +381 -0
  81. data/generated/google/apis/artifactregistry_v1beta2/service.rb +947 -0
  82. data/generated/google/apis/{assuredworkloads_v1beta1.rb → assuredworkloads_v1.rb} +6 -6
  83. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/classes.rb +69 -137
  84. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/representations.rb +29 -87
  85. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/service.rb +46 -46
  86. data/generated/google/apis/bigquery_v2.rb +1 -1
  87. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  88. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  89. data/generated/google/apis/bigquery_v2/service.rb +1 -1
  90. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  91. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -0
  92. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +1 -0
  93. data/generated/google/apis/billingbudgets_v1.rb +1 -1
  94. data/generated/google/apis/billingbudgets_v1/classes.rb +6 -6
  95. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  96. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +6 -6
  97. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  98. data/generated/google/apis/binaryauthorization_v1/classes.rb +0 -7
  99. data/generated/google/apis/binaryauthorization_v1/representations.rb +0 -1
  100. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  101. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -8
  102. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +0 -1
  103. data/generated/google/apis/calendar_v3.rb +1 -1
  104. data/generated/google/apis/calendar_v3/classes.rb +2 -2
  105. data/generated/google/apis/chat_v1.rb +1 -1
  106. data/generated/google/apis/chat_v1/classes.rb +1 -2
  107. data/generated/google/apis/chat_v1/service.rb +308 -0
  108. data/generated/google/apis/cloudasset_v1.rb +1 -1
  109. data/generated/google/apis/cloudasset_v1/classes.rb +757 -3
  110. data/generated/google/apis/cloudasset_v1/representations.rb +309 -0
  111. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  112. data/generated/google/apis/cloudasset_v1beta1/classes.rb +326 -0
  113. data/generated/google/apis/cloudasset_v1beta1/representations.rb +139 -0
  114. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  115. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  116. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  117. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +326 -0
  118. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +139 -0
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +4 -4
  121. data/generated/google/apis/cloudbuild_v1/service.rb +1 -1
  122. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  123. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +3 -3
  124. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  125. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +3 -3
  126. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  127. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -0
  128. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  129. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  130. data/generated/google/apis/cloudidentity_v1/classes.rb +240 -0
  131. data/generated/google/apis/cloudidentity_v1/representations.rb +125 -0
  132. data/generated/google/apis/cloudidentity_v1/service.rb +217 -9
  133. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  134. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1 -1
  135. data/generated/google/apis/cloudidentity_v1beta1/service.rb +45 -23
  136. data/generated/google/apis/cloudiot_v1.rb +1 -1
  137. data/generated/google/apis/cloudiot_v1/classes.rb +0 -7
  138. data/generated/google/apis/cloudiot_v1/representations.rb +0 -1
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +0 -7
  141. data/generated/google/apis/cloudkms_v1/representations.rb +0 -1
  142. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  143. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +375 -7
  144. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +256 -1
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +375 -7
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +256 -1
  148. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +379 -11
  150. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +256 -1
  151. data/generated/google/apis/cloudresourcemanager_v2/service.rb +6 -6
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +379 -11
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +256 -1
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +6 -6
  156. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  157. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +19 -0
  158. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +2 -0
  159. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +12 -2
  160. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  161. data/generated/google/apis/cloudsearch_v1/classes.rb +10 -5
  162. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  163. data/generated/google/apis/cloudtasks_v2/classes.rb +0 -7
  164. data/generated/google/apis/cloudtasks_v2/representations.rb +0 -1
  165. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  166. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +59 -7
  167. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +19 -1
  168. data/generated/google/apis/cloudtasks_v2beta2/service.rb +12 -2
  169. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  170. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +102 -7
  171. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +35 -1
  172. data/generated/google/apis/cloudtasks_v2beta3/service.rb +16 -2
  173. data/generated/google/apis/composer_v1.rb +1 -1
  174. data/generated/google/apis/composer_v1/classes.rb +123 -0
  175. data/generated/google/apis/composer_v1/representations.rb +49 -0
  176. data/generated/google/apis/composer_v1/service.rb +19 -15
  177. data/generated/google/apis/composer_v1beta1.rb +1 -1
  178. data/generated/google/apis/composer_v1beta1/classes.rb +173 -0
  179. data/generated/google/apis/composer_v1beta1/representations.rb +64 -0
  180. data/generated/google/apis/composer_v1beta1/service.rb +39 -1
  181. data/generated/google/apis/compute_alpha.rb +1 -1
  182. data/generated/google/apis/compute_alpha/classes.rb +1071 -341
  183. data/generated/google/apis/compute_alpha/representations.rb +248 -19
  184. data/generated/google/apis/compute_alpha/service.rb +291 -15
  185. data/generated/google/apis/compute_beta.rb +1 -1
  186. data/generated/google/apis/compute_beta/classes.rb +926 -283
  187. data/generated/google/apis/compute_beta/representations.rb +221 -18
  188. data/generated/google/apis/compute_beta/service.rb +24 -15
  189. data/generated/google/apis/compute_v1.rb +1 -1
  190. data/generated/google/apis/compute_v1/classes.rb +461 -173
  191. data/generated/google/apis/compute_v1/representations.rb +58 -0
  192. data/generated/google/apis/compute_v1/service.rb +702 -552
  193. data/generated/google/apis/container_v1.rb +1 -1
  194. data/generated/google/apis/container_v1/classes.rb +55 -16
  195. data/generated/google/apis/container_v1/representations.rb +17 -0
  196. data/generated/google/apis/container_v1/service.rb +4 -2
  197. data/generated/google/apis/container_v1beta1.rb +1 -1
  198. data/generated/google/apis/container_v1beta1/classes.rb +60 -20
  199. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  200. data/generated/google/apis/container_v1beta1/service.rb +6 -2
  201. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  202. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +0 -7
  203. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +0 -1
  204. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  205. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +2 -8
  206. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +0 -1
  207. data/generated/google/apis/content_v2.rb +1 -1
  208. data/generated/google/apis/content_v2/classes.rb +7 -7
  209. data/generated/google/apis/content_v2/service.rb +3 -1
  210. data/generated/google/apis/content_v2_1.rb +1 -1
  211. data/generated/google/apis/content_v2_1/classes.rb +1088 -30
  212. data/generated/google/apis/content_v2_1/representations.rb +402 -0
  213. data/generated/google/apis/content_v2_1/service.rb +331 -1
  214. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  215. data/generated/google/apis/datacatalog_v1beta1/classes.rb +7 -17
  216. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -1
  217. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  218. data/generated/google/apis/dataflow_v1b3/classes.rb +17 -1
  219. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  220. data/generated/google/apis/datalabeling_v1beta1.rb +1 -1
  221. data/generated/google/apis/datamigration_v1beta1.rb +34 -0
  222. data/generated/google/apis/datamigration_v1beta1/classes.rb +1664 -0
  223. data/generated/google/apis/datamigration_v1beta1/representations.rb +677 -0
  224. data/generated/google/apis/datamigration_v1beta1/service.rb +1172 -0
  225. data/generated/google/apis/dataproc_v1.rb +1 -1
  226. data/generated/google/apis/dataproc_v1/classes.rb +109 -10
  227. data/generated/google/apis/dataproc_v1/representations.rb +36 -1
  228. data/generated/google/apis/dataproc_v1/service.rb +42 -0
  229. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  230. data/generated/google/apis/dataproc_v1beta2/classes.rb +77 -10
  231. data/generated/google/apis/dataproc_v1beta2/representations.rb +32 -1
  232. data/generated/google/apis/dataproc_v1beta2/service.rb +42 -0
  233. data/generated/google/apis/deploymentmanager_alpha.rb +6 -5
  234. data/generated/google/apis/deploymentmanager_alpha/classes.rb +276 -644
  235. data/generated/google/apis/deploymentmanager_alpha/representations.rb +10 -143
  236. data/generated/google/apis/deploymentmanager_alpha/service.rb +247 -398
  237. data/generated/google/apis/deploymentmanager_v2.rb +2 -2
  238. data/generated/google/apis/deploymentmanager_v2/service.rb +6 -26
  239. data/generated/google/apis/deploymentmanager_v2beta.rb +2 -2
  240. data/generated/google/apis/deploymentmanager_v2beta/service.rb +9 -41
  241. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  242. data/generated/google/apis/dfareporting_v3_3/classes.rb +6 -6
  243. data/generated/google/apis/dfareporting_v3_3/service.rb +12 -12
  244. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  245. data/generated/google/apis/dfareporting_v3_4/classes.rb +6 -6
  246. data/generated/google/apis/dfareporting_v3_4/service.rb +12 -12
  247. data/generated/google/apis/dialogflow_v2.rb +1 -1
  248. data/generated/google/apis/dialogflow_v2/classes.rb +4084 -692
  249. data/generated/google/apis/dialogflow_v2/representations.rb +1853 -287
  250. data/generated/google/apis/dialogflow_v2/service.rb +12 -4
  251. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  252. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4080 -693
  253. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1862 -296
  254. data/generated/google/apis/dialogflow_v2beta1/service.rb +508 -38
  255. data/generated/google/apis/{bigqueryreservation_v1alpha2.rb → dialogflow_v3.rb} +13 -12
  256. data/generated/google/apis/dialogflow_v3/classes.rb +11752 -0
  257. data/generated/google/apis/dialogflow_v3/representations.rb +5158 -0
  258. data/generated/google/apis/dialogflow_v3/service.rb +3414 -0
  259. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  260. data/generated/google/apis/dialogflow_v3beta1/classes.rb +5161 -2225
  261. data/generated/google/apis/dialogflow_v3beta1/representations.rb +1783 -350
  262. data/generated/google/apis/dialogflow_v3beta1/service.rb +591 -2
  263. data/generated/google/apis/displayvideo_v1.rb +1 -1
  264. data/generated/google/apis/displayvideo_v1/classes.rb +133 -39
  265. data/generated/google/apis/displayvideo_v1/representations.rb +45 -0
  266. data/generated/google/apis/displayvideo_v1/service.rb +104 -40
  267. data/generated/google/apis/dlp_v2.rb +1 -1
  268. data/generated/google/apis/dlp_v2/classes.rb +6 -0
  269. data/generated/google/apis/dlp_v2/representations.rb +1 -0
  270. data/generated/google/apis/dlp_v2/service.rb +297 -10
  271. data/generated/google/apis/dns_v1.rb +1 -1
  272. data/generated/google/apis/dns_v1/classes.rb +71 -0
  273. data/generated/google/apis/dns_v1/representations.rb +33 -0
  274. data/generated/google/apis/dns_v1beta2.rb +1 -1
  275. data/generated/google/apis/dns_v1beta2/classes.rb +19 -0
  276. data/generated/google/apis/dns_v1beta2/representations.rb +13 -0
  277. data/generated/google/apis/dns_v1beta2/service.rb +176 -0
  278. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  279. data/generated/google/apis/documentai_v1beta2/classes.rb +217 -186
  280. data/generated/google/apis/documentai_v1beta2/representations.rb +107 -24
  281. data/generated/google/apis/documentai_v1beta3.rb +1 -1
  282. data/generated/google/apis/documentai_v1beta3/classes.rb +238 -201
  283. data/generated/google/apis/documentai_v1beta3/representations.rb +107 -24
  284. data/generated/google/apis/documentai_v1beta3/service.rb +81 -2
  285. data/generated/google/apis/domains_v1alpha2.rb +1 -1
  286. data/generated/google/apis/domains_v1alpha2/classes.rb +0 -6
  287. data/generated/google/apis/domains_v1alpha2/representations.rb +0 -1
  288. data/generated/google/apis/domains_v1beta1.rb +1 -1
  289. data/generated/google/apis/domains_v1beta1/classes.rb +0 -6
  290. data/generated/google/apis/domains_v1beta1/representations.rb +0 -1
  291. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  292. data/generated/google/apis/drive_v2.rb +1 -1
  293. data/generated/google/apis/drive_v2/classes.rb +24 -21
  294. data/generated/google/apis/drive_v2/service.rb +26 -58
  295. data/generated/google/apis/drive_v3.rb +1 -1
  296. data/generated/google/apis/drive_v3/classes.rb +12 -8
  297. data/generated/google/apis/drive_v3/service.rb +14 -30
  298. data/generated/google/apis/eventarc_v1beta1.rb +1 -1
  299. data/generated/google/apis/eventarc_v1beta1/classes.rb +8 -9
  300. data/generated/google/apis/eventarc_v1beta1/service.rb +25 -5
  301. data/generated/google/apis/file_v1.rb +1 -1
  302. data/generated/google/apis/file_v1/classes.rb +566 -4
  303. data/generated/google/apis/file_v1/representations.rb +222 -0
  304. data/generated/google/apis/file_v1/service.rb +229 -1
  305. data/generated/google/apis/file_v1beta1.rb +1 -1
  306. data/generated/google/apis/file_v1beta1/classes.rb +346 -6
  307. data/generated/google/apis/file_v1beta1/representations.rb +149 -0
  308. data/generated/google/apis/file_v1beta1/service.rb +6 -2
  309. data/generated/google/apis/firebasedatabase_v1beta.rb +44 -0
  310. data/generated/google/apis/firebasedatabase_v1beta/classes.rb +130 -0
  311. data/generated/google/apis/{displayvideo_v1beta2 → firebasedatabase_v1beta}/representations.rb +26 -16
  312. data/generated/google/apis/firebasedatabase_v1beta/service.rb +292 -0
  313. data/generated/google/apis/games_v1.rb +1 -1
  314. data/generated/google/apis/games_v1/classes.rb +67 -14
  315. data/generated/google/apis/games_v1/representations.rb +31 -2
  316. data/generated/google/apis/games_v1/service.rb +33 -0
  317. data/generated/google/apis/gameservices_v1.rb +1 -1
  318. data/generated/google/apis/gameservices_v1/classes.rb +1 -2
  319. data/generated/google/apis/gameservices_v1/service.rb +14 -14
  320. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  321. data/generated/google/apis/gameservices_v1beta/classes.rb +1 -2
  322. data/generated/google/apis/gameservices_v1beta/service.rb +14 -14
  323. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  324. data/generated/google/apis/genomics_v2alpha1/classes.rb +36 -7
  325. data/generated/google/apis/genomics_v2alpha1/representations.rb +15 -0
  326. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  327. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +9 -0
  328. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +1 -0
  329. data/generated/google/apis/healthcare_v1.rb +1 -1
  330. data/generated/google/apis/healthcare_v1/classes.rb +18 -17
  331. data/generated/google/apis/healthcare_v1/service.rb +13 -12
  332. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  333. data/generated/google/apis/healthcare_v1beta1/classes.rb +321 -70
  334. data/generated/google/apis/healthcare_v1beta1/representations.rb +121 -18
  335. data/generated/google/apis/healthcare_v1beta1/service.rb +75 -39
  336. data/generated/google/apis/iam_v1.rb +1 -1
  337. data/generated/google/apis/iam_v1/classes.rb +109 -11
  338. data/generated/google/apis/iam_v1/representations.rb +33 -1
  339. data/generated/google/apis/iam_v1/service.rb +62 -0
  340. data/generated/google/apis/iap_v1.rb +1 -1
  341. data/generated/google/apis/iap_v1/classes.rb +0 -18
  342. data/generated/google/apis/iap_v1/representations.rb +0 -2
  343. data/generated/google/apis/iap_v1beta1.rb +1 -1
  344. data/generated/google/apis/iap_v1beta1/classes.rb +0 -7
  345. data/generated/google/apis/iap_v1beta1/representations.rb +0 -1
  346. data/generated/google/apis/jobs_v3.rb +1 -1
  347. data/generated/google/apis/jobs_v3/classes.rb +9 -807
  348. data/generated/google/apis/jobs_v3/representations.rb +0 -272
  349. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  350. data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -768
  351. data/generated/google/apis/jobs_v3p1beta1/representations.rb +0 -257
  352. data/generated/google/apis/{jobs_v2.rb → jobs_v4.rb} +6 -6
  353. data/generated/google/apis/jobs_v4/classes.rb +2699 -0
  354. data/generated/google/apis/jobs_v4/representations.rb +934 -0
  355. data/generated/google/apis/jobs_v4/service.rb +903 -0
  356. data/generated/google/apis/licensing_v1.rb +1 -1
  357. data/generated/google/apis/licensing_v1/classes.rb +26 -8
  358. data/generated/google/apis/licensing_v1/representations.rb +12 -0
  359. data/generated/google/apis/licensing_v1/service.rb +32 -29
  360. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  361. data/generated/google/apis/lifesciences_v2beta/classes.rb +25 -0
  362. data/generated/google/apis/lifesciences_v2beta/representations.rb +15 -0
  363. data/generated/google/apis/localservices_v1.rb +4 -1
  364. data/generated/google/apis/logging_v2.rb +1 -1
  365. data/generated/google/apis/logging_v2/classes.rb +115 -9
  366. data/generated/google/apis/logging_v2/representations.rb +45 -0
  367. data/generated/google/apis/logging_v2/service.rb +101 -25
  368. data/generated/google/apis/managedidentities_v1.rb +1 -1
  369. data/generated/google/apis/managedidentities_v1/classes.rb +361 -16
  370. data/generated/google/apis/managedidentities_v1/representations.rb +149 -1
  371. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  372. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +363 -17
  373. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +149 -1
  374. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  375. data/generated/google/apis/managedidentities_v1beta1/classes.rb +349 -12
  376. data/generated/google/apis/managedidentities_v1beta1/representations.rb +149 -1
  377. data/generated/google/apis/manufacturers_v1.rb +1 -1
  378. data/generated/google/apis/manufacturers_v1/classes.rb +2 -2
  379. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  380. data/generated/google/apis/memcache_v1beta2/classes.rb +345 -4
  381. data/generated/google/apis/memcache_v1beta2/representations.rb +149 -0
  382. data/generated/google/apis/metastore_v1beta.rb +35 -0
  383. data/generated/google/apis/metastore_v1beta/classes.rb +1151 -0
  384. data/generated/google/apis/metastore_v1beta/representations.rb +479 -0
  385. data/generated/google/apis/metastore_v1beta/service.rb +800 -0
  386. data/generated/google/apis/ml_v1.rb +1 -1
  387. data/generated/google/apis/ml_v1/classes.rb +85 -25
  388. data/generated/google/apis/ml_v1/representations.rb +42 -1
  389. data/generated/google/apis/ml_v1/service.rb +35 -0
  390. data/generated/google/apis/monitoring_v3.rb +1 -1
  391. data/generated/google/apis/monitoring_v3/classes.rb +15 -10
  392. data/generated/google/apis/monitoring_v3/service.rb +5 -4
  393. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  394. data/generated/google/apis/networkmanagement_v1/classes.rb +6 -0
  395. data/generated/google/apis/networkmanagement_v1/representations.rb +1 -0
  396. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  397. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +57 -0
  398. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +31 -0
  399. data/generated/google/apis/notebooks_v1.rb +34 -0
  400. data/generated/google/apis/notebooks_v1/classes.rb +1468 -0
  401. data/generated/google/apis/notebooks_v1/representations.rb +592 -0
  402. data/generated/google/apis/notebooks_v1/service.rb +1076 -0
  403. data/generated/google/apis/osconfig_v1.rb +1 -1
  404. data/generated/google/apis/osconfig_v1/classes.rb +419 -0
  405. data/generated/google/apis/osconfig_v1/representations.rb +168 -0
  406. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  407. data/generated/google/apis/osconfig_v1beta/classes.rb +419 -0
  408. data/generated/google/apis/osconfig_v1beta/representations.rb +168 -0
  409. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  410. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -3
  411. data/generated/google/apis/people_v1.rb +1 -1
  412. data/generated/google/apis/people_v1/classes.rb +6 -2
  413. data/generated/google/apis/people_v1/service.rb +9 -6
  414. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  415. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  416. data/generated/google/apis/privateca_v1beta1.rb +4 -2
  417. data/generated/google/apis/privateca_v1beta1/classes.rb +2 -1
  418. data/generated/google/apis/privateca_v1beta1/service.rb +3 -53
  419. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  420. data/generated/google/apis/pubsub_v1.rb +1 -1
  421. data/generated/google/apis/pubsub_v1/classes.rb +0 -7
  422. data/generated/google/apis/pubsub_v1/representations.rb +0 -1
  423. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  424. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -7
  425. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -1
  426. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  427. data/generated/google/apis/realtimebidding_v1/classes.rb +545 -0
  428. data/generated/google/apis/realtimebidding_v1/representations.rb +232 -0
  429. data/generated/google/apis/realtimebidding_v1/service.rb +450 -0
  430. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  431. data/generated/google/apis/recommendationengine_v1beta1/service.rb +2 -1
  432. data/generated/google/apis/recommender_v1.rb +1 -1
  433. data/generated/google/apis/recommender_v1/classes.rb +2 -2
  434. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  435. data/generated/google/apis/recommender_v1beta1/classes.rb +2 -2
  436. data/generated/google/apis/recommender_v1beta1/service.rb +317 -0
  437. data/generated/google/apis/redis_v1.rb +1 -1
  438. data/generated/google/apis/redis_v1/classes.rb +86 -0
  439. data/generated/google/apis/redis_v1/representations.rb +34 -0
  440. data/generated/google/apis/redis_v1/service.rb +34 -0
  441. data/generated/google/apis/redis_v1beta1.rb +1 -1
  442. data/generated/google/apis/redis_v1beta1/classes.rb +58 -0
  443. data/generated/google/apis/redis_v1beta1/representations.rb +20 -0
  444. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  445. data/generated/google/apis/remotebuildexecution_v1/classes.rb +5 -30
  446. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -16
  447. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  448. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -30
  449. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -16
  450. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  451. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -30
  452. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -16
  453. data/generated/google/apis/reseller_v1.rb +4 -4
  454. data/generated/google/apis/reseller_v1/service.rb +5 -5
  455. data/generated/google/apis/run_v1.rb +1 -1
  456. data/generated/google/apis/run_v1/classes.rb +2 -1
  457. data/generated/google/apis/run_v1alpha1.rb +1 -1
  458. data/generated/google/apis/run_v1alpha1/classes.rb +2 -1
  459. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  460. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +0 -6
  461. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +0 -1
  462. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  463. data/generated/google/apis/safebrowsing_v4/classes.rb +277 -277
  464. data/generated/google/apis/safebrowsing_v4/representations.rb +128 -128
  465. data/generated/google/apis/safebrowsing_v4/service.rb +44 -44
  466. data/generated/google/apis/searchconsole_v1.rb +1 -1
  467. data/generated/google/apis/searchconsole_v1/classes.rb +7 -0
  468. data/generated/google/apis/searchconsole_v1/representations.rb +1 -0
  469. data/generated/google/apis/secretmanager_v1.rb +1 -1
  470. data/generated/google/apis/secretmanager_v1/classes.rb +0 -6
  471. data/generated/google/apis/secretmanager_v1/representations.rb +0 -1
  472. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  473. data/generated/google/apis/secretmanager_v1beta1/classes.rb +0 -6
  474. data/generated/google/apis/secretmanager_v1beta1/representations.rb +0 -1
  475. data/generated/google/apis/securitycenter_v1.rb +1 -1
  476. data/generated/google/apis/securitycenter_v1/classes.rb +109 -10
  477. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  478. data/generated/google/apis/securitycenter_v1/service.rb +1464 -430
  479. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  480. data/generated/google/apis/securitycenter_v1beta1/classes.rb +75 -0
  481. data/generated/google/apis/securitycenter_v1beta1/representations.rb +33 -0
  482. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  483. data/generated/google/apis/securitycenter_v1beta2/classes.rb +75 -0
  484. data/generated/google/apis/securitycenter_v1beta2/representations.rb +33 -0
  485. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  486. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -1
  487. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  488. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +12 -11
  489. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  490. data/generated/google/apis/servicecontrol_v1/service.rb +2 -2
  491. data/generated/google/apis/servicecontrol_v2.rb +3 -3
  492. data/generated/google/apis/servicecontrol_v2/service.rb +2 -2
  493. data/generated/google/apis/servicedirectory_v1.rb +35 -0
  494. data/generated/google/apis/servicedirectory_v1/classes.rb +721 -0
  495. data/generated/google/apis/servicedirectory_v1/representations.rb +304 -0
  496. data/generated/google/apis/servicedirectory_v1/service.rb +957 -0
  497. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  498. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +26 -13
  499. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +0 -1
  500. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  501. data/generated/google/apis/servicemanagement_v1/classes.rb +12 -11
  502. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  503. data/generated/google/apis/servicenetworking_v1/classes.rb +79 -5
  504. data/generated/google/apis/servicenetworking_v1/representations.rb +33 -1
  505. data/generated/google/apis/servicenetworking_v1/service.rb +80 -0
  506. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  507. data/generated/google/apis/servicenetworking_v1beta/classes.rb +38 -5
  508. data/generated/google/apis/servicenetworking_v1beta/representations.rb +17 -1
  509. data/generated/google/apis/serviceusage_v1.rb +1 -1
  510. data/generated/google/apis/serviceusage_v1/classes.rb +12 -11
  511. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  512. data/generated/google/apis/serviceusage_v1beta1/classes.rb +12 -11
  513. data/generated/google/apis/sheets_v4.rb +1 -1
  514. data/generated/google/apis/sheets_v4/classes.rb +332 -7
  515. data/generated/google/apis/sheets_v4/representations.rb +102 -0
  516. data/generated/google/apis/slides_v1.rb +1 -1
  517. data/generated/google/apis/slides_v1/classes.rb +9 -3
  518. data/generated/google/apis/spanner_v1.rb +1 -1
  519. data/generated/google/apis/spanner_v1/classes.rb +10 -8
  520. data/generated/google/apis/spanner_v1/representations.rb +1 -1
  521. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  522. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  523. data/generated/google/apis/sqladmin_v1beta4/classes.rb +97 -14
  524. data/generated/google/apis/sqladmin_v1beta4/representations.rb +34 -0
  525. data/generated/google/apis/sqladmin_v1beta4/service.rb +5 -2
  526. data/generated/google/apis/storage_v1.rb +1 -1
  527. data/generated/google/apis/storage_v1/classes.rb +7 -0
  528. data/generated/google/apis/storage_v1/representations.rb +1 -0
  529. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  530. data/generated/google/apis/storagetransfer_v1/classes.rb +54 -16
  531. data/generated/google/apis/storagetransfer_v1/representations.rb +6 -0
  532. data/generated/google/apis/storagetransfer_v1/service.rb +3 -3
  533. data/generated/google/apis/testing_v1.rb +1 -1
  534. data/generated/google/apis/testing_v1/classes.rb +1 -1
  535. data/generated/google/apis/trafficdirector_v2.rb +2 -2
  536. data/generated/google/apis/trafficdirector_v2/service.rb +1 -1
  537. data/generated/google/apis/transcoder_v1beta1.rb +34 -0
  538. data/generated/google/apis/transcoder_v1beta1/classes.rb +1694 -0
  539. data/generated/google/apis/transcoder_v1beta1/representations.rb +757 -0
  540. data/generated/google/apis/transcoder_v1beta1/service.rb +329 -0
  541. data/generated/google/apis/translate_v3.rb +1 -1
  542. data/generated/google/apis/translate_v3/classes.rb +1 -1
  543. data/generated/google/apis/translate_v3beta1.rb +1 -1
  544. data/generated/google/apis/translate_v3beta1/classes.rb +1 -1
  545. data/generated/google/apis/vault_v1.rb +1 -1
  546. data/generated/google/apis/vault_v1/classes.rb +76 -0
  547. data/generated/google/apis/vault_v1/representations.rb +45 -0
  548. data/generated/google/apis/vectortile_v1.rb +1 -1
  549. data/generated/google/apis/vectortile_v1/classes.rb +59 -4
  550. data/generated/google/apis/vectortile_v1/representations.rb +19 -0
  551. data/generated/google/apis/videointelligence_v1.rb +1 -1
  552. data/generated/google/apis/videointelligence_v1/classes.rb +65 -0
  553. data/generated/google/apis/videointelligence_v1/representations.rb +15 -0
  554. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  555. data/generated/google/apis/videointelligence_v1beta2/classes.rb +65 -0
  556. data/generated/google/apis/videointelligence_v1beta2/representations.rb +15 -0
  557. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  558. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +65 -0
  559. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +15 -0
  560. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  561. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +65 -0
  562. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +15 -0
  563. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  564. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +65 -0
  565. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +15 -0
  566. data/generated/google/apis/webmasters_v3/classes.rb +8 -0
  567. data/generated/google/apis/webmasters_v3/representations.rb +1 -0
  568. data/generated/google/apis/workflows_v1beta.rb +1 -1
  569. data/generated/google/apis/workflows_v1beta/classes.rb +4 -4
  570. data/generated/google/apis/youtube_v3.rb +1 -1
  571. data/generated/google/apis/youtube_v3/classes.rb +20 -145
  572. data/generated/google/apis/youtube_v3/representations.rb +0 -57
  573. data/generated/google/apis/youtube_v3/service.rb +6 -49
  574. data/lib/google/apis/version.rb +1 -23
  575. metadata +71 -287
  576. data/.github/CONTRIBUTING.md +0 -31
  577. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -36
  578. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -21
  579. data/.github/ISSUE_TEMPLATE/support_request.md +0 -7
  580. data/.github/workflows/autoapprove.yml +0 -49
  581. data/.github/workflows/release-please.yml +0 -77
  582. data/.gitignore +0 -23
  583. data/.kokoro/build.bat +0 -11
  584. data/.kokoro/build.sh +0 -4
  585. data/.kokoro/continuous/common.cfg +0 -25
  586. data/.kokoro/continuous/linux.cfg +0 -25
  587. data/.kokoro/continuous/osx.cfg +0 -8
  588. data/.kokoro/continuous/post.cfg +0 -30
  589. data/.kokoro/continuous/windows.cfg +0 -29
  590. data/.kokoro/osx.sh +0 -4
  591. data/.kokoro/presubmit/common.cfg +0 -24
  592. data/.kokoro/presubmit/linux.cfg +0 -24
  593. data/.kokoro/presubmit/osx.cfg +0 -8
  594. data/.kokoro/presubmit/windows.cfg +0 -29
  595. data/.kokoro/release.cfg +0 -94
  596. data/.kokoro/trampoline.bat +0 -10
  597. data/.kokoro/trampoline.sh +0 -4
  598. data/.repo-metadata.json +0 -5
  599. data/.rspec +0 -2
  600. data/.rubocop.yml +0 -12
  601. data/.rubocop_todo.yml +0 -63
  602. data/CODE_OF_CONDUCT.md +0 -43
  603. data/Gemfile +0 -55
  604. data/MIGRATING.md +0 -215
  605. data/README.md +0 -402
  606. data/Rakefile +0 -131
  607. data/api_list_config.yaml +0 -9
  608. data/api_names.yaml +0 -1082
  609. data/bin/generate-api +0 -194
  610. data/docs/api-keys.md +0 -20
  611. data/docs/auth.md +0 -53
  612. data/docs/client-secrets.md +0 -69
  613. data/docs/getting-started.md +0 -340
  614. data/docs/installation.md +0 -0
  615. data/docs/logging.md +0 -34
  616. data/docs/media-upload.md +0 -25
  617. data/docs/oauth-installed.md +0 -191
  618. data/docs/oauth-server.md +0 -133
  619. data/docs/oauth-web.md +0 -280
  620. data/docs/oauth.md +0 -268
  621. data/docs/pagination.md +0 -29
  622. data/docs/performance.md +0 -25
  623. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -426
  624. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -195
  625. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -622
  626. data/generated/google/apis/displayvideo_v1beta.rb +0 -38
  627. data/generated/google/apis/displayvideo_v1beta/classes.rb +0 -146
  628. data/generated/google/apis/displayvideo_v1beta/service.rb +0 -161
  629. data/generated/google/apis/displayvideo_v1beta2.rb +0 -38
  630. data/generated/google/apis/displayvideo_v1beta2/service.rb +0 -130
  631. data/generated/google/apis/displayvideo_v1dev.rb +0 -38
  632. data/generated/google/apis/displayvideo_v1dev/classes.rb +0 -146
  633. data/generated/google/apis/displayvideo_v1dev/representations.rb +0 -72
  634. data/generated/google/apis/displayvideo_v1dev/service.rb +0 -130
  635. data/generated/google/apis/jobs_v2/classes.rb +0 -4012
  636. data/generated/google/apis/jobs_v2/representations.rb +0 -1396
  637. data/generated/google/apis/jobs_v2/service.rb +0 -693
  638. data/google-api-client.gemspec +0 -36
  639. data/lib/google/api_client/auth/installed_app.rb +0 -143
  640. data/lib/google/api_client/auth/key_utils.rb +0 -94
  641. data/lib/google/api_client/auth/storage.rb +0 -104
  642. data/lib/google/api_client/auth/storages/file_store.rb +0 -57
  643. data/lib/google/api_client/auth/storages/redis_store.rb +0 -59
  644. data/lib/google/api_client/client_secrets.rb +0 -176
  645. data/lib/google/apis.rb +0 -58
  646. data/lib/google/apis/core/api_command.rb +0 -209
  647. data/lib/google/apis/core/base_service.rb +0 -447
  648. data/lib/google/apis/core/batch.rb +0 -236
  649. data/lib/google/apis/core/composite_io.rb +0 -97
  650. data/lib/google/apis/core/download.rb +0 -118
  651. data/lib/google/apis/core/hashable.rb +0 -44
  652. data/lib/google/apis/core/http_command.rb +0 -447
  653. data/lib/google/apis/core/json_representation.rb +0 -153
  654. data/lib/google/apis/core/multipart.rb +0 -135
  655. data/lib/google/apis/core/upload.rb +0 -273
  656. data/lib/google/apis/errors.rb +0 -89
  657. data/lib/google/apis/generator.rb +0 -71
  658. data/lib/google/apis/generator/annotator.rb +0 -339
  659. data/lib/google/apis/generator/helpers.rb +0 -76
  660. data/lib/google/apis/generator/model.rb +0 -187
  661. data/lib/google/apis/generator/template.rb +0 -124
  662. data/lib/google/apis/generator/templates/_class.tmpl +0 -43
  663. data/lib/google/apis/generator/templates/_method.tmpl +0 -92
  664. data/lib/google/apis/generator/templates/_representation.tmpl +0 -51
  665. data/lib/google/apis/generator/templates/_representation_stub.tmpl +0 -17
  666. data/lib/google/apis/generator/templates/_representation_type.tmpl +0 -10
  667. data/lib/google/apis/generator/templates/classes.rb.tmpl +0 -29
  668. data/lib/google/apis/generator/templates/module.rb.tmpl +0 -40
  669. data/lib/google/apis/generator/templates/service.rb.tmpl +0 -61
  670. data/lib/google/apis/options.rb +0 -116
  671. data/rakelib/devsite/devsite_builder.rb +0 -126
  672. data/rakelib/devsite/link_checker.rb +0 -64
  673. data/rakelib/devsite/repo_metadata.rb +0 -56
  674. data/rakelib/metrics.rake +0 -22
  675. data/rakelib/rubocop.rake +0 -10
  676. data/rakelib/spec.rake +0 -11
  677. data/rakelib/yard.rake +0 -11
  678. data/samples/cli/.env +0 -4
  679. data/samples/cli/Gemfile +0 -7
  680. data/samples/cli/README.md +0 -51
  681. data/samples/cli/google-api-samples +0 -32
  682. data/samples/cli/lib/base_cli.rb +0 -95
  683. data/samples/cli/lib/samples/adsense.rb +0 -99
  684. data/samples/cli/lib/samples/analytics.rb +0 -80
  685. data/samples/cli/lib/samples/androidpublisher.rb +0 -47
  686. data/samples/cli/lib/samples/bigquery.rb +0 -101
  687. data/samples/cli/lib/samples/calendar.rb +0 -83
  688. data/samples/cli/lib/samples/drive.rb +0 -82
  689. data/samples/cli/lib/samples/gmail.rb +0 -157
  690. data/samples/cli/lib/samples/pubsub.rb +0 -114
  691. data/samples/cli/lib/samples/sheets.rb +0 -61
  692. data/samples/cli/lib/samples/translate.rb +0 -44
  693. data/samples/cli/lib/samples/vision.rb +0 -69
  694. data/samples/cli/lib/samples/you_tube.rb +0 -47
  695. data/samples/web/Gemfile +0 -9
  696. data/samples/web/README.md +0 -44
  697. data/samples/web/app.rb +0 -120
  698. data/samples/web/views/calendar.erb +0 -34
  699. data/samples/web/views/drive.erb +0 -33
  700. data/samples/web/views/home.erb +0 -34
  701. data/samples/web/views/layout.erb +0 -40
  702. data/synth.py +0 -40
@@ -0,0 +1,3414 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DialogflowV3
23
+ # Dialogflow API
24
+ #
25
+ # Builds conversational interfaces (for example, chatbots, and voice-powered
26
+ # apps and devices).
27
+ #
28
+ # @example
29
+ # require 'google/apis/dialogflow_v3'
30
+ #
31
+ # Dialogflow = Google::Apis::DialogflowV3 # Alias the module
32
+ # service = Dialogflow::DialogflowService.new
33
+ #
34
+ # @see https://cloud.google.com/dialogflow/
35
+ class DialogflowService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://dialogflow.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Creates an agent in the specified location.
52
+ # @param [String] parent
53
+ # Required. The location to create a agent for. Format: `projects//locations/`.
54
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] google_cloud_dialogflow_cx_v3_agent_object
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def create_project_location_agent(parent, google_cloud_dialogflow_cx_v3_agent_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v3/{+parent}/agents', options)
74
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
75
+ command.request_object = google_cloud_dialogflow_cx_v3_agent_object
76
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
77
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent
78
+ command.params['parent'] = parent unless parent.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Deletes the specified agent.
85
+ # @param [String] name
86
+ # Required. The name of the agent to delete. Format: `projects//locations//
87
+ # agents/`.
88
+ # @param [String] fields
89
+ # Selector specifying which fields to include in a partial response.
90
+ # @param [String] quota_user
91
+ # Available to use for quota purposes for server-side applications. Can be any
92
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
93
+ # @param [Google::Apis::RequestOptions] options
94
+ # Request-specific options
95
+ #
96
+ # @yield [result, err] Result & error if block supplied
97
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
98
+ # @yieldparam err [StandardError] error object if request failed
99
+ #
100
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
101
+ #
102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
105
+ def delete_project_location_agent(name, fields: nil, quota_user: nil, options: nil, &block)
106
+ command = make_simple_command(:delete, 'v3/{+name}', options)
107
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
108
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
109
+ command.params['name'] = name unless name.nil?
110
+ command.query['fields'] = fields unless fields.nil?
111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
112
+ execute_or_queue_command(command, &block)
113
+ end
114
+
115
+ # Exports the specified agent to a binary file.
116
+ # @param [String] name
117
+ # Required. The name of the agent to export. Format: `projects//locations//
118
+ # agents/`.
119
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportAgentRequest] google_cloud_dialogflow_cx_v3_export_agent_request_object
120
+ # @param [String] fields
121
+ # Selector specifying which fields to include in a partial response.
122
+ # @param [String] quota_user
123
+ # Available to use for quota purposes for server-side applications. Can be any
124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
125
+ # @param [Google::Apis::RequestOptions] options
126
+ # Request-specific options
127
+ #
128
+ # @yield [result, err] Result & error if block supplied
129
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
130
+ # @yieldparam err [StandardError] error object if request failed
131
+ #
132
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
133
+ #
134
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
135
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
136
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
137
+ def export_project_location_agent(name, google_cloud_dialogflow_cx_v3_export_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ command = make_simple_command(:post, 'v3/{+name}:export', options)
139
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportAgentRequest::Representation
140
+ command.request_object = google_cloud_dialogflow_cx_v3_export_agent_request_object
141
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
142
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
143
+ command.params['name'] = name unless name.nil?
144
+ command.query['fields'] = fields unless fields.nil?
145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ execute_or_queue_command(command, &block)
147
+ end
148
+
149
+ # Retrieves the specified agent.
150
+ # @param [String] name
151
+ # Required. The name of the agent. Format: `projects//locations//agents/`.
152
+ # @param [String] fields
153
+ # Selector specifying which fields to include in a partial response.
154
+ # @param [String] quota_user
155
+ # Available to use for quota purposes for server-side applications. Can be any
156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
157
+ # @param [Google::Apis::RequestOptions] options
158
+ # Request-specific options
159
+ #
160
+ # @yield [result, err] Result & error if block supplied
161
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object
162
+ # @yieldparam err [StandardError] error object if request failed
163
+ #
164
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent]
165
+ #
166
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
169
+ def get_project_location_agent(name, fields: nil, quota_user: nil, options: nil, &block)
170
+ command = make_simple_command(:get, 'v3/{+name}', options)
171
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
172
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent
173
+ command.params['name'] = name unless name.nil?
174
+ command.query['fields'] = fields unless fields.nil?
175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
176
+ execute_or_queue_command(command, &block)
177
+ end
178
+
179
+ # Returns the list of all agents in the specified location.
180
+ # @param [String] parent
181
+ # Required. The location to list all agents for. Format: `projects//locations/`.
182
+ # @param [Fixnum] page_size
183
+ # The maximum number of items to return in a single page. By default 100 and at
184
+ # most 1000.
185
+ # @param [String] page_token
186
+ # The next_page_token value returned from a previous list request.
187
+ # @param [String] fields
188
+ # Selector specifying which fields to include in a partial response.
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [Google::Apis::RequestOptions] options
193
+ # Request-specific options
194
+ #
195
+ # @yield [result, err] Result & error if block supplied
196
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse]
200
+ #
201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204
+ def list_project_location_agents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ command = make_simple_command(:get, 'v3/{+parent}/agents', options)
206
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse::Representation
207
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse
208
+ command.params['parent'] = parent unless parent.nil?
209
+ command.query['pageSize'] = page_size unless page_size.nil?
210
+ command.query['pageToken'] = page_token unless page_token.nil?
211
+ command.query['fields'] = fields unless fields.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ execute_or_queue_command(command, &block)
214
+ end
215
+
216
+ # Updates the specified agent.
217
+ # @param [String] name
218
+ # The unique identifier of the agent. Required for the Agents.UpdateAgent method.
219
+ # Agents.CreateAgent populates the name automatically. Format: `projects//
220
+ # locations//agents/`.
221
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] google_cloud_dialogflow_cx_v3_agent_object
222
+ # @param [String] update_mask
223
+ # The mask to control which fields get updated. If the mask is not present, all
224
+ # fields will be updated.
225
+ # @param [String] fields
226
+ # Selector specifying which fields to include in a partial response.
227
+ # @param [String] quota_user
228
+ # Available to use for quota purposes for server-side applications. Can be any
229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
230
+ # @param [Google::Apis::RequestOptions] options
231
+ # Request-specific options
232
+ #
233
+ # @yield [result, err] Result & error if block supplied
234
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent]
238
+ #
239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
242
+ def patch_project_location_agent(name, google_cloud_dialogflow_cx_v3_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
243
+ command = make_simple_command(:patch, 'v3/{+name}', options)
244
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
245
+ command.request_object = google_cloud_dialogflow_cx_v3_agent_object
246
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
247
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent
248
+ command.params['name'] = name unless name.nil?
249
+ command.query['updateMask'] = update_mask unless update_mask.nil?
250
+ command.query['fields'] = fields unless fields.nil?
251
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
252
+ execute_or_queue_command(command, &block)
253
+ end
254
+
255
+ # Restores the specified agent from a binary file. Replaces the current agent
256
+ # with a new one. Note that all existing resources in agent (e.g. intents,
257
+ # entity types, flows) will be removed.
258
+ # @param [String] name
259
+ # Required. The name of the agent to restore into. Format: `projects//locations//
260
+ # agents/`.
261
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreAgentRequest] google_cloud_dialogflow_cx_v3_restore_agent_request_object
262
+ # @param [String] fields
263
+ # Selector specifying which fields to include in a partial response.
264
+ # @param [String] quota_user
265
+ # Available to use for quota purposes for server-side applications. Can be any
266
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
267
+ # @param [Google::Apis::RequestOptions] options
268
+ # Request-specific options
269
+ #
270
+ # @yield [result, err] Result & error if block supplied
271
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
272
+ # @yieldparam err [StandardError] error object if request failed
273
+ #
274
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
275
+ #
276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
279
+ def restore_project_location_agent(name, google_cloud_dialogflow_cx_v3_restore_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
280
+ command = make_simple_command(:post, 'v3/{+name}:restore', options)
281
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreAgentRequest::Representation
282
+ command.request_object = google_cloud_dialogflow_cx_v3_restore_agent_request_object
283
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
284
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
285
+ command.params['name'] = name unless name.nil?
286
+ command.query['fields'] = fields unless fields.nil?
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ execute_or_queue_command(command, &block)
289
+ end
290
+
291
+ # Creates an entity type in the specified agent.
292
+ # @param [String] parent
293
+ # Required. The agent to create a entity type for. Format: `projects//locations//
294
+ # agents/`.
295
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] google_cloud_dialogflow_cx_v3_entity_type_object
296
+ # @param [String] language_code
297
+ # The language of the following fields in `entity_type`: * `EntityType.entities.
298
+ # value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
299
+ # If not specified, the agent's default language is used. [Many languages](https:
300
+ # //cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
301
+ # languages must be enabled in the agent before they can be used.
302
+ # @param [String] fields
303
+ # Selector specifying which fields to include in a partial response.
304
+ # @param [String] quota_user
305
+ # Available to use for quota purposes for server-side applications. Can be any
306
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
307
+ # @param [Google::Apis::RequestOptions] options
308
+ # Request-specific options
309
+ #
310
+ # @yield [result, err] Result & error if block supplied
311
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object
312
+ # @yieldparam err [StandardError] error object if request failed
313
+ #
314
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType]
315
+ #
316
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
317
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
318
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
319
+ def create_project_location_agent_entity_type(parent, google_cloud_dialogflow_cx_v3_entity_type_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
320
+ command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options)
321
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
322
+ command.request_object = google_cloud_dialogflow_cx_v3_entity_type_object
323
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
324
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType
325
+ command.params['parent'] = parent unless parent.nil?
326
+ command.query['languageCode'] = language_code unless language_code.nil?
327
+ command.query['fields'] = fields unless fields.nil?
328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
329
+ execute_or_queue_command(command, &block)
330
+ end
331
+
332
+ # Deletes the specified entity type.
333
+ # @param [String] name
334
+ # Required. The name of the entity type to delete. Format: `projects//locations//
335
+ # agents//entityTypes/`.
336
+ # @param [Boolean] force
337
+ # This field has no effect for entity type not being used. For entity types that
338
+ # are used by intents or pages: * If `force` is set to false, an error will be
339
+ # returned with message indicating the referencing resources. * If `force` is
340
+ # set to true, Dialogflow will remove the entity type, as well as any references
341
+ # to the entity type (i.e. Page parameter of the entity type will be changed to '
342
+ # @sys.any' and intent parameter of the entity type will be removed).
343
+ # @param [String] fields
344
+ # Selector specifying which fields to include in a partial response.
345
+ # @param [String] quota_user
346
+ # Available to use for quota purposes for server-side applications. Can be any
347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
348
+ # @param [Google::Apis::RequestOptions] options
349
+ # Request-specific options
350
+ #
351
+ # @yield [result, err] Result & error if block supplied
352
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
353
+ # @yieldparam err [StandardError] error object if request failed
354
+ #
355
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
356
+ #
357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
360
+ def delete_project_location_agent_entity_type(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
361
+ command = make_simple_command(:delete, 'v3/{+name}', options)
362
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
363
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
364
+ command.params['name'] = name unless name.nil?
365
+ command.query['force'] = force unless force.nil?
366
+ command.query['fields'] = fields unless fields.nil?
367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
368
+ execute_or_queue_command(command, &block)
369
+ end
370
+
371
+ # Retrieves the specified entity type.
372
+ # @param [String] name
373
+ # Required. The name of the entity type. Format: `projects//locations//agents//
374
+ # entityTypes/`.
375
+ # @param [String] language_code
376
+ # The language to retrieve the entity type for. The following fields are
377
+ # language dependent: * `EntityType.entities.value` * `EntityType.entities.
378
+ # synonyms` * `EntityType.excluded_phrases.value` If not specified, the agent's
379
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
380
+ # docs/reference/language) are supported. Note: languages must be enabled in the
381
+ # agent before they can be used.
382
+ # @param [String] fields
383
+ # Selector specifying which fields to include in a partial response.
384
+ # @param [String] quota_user
385
+ # Available to use for quota purposes for server-side applications. Can be any
386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
387
+ # @param [Google::Apis::RequestOptions] options
388
+ # Request-specific options
389
+ #
390
+ # @yield [result, err] Result & error if block supplied
391
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object
392
+ # @yieldparam err [StandardError] error object if request failed
393
+ #
394
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType]
395
+ #
396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
399
+ def get_project_location_agent_entity_type(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
400
+ command = make_simple_command(:get, 'v3/{+name}', options)
401
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
402
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType
403
+ command.params['name'] = name unless name.nil?
404
+ command.query['languageCode'] = language_code unless language_code.nil?
405
+ command.query['fields'] = fields unless fields.nil?
406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
407
+ execute_or_queue_command(command, &block)
408
+ end
409
+
410
+ # Returns the list of all entity types in the specified agent.
411
+ # @param [String] parent
412
+ # Required. The agent to list all entity types for. Format: `projects//locations/
413
+ # /agents/`.
414
+ # @param [String] language_code
415
+ # The language to list entity types for. The following fields are language
416
+ # dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `
417
+ # EntityType.excluded_phrases.value` If not specified, the agent's default
418
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
419
+ # reference/language) are supported. Note: languages must be enabled in the
420
+ # agent before they can be used.
421
+ # @param [Fixnum] page_size
422
+ # The maximum number of items to return in a single page. By default 100 and at
423
+ # most 1000.
424
+ # @param [String] page_token
425
+ # The next_page_token value returned from a previous list request.
426
+ # @param [String] fields
427
+ # Selector specifying which fields to include in a partial response.
428
+ # @param [String] quota_user
429
+ # Available to use for quota purposes for server-side applications. Can be any
430
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
431
+ # @param [Google::Apis::RequestOptions] options
432
+ # Request-specific options
433
+ #
434
+ # @yield [result, err] Result & error if block supplied
435
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse] parsed result object
436
+ # @yieldparam err [StandardError] error object if request failed
437
+ #
438
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse]
439
+ #
440
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
441
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
442
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
443
+ def list_project_location_agent_entity_types(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
444
+ command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options)
445
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse::Representation
446
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse
447
+ command.params['parent'] = parent unless parent.nil?
448
+ command.query['languageCode'] = language_code unless language_code.nil?
449
+ command.query['pageSize'] = page_size unless page_size.nil?
450
+ command.query['pageToken'] = page_token unless page_token.nil?
451
+ command.query['fields'] = fields unless fields.nil?
452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
453
+ execute_or_queue_command(command, &block)
454
+ end
455
+
456
+ # Updates the specified entity type.
457
+ # @param [String] name
458
+ # The unique identifier of the entity type. Required for EntityTypes.
459
+ # UpdateEntityType. Format: `projects//locations//agents//entityTypes/`.
460
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] google_cloud_dialogflow_cx_v3_entity_type_object
461
+ # @param [String] language_code
462
+ # The language of the following fields in `entity_type`: * `EntityType.entities.
463
+ # value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
464
+ # If not specified, the agent's default language is used. [Many languages](https:
465
+ # //cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
466
+ # languages must be enabled in the agent before they can be used.
467
+ # @param [String] update_mask
468
+ # The mask to control which fields get updated.
469
+ # @param [String] fields
470
+ # Selector specifying which fields to include in a partial response.
471
+ # @param [String] quota_user
472
+ # Available to use for quota purposes for server-side applications. Can be any
473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
474
+ # @param [Google::Apis::RequestOptions] options
475
+ # Request-specific options
476
+ #
477
+ # @yield [result, err] Result & error if block supplied
478
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object
479
+ # @yieldparam err [StandardError] error object if request failed
480
+ #
481
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType]
482
+ #
483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
486
+ def patch_project_location_agent_entity_type(name, google_cloud_dialogflow_cx_v3_entity_type_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
487
+ command = make_simple_command(:patch, 'v3/{+name}', options)
488
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
489
+ command.request_object = google_cloud_dialogflow_cx_v3_entity_type_object
490
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
491
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType
492
+ command.params['name'] = name unless name.nil?
493
+ command.query['languageCode'] = language_code unless language_code.nil?
494
+ command.query['updateMask'] = update_mask unless update_mask.nil?
495
+ command.query['fields'] = fields unless fields.nil?
496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
497
+ execute_or_queue_command(command, &block)
498
+ end
499
+
500
+ # Creates an Environment in the specified Agent.
501
+ # @param [String] parent
502
+ # Required. The Agent to create an Environment for. Format: `projects//locations/
503
+ # /agents/`.
504
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] google_cloud_dialogflow_cx_v3_environment_object
505
+ # @param [String] fields
506
+ # Selector specifying which fields to include in a partial response.
507
+ # @param [String] quota_user
508
+ # Available to use for quota purposes for server-side applications. Can be any
509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
510
+ # @param [Google::Apis::RequestOptions] options
511
+ # Request-specific options
512
+ #
513
+ # @yield [result, err] Result & error if block supplied
514
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
515
+ # @yieldparam err [StandardError] error object if request failed
516
+ #
517
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
518
+ #
519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
522
+ def create_project_location_agent_environment(parent, google_cloud_dialogflow_cx_v3_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
523
+ command = make_simple_command(:post, 'v3/{+parent}/environments', options)
524
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation
525
+ command.request_object = google_cloud_dialogflow_cx_v3_environment_object
526
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
527
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
528
+ command.params['parent'] = parent unless parent.nil?
529
+ command.query['fields'] = fields unless fields.nil?
530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
531
+ execute_or_queue_command(command, &block)
532
+ end
533
+
534
+ # Deletes the specified Environment.
535
+ # @param [String] name
536
+ # Required. The name of the Environment to delete. Format: `projects//locations//
537
+ # agents//environments/`.
538
+ # @param [String] fields
539
+ # Selector specifying which fields to include in a partial response.
540
+ # @param [String] quota_user
541
+ # Available to use for quota purposes for server-side applications. Can be any
542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
543
+ # @param [Google::Apis::RequestOptions] options
544
+ # Request-specific options
545
+ #
546
+ # @yield [result, err] Result & error if block supplied
547
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
548
+ # @yieldparam err [StandardError] error object if request failed
549
+ #
550
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
551
+ #
552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
555
+ def delete_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
556
+ command = make_simple_command(:delete, 'v3/{+name}', options)
557
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
558
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
559
+ command.params['name'] = name unless name.nil?
560
+ command.query['fields'] = fields unless fields.nil?
561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
562
+ execute_or_queue_command(command, &block)
563
+ end
564
+
565
+ # Retrieves the specified Environment.
566
+ # @param [String] name
567
+ # Required. The name of the Environment. Format: `projects//locations//agents//
568
+ # environments/`.
569
+ # @param [String] fields
570
+ # Selector specifying which fields to include in a partial response.
571
+ # @param [String] quota_user
572
+ # Available to use for quota purposes for server-side applications. Can be any
573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
574
+ # @param [Google::Apis::RequestOptions] options
575
+ # Request-specific options
576
+ #
577
+ # @yield [result, err] Result & error if block supplied
578
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] parsed result object
579
+ # @yieldparam err [StandardError] error object if request failed
580
+ #
581
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment]
582
+ #
583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
586
+ def get_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
587
+ command = make_simple_command(:get, 'v3/{+name}', options)
588
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation
589
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment
590
+ command.params['name'] = name unless name.nil?
591
+ command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
593
+ execute_or_queue_command(command, &block)
594
+ end
595
+
596
+ # Returns the list of all environments in the specified Agent.
597
+ # @param [String] parent
598
+ # Required. The Agent to list all environments for. Format: `projects//locations/
599
+ # /agents/`.
600
+ # @param [Fixnum] page_size
601
+ # The maximum number of items to return in a single page. By default 20 and at
602
+ # most 100.
603
+ # @param [String] page_token
604
+ # The next_page_token value returned from a previous list request.
605
+ # @param [String] fields
606
+ # Selector specifying which fields to include in a partial response.
607
+ # @param [String] quota_user
608
+ # Available to use for quota purposes for server-side applications. Can be any
609
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
610
+ # @param [Google::Apis::RequestOptions] options
611
+ # Request-specific options
612
+ #
613
+ # @yield [result, err] Result & error if block supplied
614
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse] parsed result object
615
+ # @yieldparam err [StandardError] error object if request failed
616
+ #
617
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse]
618
+ #
619
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
620
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
621
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
622
+ def list_project_location_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
623
+ command = make_simple_command(:get, 'v3/{+parent}/environments', options)
624
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse::Representation
625
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse
626
+ command.params['parent'] = parent unless parent.nil?
627
+ command.query['pageSize'] = page_size unless page_size.nil?
628
+ command.query['pageToken'] = page_token unless page_token.nil?
629
+ command.query['fields'] = fields unless fields.nil?
630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
631
+ execute_or_queue_command(command, &block)
632
+ end
633
+
634
+ # Looks up the history of the specified Environment.
635
+ # @param [String] name
636
+ # Required. Resource name of the environment to look up the history for. Format:
637
+ # `projects//locations//agents//environments/`.
638
+ # @param [Fixnum] page_size
639
+ # The maximum number of items to return in a single page. By default 100 and at
640
+ # most 1000.
641
+ # @param [String] page_token
642
+ # The next_page_token value returned from a previous list request.
643
+ # @param [String] fields
644
+ # Selector specifying which fields to include in a partial response.
645
+ # @param [String] quota_user
646
+ # Available to use for quota purposes for server-side applications. Can be any
647
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
648
+ # @param [Google::Apis::RequestOptions] options
649
+ # Request-specific options
650
+ #
651
+ # @yield [result, err] Result & error if block supplied
652
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse] parsed result object
653
+ # @yieldparam err [StandardError] error object if request failed
654
+ #
655
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse]
656
+ #
657
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
658
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
659
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
660
+ def lookup_project_location_agent_environment_environment_history(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
661
+ command = make_simple_command(:get, 'v3/{+name}:lookupEnvironmentHistory', options)
662
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse::Representation
663
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse
664
+ command.params['name'] = name unless name.nil?
665
+ command.query['pageSize'] = page_size unless page_size.nil?
666
+ command.query['pageToken'] = page_token unless page_token.nil?
667
+ command.query['fields'] = fields unless fields.nil?
668
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
669
+ execute_or_queue_command(command, &block)
670
+ end
671
+
672
+ # Updates the specified Environment.
673
+ # @param [String] name
674
+ # The name of the environment. Format: `projects//locations//agents//
675
+ # environments/`.
676
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] google_cloud_dialogflow_cx_v3_environment_object
677
+ # @param [String] update_mask
678
+ # Required. The mask to control which fields get updated.
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # Available to use for quota purposes for server-side applications. Can be any
683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
684
+ # @param [Google::Apis::RequestOptions] options
685
+ # Request-specific options
686
+ #
687
+ # @yield [result, err] Result & error if block supplied
688
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
692
+ #
693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
696
+ def patch_project_location_agent_environment(name, google_cloud_dialogflow_cx_v3_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:patch, 'v3/{+name}', options)
698
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation
699
+ command.request_object = google_cloud_dialogflow_cx_v3_environment_object
700
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
701
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
702
+ command.params['name'] = name unless name.nil?
703
+ command.query['updateMask'] = update_mask unless update_mask.nil?
704
+ command.query['fields'] = fields unless fields.nil?
705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
706
+ execute_or_queue_command(command, &block)
707
+ end
708
+
709
+ # Processes a natural language query and returns structured, actionable data as
710
+ # a result. This method is not idempotent, because it may cause session entity
711
+ # types to be updated, which in turn might affect results of future queries.
712
+ # Note: Always use agent versions for production traffic. See [Versions and
713
+ # environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
714
+ # @param [String] session
715
+ # Required. The name of the session this query is sent to. Format: `projects//
716
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
717
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
718
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
719
+ # It can be a random number or some type of session identifiers (preferably
720
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
721
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
722
+ # cx/docs/concept/session). Note: Always use agent versions for production
723
+ # traffic. See [Versions and environments](https://cloud.google.com/dialogflow/
724
+ # cx/docs/concept/version).
725
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest] google_cloud_dialogflow_cx_v3_detect_intent_request_object
726
+ # @param [String] fields
727
+ # Selector specifying which fields to include in a partial response.
728
+ # @param [String] quota_user
729
+ # Available to use for quota purposes for server-side applications. Can be any
730
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
731
+ # @param [Google::Apis::RequestOptions] options
732
+ # Request-specific options
733
+ #
734
+ # @yield [result, err] Result & error if block supplied
735
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse] parsed result object
736
+ # @yieldparam err [StandardError] error object if request failed
737
+ #
738
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse]
739
+ #
740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
743
+ def detect_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
744
+ command = make_simple_command(:post, 'v3/{+session}:detectIntent', options)
745
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest::Representation
746
+ command.request_object = google_cloud_dialogflow_cx_v3_detect_intent_request_object
747
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse::Representation
748
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse
749
+ command.params['session'] = session unless session.nil?
750
+ command.query['fields'] = fields unless fields.nil?
751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
755
+ # Fulfills a matched intent returned by MatchIntent. Must be called after
756
+ # MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is
757
+ # undefined.
758
+ # @param [String] session
759
+ # Required. The name of the session this query is sent to. Format: `projects//
760
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
761
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
762
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
763
+ # It can be a random number or some type of session identifiers (preferably
764
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
765
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
766
+ # cx/docs/concept/session).
767
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest] google_cloud_dialogflow_cx_v3_fulfill_intent_request_object
768
+ # @param [String] fields
769
+ # Selector specifying which fields to include in a partial response.
770
+ # @param [String] quota_user
771
+ # Available to use for quota purposes for server-side applications. Can be any
772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
773
+ # @param [Google::Apis::RequestOptions] options
774
+ # Request-specific options
775
+ #
776
+ # @yield [result, err] Result & error if block supplied
777
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse] parsed result object
778
+ # @yieldparam err [StandardError] error object if request failed
779
+ #
780
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse]
781
+ #
782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
785
+ def fulfill_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_fulfill_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ command = make_simple_command(:post, 'v3/{+session}:fulfillIntent', options)
787
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest::Representation
788
+ command.request_object = google_cloud_dialogflow_cx_v3_fulfill_intent_request_object
789
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse::Representation
790
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse
791
+ command.params['session'] = session unless session.nil?
792
+ command.query['fields'] = fields unless fields.nil?
793
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
794
+ execute_or_queue_command(command, &block)
795
+ end
796
+
797
+ # Returns preliminary intent match results, doesn't change the session status.
798
+ # @param [String] session
799
+ # Required. The name of the session this query is sent to. Format: `projects//
800
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
801
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
802
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
803
+ # It can be a random number or some type of session identifiers (preferably
804
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
805
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
806
+ # cx/docs/concept/session).
807
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest] google_cloud_dialogflow_cx_v3_match_intent_request_object
808
+ # @param [String] fields
809
+ # Selector specifying which fields to include in a partial response.
810
+ # @param [String] quota_user
811
+ # Available to use for quota purposes for server-side applications. Can be any
812
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
813
+ # @param [Google::Apis::RequestOptions] options
814
+ # Request-specific options
815
+ #
816
+ # @yield [result, err] Result & error if block supplied
817
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse] parsed result object
818
+ # @yieldparam err [StandardError] error object if request failed
819
+ #
820
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse]
821
+ #
822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
825
+ def match_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_match_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
826
+ command = make_simple_command(:post, 'v3/{+session}:matchIntent', options)
827
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest::Representation
828
+ command.request_object = google_cloud_dialogflow_cx_v3_match_intent_request_object
829
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse::Representation
830
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse
831
+ command.params['session'] = session unless session.nil?
832
+ command.query['fields'] = fields unless fields.nil?
833
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
834
+ execute_or_queue_command(command, &block)
835
+ end
836
+
837
+ # Creates a session entity type. If the specified session entity type already
838
+ # exists, overrides the session entity type.
839
+ # @param [String] parent
840
+ # Required. The session to create a session entity type for. Format: `projects//
841
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
842
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
843
+ # environment.
844
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object
845
+ # @param [String] fields
846
+ # Selector specifying which fields to include in a partial response.
847
+ # @param [String] quota_user
848
+ # Available to use for quota purposes for server-side applications. Can be any
849
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
850
+ # @param [Google::Apis::RequestOptions] options
851
+ # Request-specific options
852
+ #
853
+ # @yield [result, err] Result & error if block supplied
854
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
855
+ # @yieldparam err [StandardError] error object if request failed
856
+ #
857
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
858
+ #
859
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
860
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
861
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
862
+ def create_project_location_agent_environment_session_entity_type(parent, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
863
+ command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options)
864
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
865
+ command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object
866
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
867
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
868
+ command.params['parent'] = parent unless parent.nil?
869
+ command.query['fields'] = fields unless fields.nil?
870
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
871
+ execute_or_queue_command(command, &block)
872
+ end
873
+
874
+ # Deletes the specified session entity type.
875
+ # @param [String] name
876
+ # Required. The name of the session entity type to delete. Format: `projects//
877
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
878
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
879
+ # we assume default 'draft' environment.
880
+ # @param [String] fields
881
+ # Selector specifying which fields to include in a partial response.
882
+ # @param [String] quota_user
883
+ # Available to use for quota purposes for server-side applications. Can be any
884
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
885
+ # @param [Google::Apis::RequestOptions] options
886
+ # Request-specific options
887
+ #
888
+ # @yield [result, err] Result & error if block supplied
889
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
890
+ # @yieldparam err [StandardError] error object if request failed
891
+ #
892
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
893
+ #
894
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
895
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
896
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
897
+ def delete_project_location_agent_environment_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
898
+ command = make_simple_command(:delete, 'v3/{+name}', options)
899
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
900
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
901
+ command.params['name'] = name unless name.nil?
902
+ command.query['fields'] = fields unless fields.nil?
903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
904
+ execute_or_queue_command(command, &block)
905
+ end
906
+
907
+ # Retrieves the specified session entity type.
908
+ # @param [String] name
909
+ # Required. The name of the session entity type. Format: `projects//locations//
910
+ # agents//sessions//entityTypes/` or `projects//locations//agents//environments//
911
+ # sessions//entityTypes/`. If `Environment ID` is not specified, we assume
912
+ # default 'draft' environment.
913
+ # @param [String] fields
914
+ # Selector specifying which fields to include in a partial response.
915
+ # @param [String] quota_user
916
+ # Available to use for quota purposes for server-side applications. Can be any
917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
918
+ # @param [Google::Apis::RequestOptions] options
919
+ # Request-specific options
920
+ #
921
+ # @yield [result, err] Result & error if block supplied
922
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
923
+ # @yieldparam err [StandardError] error object if request failed
924
+ #
925
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
926
+ #
927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
930
+ def get_project_location_agent_environment_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
931
+ command = make_simple_command(:get, 'v3/{+name}', options)
932
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
933
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
934
+ command.params['name'] = name unless name.nil?
935
+ command.query['fields'] = fields unless fields.nil?
936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
937
+ execute_or_queue_command(command, &block)
938
+ end
939
+
940
+ # Returns the list of all session entity types in the specified session.
941
+ # @param [String] parent
942
+ # Required. The session to list all session entity types from. Format: `projects/
943
+ # /locations//agents//sessions/` or `projects//locations//agents//environments//
944
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
945
+ # environment.
946
+ # @param [Fixnum] page_size
947
+ # The maximum number of items to return in a single page. By default 100 and at
948
+ # most 1000.
949
+ # @param [String] page_token
950
+ # The next_page_token value returned from a previous list request.
951
+ # @param [String] fields
952
+ # Selector specifying which fields to include in a partial response.
953
+ # @param [String] quota_user
954
+ # Available to use for quota purposes for server-side applications. Can be any
955
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
956
+ # @param [Google::Apis::RequestOptions] options
957
+ # Request-specific options
958
+ #
959
+ # @yield [result, err] Result & error if block supplied
960
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse] parsed result object
961
+ # @yieldparam err [StandardError] error object if request failed
962
+ #
963
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse]
964
+ #
965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
968
+ def list_project_location_agent_environment_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
969
+ command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options)
970
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse::Representation
971
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse
972
+ command.params['parent'] = parent unless parent.nil?
973
+ command.query['pageSize'] = page_size unless page_size.nil?
974
+ command.query['pageToken'] = page_token unless page_token.nil?
975
+ command.query['fields'] = fields unless fields.nil?
976
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
977
+ execute_or_queue_command(command, &block)
978
+ end
979
+
980
+ # Updates the specified session entity type.
981
+ # @param [String] name
982
+ # Required. The unique identifier of the session entity type. Format: `projects//
983
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
984
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
985
+ # we assume default 'draft' environment.
986
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object
987
+ # @param [String] update_mask
988
+ # The mask to control which fields get updated.
989
+ # @param [String] fields
990
+ # Selector specifying which fields to include in a partial response.
991
+ # @param [String] quota_user
992
+ # Available to use for quota purposes for server-side applications. Can be any
993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
994
+ # @param [Google::Apis::RequestOptions] options
995
+ # Request-specific options
996
+ #
997
+ # @yield [result, err] Result & error if block supplied
998
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
999
+ # @yieldparam err [StandardError] error object if request failed
1000
+ #
1001
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
1002
+ #
1003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
+ def patch_project_location_agent_environment_session_entity_type(name, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1007
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1008
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
1009
+ command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object
1010
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
1011
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
1012
+ command.params['name'] = name unless name.nil?
1013
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1014
+ command.query['fields'] = fields unless fields.nil?
1015
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1016
+ execute_or_queue_command(command, &block)
1017
+ end
1018
+
1019
+ # Creates a flow in the specified agent.
1020
+ # @param [String] parent
1021
+ # Required. The agent to create a flow for. Format: `projects//locations//agents/
1022
+ # `.
1023
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] google_cloud_dialogflow_cx_v3_flow_object
1024
+ # @param [String] language_code
1025
+ # The language of the following fields in `flow`: * `Flow.event_handlers.
1026
+ # trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.
1027
+ # messages` If not specified, the agent's default language is used. [Many
1028
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1029
+ # supported. Note: languages must be enabled in the agent before they can be
1030
+ # used.
1031
+ # @param [String] fields
1032
+ # Selector specifying which fields to include in a partial response.
1033
+ # @param [String] quota_user
1034
+ # Available to use for quota purposes for server-side applications. Can be any
1035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1036
+ # @param [Google::Apis::RequestOptions] options
1037
+ # Request-specific options
1038
+ #
1039
+ # @yield [result, err] Result & error if block supplied
1040
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object
1041
+ # @yieldparam err [StandardError] error object if request failed
1042
+ #
1043
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow]
1044
+ #
1045
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1046
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1047
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1048
+ def create_project_location_agent_flow(parent, google_cloud_dialogflow_cx_v3_flow_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1049
+ command = make_simple_command(:post, 'v3/{+parent}/flows', options)
1050
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1051
+ command.request_object = google_cloud_dialogflow_cx_v3_flow_object
1052
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1053
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow
1054
+ command.params['parent'] = parent unless parent.nil?
1055
+ command.query['languageCode'] = language_code unless language_code.nil?
1056
+ command.query['fields'] = fields unless fields.nil?
1057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1058
+ execute_or_queue_command(command, &block)
1059
+ end
1060
+
1061
+ # Deletes a specified flow.
1062
+ # @param [String] name
1063
+ # Required. The name of the flow to delete. Format: `projects//locations//agents/
1064
+ # /flows/`.
1065
+ # @param [Boolean] force
1066
+ # This field has no effect for flows with no incoming transitions. For flows
1067
+ # with incoming transitions: * If `force` is set to false, an error will be
1068
+ # returned with message indicating the incoming transitions. * If `force` is set
1069
+ # to true, Dialogflow will remove the flow, as well as any transitions to the
1070
+ # flow (i.e. Target flow in event handlers or Target flow in transition routes
1071
+ # that point to this flow will be cleared).
1072
+ # @param [String] fields
1073
+ # Selector specifying which fields to include in a partial response.
1074
+ # @param [String] quota_user
1075
+ # Available to use for quota purposes for server-side applications. Can be any
1076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1077
+ # @param [Google::Apis::RequestOptions] options
1078
+ # Request-specific options
1079
+ #
1080
+ # @yield [result, err] Result & error if block supplied
1081
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1082
+ # @yieldparam err [StandardError] error object if request failed
1083
+ #
1084
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1085
+ #
1086
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1087
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1088
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1089
+ def delete_project_location_agent_flow(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1090
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1091
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1092
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1093
+ command.params['name'] = name unless name.nil?
1094
+ command.query['force'] = force unless force.nil?
1095
+ command.query['fields'] = fields unless fields.nil?
1096
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1097
+ execute_or_queue_command(command, &block)
1098
+ end
1099
+
1100
+ # Retrieves the specified flow.
1101
+ # @param [String] name
1102
+ # Required. The name of the flow to get. Format: `projects//locations//agents//
1103
+ # flows/`.
1104
+ # @param [String] language_code
1105
+ # The language to retrieve the flow for. The following fields are language
1106
+ # dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.
1107
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1108
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1109
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1110
+ # agent before they can be used.
1111
+ # @param [String] fields
1112
+ # Selector specifying which fields to include in a partial response.
1113
+ # @param [String] quota_user
1114
+ # Available to use for quota purposes for server-side applications. Can be any
1115
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1116
+ # @param [Google::Apis::RequestOptions] options
1117
+ # Request-specific options
1118
+ #
1119
+ # @yield [result, err] Result & error if block supplied
1120
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object
1121
+ # @yieldparam err [StandardError] error object if request failed
1122
+ #
1123
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow]
1124
+ #
1125
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1126
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1127
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1128
+ def get_project_location_agent_flow(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1129
+ command = make_simple_command(:get, 'v3/{+name}', options)
1130
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1131
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow
1132
+ command.params['name'] = name unless name.nil?
1133
+ command.query['languageCode'] = language_code unless language_code.nil?
1134
+ command.query['fields'] = fields unless fields.nil?
1135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1136
+ execute_or_queue_command(command, &block)
1137
+ end
1138
+
1139
+ # Returns the list of all flows in the specified agent.
1140
+ # @param [String] parent
1141
+ # Required. The agent containing the flows. Format: `projects//locations//agents/
1142
+ # `.
1143
+ # @param [String] language_code
1144
+ # The language to list flows for. The following fields are language dependent: *
1145
+ # `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.transition_routes.
1146
+ # trigger_fulfillment.messages` If not specified, the agent's default language
1147
+ # is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/
1148
+ # language) are supported. Note: languages must be enabled in the agent before
1149
+ # they can be used.
1150
+ # @param [Fixnum] page_size
1151
+ # The maximum number of items to return in a single page. By default 100 and at
1152
+ # most 1000.
1153
+ # @param [String] page_token
1154
+ # The next_page_token value returned from a previous list request.
1155
+ # @param [String] fields
1156
+ # Selector specifying which fields to include in a partial response.
1157
+ # @param [String] quota_user
1158
+ # Available to use for quota purposes for server-side applications. Can be any
1159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1160
+ # @param [Google::Apis::RequestOptions] options
1161
+ # Request-specific options
1162
+ #
1163
+ # @yield [result, err] Result & error if block supplied
1164
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse] parsed result object
1165
+ # @yieldparam err [StandardError] error object if request failed
1166
+ #
1167
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse]
1168
+ #
1169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1172
+ def list_project_location_agent_flows(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1173
+ command = make_simple_command(:get, 'v3/{+parent}/flows', options)
1174
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse::Representation
1175
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse
1176
+ command.params['parent'] = parent unless parent.nil?
1177
+ command.query['languageCode'] = language_code unless language_code.nil?
1178
+ command.query['pageSize'] = page_size unless page_size.nil?
1179
+ command.query['pageToken'] = page_token unless page_token.nil?
1180
+ command.query['fields'] = fields unless fields.nil?
1181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1182
+ execute_or_queue_command(command, &block)
1183
+ end
1184
+
1185
+ # Updates the specified flow.
1186
+ # @param [String] name
1187
+ # The unique identifier of the flow. Format: `projects//locations//agents//flows/
1188
+ # `.
1189
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] google_cloud_dialogflow_cx_v3_flow_object
1190
+ # @param [String] language_code
1191
+ # The language of the following fields in `flow`: * `Flow.event_handlers.
1192
+ # trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.
1193
+ # messages` If not specified, the agent's default language is used. [Many
1194
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1195
+ # supported. Note: languages must be enabled in the agent before they can be
1196
+ # used.
1197
+ # @param [String] update_mask
1198
+ # Required. The mask to control which fields get updated. If `update_mask` is
1199
+ # not specified, an error will be returned.
1200
+ # @param [String] fields
1201
+ # Selector specifying which fields to include in a partial response.
1202
+ # @param [String] quota_user
1203
+ # Available to use for quota purposes for server-side applications. Can be any
1204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1205
+ # @param [Google::Apis::RequestOptions] options
1206
+ # Request-specific options
1207
+ #
1208
+ # @yield [result, err] Result & error if block supplied
1209
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object
1210
+ # @yieldparam err [StandardError] error object if request failed
1211
+ #
1212
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow]
1213
+ #
1214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1217
+ def patch_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3_flow_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1218
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1219
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1220
+ command.request_object = google_cloud_dialogflow_cx_v3_flow_object
1221
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1222
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow
1223
+ command.params['name'] = name unless name.nil?
1224
+ command.query['languageCode'] = language_code unless language_code.nil?
1225
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1226
+ command.query['fields'] = fields unless fields.nil?
1227
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1228
+ execute_or_queue_command(command, &block)
1229
+ end
1230
+
1231
+ # Trains the specified flow. Note that only the flow in 'draft' environment is
1232
+ # trained.
1233
+ # @param [String] name
1234
+ # Required. The flow to train. Format: `projects//locations//agents//flows/`.
1235
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TrainFlowRequest] google_cloud_dialogflow_cx_v3_train_flow_request_object
1236
+ # @param [String] fields
1237
+ # Selector specifying which fields to include in a partial response.
1238
+ # @param [String] quota_user
1239
+ # Available to use for quota purposes for server-side applications. Can be any
1240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1241
+ # @param [Google::Apis::RequestOptions] options
1242
+ # Request-specific options
1243
+ #
1244
+ # @yield [result, err] Result & error if block supplied
1245
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
1246
+ # @yieldparam err [StandardError] error object if request failed
1247
+ #
1248
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
1249
+ #
1250
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1251
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1252
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1253
+ def train_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3_train_flow_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1254
+ command = make_simple_command(:post, 'v3/{+name}:train', options)
1255
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TrainFlowRequest::Representation
1256
+ command.request_object = google_cloud_dialogflow_cx_v3_train_flow_request_object
1257
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
1258
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
1259
+ command.params['name'] = name unless name.nil?
1260
+ command.query['fields'] = fields unless fields.nil?
1261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1262
+ execute_or_queue_command(command, &block)
1263
+ end
1264
+
1265
+ # Creates a page in the specified flow.
1266
+ # @param [String] parent
1267
+ # Required. The flow to create a page for. Format: `projects//locations//agents//
1268
+ # flows/`.
1269
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] google_cloud_dialogflow_cx_v3_page_object
1270
+ # @param [String] language_code
1271
+ # The language of the following fields in `page`: * `Page.entry_fulfillment.
1272
+ # messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.
1273
+ # messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.
1274
+ # messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.
1275
+ # transition_route_groups.transition_routes.trigger_fulfillment.messages` If not
1276
+ # specified, the agent's default language is used. [Many languages](https://
1277
+ # cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
1278
+ # languages must be enabled in the agent before they can be used.
1279
+ # @param [String] fields
1280
+ # Selector specifying which fields to include in a partial response.
1281
+ # @param [String] quota_user
1282
+ # Available to use for quota purposes for server-side applications. Can be any
1283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1284
+ # @param [Google::Apis::RequestOptions] options
1285
+ # Request-specific options
1286
+ #
1287
+ # @yield [result, err] Result & error if block supplied
1288
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object
1289
+ # @yieldparam err [StandardError] error object if request failed
1290
+ #
1291
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]
1292
+ #
1293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1296
+ def create_project_location_agent_flow_page(parent, google_cloud_dialogflow_cx_v3_page_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1297
+ command = make_simple_command(:post, 'v3/{+parent}/pages', options)
1298
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1299
+ command.request_object = google_cloud_dialogflow_cx_v3_page_object
1300
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1301
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
1302
+ command.params['parent'] = parent unless parent.nil?
1303
+ command.query['languageCode'] = language_code unless language_code.nil?
1304
+ command.query['fields'] = fields unless fields.nil?
1305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1306
+ execute_or_queue_command(command, &block)
1307
+ end
1308
+
1309
+ # Deletes the specified page.
1310
+ # @param [String] name
1311
+ # Required. The name of the page to delete. Format: `projects//locations//agents/
1312
+ # /Flows//pages/`.
1313
+ # @param [Boolean] force
1314
+ # This field has no effect for pages with no incoming transitions. For pages
1315
+ # with incoming transitions: * If `force` is set to false, an error will be
1316
+ # returned with message indicating the incoming transitions. * If `force` is set
1317
+ # to true, Dialogflow will remove the page, as well as any transitions to the
1318
+ # page (i.e. Target page in event handlers or Target page in transition routes
1319
+ # that point to this page will be cleared).
1320
+ # @param [String] fields
1321
+ # Selector specifying which fields to include in a partial response.
1322
+ # @param [String] quota_user
1323
+ # Available to use for quota purposes for server-side applications. Can be any
1324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1325
+ # @param [Google::Apis::RequestOptions] options
1326
+ # Request-specific options
1327
+ #
1328
+ # @yield [result, err] Result & error if block supplied
1329
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1330
+ # @yieldparam err [StandardError] error object if request failed
1331
+ #
1332
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1333
+ #
1334
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1335
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1336
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1337
+ def delete_project_location_agent_flow_page(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1338
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1339
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1340
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1341
+ command.params['name'] = name unless name.nil?
1342
+ command.query['force'] = force unless force.nil?
1343
+ command.query['fields'] = fields unless fields.nil?
1344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1345
+ execute_or_queue_command(command, &block)
1346
+ end
1347
+
1348
+ # Retrieves the specified page.
1349
+ # @param [String] name
1350
+ # Required. The name of the page. Format: `projects//locations//agents//flows//
1351
+ # pages/`.
1352
+ # @param [String] language_code
1353
+ # The language to retrieve the page for. The following fields are language
1354
+ # dependent: * `Page.entry_fulfillment.messages` * `Page.form.parameters.
1355
+ # fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.
1356
+ # fill_behavior.reprompt_event_handlers.messages` * `Page.transition_routes.
1357
+ # trigger_fulfillment.messages` * `Page.transition_route_groups.
1358
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1359
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1360
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1361
+ # agent before they can be used.
1362
+ # @param [String] fields
1363
+ # Selector specifying which fields to include in a partial response.
1364
+ # @param [String] quota_user
1365
+ # Available to use for quota purposes for server-side applications. Can be any
1366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1367
+ # @param [Google::Apis::RequestOptions] options
1368
+ # Request-specific options
1369
+ #
1370
+ # @yield [result, err] Result & error if block supplied
1371
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object
1372
+ # @yieldparam err [StandardError] error object if request failed
1373
+ #
1374
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]
1375
+ #
1376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1379
+ def get_project_location_agent_flow_page(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1380
+ command = make_simple_command(:get, 'v3/{+name}', options)
1381
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1382
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
1383
+ command.params['name'] = name unless name.nil?
1384
+ command.query['languageCode'] = language_code unless language_code.nil?
1385
+ command.query['fields'] = fields unless fields.nil?
1386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1387
+ execute_or_queue_command(command, &block)
1388
+ end
1389
+
1390
+ # Returns the list of all pages in the specified flow.
1391
+ # @param [String] parent
1392
+ # Required. The flow to list all pages for. Format: `projects//locations//agents/
1393
+ # /flows/`.
1394
+ # @param [String] language_code
1395
+ # The language to list pages for. The following fields are language dependent: *
1396
+ # `Page.entry_fulfillment.messages` * `Page.form.parameters.fill_behavior.
1397
+ # initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.
1398
+ # reprompt_event_handlers.messages` * `Page.transition_routes.
1399
+ # trigger_fulfillment.messages` * `Page.transition_route_groups.
1400
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1401
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1402
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1403
+ # agent before they can be used.
1404
+ # @param [Fixnum] page_size
1405
+ # The maximum number of items to return in a single page. By default 100 and at
1406
+ # most 1000.
1407
+ # @param [String] page_token
1408
+ # The next_page_token value returned from a previous list request.
1409
+ # @param [String] fields
1410
+ # Selector specifying which fields to include in a partial response.
1411
+ # @param [String] quota_user
1412
+ # Available to use for quota purposes for server-side applications. Can be any
1413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1414
+ # @param [Google::Apis::RequestOptions] options
1415
+ # Request-specific options
1416
+ #
1417
+ # @yield [result, err] Result & error if block supplied
1418
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse] parsed result object
1419
+ # @yieldparam err [StandardError] error object if request failed
1420
+ #
1421
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse]
1422
+ #
1423
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1424
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1425
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1426
+ def list_project_location_agent_flow_pages(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1427
+ command = make_simple_command(:get, 'v3/{+parent}/pages', options)
1428
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse::Representation
1429
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse
1430
+ command.params['parent'] = parent unless parent.nil?
1431
+ command.query['languageCode'] = language_code unless language_code.nil?
1432
+ command.query['pageSize'] = page_size unless page_size.nil?
1433
+ command.query['pageToken'] = page_token unless page_token.nil?
1434
+ command.query['fields'] = fields unless fields.nil?
1435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
+ execute_or_queue_command(command, &block)
1437
+ end
1438
+
1439
+ # Updates the specified page.
1440
+ # @param [String] name
1441
+ # The unique identifier of the page. Required for the Pages.UpdatePage method.
1442
+ # Pages.CreatePage populates the name automatically. Format: `projects//
1443
+ # locations//agents//flows//pages/`.
1444
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] google_cloud_dialogflow_cx_v3_page_object
1445
+ # @param [String] language_code
1446
+ # The language of the following fields in `page`: * `Page.entry_fulfillment.
1447
+ # messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.
1448
+ # messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.
1449
+ # messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.
1450
+ # transition_route_groups.transition_routes.trigger_fulfillment.messages` If not
1451
+ # specified, the agent's default language is used. [Many languages](https://
1452
+ # cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
1453
+ # languages must be enabled in the agent before they can be used.
1454
+ # @param [String] update_mask
1455
+ # The mask to control which fields get updated. If the mask is not present, all
1456
+ # fields will be updated.
1457
+ # @param [String] fields
1458
+ # Selector specifying which fields to include in a partial response.
1459
+ # @param [String] quota_user
1460
+ # Available to use for quota purposes for server-side applications. Can be any
1461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1462
+ # @param [Google::Apis::RequestOptions] options
1463
+ # Request-specific options
1464
+ #
1465
+ # @yield [result, err] Result & error if block supplied
1466
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object
1467
+ # @yieldparam err [StandardError] error object if request failed
1468
+ #
1469
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]
1470
+ #
1471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1474
+ def patch_project_location_agent_flow_page(name, google_cloud_dialogflow_cx_v3_page_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1475
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1476
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1477
+ command.request_object = google_cloud_dialogflow_cx_v3_page_object
1478
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1479
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
1480
+ command.params['name'] = name unless name.nil?
1481
+ command.query['languageCode'] = language_code unless language_code.nil?
1482
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1483
+ command.query['fields'] = fields unless fields.nil?
1484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1485
+ execute_or_queue_command(command, &block)
1486
+ end
1487
+
1488
+ # Creates an TransitionRouteGroup in the specified flow.
1489
+ # @param [String] parent
1490
+ # Required. The flow to create an TransitionRouteGroup for. Format: `projects//
1491
+ # locations//agents//flows/`.
1492
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] google_cloud_dialogflow_cx_v3_transition_route_group_object
1493
+ # @param [String] language_code
1494
+ # The language to list transition route groups for. The field `messages` in
1495
+ # TransitionRoute is language dependent. If not specified, the agent's default
1496
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1497
+ # reference/language) are supported. Note: languages must be enabled in the
1498
+ # agent before they can be used.
1499
+ # @param [String] fields
1500
+ # Selector specifying which fields to include in a partial response.
1501
+ # @param [String] quota_user
1502
+ # Available to use for quota purposes for server-side applications. Can be any
1503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1504
+ # @param [Google::Apis::RequestOptions] options
1505
+ # Request-specific options
1506
+ #
1507
+ # @yield [result, err] Result & error if block supplied
1508
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object
1509
+ # @yieldparam err [StandardError] error object if request failed
1510
+ #
1511
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup]
1512
+ #
1513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1516
+ def create_project_location_agent_flow_transition_route_group(parent, google_cloud_dialogflow_cx_v3_transition_route_group_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1517
+ command = make_simple_command(:post, 'v3/{+parent}/transitionRouteGroups', options)
1518
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1519
+ command.request_object = google_cloud_dialogflow_cx_v3_transition_route_group_object
1520
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1521
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup
1522
+ command.params['parent'] = parent unless parent.nil?
1523
+ command.query['languageCode'] = language_code unless language_code.nil?
1524
+ command.query['fields'] = fields unless fields.nil?
1525
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1526
+ execute_or_queue_command(command, &block)
1527
+ end
1528
+
1529
+ # Deletes the specified TransitionRouteGroup.
1530
+ # @param [String] name
1531
+ # Required. The name of the TransitionRouteGroup to delete. Format: `projects//
1532
+ # locations//agents//flows//transitionRouteGroups/`.
1533
+ # @param [Boolean] force
1534
+ # This field has no effect for transition route group that no page is using. If
1535
+ # the transition route group is referenced by any page: * If `force` is set to
1536
+ # false, an error will be returned with message indicating pages that reference
1537
+ # the transition route group. * If `force` is set to true, Dialogflow will
1538
+ # remove the transition route group, as well as any reference to it.
1539
+ # @param [String] fields
1540
+ # Selector specifying which fields to include in a partial response.
1541
+ # @param [String] quota_user
1542
+ # Available to use for quota purposes for server-side applications. Can be any
1543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1544
+ # @param [Google::Apis::RequestOptions] options
1545
+ # Request-specific options
1546
+ #
1547
+ # @yield [result, err] Result & error if block supplied
1548
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1549
+ # @yieldparam err [StandardError] error object if request failed
1550
+ #
1551
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1552
+ #
1553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1556
+ def delete_project_location_agent_flow_transition_route_group(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1557
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1558
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1559
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1560
+ command.params['name'] = name unless name.nil?
1561
+ command.query['force'] = force unless force.nil?
1562
+ command.query['fields'] = fields unless fields.nil?
1563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1564
+ execute_or_queue_command(command, &block)
1565
+ end
1566
+
1567
+ # Retrieves the specified TransitionRouteGroup.
1568
+ # @param [String] name
1569
+ # Required. The name of the TransitionRouteGroup. Format: `projects//locations//
1570
+ # agents//flows//transitionRouteGroups/`.
1571
+ # @param [String] language_code
1572
+ # The language to list transition route groups for. The field `messages` in
1573
+ # TransitionRoute is language dependent. If not specified, the agent's default
1574
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1575
+ # reference/language) are supported. Note: languages must be enabled in the
1576
+ # agent before they can be used.
1577
+ # @param [String] fields
1578
+ # Selector specifying which fields to include in a partial response.
1579
+ # @param [String] quota_user
1580
+ # Available to use for quota purposes for server-side applications. Can be any
1581
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1582
+ # @param [Google::Apis::RequestOptions] options
1583
+ # Request-specific options
1584
+ #
1585
+ # @yield [result, err] Result & error if block supplied
1586
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object
1587
+ # @yieldparam err [StandardError] error object if request failed
1588
+ #
1589
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup]
1590
+ #
1591
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1592
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1593
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1594
+ def get_project_location_agent_flow_transition_route_group(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1595
+ command = make_simple_command(:get, 'v3/{+name}', options)
1596
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1597
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup
1598
+ command.params['name'] = name unless name.nil?
1599
+ command.query['languageCode'] = language_code unless language_code.nil?
1600
+ command.query['fields'] = fields unless fields.nil?
1601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1602
+ execute_or_queue_command(command, &block)
1603
+ end
1604
+
1605
+ # Returns the list of all transition route groups in the specified flow.
1606
+ # @param [String] parent
1607
+ # Required. The flow to list all transition route groups for. Format: `projects//
1608
+ # locations//agents//flows/`.
1609
+ # @param [String] language_code
1610
+ # The language to list transition route groups for. The field `messages` in
1611
+ # TransitionRoute is language dependent. If not specified, the agent's default
1612
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1613
+ # reference/language) are supported. Note: languages must be enabled in the
1614
+ # agent before they can be used.
1615
+ # @param [Fixnum] page_size
1616
+ # The maximum number of items to return in a single page. By default 100 and at
1617
+ # most 1000.
1618
+ # @param [String] page_token
1619
+ # The next_page_token value returned from a previous list request.
1620
+ # @param [String] fields
1621
+ # Selector specifying which fields to include in a partial response.
1622
+ # @param [String] quota_user
1623
+ # Available to use for quota purposes for server-side applications. Can be any
1624
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1625
+ # @param [Google::Apis::RequestOptions] options
1626
+ # Request-specific options
1627
+ #
1628
+ # @yield [result, err] Result & error if block supplied
1629
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse] parsed result object
1630
+ # @yieldparam err [StandardError] error object if request failed
1631
+ #
1632
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse]
1633
+ #
1634
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1635
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1636
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1637
+ def list_project_location_agent_flow_transition_route_groups(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1638
+ command = make_simple_command(:get, 'v3/{+parent}/transitionRouteGroups', options)
1639
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse::Representation
1640
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse
1641
+ command.params['parent'] = parent unless parent.nil?
1642
+ command.query['languageCode'] = language_code unless language_code.nil?
1643
+ command.query['pageSize'] = page_size unless page_size.nil?
1644
+ command.query['pageToken'] = page_token unless page_token.nil?
1645
+ command.query['fields'] = fields unless fields.nil?
1646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1647
+ execute_or_queue_command(command, &block)
1648
+ end
1649
+
1650
+ # Updates the specified TransitionRouteGroup.
1651
+ # @param [String] name
1652
+ # The unique identifier of the transition route group. TransitionRouteGroups.
1653
+ # CreateTransitionRouteGroup populates the name automatically. Format: `projects/
1654
+ # /locations//agents//flows//transitionRouteGroups/`.
1655
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] google_cloud_dialogflow_cx_v3_transition_route_group_object
1656
+ # @param [String] language_code
1657
+ # The language to list transition route groups for. The field `messages` in
1658
+ # TransitionRoute is language dependent. If not specified, the agent's default
1659
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1660
+ # reference/language) are supported. Note: languages must be enabled in the
1661
+ # agent before they can be used.
1662
+ # @param [String] update_mask
1663
+ # The mask to control which fields get updated.
1664
+ # @param [String] fields
1665
+ # Selector specifying which fields to include in a partial response.
1666
+ # @param [String] quota_user
1667
+ # Available to use for quota purposes for server-side applications. Can be any
1668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1669
+ # @param [Google::Apis::RequestOptions] options
1670
+ # Request-specific options
1671
+ #
1672
+ # @yield [result, err] Result & error if block supplied
1673
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object
1674
+ # @yieldparam err [StandardError] error object if request failed
1675
+ #
1676
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup]
1677
+ #
1678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1681
+ def patch_project_location_agent_flow_transition_route_group(name, google_cloud_dialogflow_cx_v3_transition_route_group_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1682
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1683
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1684
+ command.request_object = google_cloud_dialogflow_cx_v3_transition_route_group_object
1685
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1686
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup
1687
+ command.params['name'] = name unless name.nil?
1688
+ command.query['languageCode'] = language_code unless language_code.nil?
1689
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1690
+ command.query['fields'] = fields unless fields.nil?
1691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1692
+ execute_or_queue_command(command, &block)
1693
+ end
1694
+
1695
+ # Creates a Version in the specified Flow.
1696
+ # @param [String] parent
1697
+ # Required. The Flow to create an Version for. Format: `projects//locations//
1698
+ # agents//flows/`.
1699
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] google_cloud_dialogflow_cx_v3_version_object
1700
+ # @param [String] fields
1701
+ # Selector specifying which fields to include in a partial response.
1702
+ # @param [String] quota_user
1703
+ # Available to use for quota purposes for server-side applications. Can be any
1704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1705
+ # @param [Google::Apis::RequestOptions] options
1706
+ # Request-specific options
1707
+ #
1708
+ # @yield [result, err] Result & error if block supplied
1709
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
1710
+ # @yieldparam err [StandardError] error object if request failed
1711
+ #
1712
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
1713
+ #
1714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1717
+ def create_project_location_agent_flow_version(parent, google_cloud_dialogflow_cx_v3_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1718
+ command = make_simple_command(:post, 'v3/{+parent}/versions', options)
1719
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation
1720
+ command.request_object = google_cloud_dialogflow_cx_v3_version_object
1721
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
1722
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
1723
+ command.params['parent'] = parent unless parent.nil?
1724
+ command.query['fields'] = fields unless fields.nil?
1725
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1726
+ execute_or_queue_command(command, &block)
1727
+ end
1728
+
1729
+ # Deletes the specified Version.
1730
+ # @param [String] name
1731
+ # Required. The name of the Version to delete. Format: `projects//locations//
1732
+ # agents//flows//versions/`.
1733
+ # @param [String] fields
1734
+ # Selector specifying which fields to include in a partial response.
1735
+ # @param [String] quota_user
1736
+ # Available to use for quota purposes for server-side applications. Can be any
1737
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1738
+ # @param [Google::Apis::RequestOptions] options
1739
+ # Request-specific options
1740
+ #
1741
+ # @yield [result, err] Result & error if block supplied
1742
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1743
+ # @yieldparam err [StandardError] error object if request failed
1744
+ #
1745
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1746
+ #
1747
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1748
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1749
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1750
+ def delete_project_location_agent_flow_version(name, fields: nil, quota_user: nil, options: nil, &block)
1751
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1752
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1753
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1754
+ command.params['name'] = name unless name.nil?
1755
+ command.query['fields'] = fields unless fields.nil?
1756
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1757
+ execute_or_queue_command(command, &block)
1758
+ end
1759
+
1760
+ # Retrieves the specified Version.
1761
+ # @param [String] name
1762
+ # Required. The name of the Version. Format: `projects//locations//agents//flows/
1763
+ # /versions/`.
1764
+ # @param [String] fields
1765
+ # Selector specifying which fields to include in a partial response.
1766
+ # @param [String] quota_user
1767
+ # Available to use for quota purposes for server-side applications. Can be any
1768
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1769
+ # @param [Google::Apis::RequestOptions] options
1770
+ # Request-specific options
1771
+ #
1772
+ # @yield [result, err] Result & error if block supplied
1773
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] parsed result object
1774
+ # @yieldparam err [StandardError] error object if request failed
1775
+ #
1776
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version]
1777
+ #
1778
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1779
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1780
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1781
+ def get_project_location_agent_flow_version(name, fields: nil, quota_user: nil, options: nil, &block)
1782
+ command = make_simple_command(:get, 'v3/{+name}', options)
1783
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation
1784
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version
1785
+ command.params['name'] = name unless name.nil?
1786
+ command.query['fields'] = fields unless fields.nil?
1787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1788
+ execute_or_queue_command(command, &block)
1789
+ end
1790
+
1791
+ # Returns the list of all versions in the specified Flow.
1792
+ # @param [String] parent
1793
+ # Required. The Flow to list all versions for. Format: `projects//locations//
1794
+ # agents//flows/`.
1795
+ # @param [Fixnum] page_size
1796
+ # The maximum number of items to return in a single page. By default 20 and at
1797
+ # most 100.
1798
+ # @param [String] page_token
1799
+ # The next_page_token value returned from a previous list request.
1800
+ # @param [String] fields
1801
+ # Selector specifying which fields to include in a partial response.
1802
+ # @param [String] quota_user
1803
+ # Available to use for quota purposes for server-side applications. Can be any
1804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1805
+ # @param [Google::Apis::RequestOptions] options
1806
+ # Request-specific options
1807
+ #
1808
+ # @yield [result, err] Result & error if block supplied
1809
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse] parsed result object
1810
+ # @yieldparam err [StandardError] error object if request failed
1811
+ #
1812
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse]
1813
+ #
1814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
+ def list_project_location_agent_flow_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1818
+ command = make_simple_command(:get, 'v3/{+parent}/versions', options)
1819
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse::Representation
1820
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse
1821
+ command.params['parent'] = parent unless parent.nil?
1822
+ command.query['pageSize'] = page_size unless page_size.nil?
1823
+ command.query['pageToken'] = page_token unless page_token.nil?
1824
+ command.query['fields'] = fields unless fields.nil?
1825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1826
+ execute_or_queue_command(command, &block)
1827
+ end
1828
+
1829
+ # Loads a specified version to draft version.
1830
+ # @param [String] name
1831
+ # Required. The Version to be loaded to draft version. Format: `projects//
1832
+ # locations//agents//flows//versions/`.
1833
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LoadVersionRequest] google_cloud_dialogflow_cx_v3_load_version_request_object
1834
+ # @param [String] fields
1835
+ # Selector specifying which fields to include in a partial response.
1836
+ # @param [String] quota_user
1837
+ # Available to use for quota purposes for server-side applications. Can be any
1838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1839
+ # @param [Google::Apis::RequestOptions] options
1840
+ # Request-specific options
1841
+ #
1842
+ # @yield [result, err] Result & error if block supplied
1843
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
1844
+ # @yieldparam err [StandardError] error object if request failed
1845
+ #
1846
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
1847
+ #
1848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1851
+ def load_project_location_agent_flow_version(name, google_cloud_dialogflow_cx_v3_load_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1852
+ command = make_simple_command(:post, 'v3/{+name}:load', options)
1853
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LoadVersionRequest::Representation
1854
+ command.request_object = google_cloud_dialogflow_cx_v3_load_version_request_object
1855
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
1856
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
1857
+ command.params['name'] = name unless name.nil?
1858
+ command.query['fields'] = fields unless fields.nil?
1859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1860
+ execute_or_queue_command(command, &block)
1861
+ end
1862
+
1863
+ # Updates the specified Version.
1864
+ # @param [String] name
1865
+ # Format: projects//locations//agents//flows//versions/. Version ID is a self-
1866
+ # increasing number generated by Dialogflow upon version creation.
1867
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] google_cloud_dialogflow_cx_v3_version_object
1868
+ # @param [String] update_mask
1869
+ # Required. The mask to control which fields get updated. Currently only `
1870
+ # description` and `display_name` can be updated.
1871
+ # @param [String] fields
1872
+ # Selector specifying which fields to include in a partial response.
1873
+ # @param [String] quota_user
1874
+ # Available to use for quota purposes for server-side applications. Can be any
1875
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1876
+ # @param [Google::Apis::RequestOptions] options
1877
+ # Request-specific options
1878
+ #
1879
+ # @yield [result, err] Result & error if block supplied
1880
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] parsed result object
1881
+ # @yieldparam err [StandardError] error object if request failed
1882
+ #
1883
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version]
1884
+ #
1885
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1886
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1887
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1888
+ def patch_project_location_agent_flow_version(name, google_cloud_dialogflow_cx_v3_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1889
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1890
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation
1891
+ command.request_object = google_cloud_dialogflow_cx_v3_version_object
1892
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation
1893
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version
1894
+ command.params['name'] = name unless name.nil?
1895
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1896
+ command.query['fields'] = fields unless fields.nil?
1897
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1898
+ execute_or_queue_command(command, &block)
1899
+ end
1900
+
1901
+ # Creates an intent in the specified agent.
1902
+ # @param [String] parent
1903
+ # Required. The agent to create an intent for. Format: `projects//locations//
1904
+ # agents/`.
1905
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] google_cloud_dialogflow_cx_v3_intent_object
1906
+ # @param [String] language_code
1907
+ # The language of the following fields in `intent`: * `Intent.training_phrases.
1908
+ # parts.text` If not specified, the agent's default language is used. [Many
1909
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1910
+ # supported. Note: languages must be enabled in the agent before they can be
1911
+ # used.
1912
+ # @param [String] fields
1913
+ # Selector specifying which fields to include in a partial response.
1914
+ # @param [String] quota_user
1915
+ # Available to use for quota purposes for server-side applications. Can be any
1916
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1917
+ # @param [Google::Apis::RequestOptions] options
1918
+ # Request-specific options
1919
+ #
1920
+ # @yield [result, err] Result & error if block supplied
1921
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object
1922
+ # @yieldparam err [StandardError] error object if request failed
1923
+ #
1924
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent]
1925
+ #
1926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1929
+ def create_project_location_agent_intent(parent, google_cloud_dialogflow_cx_v3_intent_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1930
+ command = make_simple_command(:post, 'v3/{+parent}/intents', options)
1931
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
1932
+ command.request_object = google_cloud_dialogflow_cx_v3_intent_object
1933
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
1934
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent
1935
+ command.params['parent'] = parent unless parent.nil?
1936
+ command.query['languageCode'] = language_code unless language_code.nil?
1937
+ command.query['fields'] = fields unless fields.nil?
1938
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1939
+ execute_or_queue_command(command, &block)
1940
+ end
1941
+
1942
+ # Deletes the specified intent.
1943
+ # @param [String] name
1944
+ # Required. The name of the intent to delete. Format: `projects//locations//
1945
+ # agents//intents/`.
1946
+ # @param [String] fields
1947
+ # Selector specifying which fields to include in a partial response.
1948
+ # @param [String] quota_user
1949
+ # Available to use for quota purposes for server-side applications. Can be any
1950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1951
+ # @param [Google::Apis::RequestOptions] options
1952
+ # Request-specific options
1953
+ #
1954
+ # @yield [result, err] Result & error if block supplied
1955
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1956
+ # @yieldparam err [StandardError] error object if request failed
1957
+ #
1958
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1959
+ #
1960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1963
+ def delete_project_location_agent_intent(name, fields: nil, quota_user: nil, options: nil, &block)
1964
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1965
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1966
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1967
+ command.params['name'] = name unless name.nil?
1968
+ command.query['fields'] = fields unless fields.nil?
1969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1970
+ execute_or_queue_command(command, &block)
1971
+ end
1972
+
1973
+ # Retrieves the specified intent.
1974
+ # @param [String] name
1975
+ # Required. The name of the intent. Format: `projects//locations//agents//
1976
+ # intents/`.
1977
+ # @param [String] language_code
1978
+ # The language to retrieve the intent for. The following fields are language
1979
+ # dependent: * `Intent.training_phrases.parts.text` If not specified, the agent'
1980
+ # s default language is used. [Many languages](https://cloud.google.com/
1981
+ # dialogflow/docs/reference/language) are supported. Note: languages must be
1982
+ # enabled in the agent before they can be used.
1983
+ # @param [String] fields
1984
+ # Selector specifying which fields to include in a partial response.
1985
+ # @param [String] quota_user
1986
+ # Available to use for quota purposes for server-side applications. Can be any
1987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1988
+ # @param [Google::Apis::RequestOptions] options
1989
+ # Request-specific options
1990
+ #
1991
+ # @yield [result, err] Result & error if block supplied
1992
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object
1993
+ # @yieldparam err [StandardError] error object if request failed
1994
+ #
1995
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent]
1996
+ #
1997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2000
+ def get_project_location_agent_intent(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
2001
+ command = make_simple_command(:get, 'v3/{+name}', options)
2002
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
2003
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent
2004
+ command.params['name'] = name unless name.nil?
2005
+ command.query['languageCode'] = language_code unless language_code.nil?
2006
+ command.query['fields'] = fields unless fields.nil?
2007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2008
+ execute_or_queue_command(command, &block)
2009
+ end
2010
+
2011
+ # Returns the list of all intents in the specified agent.
2012
+ # @param [String] parent
2013
+ # Required. The agent to list all intents for. Format: `projects//locations//
2014
+ # agents/`.
2015
+ # @param [String] intent_view
2016
+ # The resource view to apply to the returned intent.
2017
+ # @param [String] language_code
2018
+ # The language to list intents for. The following fields are language dependent:
2019
+ # * `Intent.training_phrases.parts.text` If not specified, the agent's default
2020
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
2021
+ # reference/language) are supported. Note: languages must be enabled in the
2022
+ # agent before they can be used.
2023
+ # @param [Fixnum] page_size
2024
+ # The maximum number of items to return in a single page. By default 100 and at
2025
+ # most 1000.
2026
+ # @param [String] page_token
2027
+ # The next_page_token value returned from a previous list request.
2028
+ # @param [String] fields
2029
+ # Selector specifying which fields to include in a partial response.
2030
+ # @param [String] quota_user
2031
+ # Available to use for quota purposes for server-side applications. Can be any
2032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2033
+ # @param [Google::Apis::RequestOptions] options
2034
+ # Request-specific options
2035
+ #
2036
+ # @yield [result, err] Result & error if block supplied
2037
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse] parsed result object
2038
+ # @yieldparam err [StandardError] error object if request failed
2039
+ #
2040
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse]
2041
+ #
2042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2045
+ def list_project_location_agent_intents(parent, intent_view: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2046
+ command = make_simple_command(:get, 'v3/{+parent}/intents', options)
2047
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse::Representation
2048
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse
2049
+ command.params['parent'] = parent unless parent.nil?
2050
+ command.query['intentView'] = intent_view unless intent_view.nil?
2051
+ command.query['languageCode'] = language_code unless language_code.nil?
2052
+ command.query['pageSize'] = page_size unless page_size.nil?
2053
+ command.query['pageToken'] = page_token unless page_token.nil?
2054
+ command.query['fields'] = fields unless fields.nil?
2055
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2056
+ execute_or_queue_command(command, &block)
2057
+ end
2058
+
2059
+ # Updates the specified intent.
2060
+ # @param [String] name
2061
+ # The unique identifier of the intent. Required for the Intents.UpdateIntent
2062
+ # method. Intents.CreateIntent populates the name automatically. Format: `
2063
+ # projects//locations//agents//intents/`.
2064
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] google_cloud_dialogflow_cx_v3_intent_object
2065
+ # @param [String] language_code
2066
+ # The language of the following fields in `intent`: * `Intent.training_phrases.
2067
+ # parts.text` If not specified, the agent's default language is used. [Many
2068
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
2069
+ # supported. Note: languages must be enabled in the agent before they can be
2070
+ # used.
2071
+ # @param [String] update_mask
2072
+ # The mask to control which fields get updated. If the mask is not present, all
2073
+ # fields will be updated.
2074
+ # @param [String] fields
2075
+ # Selector specifying which fields to include in a partial response.
2076
+ # @param [String] quota_user
2077
+ # Available to use for quota purposes for server-side applications. Can be any
2078
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2079
+ # @param [Google::Apis::RequestOptions] options
2080
+ # Request-specific options
2081
+ #
2082
+ # @yield [result, err] Result & error if block supplied
2083
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object
2084
+ # @yieldparam err [StandardError] error object if request failed
2085
+ #
2086
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent]
2087
+ #
2088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2091
+ def patch_project_location_agent_intent(name, google_cloud_dialogflow_cx_v3_intent_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2092
+ command = make_simple_command(:patch, 'v3/{+name}', options)
2093
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
2094
+ command.request_object = google_cloud_dialogflow_cx_v3_intent_object
2095
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
2096
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent
2097
+ command.params['name'] = name unless name.nil?
2098
+ command.query['languageCode'] = language_code unless language_code.nil?
2099
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2100
+ command.query['fields'] = fields unless fields.nil?
2101
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2102
+ execute_or_queue_command(command, &block)
2103
+ end
2104
+
2105
+ # Processes a natural language query and returns structured, actionable data as
2106
+ # a result. This method is not idempotent, because it may cause session entity
2107
+ # types to be updated, which in turn might affect results of future queries.
2108
+ # Note: Always use agent versions for production traffic. See [Versions and
2109
+ # environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
2110
+ # @param [String] session
2111
+ # Required. The name of the session this query is sent to. Format: `projects//
2112
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2113
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2114
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2115
+ # It can be a random number or some type of session identifiers (preferably
2116
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2117
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2118
+ # cx/docs/concept/session). Note: Always use agent versions for production
2119
+ # traffic. See [Versions and environments](https://cloud.google.com/dialogflow/
2120
+ # cx/docs/concept/version).
2121
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest] google_cloud_dialogflow_cx_v3_detect_intent_request_object
2122
+ # @param [String] fields
2123
+ # Selector specifying which fields to include in a partial response.
2124
+ # @param [String] quota_user
2125
+ # Available to use for quota purposes for server-side applications. Can be any
2126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2127
+ # @param [Google::Apis::RequestOptions] options
2128
+ # Request-specific options
2129
+ #
2130
+ # @yield [result, err] Result & error if block supplied
2131
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse] parsed result object
2132
+ # @yieldparam err [StandardError] error object if request failed
2133
+ #
2134
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse]
2135
+ #
2136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2139
+ def detect_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2140
+ command = make_simple_command(:post, 'v3/{+session}:detectIntent', options)
2141
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest::Representation
2142
+ command.request_object = google_cloud_dialogflow_cx_v3_detect_intent_request_object
2143
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse::Representation
2144
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse
2145
+ command.params['session'] = session unless session.nil?
2146
+ command.query['fields'] = fields unless fields.nil?
2147
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2148
+ execute_or_queue_command(command, &block)
2149
+ end
2150
+
2151
+ # Fulfills a matched intent returned by MatchIntent. Must be called after
2152
+ # MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is
2153
+ # undefined.
2154
+ # @param [String] session
2155
+ # Required. The name of the session this query is sent to. Format: `projects//
2156
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2157
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2158
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2159
+ # It can be a random number or some type of session identifiers (preferably
2160
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2161
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2162
+ # cx/docs/concept/session).
2163
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest] google_cloud_dialogflow_cx_v3_fulfill_intent_request_object
2164
+ # @param [String] fields
2165
+ # Selector specifying which fields to include in a partial response.
2166
+ # @param [String] quota_user
2167
+ # Available to use for quota purposes for server-side applications. Can be any
2168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2169
+ # @param [Google::Apis::RequestOptions] options
2170
+ # Request-specific options
2171
+ #
2172
+ # @yield [result, err] Result & error if block supplied
2173
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse] parsed result object
2174
+ # @yieldparam err [StandardError] error object if request failed
2175
+ #
2176
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse]
2177
+ #
2178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2181
+ def fulfill_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_fulfill_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2182
+ command = make_simple_command(:post, 'v3/{+session}:fulfillIntent', options)
2183
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest::Representation
2184
+ command.request_object = google_cloud_dialogflow_cx_v3_fulfill_intent_request_object
2185
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse::Representation
2186
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse
2187
+ command.params['session'] = session unless session.nil?
2188
+ command.query['fields'] = fields unless fields.nil?
2189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2190
+ execute_or_queue_command(command, &block)
2191
+ end
2192
+
2193
+ # Returns preliminary intent match results, doesn't change the session status.
2194
+ # @param [String] session
2195
+ # Required. The name of the session this query is sent to. Format: `projects//
2196
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2197
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2198
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2199
+ # It can be a random number or some type of session identifiers (preferably
2200
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2201
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2202
+ # cx/docs/concept/session).
2203
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest] google_cloud_dialogflow_cx_v3_match_intent_request_object
2204
+ # @param [String] fields
2205
+ # Selector specifying which fields to include in a partial response.
2206
+ # @param [String] quota_user
2207
+ # Available to use for quota purposes for server-side applications. Can be any
2208
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2209
+ # @param [Google::Apis::RequestOptions] options
2210
+ # Request-specific options
2211
+ #
2212
+ # @yield [result, err] Result & error if block supplied
2213
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse] parsed result object
2214
+ # @yieldparam err [StandardError] error object if request failed
2215
+ #
2216
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse]
2217
+ #
2218
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2219
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2220
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2221
+ def match_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_match_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2222
+ command = make_simple_command(:post, 'v3/{+session}:matchIntent', options)
2223
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest::Representation
2224
+ command.request_object = google_cloud_dialogflow_cx_v3_match_intent_request_object
2225
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse::Representation
2226
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse
2227
+ command.params['session'] = session unless session.nil?
2228
+ command.query['fields'] = fields unless fields.nil?
2229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2230
+ execute_or_queue_command(command, &block)
2231
+ end
2232
+
2233
+ # Creates a session entity type. If the specified session entity type already
2234
+ # exists, overrides the session entity type.
2235
+ # @param [String] parent
2236
+ # Required. The session to create a session entity type for. Format: `projects//
2237
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2238
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2239
+ # environment.
2240
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object
2241
+ # @param [String] fields
2242
+ # Selector specifying which fields to include in a partial response.
2243
+ # @param [String] quota_user
2244
+ # Available to use for quota purposes for server-side applications. Can be any
2245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2246
+ # @param [Google::Apis::RequestOptions] options
2247
+ # Request-specific options
2248
+ #
2249
+ # @yield [result, err] Result & error if block supplied
2250
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
2251
+ # @yieldparam err [StandardError] error object if request failed
2252
+ #
2253
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
2254
+ #
2255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2258
+ def create_project_location_agent_session_entity_type(parent, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2259
+ command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options)
2260
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2261
+ command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object
2262
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2263
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
2264
+ command.params['parent'] = parent unless parent.nil?
2265
+ command.query['fields'] = fields unless fields.nil?
2266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2267
+ execute_or_queue_command(command, &block)
2268
+ end
2269
+
2270
+ # Deletes the specified session entity type.
2271
+ # @param [String] name
2272
+ # Required. The name of the session entity type to delete. Format: `projects//
2273
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
2274
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
2275
+ # we assume default 'draft' environment.
2276
+ # @param [String] fields
2277
+ # Selector specifying which fields to include in a partial response.
2278
+ # @param [String] quota_user
2279
+ # Available to use for quota purposes for server-side applications. Can be any
2280
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2281
+ # @param [Google::Apis::RequestOptions] options
2282
+ # Request-specific options
2283
+ #
2284
+ # @yield [result, err] Result & error if block supplied
2285
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2286
+ # @yieldparam err [StandardError] error object if request failed
2287
+ #
2288
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2289
+ #
2290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2293
+ def delete_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
2294
+ command = make_simple_command(:delete, 'v3/{+name}', options)
2295
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2296
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2297
+ command.params['name'] = name unless name.nil?
2298
+ command.query['fields'] = fields unless fields.nil?
2299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2300
+ execute_or_queue_command(command, &block)
2301
+ end
2302
+
2303
+ # Retrieves the specified session entity type.
2304
+ # @param [String] name
2305
+ # Required. The name of the session entity type. Format: `projects//locations//
2306
+ # agents//sessions//entityTypes/` or `projects//locations//agents//environments//
2307
+ # sessions//entityTypes/`. If `Environment ID` is not specified, we assume
2308
+ # default 'draft' environment.
2309
+ # @param [String] fields
2310
+ # Selector specifying which fields to include in a partial response.
2311
+ # @param [String] quota_user
2312
+ # Available to use for quota purposes for server-side applications. Can be any
2313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2314
+ # @param [Google::Apis::RequestOptions] options
2315
+ # Request-specific options
2316
+ #
2317
+ # @yield [result, err] Result & error if block supplied
2318
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
2319
+ # @yieldparam err [StandardError] error object if request failed
2320
+ #
2321
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
2322
+ #
2323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2326
+ def get_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
2327
+ command = make_simple_command(:get, 'v3/{+name}', options)
2328
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2329
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
2330
+ command.params['name'] = name unless name.nil?
2331
+ command.query['fields'] = fields unless fields.nil?
2332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2333
+ execute_or_queue_command(command, &block)
2334
+ end
2335
+
2336
+ # Returns the list of all session entity types in the specified session.
2337
+ # @param [String] parent
2338
+ # Required. The session to list all session entity types from. Format: `projects/
2339
+ # /locations//agents//sessions/` or `projects//locations//agents//environments//
2340
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2341
+ # environment.
2342
+ # @param [Fixnum] page_size
2343
+ # The maximum number of items to return in a single page. By default 100 and at
2344
+ # most 1000.
2345
+ # @param [String] page_token
2346
+ # The next_page_token value returned from a previous list request.
2347
+ # @param [String] fields
2348
+ # Selector specifying which fields to include in a partial response.
2349
+ # @param [String] quota_user
2350
+ # Available to use for quota purposes for server-side applications. Can be any
2351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2352
+ # @param [Google::Apis::RequestOptions] options
2353
+ # Request-specific options
2354
+ #
2355
+ # @yield [result, err] Result & error if block supplied
2356
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse] parsed result object
2357
+ # @yieldparam err [StandardError] error object if request failed
2358
+ #
2359
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse]
2360
+ #
2361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2364
+ def list_project_location_agent_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2365
+ command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options)
2366
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse::Representation
2367
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse
2368
+ command.params['parent'] = parent unless parent.nil?
2369
+ command.query['pageSize'] = page_size unless page_size.nil?
2370
+ command.query['pageToken'] = page_token unless page_token.nil?
2371
+ command.query['fields'] = fields unless fields.nil?
2372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2373
+ execute_or_queue_command(command, &block)
2374
+ end
2375
+
2376
+ # Updates the specified session entity type.
2377
+ # @param [String] name
2378
+ # Required. The unique identifier of the session entity type. Format: `projects//
2379
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
2380
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
2381
+ # we assume default 'draft' environment.
2382
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object
2383
+ # @param [String] update_mask
2384
+ # The mask to control which fields get updated.
2385
+ # @param [String] fields
2386
+ # Selector specifying which fields to include in a partial response.
2387
+ # @param [String] quota_user
2388
+ # Available to use for quota purposes for server-side applications. Can be any
2389
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2390
+ # @param [Google::Apis::RequestOptions] options
2391
+ # Request-specific options
2392
+ #
2393
+ # @yield [result, err] Result & error if block supplied
2394
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
2395
+ # @yieldparam err [StandardError] error object if request failed
2396
+ #
2397
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
2398
+ #
2399
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2400
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2401
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2402
+ def patch_project_location_agent_session_entity_type(name, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2403
+ command = make_simple_command(:patch, 'v3/{+name}', options)
2404
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2405
+ command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object
2406
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2407
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
2408
+ command.params['name'] = name unless name.nil?
2409
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2410
+ command.query['fields'] = fields unless fields.nil?
2411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2412
+ execute_or_queue_command(command, &block)
2413
+ end
2414
+
2415
+ # Batch deletes test cases.
2416
+ # @param [String] parent
2417
+ # Required. The agent to delete test cases from. Format: `projects//locations//
2418
+ # agents/`.
2419
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest] google_cloud_dialogflow_cx_v3_batch_delete_test_cases_request_object
2420
+ # @param [String] fields
2421
+ # Selector specifying which fields to include in a partial response.
2422
+ # @param [String] quota_user
2423
+ # Available to use for quota purposes for server-side applications. Can be any
2424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2425
+ # @param [Google::Apis::RequestOptions] options
2426
+ # Request-specific options
2427
+ #
2428
+ # @yield [result, err] Result & error if block supplied
2429
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2430
+ # @yieldparam err [StandardError] error object if request failed
2431
+ #
2432
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2433
+ #
2434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2437
+ def batch_project_location_agent_test_case_delete(parent, google_cloud_dialogflow_cx_v3_batch_delete_test_cases_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2438
+ command = make_simple_command(:post, 'v3/{+parent}/testCases:batchDelete', options)
2439
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest::Representation
2440
+ command.request_object = google_cloud_dialogflow_cx_v3_batch_delete_test_cases_request_object
2441
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2442
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2443
+ command.params['parent'] = parent unless parent.nil?
2444
+ command.query['fields'] = fields unless fields.nil?
2445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2446
+ execute_or_queue_command(command, &block)
2447
+ end
2448
+
2449
+ # Kicks off a batch run of test cases.
2450
+ # @param [String] parent
2451
+ # Required. Agent name. Format: `projects//locations//agents/ `.
2452
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BatchRunTestCasesRequest] google_cloud_dialogflow_cx_v3_batch_run_test_cases_request_object
2453
+ # @param [String] fields
2454
+ # Selector specifying which fields to include in a partial response.
2455
+ # @param [String] quota_user
2456
+ # Available to use for quota purposes for server-side applications. Can be any
2457
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2458
+ # @param [Google::Apis::RequestOptions] options
2459
+ # Request-specific options
2460
+ #
2461
+ # @yield [result, err] Result & error if block supplied
2462
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
2463
+ # @yieldparam err [StandardError] error object if request failed
2464
+ #
2465
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
2466
+ #
2467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2470
+ def batch_project_location_agent_test_case_run(parent, google_cloud_dialogflow_cx_v3_batch_run_test_cases_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2471
+ command = make_simple_command(:post, 'v3/{+parent}/testCases:batchRun', options)
2472
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BatchRunTestCasesRequest::Representation
2473
+ command.request_object = google_cloud_dialogflow_cx_v3_batch_run_test_cases_request_object
2474
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
2475
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
2476
+ command.params['parent'] = parent unless parent.nil?
2477
+ command.query['fields'] = fields unless fields.nil?
2478
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2479
+ execute_or_queue_command(command, &block)
2480
+ end
2481
+
2482
+ # Calculates the test coverage for an agent.
2483
+ # @param [String] agent
2484
+ # Required. The agent to calculate coverage for. Format: `projects//locations//
2485
+ # agents/`.
2486
+ # @param [String] type
2487
+ # Required. The type of coverage requested.
2488
+ # @param [String] fields
2489
+ # Selector specifying which fields to include in a partial response.
2490
+ # @param [String] quota_user
2491
+ # Available to use for quota purposes for server-side applications. Can be any
2492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2493
+ # @param [Google::Apis::RequestOptions] options
2494
+ # Request-specific options
2495
+ #
2496
+ # @yield [result, err] Result & error if block supplied
2497
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3CalculateCoverageResponse] parsed result object
2498
+ # @yieldparam err [StandardError] error object if request failed
2499
+ #
2500
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3CalculateCoverageResponse]
2501
+ #
2502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2505
+ def calculate_project_location_agent_test_case_coverage(agent, type: nil, fields: nil, quota_user: nil, options: nil, &block)
2506
+ command = make_simple_command(:get, 'v3/{+agent}/testCases:calculateCoverage', options)
2507
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3CalculateCoverageResponse::Representation
2508
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3CalculateCoverageResponse
2509
+ command.params['agent'] = agent unless agent.nil?
2510
+ command.query['type'] = type unless type.nil?
2511
+ command.query['fields'] = fields unless fields.nil?
2512
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2513
+ execute_or_queue_command(command, &block)
2514
+ end
2515
+
2516
+ # Creates a test case for the given agent.
2517
+ # @param [String] parent
2518
+ # Required. The agent to create the test case for. Format: `projects//locations//
2519
+ # agents/`.
2520
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase] google_cloud_dialogflow_cx_v3_test_case_object
2521
+ # @param [String] fields
2522
+ # Selector specifying which fields to include in a partial response.
2523
+ # @param [String] quota_user
2524
+ # Available to use for quota purposes for server-side applications. Can be any
2525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2526
+ # @param [Google::Apis::RequestOptions] options
2527
+ # Request-specific options
2528
+ #
2529
+ # @yield [result, err] Result & error if block supplied
2530
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase] parsed result object
2531
+ # @yieldparam err [StandardError] error object if request failed
2532
+ #
2533
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase]
2534
+ #
2535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2538
+ def create_project_location_agent_test_case(parent, google_cloud_dialogflow_cx_v3_test_case_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2539
+ command = make_simple_command(:post, 'v3/{+parent}/testCases', options)
2540
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase::Representation
2541
+ command.request_object = google_cloud_dialogflow_cx_v3_test_case_object
2542
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase::Representation
2543
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase
2544
+ command.params['parent'] = parent unless parent.nil?
2545
+ command.query['fields'] = fields unless fields.nil?
2546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2547
+ execute_or_queue_command(command, &block)
2548
+ end
2549
+
2550
+ # Exports the test cases under the agent to a Cloud Storage bucket or a local
2551
+ # file. Filter can be applied to export a subset of test cases.
2552
+ # @param [String] parent
2553
+ # Required. The agent where to export test cases from. Format: `projects//
2554
+ # locations//agents/`.
2555
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportTestCasesRequest] google_cloud_dialogflow_cx_v3_export_test_cases_request_object
2556
+ # @param [String] fields
2557
+ # Selector specifying which fields to include in a partial response.
2558
+ # @param [String] quota_user
2559
+ # Available to use for quota purposes for server-side applications. Can be any
2560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2561
+ # @param [Google::Apis::RequestOptions] options
2562
+ # Request-specific options
2563
+ #
2564
+ # @yield [result, err] Result & error if block supplied
2565
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
2566
+ # @yieldparam err [StandardError] error object if request failed
2567
+ #
2568
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
2569
+ #
2570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2573
+ def export_project_location_agent_test_case(parent, google_cloud_dialogflow_cx_v3_export_test_cases_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2574
+ command = make_simple_command(:post, 'v3/{+parent}/testCases:export', options)
2575
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportTestCasesRequest::Representation
2576
+ command.request_object = google_cloud_dialogflow_cx_v3_export_test_cases_request_object
2577
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
2578
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
2579
+ command.params['parent'] = parent unless parent.nil?
2580
+ command.query['fields'] = fields unless fields.nil?
2581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2582
+ execute_or_queue_command(command, &block)
2583
+ end
2584
+
2585
+ # Gets a test case.
2586
+ # @param [String] name
2587
+ # Required. The name of the testcase. Format: `projects//locations//agents//
2588
+ # testCases/`.
2589
+ # @param [String] fields
2590
+ # Selector specifying which fields to include in a partial response.
2591
+ # @param [String] quota_user
2592
+ # Available to use for quota purposes for server-side applications. Can be any
2593
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2594
+ # @param [Google::Apis::RequestOptions] options
2595
+ # Request-specific options
2596
+ #
2597
+ # @yield [result, err] Result & error if block supplied
2598
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase] parsed result object
2599
+ # @yieldparam err [StandardError] error object if request failed
2600
+ #
2601
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase]
2602
+ #
2603
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2604
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2605
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2606
+ def get_project_location_agent_test_case(name, fields: nil, quota_user: nil, options: nil, &block)
2607
+ command = make_simple_command(:get, 'v3/{+name}', options)
2608
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase::Representation
2609
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase
2610
+ command.params['name'] = name unless name.nil?
2611
+ command.query['fields'] = fields unless fields.nil?
2612
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2613
+ execute_or_queue_command(command, &block)
2614
+ end
2615
+
2616
+ # Imports the test cases from a Cloud Storage bucket or a local file. It always
2617
+ # creates new test cases and won't overwite any existing ones. The provided ID
2618
+ # in the imported test case is neglected.
2619
+ # @param [String] parent
2620
+ # Required. The agent to import test cases to. Format: `projects//locations//
2621
+ # agents/`.
2622
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ImportTestCasesRequest] google_cloud_dialogflow_cx_v3_import_test_cases_request_object
2623
+ # @param [String] fields
2624
+ # Selector specifying which fields to include in a partial response.
2625
+ # @param [String] quota_user
2626
+ # Available to use for quota purposes for server-side applications. Can be any
2627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2628
+ # @param [Google::Apis::RequestOptions] options
2629
+ # Request-specific options
2630
+ #
2631
+ # @yield [result, err] Result & error if block supplied
2632
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
2633
+ # @yieldparam err [StandardError] error object if request failed
2634
+ #
2635
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
2636
+ #
2637
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2638
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2639
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2640
+ def import_project_location_agent_test_case(parent, google_cloud_dialogflow_cx_v3_import_test_cases_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2641
+ command = make_simple_command(:post, 'v3/{+parent}/testCases:import', options)
2642
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ImportTestCasesRequest::Representation
2643
+ command.request_object = google_cloud_dialogflow_cx_v3_import_test_cases_request_object
2644
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
2645
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
2646
+ command.params['parent'] = parent unless parent.nil?
2647
+ command.query['fields'] = fields unless fields.nil?
2648
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2649
+ execute_or_queue_command(command, &block)
2650
+ end
2651
+
2652
+ # Fetches a list of test cases for a given agent.
2653
+ # @param [String] parent
2654
+ # Required. The agent to list all pages for. Format: `projects//locations//
2655
+ # agents/`.
2656
+ # @param [Fixnum] page_size
2657
+ # The maximum number of items to return in a single page. By default 20. Note
2658
+ # that when TestCaseView = FULL, the maximum page size allowed is 20. When
2659
+ # TestCaseView = BASIC, the maximum page size allowed is 500.
2660
+ # @param [String] page_token
2661
+ # The next_page_token value returned from a previous list request.
2662
+ # @param [String] view
2663
+ # Specifies whether response should include all fields or just the metadata.
2664
+ # @param [String] fields
2665
+ # Selector specifying which fields to include in a partial response.
2666
+ # @param [String] quota_user
2667
+ # Available to use for quota purposes for server-side applications. Can be any
2668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2669
+ # @param [Google::Apis::RequestOptions] options
2670
+ # Request-specific options
2671
+ #
2672
+ # @yield [result, err] Result & error if block supplied
2673
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTestCasesResponse] parsed result object
2674
+ # @yieldparam err [StandardError] error object if request failed
2675
+ #
2676
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTestCasesResponse]
2677
+ #
2678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2681
+ def list_project_location_agent_test_cases(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
2682
+ command = make_simple_command(:get, 'v3/{+parent}/testCases', options)
2683
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTestCasesResponse::Representation
2684
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTestCasesResponse
2685
+ command.params['parent'] = parent unless parent.nil?
2686
+ command.query['pageSize'] = page_size unless page_size.nil?
2687
+ command.query['pageToken'] = page_token unless page_token.nil?
2688
+ command.query['view'] = view unless view.nil?
2689
+ command.query['fields'] = fields unless fields.nil?
2690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2691
+ execute_or_queue_command(command, &block)
2692
+ end
2693
+
2694
+ # Updates the specified test case.
2695
+ # @param [String] name
2696
+ # The unique identifier of the test case. TestCases.CreateTestCase will populate
2697
+ # the name automatically. Otherwise use format: `projects//locations//agents/ /
2698
+ # testCases/`.
2699
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase] google_cloud_dialogflow_cx_v3_test_case_object
2700
+ # @param [String] update_mask
2701
+ # Required. The mask to specify which fields should be updated. Only a test case'
2702
+ # s metadata and replayed_conversation_turns may be updated. The original
2703
+ # test_case_conversation_turns may not be updated.
2704
+ # @param [String] fields
2705
+ # Selector specifying which fields to include in a partial response.
2706
+ # @param [String] quota_user
2707
+ # Available to use for quota purposes for server-side applications. Can be any
2708
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2709
+ # @param [Google::Apis::RequestOptions] options
2710
+ # Request-specific options
2711
+ #
2712
+ # @yield [result, err] Result & error if block supplied
2713
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase] parsed result object
2714
+ # @yieldparam err [StandardError] error object if request failed
2715
+ #
2716
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase]
2717
+ #
2718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2721
+ def patch_project_location_agent_test_case(name, google_cloud_dialogflow_cx_v3_test_case_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2722
+ command = make_simple_command(:patch, 'v3/{+name}', options)
2723
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase::Representation
2724
+ command.request_object = google_cloud_dialogflow_cx_v3_test_case_object
2725
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase::Representation
2726
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestCase
2727
+ command.params['name'] = name unless name.nil?
2728
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2729
+ command.query['fields'] = fields unless fields.nil?
2730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2731
+ execute_or_queue_command(command, &block)
2732
+ end
2733
+
2734
+ # Kicks off a test case run.
2735
+ # @param [String] projects_id
2736
+ # @param [String] locations_id
2737
+ # @param [String] agents_id
2738
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RunTestCaseRequest] google_cloud_dialogflow_cx_v3_run_test_case_request_object
2739
+ # @param [String] fields
2740
+ # Selector specifying which fields to include in a partial response.
2741
+ # @param [String] quota_user
2742
+ # Available to use for quota purposes for server-side applications. Can be any
2743
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2744
+ # @param [Google::Apis::RequestOptions] options
2745
+ # Request-specific options
2746
+ #
2747
+ # @yield [result, err] Result & error if block supplied
2748
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
2749
+ # @yieldparam err [StandardError] error object if request failed
2750
+ #
2751
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
2752
+ #
2753
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2754
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2755
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2756
+ def run_project_location_agent_test_case(projects_id, locations_id, agents_id, google_cloud_dialogflow_cx_v3_run_test_case_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2757
+ command = make_simple_command(:post, 'v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/testCases:run', options)
2758
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RunTestCaseRequest::Representation
2759
+ command.request_object = google_cloud_dialogflow_cx_v3_run_test_case_request_object
2760
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
2761
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
2762
+ command.params['projectsId'] = projects_id unless projects_id.nil?
2763
+ command.params['locationsId'] = locations_id unless locations_id.nil?
2764
+ command.params['agentsId'] = agents_id unless agents_id.nil?
2765
+ command.query['fields'] = fields unless fields.nil?
2766
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2767
+ execute_or_queue_command(command, &block)
2768
+ end
2769
+
2770
+ # Fetches a list of results for a given test case.
2771
+ # @param [String] parent
2772
+ # Required. The test case to list results for. Format: `projects//locations//
2773
+ # agents// testCases/`. Specify a `-` as a wildcard for TestCase ID to list
2774
+ # results across multiple test cases.
2775
+ # @param [String] filter
2776
+ # The filter expression used to filter test case results. See [API Filtering](
2777
+ # https://aip.dev/160). The expression is case insensitive. Only 'AND' is
2778
+ # supported for logical operators. The supported syntax is listed below in
2779
+ # detail: [AND ] ... [AND latest] The supported fields and operators are: field
2780
+ # operator `environment` `=`, `IN` (Use value `draft` for draft environment) `
2781
+ # test_time` `>`, `<` `latest` only returns the latest test result in all
2782
+ # results for each test case. Examples: * "environment=draft AND latest" matches
2783
+ # the latest test result for each test case in the draft environment. * "
2784
+ # environment IN (e1,e2)" matches any test case results with an environment
2785
+ # resource name of either "e1" or "e2". * "test_time > 1602540713" matches any
2786
+ # test case results with test time later than a unix timestamp in seconds
2787
+ # 1602540713.
2788
+ # @param [Fixnum] page_size
2789
+ # The maximum number of items to return in a single page. By default 100 and at
2790
+ # most 1000.
2791
+ # @param [String] page_token
2792
+ # The next_page_token value returned from a previous list request.
2793
+ # @param [String] fields
2794
+ # Selector specifying which fields to include in a partial response.
2795
+ # @param [String] quota_user
2796
+ # Available to use for quota purposes for server-side applications. Can be any
2797
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2798
+ # @param [Google::Apis::RequestOptions] options
2799
+ # Request-specific options
2800
+ #
2801
+ # @yield [result, err] Result & error if block supplied
2802
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTestCaseResultsResponse] parsed result object
2803
+ # @yieldparam err [StandardError] error object if request failed
2804
+ #
2805
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTestCaseResultsResponse]
2806
+ #
2807
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2808
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2809
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2810
+ def list_project_location_agent_test_case_results(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2811
+ command = make_simple_command(:get, 'v3/{+parent}/results', options)
2812
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTestCaseResultsResponse::Representation
2813
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTestCaseResultsResponse
2814
+ command.params['parent'] = parent unless parent.nil?
2815
+ command.query['filter'] = filter unless filter.nil?
2816
+ command.query['pageSize'] = page_size unless page_size.nil?
2817
+ command.query['pageToken'] = page_token unless page_token.nil?
2818
+ command.query['fields'] = fields unless fields.nil?
2819
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2820
+ execute_or_queue_command(command, &block)
2821
+ end
2822
+
2823
+ # Creates a webhook in the specified agent.
2824
+ # @param [String] parent
2825
+ # Required. The agent to create a webhook for. Format: `projects//locations//
2826
+ # agents/`.
2827
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] google_cloud_dialogflow_cx_v3_webhook_object
2828
+ # @param [String] fields
2829
+ # Selector specifying which fields to include in a partial response.
2830
+ # @param [String] quota_user
2831
+ # Available to use for quota purposes for server-side applications. Can be any
2832
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2833
+ # @param [Google::Apis::RequestOptions] options
2834
+ # Request-specific options
2835
+ #
2836
+ # @yield [result, err] Result & error if block supplied
2837
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object
2838
+ # @yieldparam err [StandardError] error object if request failed
2839
+ #
2840
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook]
2841
+ #
2842
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2843
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2844
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2845
+ def create_project_location_agent_webhook(parent, google_cloud_dialogflow_cx_v3_webhook_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2846
+ command = make_simple_command(:post, 'v3/{+parent}/webhooks', options)
2847
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2848
+ command.request_object = google_cloud_dialogflow_cx_v3_webhook_object
2849
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2850
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook
2851
+ command.params['parent'] = parent unless parent.nil?
2852
+ command.query['fields'] = fields unless fields.nil?
2853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2854
+ execute_or_queue_command(command, &block)
2855
+ end
2856
+
2857
+ # Deletes the specified webhook.
2858
+ # @param [String] name
2859
+ # Required. The name of the webhook to delete. Format: `projects//locations//
2860
+ # agents//webhooks/`.
2861
+ # @param [Boolean] force
2862
+ # This field has no effect for webhook not being used. For webhooks that are
2863
+ # used by pages/flows/transition route groups: * If `force` is set to false, an
2864
+ # error will be returned with message indicating the referenced resources. * If `
2865
+ # force` is set to true, Dialogflow will remove the webhook, as well as any
2866
+ # references to the webhook (i.e. Webhook and tagin fulfillments that point to
2867
+ # this webhook will be removed).
2868
+ # @param [String] fields
2869
+ # Selector specifying which fields to include in a partial response.
2870
+ # @param [String] quota_user
2871
+ # Available to use for quota purposes for server-side applications. Can be any
2872
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2873
+ # @param [Google::Apis::RequestOptions] options
2874
+ # Request-specific options
2875
+ #
2876
+ # @yield [result, err] Result & error if block supplied
2877
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2878
+ # @yieldparam err [StandardError] error object if request failed
2879
+ #
2880
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2881
+ #
2882
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2883
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2884
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2885
+ def delete_project_location_agent_webhook(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2886
+ command = make_simple_command(:delete, 'v3/{+name}', options)
2887
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2888
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2889
+ command.params['name'] = name unless name.nil?
2890
+ command.query['force'] = force unless force.nil?
2891
+ command.query['fields'] = fields unless fields.nil?
2892
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2893
+ execute_or_queue_command(command, &block)
2894
+ end
2895
+
2896
+ # Retrieves the specified webhook.
2897
+ # @param [String] name
2898
+ # Required. The name of the webhook. Format: `projects//locations//agents//
2899
+ # webhooks/`.
2900
+ # @param [String] fields
2901
+ # Selector specifying which fields to include in a partial response.
2902
+ # @param [String] quota_user
2903
+ # Available to use for quota purposes for server-side applications. Can be any
2904
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2905
+ # @param [Google::Apis::RequestOptions] options
2906
+ # Request-specific options
2907
+ #
2908
+ # @yield [result, err] Result & error if block supplied
2909
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object
2910
+ # @yieldparam err [StandardError] error object if request failed
2911
+ #
2912
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook]
2913
+ #
2914
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2915
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2916
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2917
+ def get_project_location_agent_webhook(name, fields: nil, quota_user: nil, options: nil, &block)
2918
+ command = make_simple_command(:get, 'v3/{+name}', options)
2919
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2920
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook
2921
+ command.params['name'] = name unless name.nil?
2922
+ command.query['fields'] = fields unless fields.nil?
2923
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2924
+ execute_or_queue_command(command, &block)
2925
+ end
2926
+
2927
+ # Returns the list of all webhooks in the specified agent.
2928
+ # @param [String] parent
2929
+ # Required. The agent to list all webhooks for. Format: `projects//locations//
2930
+ # agents/`.
2931
+ # @param [Fixnum] page_size
2932
+ # The maximum number of items to return in a single page. By default 100 and at
2933
+ # most 1000.
2934
+ # @param [String] page_token
2935
+ # The next_page_token value returned from a previous list request.
2936
+ # @param [String] fields
2937
+ # Selector specifying which fields to include in a partial response.
2938
+ # @param [String] quota_user
2939
+ # Available to use for quota purposes for server-side applications. Can be any
2940
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2941
+ # @param [Google::Apis::RequestOptions] options
2942
+ # Request-specific options
2943
+ #
2944
+ # @yield [result, err] Result & error if block supplied
2945
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse] parsed result object
2946
+ # @yieldparam err [StandardError] error object if request failed
2947
+ #
2948
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse]
2949
+ #
2950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2953
+ def list_project_location_agent_webhooks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2954
+ command = make_simple_command(:get, 'v3/{+parent}/webhooks', options)
2955
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse::Representation
2956
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse
2957
+ command.params['parent'] = parent unless parent.nil?
2958
+ command.query['pageSize'] = page_size unless page_size.nil?
2959
+ command.query['pageToken'] = page_token unless page_token.nil?
2960
+ command.query['fields'] = fields unless fields.nil?
2961
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2962
+ execute_or_queue_command(command, &block)
2963
+ end
2964
+
2965
+ # Updates the specified webhook.
2966
+ # @param [String] name
2967
+ # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook
2968
+ # method. Webhooks.CreateWebhook populates the name automatically. Format: `
2969
+ # projects//locations//agents//webhooks/`.
2970
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] google_cloud_dialogflow_cx_v3_webhook_object
2971
+ # @param [String] update_mask
2972
+ # The mask to control which fields get updated. If the mask is not present, all
2973
+ # fields will be updated.
2974
+ # @param [String] fields
2975
+ # Selector specifying which fields to include in a partial response.
2976
+ # @param [String] quota_user
2977
+ # Available to use for quota purposes for server-side applications. Can be any
2978
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2979
+ # @param [Google::Apis::RequestOptions] options
2980
+ # Request-specific options
2981
+ #
2982
+ # @yield [result, err] Result & error if block supplied
2983
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object
2984
+ # @yieldparam err [StandardError] error object if request failed
2985
+ #
2986
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook]
2987
+ #
2988
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2989
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2990
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2991
+ def patch_project_location_agent_webhook(name, google_cloud_dialogflow_cx_v3_webhook_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2992
+ command = make_simple_command(:patch, 'v3/{+name}', options)
2993
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2994
+ command.request_object = google_cloud_dialogflow_cx_v3_webhook_object
2995
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2996
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook
2997
+ command.params['name'] = name unless name.nil?
2998
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2999
+ command.query['fields'] = fields unless fields.nil?
3000
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3001
+ execute_or_queue_command(command, &block)
3002
+ end
3003
+
3004
+ # Starts asynchronous cancellation on a long-running operation. The server makes
3005
+ # a best effort to cancel the operation, but success is not guaranteed. If the
3006
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
3007
+ # Clients can use Operations.GetOperation or other methods to check whether the
3008
+ # cancellation succeeded or whether the operation completed despite cancellation.
3009
+ # On successful cancellation, the operation is not deleted; instead, it becomes
3010
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
3011
+ # corresponding to `Code.CANCELLED`.
3012
+ # @param [String] name
3013
+ # The name of the operation resource to be cancelled.
3014
+ # @param [String] fields
3015
+ # Selector specifying which fields to include in a partial response.
3016
+ # @param [String] quota_user
3017
+ # Available to use for quota purposes for server-side applications. Can be any
3018
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3019
+ # @param [Google::Apis::RequestOptions] options
3020
+ # Request-specific options
3021
+ #
3022
+ # @yield [result, err] Result & error if block supplied
3023
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
3024
+ # @yieldparam err [StandardError] error object if request failed
3025
+ #
3026
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
3027
+ #
3028
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3029
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3030
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3031
+ def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
3032
+ command = make_simple_command(:post, 'v3/{+name}:cancel', options)
3033
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
3034
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
3035
+ command.params['name'] = name unless name.nil?
3036
+ command.query['fields'] = fields unless fields.nil?
3037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3038
+ execute_or_queue_command(command, &block)
3039
+ end
3040
+
3041
+ # Gets the latest state of a long-running operation. Clients can use this method
3042
+ # to poll the operation result at intervals as recommended by the API service.
3043
+ # @param [String] name
3044
+ # The name of the operation resource.
3045
+ # @param [String] fields
3046
+ # Selector specifying which fields to include in a partial response.
3047
+ # @param [String] quota_user
3048
+ # Available to use for quota purposes for server-side applications. Can be any
3049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3050
+ # @param [Google::Apis::RequestOptions] options
3051
+ # Request-specific options
3052
+ #
3053
+ # @yield [result, err] Result & error if block supplied
3054
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
3055
+ # @yieldparam err [StandardError] error object if request failed
3056
+ #
3057
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
3058
+ #
3059
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3060
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3061
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3062
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
3063
+ command = make_simple_command(:get, 'v3/{+name}', options)
3064
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
3065
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
3066
+ command.params['name'] = name unless name.nil?
3067
+ command.query['fields'] = fields unless fields.nil?
3068
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3069
+ execute_or_queue_command(command, &block)
3070
+ end
3071
+
3072
+ # Lists operations that match the specified filter in the request. If the server
3073
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
3074
+ # binding allows API services to override the binding to use different resource
3075
+ # name schemes, such as `users/*/operations`. To override the binding, API
3076
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
3077
+ # service configuration. For backwards compatibility, the default name includes
3078
+ # the operations collection id, however overriding users must ensure the name
3079
+ # binding is the parent resource, without the operations collection id.
3080
+ # @param [String] name
3081
+ # The name of the operation's parent resource.
3082
+ # @param [String] filter
3083
+ # The standard list filter.
3084
+ # @param [Fixnum] page_size
3085
+ # The standard list page size.
3086
+ # @param [String] page_token
3087
+ # The standard list page token.
3088
+ # @param [String] fields
3089
+ # Selector specifying which fields to include in a partial response.
3090
+ # @param [String] quota_user
3091
+ # Available to use for quota purposes for server-side applications. Can be any
3092
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3093
+ # @param [Google::Apis::RequestOptions] options
3094
+ # Request-specific options
3095
+ #
3096
+ # @yield [result, err] Result & error if block supplied
3097
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse] parsed result object
3098
+ # @yieldparam err [StandardError] error object if request failed
3099
+ #
3100
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse]
3101
+ #
3102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3105
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3106
+ command = make_simple_command(:get, 'v3/{+name}/operations', options)
3107
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse::Representation
3108
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse
3109
+ command.params['name'] = name unless name.nil?
3110
+ command.query['filter'] = filter unless filter.nil?
3111
+ command.query['pageSize'] = page_size unless page_size.nil?
3112
+ command.query['pageToken'] = page_token unless page_token.nil?
3113
+ command.query['fields'] = fields unless fields.nil?
3114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3115
+ execute_or_queue_command(command, &block)
3116
+ end
3117
+
3118
+ # Create security settings in the specified location.
3119
+ # @param [String] parent
3120
+ # Required. The location to create an SecuritySettings for. Format: `projects//
3121
+ # locations/`.
3122
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] google_cloud_dialogflow_cx_v3_security_settings_object
3123
+ # @param [String] fields
3124
+ # Selector specifying which fields to include in a partial response.
3125
+ # @param [String] quota_user
3126
+ # Available to use for quota purposes for server-side applications. Can be any
3127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3128
+ # @param [Google::Apis::RequestOptions] options
3129
+ # Request-specific options
3130
+ #
3131
+ # @yield [result, err] Result & error if block supplied
3132
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object
3133
+ # @yieldparam err [StandardError] error object if request failed
3134
+ #
3135
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings]
3136
+ #
3137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3140
+ def create_project_location_security_setting(parent, google_cloud_dialogflow_cx_v3_security_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3141
+ command = make_simple_command(:post, 'v3/{+parent}/securitySettings', options)
3142
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
3143
+ command.request_object = google_cloud_dialogflow_cx_v3_security_settings_object
3144
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
3145
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings
3146
+ command.params['parent'] = parent unless parent.nil?
3147
+ command.query['fields'] = fields unless fields.nil?
3148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3149
+ execute_or_queue_command(command, &block)
3150
+ end
3151
+
3152
+ # Deletes the specified SecuritySettings.
3153
+ # @param [String] name
3154
+ # Required. The name of the SecuritySettings to delete. Format: `projects//
3155
+ # locations//securitySettings/`.
3156
+ # @param [String] fields
3157
+ # Selector specifying which fields to include in a partial response.
3158
+ # @param [String] quota_user
3159
+ # Available to use for quota purposes for server-side applications. Can be any
3160
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3161
+ # @param [Google::Apis::RequestOptions] options
3162
+ # Request-specific options
3163
+ #
3164
+ # @yield [result, err] Result & error if block supplied
3165
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
3166
+ # @yieldparam err [StandardError] error object if request failed
3167
+ #
3168
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
3169
+ #
3170
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3171
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3172
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3173
+ def delete_project_location_security_setting(name, fields: nil, quota_user: nil, options: nil, &block)
3174
+ command = make_simple_command(:delete, 'v3/{+name}', options)
3175
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
3176
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
3177
+ command.params['name'] = name unless name.nil?
3178
+ command.query['fields'] = fields unless fields.nil?
3179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3180
+ execute_or_queue_command(command, &block)
3181
+ end
3182
+
3183
+ # Retrieves the specified SecuritySettings. The returned settings may be stale
3184
+ # by up to 1 minute.
3185
+ # @param [String] name
3186
+ # Required. Resource name of the settings. Format: `projects//locations//
3187
+ # securitySettings/`.
3188
+ # @param [String] fields
3189
+ # Selector specifying which fields to include in a partial response.
3190
+ # @param [String] quota_user
3191
+ # Available to use for quota purposes for server-side applications. Can be any
3192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3193
+ # @param [Google::Apis::RequestOptions] options
3194
+ # Request-specific options
3195
+ #
3196
+ # @yield [result, err] Result & error if block supplied
3197
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object
3198
+ # @yieldparam err [StandardError] error object if request failed
3199
+ #
3200
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings]
3201
+ #
3202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3205
+ def get_project_location_security_setting(name, fields: nil, quota_user: nil, options: nil, &block)
3206
+ command = make_simple_command(:get, 'v3/{+name}', options)
3207
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
3208
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings
3209
+ command.params['name'] = name unless name.nil?
3210
+ command.query['fields'] = fields unless fields.nil?
3211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3212
+ execute_or_queue_command(command, &block)
3213
+ end
3214
+
3215
+ # Returns the list of all security settings in the specified location.
3216
+ # @param [String] parent
3217
+ # Required. The location to list all security settings for. Format: `projects//
3218
+ # locations/`.
3219
+ # @param [Fixnum] page_size
3220
+ # The maximum number of items to return in a single page. By default 20 and at
3221
+ # most 100.
3222
+ # @param [String] page_token
3223
+ # The next_page_token value returned from a previous list request.
3224
+ # @param [String] fields
3225
+ # Selector specifying which fields to include in a partial response.
3226
+ # @param [String] quota_user
3227
+ # Available to use for quota purposes for server-side applications. Can be any
3228
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3229
+ # @param [Google::Apis::RequestOptions] options
3230
+ # Request-specific options
3231
+ #
3232
+ # @yield [result, err] Result & error if block supplied
3233
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse] parsed result object
3234
+ # @yieldparam err [StandardError] error object if request failed
3235
+ #
3236
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse]
3237
+ #
3238
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3239
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3240
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3241
+ def list_project_location_security_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3242
+ command = make_simple_command(:get, 'v3/{+parent}/securitySettings', options)
3243
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse::Representation
3244
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse
3245
+ command.params['parent'] = parent unless parent.nil?
3246
+ command.query['pageSize'] = page_size unless page_size.nil?
3247
+ command.query['pageToken'] = page_token unless page_token.nil?
3248
+ command.query['fields'] = fields unless fields.nil?
3249
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3250
+ execute_or_queue_command(command, &block)
3251
+ end
3252
+
3253
+ # Updates the specified SecuritySettings.
3254
+ # @param [String] name
3255
+ # Required. Resource name of the settings. Format: `projects//locations//
3256
+ # securitySettings/`.
3257
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] google_cloud_dialogflow_cx_v3_security_settings_object
3258
+ # @param [String] update_mask
3259
+ # Required. The mask to control which fields get updated. If the mask is not
3260
+ # present, all fields will be updated.
3261
+ # @param [String] fields
3262
+ # Selector specifying which fields to include in a partial response.
3263
+ # @param [String] quota_user
3264
+ # Available to use for quota purposes for server-side applications. Can be any
3265
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3266
+ # @param [Google::Apis::RequestOptions] options
3267
+ # Request-specific options
3268
+ #
3269
+ # @yield [result, err] Result & error if block supplied
3270
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object
3271
+ # @yieldparam err [StandardError] error object if request failed
3272
+ #
3273
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings]
3274
+ #
3275
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3276
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3277
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3278
+ def patch_project_location_security_setting(name, google_cloud_dialogflow_cx_v3_security_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3279
+ command = make_simple_command(:patch, 'v3/{+name}', options)
3280
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
3281
+ command.request_object = google_cloud_dialogflow_cx_v3_security_settings_object
3282
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
3283
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings
3284
+ command.params['name'] = name unless name.nil?
3285
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3286
+ command.query['fields'] = fields unless fields.nil?
3287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3288
+ execute_or_queue_command(command, &block)
3289
+ end
3290
+
3291
+ # Starts asynchronous cancellation on a long-running operation. The server makes
3292
+ # a best effort to cancel the operation, but success is not guaranteed. If the
3293
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
3294
+ # Clients can use Operations.GetOperation or other methods to check whether the
3295
+ # cancellation succeeded or whether the operation completed despite cancellation.
3296
+ # On successful cancellation, the operation is not deleted; instead, it becomes
3297
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
3298
+ # corresponding to `Code.CANCELLED`.
3299
+ # @param [String] name
3300
+ # The name of the operation resource to be cancelled.
3301
+ # @param [String] fields
3302
+ # Selector specifying which fields to include in a partial response.
3303
+ # @param [String] quota_user
3304
+ # Available to use for quota purposes for server-side applications. Can be any
3305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3306
+ # @param [Google::Apis::RequestOptions] options
3307
+ # Request-specific options
3308
+ #
3309
+ # @yield [result, err] Result & error if block supplied
3310
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
3311
+ # @yieldparam err [StandardError] error object if request failed
3312
+ #
3313
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
3314
+ #
3315
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3316
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3317
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3318
+ def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
3319
+ command = make_simple_command(:post, 'v3/{+name}:cancel', options)
3320
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
3321
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
3322
+ command.params['name'] = name unless name.nil?
3323
+ command.query['fields'] = fields unless fields.nil?
3324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3325
+ execute_or_queue_command(command, &block)
3326
+ end
3327
+
3328
+ # Gets the latest state of a long-running operation. Clients can use this method
3329
+ # to poll the operation result at intervals as recommended by the API service.
3330
+ # @param [String] name
3331
+ # The name of the operation resource.
3332
+ # @param [String] fields
3333
+ # Selector specifying which fields to include in a partial response.
3334
+ # @param [String] quota_user
3335
+ # Available to use for quota purposes for server-side applications. Can be any
3336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3337
+ # @param [Google::Apis::RequestOptions] options
3338
+ # Request-specific options
3339
+ #
3340
+ # @yield [result, err] Result & error if block supplied
3341
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
3342
+ # @yieldparam err [StandardError] error object if request failed
3343
+ #
3344
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
3345
+ #
3346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3349
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
3350
+ command = make_simple_command(:get, 'v3/{+name}', options)
3351
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
3352
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
3353
+ command.params['name'] = name unless name.nil?
3354
+ command.query['fields'] = fields unless fields.nil?
3355
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3356
+ execute_or_queue_command(command, &block)
3357
+ end
3358
+
3359
+ # Lists operations that match the specified filter in the request. If the server
3360
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
3361
+ # binding allows API services to override the binding to use different resource
3362
+ # name schemes, such as `users/*/operations`. To override the binding, API
3363
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
3364
+ # service configuration. For backwards compatibility, the default name includes
3365
+ # the operations collection id, however overriding users must ensure the name
3366
+ # binding is the parent resource, without the operations collection id.
3367
+ # @param [String] name
3368
+ # The name of the operation's parent resource.
3369
+ # @param [String] filter
3370
+ # The standard list filter.
3371
+ # @param [Fixnum] page_size
3372
+ # The standard list page size.
3373
+ # @param [String] page_token
3374
+ # The standard list page token.
3375
+ # @param [String] fields
3376
+ # Selector specifying which fields to include in a partial response.
3377
+ # @param [String] quota_user
3378
+ # Available to use for quota purposes for server-side applications. Can be any
3379
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3380
+ # @param [Google::Apis::RequestOptions] options
3381
+ # Request-specific options
3382
+ #
3383
+ # @yield [result, err] Result & error if block supplied
3384
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse] parsed result object
3385
+ # @yieldparam err [StandardError] error object if request failed
3386
+ #
3387
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse]
3388
+ #
3389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3392
+ def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3393
+ command = make_simple_command(:get, 'v3/{+name}/operations', options)
3394
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse::Representation
3395
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse
3396
+ command.params['name'] = name unless name.nil?
3397
+ command.query['filter'] = filter unless filter.nil?
3398
+ command.query['pageSize'] = page_size unless page_size.nil?
3399
+ command.query['pageToken'] = page_token unless page_token.nil?
3400
+ command.query['fields'] = fields unless fields.nil?
3401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3402
+ execute_or_queue_command(command, &block)
3403
+ end
3404
+
3405
+ protected
3406
+
3407
+ def apply_command_defaults(command)
3408
+ command.query['key'] = key unless key.nil?
3409
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3410
+ end
3411
+ end
3412
+ end
3413
+ end
3414
+ end