google-api-client 0.43.0 → 0.48.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 (964) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/autoapprove.yml +49 -0
  3. data/.github/workflows/release-please.yml +77 -0
  4. data/.gitignore +2 -0
  5. data/.kokoro/trampoline.sh +0 -0
  6. data/CHANGELOG.md +1066 -184
  7. data/Gemfile +1 -0
  8. data/Rakefile +31 -3
  9. data/api_list_config.yaml +8 -0
  10. data/api_names.yaml +1 -0
  11. data/bin/generate-api +77 -15
  12. data/docs/oauth-server.md +4 -6
  13. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  14. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  15. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  16. data/generated/google/apis/accessapproval_v1/classes.rb +60 -86
  17. data/generated/google/apis/accessapproval_v1/service.rb +93 -132
  18. data/generated/google/apis/accessapproval_v1.rb +1 -1
  19. data/generated/google/apis/accesscontextmanager_v1/classes.rb +266 -236
  20. data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
  21. data/generated/google/apis/accesscontextmanager_v1/service.rb +308 -171
  22. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  23. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
  24. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
  25. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  26. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +47 -36
  27. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  28. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  29. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +72 -2
  30. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  31. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  32. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  33. data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
  34. data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
  35. data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
  36. data/generated/google/apis/admin_directory_v1/classes.rb +344 -242
  37. data/generated/google/apis/admin_directory_v1/representations.rb +62 -39
  38. data/generated/google/apis/admin_directory_v1/service.rb +607 -998
  39. data/generated/google/apis/admin_directory_v1.rb +6 -8
  40. data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
  41. data/generated/google/apis/admin_reports_v1/service.rb +131 -187
  42. data/generated/google/apis/admin_reports_v1.rb +6 -5
  43. data/generated/google/apis/admob_v1/classes.rb +31 -31
  44. data/generated/google/apis/admob_v1/service.rb +2 -1
  45. data/generated/google/apis/admob_v1.rb +6 -2
  46. data/generated/google/apis/adsense_v1_4/service.rb +4 -1
  47. data/generated/google/apis/adsense_v1_4.rb +1 -1
  48. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  49. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  50. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  51. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2134 -0
  52. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  53. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1655 -0
  54. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +806 -0
  55. data/generated/google/apis/analyticsdata_v1alpha/service.rb +261 -0
  56. data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  58. data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
  59. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  60. data/generated/google/apis/androidmanagement_v1/classes.rb +115 -75
  61. data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
  62. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  63. data/generated/google/apis/androidpublisher_v3/classes.rb +9 -1
  64. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  65. data/generated/google/apis/androidpublisher_v3/service.rb +2 -2
  66. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  67. data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
  68. data/generated/google/apis/{memcache_v1 → apigateway_v1beta}/representations.rb +156 -157
  69. data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
  70. data/generated/google/apis/apigateway_v1beta.rb +34 -0
  71. data/generated/google/apis/apigee_v1/classes.rb +630 -88
  72. data/generated/google/apis/apigee_v1/representations.rb +209 -1
  73. data/generated/google/apis/apigee_v1/service.rb +401 -74
  74. data/generated/google/apis/apigee_v1.rb +6 -7
  75. data/generated/google/apis/appengine_v1/classes.rb +96 -59
  76. data/generated/google/apis/appengine_v1/representations.rb +17 -0
  77. data/generated/google/apis/appengine_v1/service.rb +38 -47
  78. data/generated/google/apis/appengine_v1.rb +1 -1
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
  80. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  81. data/generated/google/apis/appengine_v1beta/classes.rb +103 -59
  82. data/generated/google/apis/appengine_v1beta/representations.rb +18 -0
  83. data/generated/google/apis/appengine_v1beta/service.rb +37 -47
  84. data/generated/google/apis/appengine_v1beta.rb +1 -1
  85. data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
  86. data/generated/google/apis/appsmarket_v2.rb +1 -1
  87. data/generated/google/apis/area120tables_v1alpha1/classes.rb +423 -0
  88. data/generated/google/apis/area120tables_v1alpha1/representations.rb +248 -0
  89. data/generated/google/apis/area120tables_v1alpha1/service.rb +381 -0
  90. data/generated/google/apis/area120tables_v1alpha1.rb +46 -0
  91. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +249 -337
  92. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +2 -0
  93. data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
  94. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  95. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +722 -0
  96. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +359 -0
  97. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
  98. data/generated/google/apis/{accessapproval_v1beta1.rb → assuredworkloads_v1beta1.rb} +8 -8
  99. data/generated/google/apis/bigquery_v2/classes.rb +593 -576
  100. data/generated/google/apis/bigquery_v2/representations.rb +85 -0
  101. data/generated/google/apis/bigquery_v2/service.rb +79 -41
  102. data/generated/google/apis/bigquery_v2.rb +1 -1
  103. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
  104. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
  105. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  106. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
  107. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
  108. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  109. data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
  110. data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
  111. data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
  112. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  113. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
  114. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
  115. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  116. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
  117. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
  118. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
  119. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  120. data/generated/google/apis/bigtableadmin_v1/classes.rb +137 -119
  121. data/generated/google/apis/bigtableadmin_v1/representations.rb +29 -0
  122. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  123. data/generated/google/apis/bigtableadmin_v2/classes.rb +455 -607
  124. data/generated/google/apis/bigtableadmin_v2/representations.rb +29 -0
  125. data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
  126. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  127. data/generated/google/apis/billingbudgets_v1/classes.rb +373 -0
  128. data/generated/google/apis/billingbudgets_v1/representations.rb +171 -0
  129. data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
  130. data/generated/google/apis/billingbudgets_v1.rb +38 -0
  131. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +27 -6
  132. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +2 -0
  133. data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
  134. data/generated/google/apis/binaryauthorization_v1/classes.rb +434 -355
  135. data/generated/google/apis/binaryauthorization_v1/representations.rb +75 -0
  136. data/generated/google/apis/binaryauthorization_v1/service.rb +109 -89
  137. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  138. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +434 -355
  139. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +75 -0
  140. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +109 -89
  141. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  142. data/generated/google/apis/books_v1/service.rb +54 -54
  143. data/generated/google/apis/books_v1.rb +1 -1
  144. data/generated/google/apis/calendar_v3/classes.rb +13 -10
  145. data/generated/google/apis/calendar_v3.rb +1 -1
  146. data/generated/google/apis/chat_v1/classes.rb +173 -116
  147. data/generated/google/apis/chat_v1/representations.rb +36 -0
  148. data/generated/google/apis/chat_v1/service.rb +30 -42
  149. data/generated/google/apis/chat_v1.rb +1 -1
  150. data/generated/google/apis/civicinfo_v2/classes.rb +18 -32
  151. data/generated/google/apis/civicinfo_v2/representations.rb +2 -3
  152. data/generated/google/apis/civicinfo_v2.rb +1 -1
  153. data/generated/google/apis/classroom_v1/classes.rb +153 -21
  154. data/generated/google/apis/classroom_v1/representations.rb +43 -0
  155. data/generated/google/apis/classroom_v1/service.rb +240 -0
  156. data/generated/google/apis/classroom_v1.rb +7 -1
  157. data/generated/google/apis/cloudasset_v1/classes.rb +1461 -1039
  158. data/generated/google/apis/cloudasset_v1/representations.rb +320 -0
  159. data/generated/google/apis/cloudasset_v1/service.rb +296 -167
  160. data/generated/google/apis/cloudasset_v1.rb +1 -1
  161. data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -777
  162. data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
  163. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  164. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
  165. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
  166. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  167. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +222 -276
  168. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
  169. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  170. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +481 -720
  171. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +25 -28
  172. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  173. data/generated/google/apis/cloudbilling_v1/classes.rb +285 -446
  174. data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
  175. data/generated/google/apis/cloudbilling_v1.rb +7 -1
  176. data/generated/google/apis/cloudbuild_v1/classes.rb +339 -344
  177. data/generated/google/apis/cloudbuild_v1/representations.rb +8 -0
  178. data/generated/google/apis/cloudbuild_v1/service.rb +277 -67
  179. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  180. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +291 -329
  181. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
  182. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
  183. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  184. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +277 -313
  185. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +2 -0
  186. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
  187. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  188. data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
  189. data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
  190. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  191. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +127 -156
  192. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
  193. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  194. data/generated/google/apis/cloudfunctions_v1/classes.rb +335 -494
  195. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  196. data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
  197. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  198. data/generated/google/apis/cloudidentity_v1/classes.rb +989 -107
  199. data/generated/google/apis/cloudidentity_v1/representations.rb +371 -0
  200. data/generated/google/apis/cloudidentity_v1/service.rb +883 -88
  201. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  202. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1236 -307
  203. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +424 -21
  204. data/generated/google/apis/cloudidentity_v1beta1/service.rb +921 -96
  205. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  206. data/generated/google/apis/cloudiot_v1/classes.rb +270 -373
  207. data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
  208. data/generated/google/apis/cloudiot_v1/service.rb +147 -154
  209. data/generated/google/apis/cloudiot_v1.rb +1 -1
  210. data/generated/google/apis/cloudkms_v1/classes.rb +509 -692
  211. data/generated/google/apis/cloudkms_v1/representations.rb +18 -0
  212. data/generated/google/apis/cloudkms_v1/service.rb +170 -216
  213. data/generated/google/apis/cloudkms_v1.rb +1 -1
  214. data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
  215. data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
  216. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  217. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
  218. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
  219. data/generated/google/apis/cloudresourcemanager_v1/service.rb +62 -60
  220. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  221. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
  222. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
  223. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +26 -25
  224. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  225. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
  226. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
  227. data/generated/google/apis/cloudresourcemanager_v2/service.rb +7 -7
  228. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  229. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
  230. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
  231. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +7 -7
  232. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  233. data/generated/google/apis/cloudscheduler_v1/classes.rb +272 -383
  234. data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
  235. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  236. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +273 -384
  237. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
  238. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  239. data/generated/google/apis/cloudsearch_v1/classes.rb +651 -781
  240. data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
  241. data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
  242. data/generated/google/apis/cloudsearch_v1.rb +2 -2
  243. data/generated/google/apis/cloudshell_v1/classes.rb +256 -105
  244. data/generated/google/apis/cloudshell_v1/representations.rb +143 -10
  245. data/generated/google/apis/cloudshell_v1/service.rb +198 -25
  246. data/generated/google/apis/cloudshell_v1.rb +1 -1
  247. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +69 -78
  248. data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
  249. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  250. data/generated/google/apis/cloudtasks_v2/classes.rb +612 -933
  251. data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
  252. data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
  253. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  254. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +608 -964
  255. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  256. data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
  257. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  258. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +616 -938
  259. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  260. data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
  261. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  262. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -61
  263. data/generated/google/apis/cloudtrace_v1/service.rb +37 -51
  264. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  265. data/generated/google/apis/cloudtrace_v2/classes.rb +92 -107
  266. data/generated/google/apis/cloudtrace_v2/service.rb +8 -11
  267. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  268. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
  269. data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
  270. data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
  271. data/generated/google/apis/composer_v1/classes.rb +189 -242
  272. data/generated/google/apis/composer_v1/service.rb +79 -150
  273. data/generated/google/apis/composer_v1.rb +1 -1
  274. data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
  275. data/generated/google/apis/composer_v1beta1/service.rb +94 -179
  276. data/generated/google/apis/composer_v1beta1.rb +1 -1
  277. data/generated/google/apis/compute_alpha/classes.rb +1227 -186
  278. data/generated/google/apis/compute_alpha/representations.rb +235 -8
  279. data/generated/google/apis/compute_alpha/service.rb +2009 -1024
  280. data/generated/google/apis/compute_alpha.rb +1 -1
  281. data/generated/google/apis/compute_beta/classes.rb +1080 -108
  282. data/generated/google/apis/compute_beta/representations.rb +212 -2
  283. data/generated/google/apis/compute_beta/service.rb +1413 -741
  284. data/generated/google/apis/compute_beta.rb +1 -1
  285. data/generated/google/apis/compute_v1/classes.rb +1512 -106
  286. data/generated/google/apis/compute_v1/representations.rb +470 -1
  287. data/generated/google/apis/compute_v1/service.rb +1625 -285
  288. data/generated/google/apis/compute_v1.rb +1 -1
  289. data/generated/google/apis/container_v1/classes.rb +982 -965
  290. data/generated/google/apis/container_v1/representations.rb +60 -0
  291. data/generated/google/apis/container_v1/service.rb +435 -502
  292. data/generated/google/apis/container_v1.rb +1 -1
  293. data/generated/google/apis/container_v1beta1/classes.rb +1106 -1044
  294. data/generated/google/apis/container_v1beta1/representations.rb +91 -0
  295. data/generated/google/apis/container_v1beta1/service.rb +403 -466
  296. data/generated/google/apis/container_v1beta1.rb +1 -1
  297. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +463 -596
  298. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  299. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
  300. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  301. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +461 -613
  302. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
  303. data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
  304. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  305. data/generated/google/apis/content_v2/classes.rb +515 -1219
  306. data/generated/google/apis/content_v2/service.rb +377 -650
  307. data/generated/google/apis/content_v2.rb +3 -4
  308. data/generated/google/apis/content_v2_1/classes.rb +1108 -1058
  309. data/generated/google/apis/content_v2_1/representations.rb +288 -0
  310. data/generated/google/apis/content_v2_1/service.rb +987 -795
  311. data/generated/google/apis/content_v2_1.rb +3 -4
  312. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  313. data/generated/google/apis/customsearch_v1.rb +1 -1
  314. data/generated/google/apis/datacatalog_v1beta1/classes.rb +413 -573
  315. data/generated/google/apis/datacatalog_v1beta1/representations.rb +6 -0
  316. data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
  317. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  318. data/generated/google/apis/dataflow_v1b3/classes.rb +1174 -973
  319. data/generated/google/apis/dataflow_v1b3/representations.rb +148 -0
  320. data/generated/google/apis/dataflow_v1b3/service.rb +308 -257
  321. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  322. data/generated/google/apis/datafusion_v1/classes.rb +283 -397
  323. data/generated/google/apis/datafusion_v1/representations.rb +5 -0
  324. data/generated/google/apis/datafusion_v1/service.rb +76 -89
  325. data/generated/google/apis/datafusion_v1.rb +5 -8
  326. data/generated/google/apis/datafusion_v1beta1/classes.rb +283 -397
  327. data/generated/google/apis/datafusion_v1beta1/representations.rb +5 -0
  328. data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
  329. data/generated/google/apis/datafusion_v1beta1.rb +5 -8
  330. data/generated/google/apis/datalabeling_v1beta1/classes.rb +6207 -0
  331. data/generated/google/apis/datalabeling_v1beta1/representations.rb +3156 -0
  332. data/generated/google/apis/datalabeling_v1beta1/service.rb +1762 -0
  333. data/generated/google/apis/datalabeling_v1beta1.rb +34 -0
  334. data/generated/google/apis/dataproc_v1/classes.rb +97 -13
  335. data/generated/google/apis/dataproc_v1/representations.rb +34 -0
  336. data/generated/google/apis/dataproc_v1.rb +1 -1
  337. data/generated/google/apis/dataproc_v1beta2/classes.rb +117 -9
  338. data/generated/google/apis/dataproc_v1beta2/representations.rb +49 -0
  339. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  340. data/generated/google/apis/datastore_v1/classes.rb +334 -476
  341. data/generated/google/apis/datastore_v1/service.rb +52 -63
  342. data/generated/google/apis/datastore_v1.rb +1 -1
  343. data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
  344. data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
  345. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  346. data/generated/google/apis/datastore_v1beta3/classes.rb +259 -375
  347. data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
  348. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  349. data/generated/google/apis/deploymentmanager_v2/classes.rb +203 -558
  350. data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -132
  351. data/generated/google/apis/deploymentmanager_v2/service.rb +169 -213
  352. data/generated/google/apis/deploymentmanager_v2.rb +6 -4
  353. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +247 -609
  354. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -132
  355. data/generated/google/apis/deploymentmanager_v2beta/service.rb +278 -359
  356. data/generated/google/apis/deploymentmanager_v2beta.rb +6 -5
  357. data/generated/google/apis/dfareporting_v3_3/classes.rb +162 -339
  358. data/generated/google/apis/dfareporting_v3_3/service.rb +646 -1262
  359. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  360. data/generated/google/apis/dfareporting_v3_4/classes.rb +184 -350
  361. data/generated/google/apis/dfareporting_v3_4/representations.rb +1 -0
  362. data/generated/google/apis/dfareporting_v3_4/service.rb +681 -1261
  363. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  364. data/generated/google/apis/dialogflow_v2/classes.rb +746 -217
  365. data/generated/google/apis/dialogflow_v2/representations.rb +318 -67
  366. data/generated/google/apis/dialogflow_v2.rb +1 -1
  367. data/generated/google/apis/dialogflow_v2beta1/classes.rb +764 -233
  368. data/generated/google/apis/dialogflow_v2beta1/representations.rb +318 -67
  369. data/generated/google/apis/dialogflow_v2beta1/service.rb +556 -331
  370. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  371. data/generated/google/apis/dialogflow_v3beta1/classes.rb +8816 -0
  372. data/generated/google/apis/dialogflow_v3beta1/representations.rb +3725 -0
  373. data/generated/google/apis/dialogflow_v3beta1/service.rb +2825 -0
  374. data/generated/google/apis/dialogflow_v3beta1.rb +38 -0
  375. data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
  376. data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
  377. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  378. data/generated/google/apis/displayvideo_v1/classes.rb +271 -38
  379. data/generated/google/apis/displayvideo_v1/representations.rb +83 -0
  380. data/generated/google/apis/displayvideo_v1/service.rb +287 -32
  381. data/generated/google/apis/displayvideo_v1.rb +1 -1
  382. data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
  383. data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
  384. data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
  385. data/generated/google/apis/displayvideo_v1beta.rb +38 -0
  386. data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
  387. data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
  388. data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
  389. data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
  390. data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
  391. data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
  392. data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
  393. data/generated/google/apis/displayvideo_v1dev.rb +38 -0
  394. data/generated/google/apis/dlp_v2/classes.rb +1111 -1310
  395. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  396. data/generated/google/apis/dlp_v2/service.rb +962 -905
  397. data/generated/google/apis/dlp_v2.rb +1 -1
  398. data/generated/google/apis/dns_v1/classes.rb +356 -198
  399. data/generated/google/apis/dns_v1/representations.rb +83 -0
  400. data/generated/google/apis/dns_v1/service.rb +83 -98
  401. data/generated/google/apis/dns_v1.rb +2 -2
  402. data/generated/google/apis/dns_v1beta2/classes.rb +362 -206
  403. data/generated/google/apis/dns_v1beta2/representations.rb +83 -0
  404. data/generated/google/apis/dns_v1beta2/service.rb +83 -98
  405. data/generated/google/apis/dns_v1beta2.rb +2 -2
  406. data/generated/google/apis/docs_v1/classes.rb +894 -1229
  407. data/generated/google/apis/docs_v1/service.rb +17 -22
  408. data/generated/google/apis/docs_v1.rb +1 -1
  409. data/generated/google/apis/documentai_v1beta2/classes.rb +2253 -824
  410. data/generated/google/apis/documentai_v1beta2/representations.rb +701 -0
  411. data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
  412. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  413. data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
  414. data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
  415. data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
  416. data/generated/google/apis/{securitycenter_v1p1alpha1.rb → documentai_v1beta3.rb} +11 -10
  417. data/generated/google/apis/domains_v1alpha2/classes.rb +1540 -0
  418. data/generated/google/apis/domains_v1alpha2/representations.rb +606 -0
  419. data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
  420. data/generated/google/apis/domains_v1alpha2.rb +34 -0
  421. data/generated/google/apis/domains_v1beta1/classes.rb +1540 -0
  422. data/generated/google/apis/domains_v1beta1/representations.rb +606 -0
  423. data/generated/google/apis/domains_v1beta1/service.rb +805 -0
  424. data/generated/google/apis/domains_v1beta1.rb +34 -0
  425. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -12
  426. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -64
  427. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
  428. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +13 -20
  429. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +33 -64
  430. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
  431. data/generated/google/apis/doubleclicksearch_v2/service.rb +2 -2
  432. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  433. data/generated/google/apis/drive_v2/classes.rb +18 -7
  434. data/generated/google/apis/drive_v2/representations.rb +1 -0
  435. data/generated/google/apis/drive_v2/service.rb +79 -15
  436. data/generated/google/apis/drive_v2.rb +1 -1
  437. data/generated/google/apis/drive_v3/classes.rb +18 -8
  438. data/generated/google/apis/drive_v3/representations.rb +1 -0
  439. data/generated/google/apis/drive_v3/service.rb +59 -11
  440. data/generated/google/apis/drive_v3.rb +1 -1
  441. data/generated/google/apis/eventarc_v1beta1/classes.rb +931 -0
  442. data/generated/google/apis/eventarc_v1beta1/representations.rb +379 -0
  443. data/generated/google/apis/{memcache_v1 → eventarc_v1beta1}/service.rb +236 -215
  444. data/generated/google/apis/eventarc_v1beta1.rb +34 -0
  445. data/generated/google/apis/file_v1/classes.rb +155 -174
  446. data/generated/google/apis/file_v1/service.rb +43 -52
  447. data/generated/google/apis/file_v1.rb +1 -1
  448. data/generated/google/apis/file_v1beta1/classes.rb +335 -194
  449. data/generated/google/apis/file_v1beta1/representations.rb +55 -0
  450. data/generated/google/apis/file_v1beta1/service.rb +267 -55
  451. data/generated/google/apis/file_v1beta1.rb +1 -1
  452. data/generated/google/apis/firebase_v1beta1/classes.rb +33 -51
  453. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -16
  454. data/generated/google/apis/firebase_v1beta1/service.rb +21 -1
  455. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  456. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  457. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +188 -0
  458. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +83 -0
  459. data/generated/google/apis/firebasehosting_v1beta1/service.rb +418 -4
  460. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  461. data/generated/google/apis/firebaseml_v1beta2/classes.rb +8 -8
  462. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -1
  463. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  464. data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
  465. data/generated/google/apis/firebaserules_v1/service.rb +87 -110
  466. data/generated/google/apis/firebaserules_v1.rb +1 -1
  467. data/generated/google/apis/firestore_v1/classes.rb +406 -502
  468. data/generated/google/apis/firestore_v1/service.rb +165 -201
  469. data/generated/google/apis/firestore_v1.rb +1 -1
  470. data/generated/google/apis/firestore_v1beta1/classes.rb +338 -413
  471. data/generated/google/apis/firestore_v1beta1/service.rb +106 -122
  472. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  473. data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
  474. data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
  475. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  476. data/generated/google/apis/fitness_v1/classes.rb +982 -0
  477. data/generated/google/apis/fitness_v1/representations.rb +398 -0
  478. data/generated/google/apis/fitness_v1/service.rb +628 -0
  479. data/generated/google/apis/fitness_v1.rb +97 -0
  480. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
  481. data/generated/google/apis/games_configuration_v1configuration/service.rb +6 -6
  482. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  483. data/generated/google/apis/games_management_v1management/classes.rb +14 -20
  484. data/generated/google/apis/games_management_v1management/service.rb +35 -36
  485. data/generated/google/apis/games_management_v1management.rb +2 -3
  486. data/generated/google/apis/games_v1/classes.rb +376 -83
  487. data/generated/google/apis/games_v1/representations.rb +118 -0
  488. data/generated/google/apis/games_v1/service.rb +118 -90
  489. data/generated/google/apis/games_v1.rb +2 -3
  490. data/generated/google/apis/gameservices_v1/classes.rb +22 -14
  491. data/generated/google/apis/gameservices_v1/representations.rb +1 -0
  492. data/generated/google/apis/gameservices_v1/service.rb +54 -51
  493. data/generated/google/apis/gameservices_v1.rb +1 -1
  494. data/generated/google/apis/gameservices_v1beta/classes.rb +22 -14
  495. data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
  496. data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
  497. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  498. data/generated/google/apis/genomics_v1/classes.rb +70 -76
  499. data/generated/google/apis/genomics_v1/service.rb +28 -43
  500. data/generated/google/apis/genomics_v1.rb +1 -1
  501. data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
  502. data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
  503. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  504. data/generated/google/apis/genomics_v2alpha1/classes.rb +356 -275
  505. data/generated/google/apis/genomics_v2alpha1/representations.rb +48 -0
  506. data/generated/google/apis/genomics_v2alpha1/service.rb +47 -66
  507. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  508. data/generated/google/apis/gmail_v1/classes.rb +37 -43
  509. data/generated/google/apis/gmail_v1/service.rb +5 -4
  510. data/generated/google/apis/gmail_v1.rb +1 -1
  511. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +11 -11
  512. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +2 -2
  513. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  514. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  515. data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
  516. data/generated/google/apis/groupsmigration_v1.rb +35 -0
  517. data/generated/google/apis/healthcare_v1/classes.rb +637 -826
  518. data/generated/google/apis/healthcare_v1/representations.rb +32 -0
  519. data/generated/google/apis/healthcare_v1/service.rb +842 -855
  520. data/generated/google/apis/healthcare_v1.rb +1 -1
  521. data/generated/google/apis/healthcare_v1beta1/classes.rb +1937 -1299
  522. data/generated/google/apis/healthcare_v1beta1/representations.rb +534 -65
  523. data/generated/google/apis/healthcare_v1beta1/service.rb +2534 -1293
  524. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  525. data/generated/google/apis/homegraph_v1/classes.rb +76 -164
  526. data/generated/google/apis/homegraph_v1/service.rb +23 -35
  527. data/generated/google/apis/homegraph_v1.rb +4 -1
  528. data/generated/google/apis/iam_v1/classes.rb +395 -592
  529. data/generated/google/apis/iam_v1/representations.rb +1 -0
  530. data/generated/google/apis/iam_v1/service.rb +427 -555
  531. data/generated/google/apis/iam_v1.rb +1 -1
  532. data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
  533. data/generated/google/apis/iamcredentials_v1/service.rb +14 -13
  534. data/generated/google/apis/iamcredentials_v1.rb +3 -2
  535. data/generated/google/apis/iap_v1/classes.rb +253 -355
  536. data/generated/google/apis/iap_v1/representations.rb +1 -0
  537. data/generated/google/apis/iap_v1/service.rb +61 -71
  538. data/generated/google/apis/iap_v1.rb +1 -1
  539. data/generated/google/apis/iap_v1beta1/classes.rb +164 -254
  540. data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
  541. data/generated/google/apis/iap_v1beta1/service.rb +17 -19
  542. data/generated/google/apis/iap_v1beta1.rb +1 -1
  543. data/generated/google/apis/indexing_v3/classes.rb +11 -11
  544. data/generated/google/apis/indexing_v3.rb +1 -1
  545. data/generated/google/apis/jobs_v2/classes.rb +1584 -1086
  546. data/generated/google/apis/jobs_v2/representations.rb +272 -0
  547. data/generated/google/apis/jobs_v2/service.rb +85 -126
  548. data/generated/google/apis/jobs_v2.rb +1 -1
  549. data/generated/google/apis/jobs_v3/classes.rb +1559 -980
  550. data/generated/google/apis/jobs_v3/representations.rb +272 -0
  551. data/generated/google/apis/jobs_v3/service.rb +101 -139
  552. data/generated/google/apis/jobs_v3.rb +1 -1
  553. data/generated/google/apis/jobs_v3p1beta1/classes.rb +1521 -1023
  554. data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
  555. data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
  556. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  557. data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
  558. data/generated/google/apis/kgsearch_v1/service.rb +11 -11
  559. data/generated/google/apis/kgsearch_v1.rb +1 -1
  560. data/generated/google/apis/licensing_v1/classes.rb +1 -1
  561. data/generated/google/apis/licensing_v1/service.rb +56 -86
  562. data/generated/google/apis/licensing_v1.rb +4 -3
  563. data/generated/google/apis/lifesciences_v2beta/classes.rb +366 -290
  564. data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
  565. data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
  566. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  567. data/generated/google/apis/localservices_v1/classes.rb +426 -0
  568. data/generated/google/apis/localservices_v1/representations.rb +174 -0
  569. data/generated/google/apis/localservices_v1/service.rb +199 -0
  570. data/generated/google/apis/{appsactivity_v1.rb → localservices_v1.rb} +8 -11
  571. data/generated/google/apis/logging_v2/classes.rb +306 -232
  572. data/generated/google/apis/logging_v2/representations.rb +79 -0
  573. data/generated/google/apis/logging_v2/service.rb +3307 -1579
  574. data/generated/google/apis/logging_v2.rb +1 -1
  575. data/generated/google/apis/managedidentities_v1/classes.rb +8 -1
  576. data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
  577. data/generated/google/apis/managedidentities_v1/service.rb +1 -4
  578. data/generated/google/apis/managedidentities_v1.rb +1 -1
  579. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +87 -1
  580. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +34 -0
  581. data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
  582. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  583. data/generated/google/apis/managedidentities_v1beta1/classes.rb +88 -1
  584. data/generated/google/apis/managedidentities_v1beta1/representations.rb +34 -0
  585. data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
  586. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  587. data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
  588. data/generated/google/apis/manufacturers_v1/service.rb +44 -55
  589. data/generated/google/apis/manufacturers_v1.rb +1 -1
  590. data/generated/google/apis/memcache_v1beta2/classes.rb +171 -250
  591. data/generated/google/apis/memcache_v1beta2/representations.rb +0 -19
  592. data/generated/google/apis/memcache_v1beta2/service.rb +60 -73
  593. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  594. data/generated/google/apis/ml_v1/classes.rb +1122 -1149
  595. data/generated/google/apis/ml_v1/representations.rb +82 -0
  596. data/generated/google/apis/ml_v1/service.rb +194 -253
  597. data/generated/google/apis/ml_v1.rb +1 -1
  598. data/generated/google/apis/monitoring_v1/classes.rb +107 -26
  599. data/generated/google/apis/monitoring_v1/representations.rb +35 -0
  600. data/generated/google/apis/monitoring_v1/service.rb +10 -11
  601. data/generated/google/apis/monitoring_v1.rb +1 -1
  602. data/generated/google/apis/monitoring_v3/classes.rb +303 -345
  603. data/generated/google/apis/monitoring_v3/representations.rb +18 -0
  604. data/generated/google/apis/monitoring_v3/service.rb +176 -146
  605. data/generated/google/apis/monitoring_v3.rb +1 -1
  606. data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
  607. data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
  608. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  609. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +456 -429
  610. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +63 -0
  611. data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
  612. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  613. data/generated/google/apis/osconfig_v1/classes.rb +154 -902
  614. data/generated/google/apis/osconfig_v1/representations.rb +0 -337
  615. data/generated/google/apis/osconfig_v1/service.rb +26 -31
  616. data/generated/google/apis/osconfig_v1.rb +3 -3
  617. data/generated/google/apis/osconfig_v1beta/classes.rb +327 -411
  618. data/generated/google/apis/osconfig_v1beta/service.rb +43 -56
  619. data/generated/google/apis/osconfig_v1beta.rb +3 -3
  620. data/generated/google/apis/oslogin_v1/classes.rb +14 -12
  621. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  622. data/generated/google/apis/oslogin_v1/service.rb +12 -16
  623. data/generated/google/apis/oslogin_v1.rb +1 -1
  624. data/generated/google/apis/oslogin_v1alpha/classes.rb +16 -14
  625. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  626. data/generated/google/apis/oslogin_v1alpha/service.rb +17 -17
  627. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  628. data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
  629. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  630. data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
  631. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  632. data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
  633. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
  634. data/generated/google/apis/pagespeedonline_v5.rb +2 -2
  635. data/generated/google/apis/people_v1/classes.rb +173 -63
  636. data/generated/google/apis/people_v1/representations.rb +41 -0
  637. data/generated/google/apis/people_v1/service.rb +63 -61
  638. data/generated/google/apis/people_v1.rb +1 -1
  639. data/generated/google/apis/playablelocations_v3/classes.rb +114 -161
  640. data/generated/google/apis/playablelocations_v3/service.rb +10 -10
  641. data/generated/google/apis/playablelocations_v3.rb +1 -1
  642. data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
  643. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  644. data/generated/google/apis/poly_v1/classes.rb +65 -79
  645. data/generated/google/apis/poly_v1/service.rb +50 -63
  646. data/generated/google/apis/poly_v1.rb +3 -4
  647. data/generated/google/apis/privateca_v1beta1/classes.rb +2466 -0
  648. data/generated/google/apis/privateca_v1beta1/representations.rb +996 -0
  649. data/generated/google/apis/privateca_v1beta1/service.rb +1487 -0
  650. data/generated/google/apis/privateca_v1beta1.rb +34 -0
  651. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +26 -0
  652. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
  653. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +644 -56
  654. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  655. data/generated/google/apis/pubsub_v1/classes.rb +399 -518
  656. data/generated/google/apis/pubsub_v1/representations.rb +2 -0
  657. data/generated/google/apis/pubsub_v1/service.rb +221 -247
  658. data/generated/google/apis/pubsub_v1.rb +1 -1
  659. data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
  660. data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
  661. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  662. data/generated/google/apis/pubsub_v1beta2/classes.rb +251 -354
  663. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
  664. data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
  665. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  666. data/generated/google/apis/pubsublite_v1/classes.rb +461 -0
  667. data/generated/google/apis/pubsublite_v1/representations.rb +261 -0
  668. data/generated/google/apis/pubsublite_v1/service.rb +558 -0
  669. data/generated/google/apis/{memcache_v1.rb → pubsublite_v1.rb} +8 -9
  670. data/generated/google/apis/realtimebidding_v1/classes.rb +84 -123
  671. data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
  672. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  673. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  674. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +367 -456
  675. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +25 -16
  676. data/generated/google/apis/recommendationengine_v1beta1/service.rb +140 -206
  677. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  678. data/generated/google/apis/recommender_v1/classes.rb +1 -1
  679. data/generated/google/apis/recommender_v1/service.rb +4 -2
  680. data/generated/google/apis/recommender_v1.rb +1 -1
  681. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
  682. data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
  683. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  684. data/generated/google/apis/redis_v1/classes.rb +91 -513
  685. data/generated/google/apis/redis_v1/representations.rb +0 -139
  686. data/generated/google/apis/redis_v1/service.rb +92 -109
  687. data/generated/google/apis/redis_v1.rb +1 -1
  688. data/generated/google/apis/redis_v1beta1/classes.rb +123 -517
  689. data/generated/google/apis/redis_v1beta1/representations.rb +12 -137
  690. data/generated/google/apis/redis_v1beta1/service.rb +126 -109
  691. data/generated/google/apis/redis_v1beta1.rb +1 -1
  692. data/generated/google/apis/remotebuildexecution_v1/classes.rb +957 -1078
  693. data/generated/google/apis/remotebuildexecution_v1/representations.rb +62 -0
  694. data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
  695. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  696. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +952 -1071
  697. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +62 -0
  698. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
  699. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  700. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1105 -1250
  701. data/generated/google/apis/remotebuildexecution_v2/representations.rb +62 -0
  702. data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
  703. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  704. data/generated/google/apis/reseller_v1/classes.rb +151 -219
  705. data/generated/google/apis/reseller_v1/service.rb +122 -173
  706. data/generated/google/apis/reseller_v1.rb +2 -2
  707. data/generated/google/apis/run_v1/classes.rb +19 -138
  708. data/generated/google/apis/run_v1/representations.rb +1 -62
  709. data/generated/google/apis/run_v1/service.rb +0 -342
  710. data/generated/google/apis/run_v1.rb +1 -1
  711. data/generated/google/apis/run_v1alpha1/classes.rb +1 -1
  712. data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
  713. data/generated/google/apis/run_v1alpha1.rb +1 -1
  714. data/generated/google/apis/run_v1beta1/classes.rb +3 -2
  715. data/generated/google/apis/run_v1beta1.rb +1 -1
  716. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +301 -412
  717. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
  718. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
  719. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  720. data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
  721. data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
  722. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  723. data/generated/google/apis/sasportal_v1alpha1/classes.rb +26 -0
  724. data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
  725. data/generated/google/apis/sasportal_v1alpha1/service.rb +644 -56
  726. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  727. data/generated/google/apis/script_v1/classes.rb +88 -111
  728. data/generated/google/apis/script_v1/service.rb +63 -69
  729. data/generated/google/apis/script_v1.rb +1 -1
  730. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  731. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  732. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  733. data/generated/google/apis/searchconsole_v1.rb +7 -1
  734. data/generated/google/apis/secretmanager_v1/classes.rb +378 -365
  735. data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
  736. data/generated/google/apis/secretmanager_v1/service.rb +66 -82
  737. data/generated/google/apis/secretmanager_v1.rb +1 -1
  738. data/generated/google/apis/secretmanager_v1beta1/classes.rb +217 -363
  739. data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
  740. data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
  741. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  742. data/generated/google/apis/securitycenter_v1/classes.rb +20 -204
  743. data/generated/google/apis/securitycenter_v1/representations.rb +1 -72
  744. data/generated/google/apis/securitycenter_v1.rb +1 -1
  745. data/generated/google/apis/securitycenter_v1beta1/classes.rb +22 -204
  746. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -72
  747. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  748. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +275 -291
  749. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +83 -84
  750. data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
  751. data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
  752. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +35 -123
  753. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
  754. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +32 -30
  755. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  756. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +24 -112
  757. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
  758. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  759. data/generated/google/apis/servicecontrol_v1/classes.rb +601 -642
  760. data/generated/google/apis/servicecontrol_v1/representations.rb +10 -0
  761. data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
  762. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  763. data/generated/google/apis/servicecontrol_v2/classes.rb +343 -325
  764. data/generated/google/apis/servicecontrol_v2/representations.rb +8 -0
  765. data/generated/google/apis/servicecontrol_v2/service.rb +33 -43
  766. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  767. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +221 -333
  768. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
  769. data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
  770. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  771. data/generated/google/apis/servicemanagement_v1/classes.rb +1244 -2174
  772. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -31
  773. data/generated/google/apis/servicemanagement_v1/service.rb +141 -228
  774. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  775. data/generated/google/apis/servicenetworking_v1/classes.rb +278 -121
  776. data/generated/google/apis/servicenetworking_v1/representations.rb +115 -15
  777. data/generated/google/apis/servicenetworking_v1/service.rb +118 -2
  778. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  779. data/generated/google/apis/servicenetworking_v1beta/classes.rb +213 -112
  780. data/generated/google/apis/servicenetworking_v1beta/representations.rb +84 -14
  781. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  782. data/generated/google/apis/serviceusage_v1/classes.rb +57 -111
  783. data/generated/google/apis/serviceusage_v1/representations.rb +4 -18
  784. data/generated/google/apis/serviceusage_v1/service.rb +5 -1
  785. data/generated/google/apis/serviceusage_v1.rb +1 -1
  786. data/generated/google/apis/serviceusage_v1beta1/classes.rb +122 -112
  787. data/generated/google/apis/serviceusage_v1beta1/representations.rb +23 -18
  788. data/generated/google/apis/serviceusage_v1beta1/service.rb +36 -0
  789. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  790. data/generated/google/apis/sheets_v4/classes.rb +4029 -5014
  791. data/generated/google/apis/sheets_v4/representations.rb +625 -0
  792. data/generated/google/apis/sheets_v4/service.rb +113 -149
  793. data/generated/google/apis/sheets_v4.rb +1 -1
  794. data/generated/google/apis/site_verification_v1.rb +1 -1
  795. data/generated/google/apis/slides_v1/classes.rb +841 -1114
  796. data/generated/google/apis/slides_v1/service.rb +23 -30
  797. data/generated/google/apis/slides_v1.rb +1 -1
  798. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +273 -0
  799. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +157 -0
  800. data/generated/google/apis/smartdevicemanagement_v1/service.rb +304 -0
  801. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  802. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  803. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  804. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  805. data/generated/google/apis/spanner_v1/classes.rb +1553 -2157
  806. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  807. data/generated/google/apis/spanner_v1/service.rb +443 -618
  808. data/generated/google/apis/spanner_v1.rb +1 -1
  809. data/generated/google/apis/speech_v1/classes.rb +174 -220
  810. data/generated/google/apis/speech_v1/service.rb +27 -32
  811. data/generated/google/apis/speech_v1.rb +1 -1
  812. data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
  813. data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
  814. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  815. data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
  816. data/generated/google/apis/speech_v2beta1/service.rb +10 -12
  817. data/generated/google/apis/speech_v2beta1.rb +1 -1
  818. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +537 -452
  819. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +142 -87
  820. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +295 -300
  821. data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
  822. data/generated/google/apis/storage_v1/classes.rb +10 -17
  823. data/generated/google/apis/storage_v1/representations.rb +2 -3
  824. data/generated/google/apis/storage_v1/service.rb +3 -2
  825. data/generated/google/apis/storage_v1.rb +1 -1
  826. data/generated/google/apis/storagetransfer_v1/classes.rb +301 -349
  827. data/generated/google/apis/storagetransfer_v1/representations.rb +13 -0
  828. data/generated/google/apis/storagetransfer_v1/service.rb +53 -72
  829. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  830. data/generated/google/apis/streetviewpublish_v1/classes.rb +110 -152
  831. data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
  832. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  833. data/generated/google/apis/sts_v1/classes.rb +121 -0
  834. data/generated/google/apis/sts_v1/representations.rb +59 -0
  835. data/generated/google/apis/sts_v1/service.rb +90 -0
  836. data/generated/google/apis/sts_v1.rb +32 -0
  837. data/generated/google/apis/sts_v1beta/classes.rb +191 -0
  838. data/generated/google/apis/sts_v1beta/representations.rb +61 -0
  839. data/generated/google/apis/sts_v1beta/service.rb +92 -0
  840. data/generated/google/apis/sts_v1beta.rb +32 -0
  841. data/generated/google/apis/tagmanager_v1/service.rb +2 -2
  842. data/generated/google/apis/tagmanager_v1.rb +1 -1
  843. data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
  844. data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
  845. data/generated/google/apis/tagmanager_v2/service.rb +2 -2
  846. data/generated/google/apis/tagmanager_v2.rb +1 -1
  847. data/generated/google/apis/tasks_v1/classes.rb +21 -22
  848. data/generated/google/apis/tasks_v1/service.rb +19 -19
  849. data/generated/google/apis/tasks_v1.rb +1 -1
  850. data/generated/google/apis/testing_v1/classes.rb +384 -390
  851. data/generated/google/apis/testing_v1/representations.rb +23 -0
  852. data/generated/google/apis/testing_v1/service.rb +22 -28
  853. data/generated/google/apis/testing_v1.rb +1 -1
  854. data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
  855. data/generated/google/apis/texttospeech_v1/service.rb +9 -10
  856. data/generated/google/apis/texttospeech_v1.rb +1 -1
  857. data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
  858. data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
  859. data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
  860. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  861. data/generated/google/apis/toolresults_v1beta3/classes.rb +20 -0
  862. data/generated/google/apis/toolresults_v1beta3/representations.rb +13 -0
  863. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  864. data/generated/google/apis/tpu_v1/classes.rb +57 -3
  865. data/generated/google/apis/tpu_v1/representations.rb +19 -0
  866. data/generated/google/apis/tpu_v1/service.rb +8 -8
  867. data/generated/google/apis/tpu_v1.rb +1 -1
  868. data/generated/google/apis/tpu_v1alpha1/classes.rb +57 -3
  869. data/generated/google/apis/tpu_v1alpha1/representations.rb +19 -0
  870. data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
  871. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  872. data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
  873. data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
  874. data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
  875. data/generated/google/apis/trafficdirector_v2.rb +34 -0
  876. data/generated/google/apis/translate_v3/classes.rb +151 -177
  877. data/generated/google/apis/translate_v3/service.rb +122 -151
  878. data/generated/google/apis/translate_v3.rb +1 -1
  879. data/generated/google/apis/translate_v3beta1/classes.rb +150 -170
  880. data/generated/google/apis/translate_v3beta1/service.rb +122 -151
  881. data/generated/google/apis/translate_v3beta1.rb +1 -1
  882. data/generated/google/apis/vault_v1/classes.rb +413 -103
  883. data/generated/google/apis/vault_v1/representations.rb +162 -0
  884. data/generated/google/apis/vault_v1/service.rb +182 -37
  885. data/generated/google/apis/vault_v1.rb +1 -1
  886. data/generated/google/apis/vectortile_v1/classes.rb +185 -267
  887. data/generated/google/apis/vectortile_v1/service.rb +75 -88
  888. data/generated/google/apis/vectortile_v1.rb +1 -1
  889. data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
  890. data/generated/google/apis/verifiedaccess_v1.rb +1 -1
  891. data/generated/google/apis/videointelligence_v1/classes.rb +1493 -935
  892. data/generated/google/apis/videointelligence_v1/representations.rb +402 -2
  893. data/generated/google/apis/videointelligence_v1/service.rb +38 -77
  894. data/generated/google/apis/videointelligence_v1.rb +1 -1
  895. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1488 -928
  896. data/generated/google/apis/videointelligence_v1beta2/representations.rb +402 -2
  897. data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
  898. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  899. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1482 -922
  900. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +402 -2
  901. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
  902. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  903. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1485 -925
  904. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +402 -2
  905. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
  906. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  907. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1410 -937
  908. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +368 -2
  909. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
  910. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  911. data/generated/google/apis/vision_v1/classes.rb +16 -16
  912. data/generated/google/apis/vision_v1.rb +1 -1
  913. data/generated/google/apis/vision_v1p1beta1/classes.rb +16 -16
  914. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  915. data/generated/google/apis/vision_v1p2beta1/classes.rb +16 -16
  916. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  917. data/generated/google/apis/webfonts_v1/classes.rb +1 -2
  918. data/generated/google/apis/webfonts_v1/service.rb +2 -4
  919. data/generated/google/apis/webfonts_v1.rb +2 -3
  920. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  921. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  922. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  923. data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
  924. data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
  925. data/generated/google/apis/{securitycenter_v1p1alpha1 → workflowexecutions_v1beta}/service.rb +73 -69
  926. data/generated/google/apis/workflowexecutions_v1beta.rb +34 -0
  927. data/generated/google/apis/workflows_v1beta/classes.rb +406 -0
  928. data/generated/google/apis/workflows_v1beta/representations.rb +173 -0
  929. data/generated/google/apis/workflows_v1beta/service.rb +438 -0
  930. data/generated/google/apis/workflows_v1beta.rb +35 -0
  931. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  932. data/generated/google/apis/youtube_v3/classes.rb +0 -586
  933. data/generated/google/apis/youtube_v3/representations.rb +0 -269
  934. data/generated/google/apis/youtube_v3/service.rb +3 -120
  935. data/generated/google/apis/youtube_v3.rb +1 -1
  936. data/google-api-client.gemspec +25 -24
  937. data/lib/google/apis/core/api_command.rb +1 -0
  938. data/lib/google/apis/core/http_command.rb +2 -1
  939. data/lib/google/apis/options.rb +8 -5
  940. data/lib/google/apis/version.rb +1 -1
  941. data/synth.py +40 -0
  942. metadata +134 -41
  943. data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
  944. data/generated/google/apis/accessapproval_v1beta1/representations.rb +0 -203
  945. data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
  946. data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
  947. data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
  948. data/generated/google/apis/appsactivity_v1/service.rb +0 -126
  949. data/generated/google/apis/dns_v2beta1/classes.rb +0 -1447
  950. data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
  951. data/generated/google/apis/dns_v2beta1/service.rb +0 -928
  952. data/generated/google/apis/dns_v2beta1.rb +0 -43
  953. data/generated/google/apis/memcache_v1/classes.rb +0 -1157
  954. data/generated/google/apis/plus_v1/classes.rb +0 -2094
  955. data/generated/google/apis/plus_v1/representations.rb +0 -907
  956. data/generated/google/apis/plus_v1/service.rb +0 -451
  957. data/generated/google/apis/plus_v1.rb +0 -43
  958. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2059
  959. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
  960. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1243
  961. data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
  962. data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
  963. data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
  964. data/generated/google/apis/storage_v1beta2.rb +0 -40
@@ -0,0 +1,2825 @@
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 DialogflowV3beta1
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_v3beta1'
30
+ #
31
+ # Dialogflow = Google::Apis::DialogflowV3beta1 # 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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent]
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_v3beta1_agent_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v3beta1/{+parent}/agents', options)
74
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent::Representation
75
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_agent_object
76
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent::Representation
77
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent
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::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
98
+ # @yieldparam err [StandardError] error object if request failed
99
+ #
100
+ # @return [Google::Apis::DialogflowV3beta1::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, 'v3beta1/{+name}', options)
107
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
108
+ command.response_class = Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExportAgentRequest] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
130
+ # @yieldparam err [StandardError] error object if request failed
131
+ #
132
+ # @return [Google::Apis::DialogflowV3beta1::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_v3beta1_export_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ command = make_simple_command(:post, 'v3beta1/{+name}:export', options)
139
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExportAgentRequest::Representation
140
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_export_agent_request_object
141
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
142
+ command.response_class = Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent] parsed result object
162
+ # @yieldparam err [StandardError] error object if request failed
163
+ #
164
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent]
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, 'v3beta1/{+name}', options)
171
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent::Representation
172
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListAgentsResponse] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListAgentsResponse]
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, 'v3beta1/{+parent}/agents', options)
206
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListAgentsResponse::Representation
207
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListAgentsResponse
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent]
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_v3beta1_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
243
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
244
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent::Representation
245
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_agent_object
246
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent::Representation
247
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Agent
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RestoreAgentRequest] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
272
+ # @yieldparam err [StandardError] error object if request failed
273
+ #
274
+ # @return [Google::Apis::DialogflowV3beta1::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_v3beta1_restore_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
280
+ command = make_simple_command(:post, 'v3beta1/{+name}:restore', options)
281
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RestoreAgentRequest::Representation
282
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_restore_agent_request_object
283
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
284
+ command.response_class = Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType] parsed result object
312
+ # @yieldparam err [StandardError] error object if request failed
313
+ #
314
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType]
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_v3beta1_entity_type_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
320
+ command = make_simple_command(:post, 'v3beta1/{+parent}/entityTypes', options)
321
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType::Representation
322
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_entity_type_object
323
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType::Representation
324
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType
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::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
353
+ # @yieldparam err [StandardError] error object if request failed
354
+ #
355
+ # @return [Google::Apis::DialogflowV3beta1::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, 'v3beta1/{+name}', options)
362
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
363
+ command.response_class = Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType] parsed result object
392
+ # @yieldparam err [StandardError] error object if request failed
393
+ #
394
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType]
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, 'v3beta1/{+name}', options)
401
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType::Representation
402
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse] parsed result object
436
+ # @yieldparam err [StandardError] error object if request failed
437
+ #
438
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse]
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, 'v3beta1/{+parent}/entityTypes', options)
445
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse::Representation
446
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType] parsed result object
479
+ # @yieldparam err [StandardError] error object if request failed
480
+ #
481
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType]
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_v3beta1_entity_type_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
487
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
488
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType::Representation
489
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_entity_type_object
490
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType::Representation
491
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
515
+ # @yieldparam err [StandardError] error object if request failed
516
+ #
517
+ # @return [Google::Apis::DialogflowV3beta1::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_v3beta1_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
523
+ command = make_simple_command(:post, 'v3beta1/{+parent}/environments', options)
524
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment::Representation
525
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_environment_object
526
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
527
+ command.response_class = Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
548
+ # @yieldparam err [StandardError] error object if request failed
549
+ #
550
+ # @return [Google::Apis::DialogflowV3beta1::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, 'v3beta1/{+name}', options)
557
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
558
+ command.response_class = Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment] parsed result object
579
+ # @yieldparam err [StandardError] error object if request failed
580
+ #
581
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment]
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, 'v3beta1/{+name}', options)
588
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment::Representation
589
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse] parsed result object
615
+ # @yieldparam err [StandardError] error object if request failed
616
+ #
617
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse]
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, 'v3beta1/{+parent}/environments', options)
624
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse::Representation
625
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse] parsed result object
653
+ # @yieldparam err [StandardError] error object if request failed
654
+ #
655
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse]
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, 'v3beta1/{+name}:lookupEnvironmentHistory', options)
662
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse::Representation
663
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse
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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment] google_cloud_dialogflow_cx_v3beta1_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::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::DialogflowV3beta1::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_v3beta1_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
698
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Environment::Representation
699
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_environment_object
700
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
701
+ command.response_class = Google::Apis::DialogflowV3beta1::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
+ # @param [String] session
713
+ # Required. The name of the session this query is sent to. Format: `projects//
714
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
715
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
716
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
717
+ # It can be a random number or some type of session identifiers (preferably
718
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
719
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
720
+ # cx/docs/concept/session).
721
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest] google_cloud_dialogflow_cx_v3beta1_detect_intent_request_object
722
+ # @param [String] fields
723
+ # Selector specifying which fields to include in a partial response.
724
+ # @param [String] quota_user
725
+ # Available to use for quota purposes for server-side applications. Can be any
726
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
727
+ # @param [Google::Apis::RequestOptions] options
728
+ # Request-specific options
729
+ #
730
+ # @yield [result, err] Result & error if block supplied
731
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse] parsed result object
732
+ # @yieldparam err [StandardError] error object if request failed
733
+ #
734
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse]
735
+ #
736
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
737
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
738
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
739
+ def detect_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3beta1_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
740
+ command = make_simple_command(:post, 'v3beta1/{+session}:detectIntent', options)
741
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest::Representation
742
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_detect_intent_request_object
743
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse::Representation
744
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse
745
+ command.params['session'] = session unless session.nil?
746
+ command.query['fields'] = fields unless fields.nil?
747
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
748
+ execute_or_queue_command(command, &block)
749
+ end
750
+
751
+ # Fulfills a matched intent returned by MatchIntent. Must be called after
752
+ # MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is
753
+ # undefined.
754
+ # @param [String] session
755
+ # Required. The name of the session this query is sent to. Format: `projects//
756
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
757
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
758
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
759
+ # It can be a random number or some type of session identifiers (preferably
760
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
761
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
762
+ # cx/docs/concept/session).
763
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentRequest] google_cloud_dialogflow_cx_v3beta1_fulfill_intent_request_object
764
+ # @param [String] fields
765
+ # Selector specifying which fields to include in a partial response.
766
+ # @param [String] quota_user
767
+ # Available to use for quota purposes for server-side applications. Can be any
768
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
769
+ # @param [Google::Apis::RequestOptions] options
770
+ # Request-specific options
771
+ #
772
+ # @yield [result, err] Result & error if block supplied
773
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentResponse] parsed result object
774
+ # @yieldparam err [StandardError] error object if request failed
775
+ #
776
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentResponse]
777
+ #
778
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
779
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
780
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
781
+ def fulfill_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3beta1_fulfill_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
782
+ command = make_simple_command(:post, 'v3beta1/{+session}:fulfillIntent', options)
783
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentRequest::Representation
784
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_fulfill_intent_request_object
785
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentResponse::Representation
786
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentResponse
787
+ command.params['session'] = session unless session.nil?
788
+ command.query['fields'] = fields unless fields.nil?
789
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
790
+ execute_or_queue_command(command, &block)
791
+ end
792
+
793
+ # Returns preliminary intent match results, doesn't change the session status.
794
+ # @param [String] session
795
+ # Required. The name of the session this query is sent to. Format: `projects//
796
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
797
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
798
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
799
+ # It can be a random number or some type of session identifiers (preferably
800
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
801
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
802
+ # cx/docs/concept/session).
803
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentRequest] google_cloud_dialogflow_cx_v3beta1_match_intent_request_object
804
+ # @param [String] fields
805
+ # Selector specifying which fields to include in a partial response.
806
+ # @param [String] quota_user
807
+ # Available to use for quota purposes for server-side applications. Can be any
808
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
809
+ # @param [Google::Apis::RequestOptions] options
810
+ # Request-specific options
811
+ #
812
+ # @yield [result, err] Result & error if block supplied
813
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentResponse] parsed result object
814
+ # @yieldparam err [StandardError] error object if request failed
815
+ #
816
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentResponse]
817
+ #
818
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
819
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
820
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
821
+ def match_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3beta1_match_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
822
+ command = make_simple_command(:post, 'v3beta1/{+session}:matchIntent', options)
823
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentRequest::Representation
824
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_match_intent_request_object
825
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentResponse::Representation
826
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentResponse
827
+ command.params['session'] = session unless session.nil?
828
+ command.query['fields'] = fields unless fields.nil?
829
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
830
+ execute_or_queue_command(command, &block)
831
+ end
832
+
833
+ # Creates a session entity type. If the specified session entity type already
834
+ # exists, overrides the session entity type.
835
+ # @param [String] parent
836
+ # Required. The session to create a session entity type for. Format: `projects//
837
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
838
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
839
+ # environment.
840
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] google_cloud_dialogflow_cx_v3beta1_session_entity_type_object
841
+ # @param [String] fields
842
+ # Selector specifying which fields to include in a partial response.
843
+ # @param [String] quota_user
844
+ # Available to use for quota purposes for server-side applications. Can be any
845
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
846
+ # @param [Google::Apis::RequestOptions] options
847
+ # Request-specific options
848
+ #
849
+ # @yield [result, err] Result & error if block supplied
850
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] parsed result object
851
+ # @yieldparam err [StandardError] error object if request failed
852
+ #
853
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType]
854
+ #
855
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
856
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
857
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
858
+ def create_project_location_agent_environment_session_entity_type(parent, google_cloud_dialogflow_cx_v3beta1_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
859
+ command = make_simple_command(:post, 'v3beta1/{+parent}/entityTypes', options)
860
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
861
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_session_entity_type_object
862
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
863
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType
864
+ command.params['parent'] = parent unless parent.nil?
865
+ command.query['fields'] = fields unless fields.nil?
866
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
867
+ execute_or_queue_command(command, &block)
868
+ end
869
+
870
+ # Deletes the specified session entity type.
871
+ # @param [String] name
872
+ # Required. The name of the session entity type to delete. Format: `projects//
873
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
874
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
875
+ # we assume default 'draft' environment.
876
+ # @param [String] fields
877
+ # Selector specifying which fields to include in a partial response.
878
+ # @param [String] quota_user
879
+ # Available to use for quota purposes for server-side applications. Can be any
880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
881
+ # @param [Google::Apis::RequestOptions] options
882
+ # Request-specific options
883
+ #
884
+ # @yield [result, err] Result & error if block supplied
885
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
886
+ # @yieldparam err [StandardError] error object if request failed
887
+ #
888
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
889
+ #
890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
893
+ def delete_project_location_agent_environment_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
894
+ command = make_simple_command(:delete, 'v3beta1/{+name}', options)
895
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
896
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
897
+ command.params['name'] = name unless name.nil?
898
+ command.query['fields'] = fields unless fields.nil?
899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
900
+ execute_or_queue_command(command, &block)
901
+ end
902
+
903
+ # Retrieves the specified session entity type.
904
+ # @param [String] name
905
+ # Required. The name of the session entity type. Format: `projects//locations//
906
+ # agents//sessions//entityTypes/` or `projects//locations//agents//environments//
907
+ # sessions//entityTypes/`. If `Environment ID` is not specified, we assume
908
+ # default 'draft' environment.
909
+ # @param [String] fields
910
+ # Selector specifying which fields to include in a partial response.
911
+ # @param [String] quota_user
912
+ # Available to use for quota purposes for server-side applications. Can be any
913
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
914
+ # @param [Google::Apis::RequestOptions] options
915
+ # Request-specific options
916
+ #
917
+ # @yield [result, err] Result & error if block supplied
918
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] parsed result object
919
+ # @yieldparam err [StandardError] error object if request failed
920
+ #
921
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType]
922
+ #
923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
926
+ def get_project_location_agent_environment_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
927
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
928
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
929
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType
930
+ command.params['name'] = name unless name.nil?
931
+ command.query['fields'] = fields unless fields.nil?
932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
933
+ execute_or_queue_command(command, &block)
934
+ end
935
+
936
+ # Returns the list of all session entity types in the specified session.
937
+ # @param [String] parent
938
+ # Required. The session to list all session entity types from. Format: `projects/
939
+ # /locations//agents//sessions/` or `projects//locations//agents//environments//
940
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
941
+ # environment.
942
+ # @param [Fixnum] page_size
943
+ # The maximum number of items to return in a single page. By default 100 and at
944
+ # most 1000.
945
+ # @param [String] page_token
946
+ # The next_page_token value returned from a previous list request.
947
+ # @param [String] fields
948
+ # Selector specifying which fields to include in a partial response.
949
+ # @param [String] quota_user
950
+ # Available to use for quota purposes for server-side applications. Can be any
951
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
952
+ # @param [Google::Apis::RequestOptions] options
953
+ # Request-specific options
954
+ #
955
+ # @yield [result, err] Result & error if block supplied
956
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse] parsed result object
957
+ # @yieldparam err [StandardError] error object if request failed
958
+ #
959
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse]
960
+ #
961
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
962
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
963
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
964
+ def list_project_location_agent_environment_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
965
+ command = make_simple_command(:get, 'v3beta1/{+parent}/entityTypes', options)
966
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse::Representation
967
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse
968
+ command.params['parent'] = parent unless parent.nil?
969
+ command.query['pageSize'] = page_size unless page_size.nil?
970
+ command.query['pageToken'] = page_token unless page_token.nil?
971
+ command.query['fields'] = fields unless fields.nil?
972
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
973
+ execute_or_queue_command(command, &block)
974
+ end
975
+
976
+ # Updates the specified session entity type.
977
+ # @param [String] name
978
+ # Required. The unique identifier of the session entity type. Format: `projects//
979
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
980
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
981
+ # we assume default 'draft' environment.
982
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] google_cloud_dialogflow_cx_v3beta1_session_entity_type_object
983
+ # @param [String] update_mask
984
+ # The mask to control which fields get updated.
985
+ # @param [String] fields
986
+ # Selector specifying which fields to include in a partial response.
987
+ # @param [String] quota_user
988
+ # Available to use for quota purposes for server-side applications. Can be any
989
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
990
+ # @param [Google::Apis::RequestOptions] options
991
+ # Request-specific options
992
+ #
993
+ # @yield [result, err] Result & error if block supplied
994
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] parsed result object
995
+ # @yieldparam err [StandardError] error object if request failed
996
+ #
997
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType]
998
+ #
999
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
+ def patch_project_location_agent_environment_session_entity_type(name, google_cloud_dialogflow_cx_v3beta1_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1003
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
1004
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
1005
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_session_entity_type_object
1006
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
1007
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType
1008
+ command.params['name'] = name unless name.nil?
1009
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1010
+ command.query['fields'] = fields unless fields.nil?
1011
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1012
+ execute_or_queue_command(command, &block)
1013
+ end
1014
+
1015
+ # Creates a flow in the specified agent.
1016
+ # @param [String] parent
1017
+ # Required. The agent to create a flow for. Format: `projects//locations//agents/
1018
+ # `.
1019
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow] google_cloud_dialogflow_cx_v3beta1_flow_object
1020
+ # @param [String] language_code
1021
+ # The language of the following fields in `flow`: * `Flow.event_handlers.
1022
+ # trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.
1023
+ # messages` If not specified, the agent's default language is used. [Many
1024
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1025
+ # supported. Note: languages must be enabled in the agent before they can be
1026
+ # used.
1027
+ # @param [String] fields
1028
+ # Selector specifying which fields to include in a partial response.
1029
+ # @param [String] quota_user
1030
+ # Available to use for quota purposes for server-side applications. Can be any
1031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1032
+ # @param [Google::Apis::RequestOptions] options
1033
+ # Request-specific options
1034
+ #
1035
+ # @yield [result, err] Result & error if block supplied
1036
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow] parsed result object
1037
+ # @yieldparam err [StandardError] error object if request failed
1038
+ #
1039
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow]
1040
+ #
1041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1044
+ def create_project_location_agent_flow(parent, google_cloud_dialogflow_cx_v3beta1_flow_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1045
+ command = make_simple_command(:post, 'v3beta1/{+parent}/flows', options)
1046
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow::Representation
1047
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_flow_object
1048
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow::Representation
1049
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow
1050
+ command.params['parent'] = parent unless parent.nil?
1051
+ command.query['languageCode'] = language_code unless language_code.nil?
1052
+ command.query['fields'] = fields unless fields.nil?
1053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1054
+ execute_or_queue_command(command, &block)
1055
+ end
1056
+
1057
+ # Deletes a specified flow.
1058
+ # @param [String] name
1059
+ # Required. The name of the flow to delete. Format: `projects//locations//agents/
1060
+ # /flows/`.
1061
+ # @param [Boolean] force
1062
+ # This field has no effect for flows with no incoming transitions. For flows
1063
+ # with incoming transitions: * If `force` is set to false, an error will be
1064
+ # returned with message indicating the incoming transitions. * If `force` is set
1065
+ # to true, Dialogflow will remove the flow, as well as any transitions to the
1066
+ # flow (i.e. Target flow in event handlers or Target flow in transition routes
1067
+ # that point to this flow will be cleared).
1068
+ # @param [String] fields
1069
+ # Selector specifying which fields to include in a partial response.
1070
+ # @param [String] quota_user
1071
+ # Available to use for quota purposes for server-side applications. Can be any
1072
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1073
+ # @param [Google::Apis::RequestOptions] options
1074
+ # Request-specific options
1075
+ #
1076
+ # @yield [result, err] Result & error if block supplied
1077
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
1078
+ # @yieldparam err [StandardError] error object if request failed
1079
+ #
1080
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
1081
+ #
1082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1085
+ def delete_project_location_agent_flow(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1086
+ command = make_simple_command(:delete, 'v3beta1/{+name}', options)
1087
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
1088
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
1089
+ command.params['name'] = name unless name.nil?
1090
+ command.query['force'] = force unless force.nil?
1091
+ command.query['fields'] = fields unless fields.nil?
1092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1093
+ execute_or_queue_command(command, &block)
1094
+ end
1095
+
1096
+ # Retrieves the specified flow.
1097
+ # @param [String] name
1098
+ # Required. The name of the flow to get. Format: `projects//locations//agents//
1099
+ # flows/`.
1100
+ # @param [String] language_code
1101
+ # The language to retrieve the flow for. The following fields are language
1102
+ # dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.
1103
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1104
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1105
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1106
+ # agent before they can be used.
1107
+ # @param [String] fields
1108
+ # Selector specifying which fields to include in a partial response.
1109
+ # @param [String] quota_user
1110
+ # Available to use for quota purposes for server-side applications. Can be any
1111
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1112
+ # @param [Google::Apis::RequestOptions] options
1113
+ # Request-specific options
1114
+ #
1115
+ # @yield [result, err] Result & error if block supplied
1116
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow] parsed result object
1117
+ # @yieldparam err [StandardError] error object if request failed
1118
+ #
1119
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow]
1120
+ #
1121
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1122
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1123
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1124
+ def get_project_location_agent_flow(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1125
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
1126
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow::Representation
1127
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow
1128
+ command.params['name'] = name unless name.nil?
1129
+ command.query['languageCode'] = language_code unless language_code.nil?
1130
+ command.query['fields'] = fields unless fields.nil?
1131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1132
+ execute_or_queue_command(command, &block)
1133
+ end
1134
+
1135
+ # Returns the list of all flows in the specified agent.
1136
+ # @param [String] parent
1137
+ # Required. The agent containing the flows. Format: `projects//locations//agents/
1138
+ # `.
1139
+ # @param [String] language_code
1140
+ # The language to list flows for. The following fields are language dependent: *
1141
+ # `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.transition_routes.
1142
+ # trigger_fulfillment.messages` If not specified, the agent's default language
1143
+ # is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/
1144
+ # language) are supported. Note: languages must be enabled in the agent before
1145
+ # they can be used.
1146
+ # @param [Fixnum] page_size
1147
+ # The maximum number of items to return in a single page. By default 100 and at
1148
+ # most 1000.
1149
+ # @param [String] page_token
1150
+ # The next_page_token value returned from a previous list request.
1151
+ # @param [String] fields
1152
+ # Selector specifying which fields to include in a partial response.
1153
+ # @param [String] quota_user
1154
+ # Available to use for quota purposes for server-side applications. Can be any
1155
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1156
+ # @param [Google::Apis::RequestOptions] options
1157
+ # Request-specific options
1158
+ #
1159
+ # @yield [result, err] Result & error if block supplied
1160
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListFlowsResponse] parsed result object
1161
+ # @yieldparam err [StandardError] error object if request failed
1162
+ #
1163
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListFlowsResponse]
1164
+ #
1165
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1166
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1167
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1168
+ def list_project_location_agent_flows(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1169
+ command = make_simple_command(:get, 'v3beta1/{+parent}/flows', options)
1170
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListFlowsResponse::Representation
1171
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListFlowsResponse
1172
+ command.params['parent'] = parent unless parent.nil?
1173
+ command.query['languageCode'] = language_code unless language_code.nil?
1174
+ command.query['pageSize'] = page_size unless page_size.nil?
1175
+ command.query['pageToken'] = page_token unless page_token.nil?
1176
+ command.query['fields'] = fields unless fields.nil?
1177
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1178
+ execute_or_queue_command(command, &block)
1179
+ end
1180
+
1181
+ # Updates the specified flow.
1182
+ # @param [String] name
1183
+ # The unique identifier of the flow. Format: `projects//locations//agents//flows/
1184
+ # `.
1185
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow] google_cloud_dialogflow_cx_v3beta1_flow_object
1186
+ # @param [String] language_code
1187
+ # The language of the following fields in `flow`: * `Flow.event_handlers.
1188
+ # trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.
1189
+ # messages` If not specified, the agent's default language is used. [Many
1190
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1191
+ # supported. Note: languages must be enabled in the agent before they can be
1192
+ # used.
1193
+ # @param [String] update_mask
1194
+ # Required. The mask to control which fields get updated. If `update_mask` is
1195
+ # not specified, an error will be returned.
1196
+ # @param [String] fields
1197
+ # Selector specifying which fields to include in a partial response.
1198
+ # @param [String] quota_user
1199
+ # Available to use for quota purposes for server-side applications. Can be any
1200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1201
+ # @param [Google::Apis::RequestOptions] options
1202
+ # Request-specific options
1203
+ #
1204
+ # @yield [result, err] Result & error if block supplied
1205
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow]
1209
+ #
1210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
+ def patch_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3beta1_flow_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1214
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
1215
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow::Representation
1216
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_flow_object
1217
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow::Representation
1218
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Flow
1219
+ command.params['name'] = name unless name.nil?
1220
+ command.query['languageCode'] = language_code unless language_code.nil?
1221
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1222
+ command.query['fields'] = fields unless fields.nil?
1223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1224
+ execute_or_queue_command(command, &block)
1225
+ end
1226
+
1227
+ # Trains the specified flow. Note that only the flow in 'draft' environment is
1228
+ # trained.
1229
+ # @param [String] name
1230
+ # Required. The flow to train. Format: `projects//locations//agents//flows/`.
1231
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TrainFlowRequest] google_cloud_dialogflow_cx_v3beta1_train_flow_request_object
1232
+ # @param [String] fields
1233
+ # Selector specifying which fields to include in a partial response.
1234
+ # @param [String] quota_user
1235
+ # Available to use for quota purposes for server-side applications. Can be any
1236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1237
+ # @param [Google::Apis::RequestOptions] options
1238
+ # Request-specific options
1239
+ #
1240
+ # @yield [result, err] Result & error if block supplied
1241
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
1242
+ # @yieldparam err [StandardError] error object if request failed
1243
+ #
1244
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
1245
+ #
1246
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1247
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1248
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1249
+ def train_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3beta1_train_flow_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1250
+ command = make_simple_command(:post, 'v3beta1/{+name}:train', options)
1251
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TrainFlowRequest::Representation
1252
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_train_flow_request_object
1253
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
1254
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
1255
+ command.params['name'] = name unless name.nil?
1256
+ command.query['fields'] = fields unless fields.nil?
1257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1258
+ execute_or_queue_command(command, &block)
1259
+ end
1260
+
1261
+ # Creates a page in the specified flow.
1262
+ # @param [String] parent
1263
+ # Required. The flow to create a page for. Format: `projects//locations//agents//
1264
+ # flows/`.
1265
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page] google_cloud_dialogflow_cx_v3beta1_page_object
1266
+ # @param [String] language_code
1267
+ # The language of the following fields in `page`: * `Page.entry_fulfillment.
1268
+ # messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.
1269
+ # messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.
1270
+ # messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.
1271
+ # transition_route_groups.transition_routes.trigger_fulfillment.messages` If not
1272
+ # specified, the agent's default language is used. [Many languages](https://
1273
+ # cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
1274
+ # languages must be enabled in the agent before they can be used.
1275
+ # @param [String] fields
1276
+ # Selector specifying which fields to include in a partial response.
1277
+ # @param [String] quota_user
1278
+ # Available to use for quota purposes for server-side applications. Can be any
1279
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1280
+ # @param [Google::Apis::RequestOptions] options
1281
+ # Request-specific options
1282
+ #
1283
+ # @yield [result, err] Result & error if block supplied
1284
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page] parsed result object
1285
+ # @yieldparam err [StandardError] error object if request failed
1286
+ #
1287
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page]
1288
+ #
1289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1292
+ def create_project_location_agent_flow_page(parent, google_cloud_dialogflow_cx_v3beta1_page_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1293
+ command = make_simple_command(:post, 'v3beta1/{+parent}/pages', options)
1294
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page::Representation
1295
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_page_object
1296
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page::Representation
1297
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page
1298
+ command.params['parent'] = parent unless parent.nil?
1299
+ command.query['languageCode'] = language_code unless language_code.nil?
1300
+ command.query['fields'] = fields unless fields.nil?
1301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1302
+ execute_or_queue_command(command, &block)
1303
+ end
1304
+
1305
+ # Deletes the specified page.
1306
+ # @param [String] name
1307
+ # Required. The name of the page to delete. Format: `projects//locations//agents/
1308
+ # /Flows//pages/`.
1309
+ # @param [Boolean] force
1310
+ # This field has no effect for pages with no incoming transitions. For pages
1311
+ # with incoming transitions: * If `force` is set to false, an error will be
1312
+ # returned with message indicating the incoming transitions. * If `force` is set
1313
+ # to true, Dialogflow will remove the page, as well as any transitions to the
1314
+ # page (i.e. Target page in event handlers or Target page in transition routes
1315
+ # that point to this page will be cleared).
1316
+ # @param [String] fields
1317
+ # Selector specifying which fields to include in a partial response.
1318
+ # @param [String] quota_user
1319
+ # Available to use for quota purposes for server-side applications. Can be any
1320
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1321
+ # @param [Google::Apis::RequestOptions] options
1322
+ # Request-specific options
1323
+ #
1324
+ # @yield [result, err] Result & error if block supplied
1325
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
1326
+ # @yieldparam err [StandardError] error object if request failed
1327
+ #
1328
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
1329
+ #
1330
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1331
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1332
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1333
+ def delete_project_location_agent_flow_page(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1334
+ command = make_simple_command(:delete, 'v3beta1/{+name}', options)
1335
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
1336
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
1337
+ command.params['name'] = name unless name.nil?
1338
+ command.query['force'] = force unless force.nil?
1339
+ command.query['fields'] = fields unless fields.nil?
1340
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1341
+ execute_or_queue_command(command, &block)
1342
+ end
1343
+
1344
+ # Retrieves the specified page.
1345
+ # @param [String] name
1346
+ # Required. The name of the page. Format: `projects//locations//agents//flows//
1347
+ # pages/`.
1348
+ # @param [String] language_code
1349
+ # The language to retrieve the page for. The following fields are language
1350
+ # dependent: * `Page.entry_fulfillment.messages` * `Page.form.parameters.
1351
+ # fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.
1352
+ # fill_behavior.reprompt_event_handlers.messages` * `Page.transition_routes.
1353
+ # trigger_fulfillment.messages` * `Page.transition_route_groups.
1354
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1355
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1356
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1357
+ # agent before they can be used.
1358
+ # @param [String] fields
1359
+ # Selector specifying which fields to include in a partial response.
1360
+ # @param [String] quota_user
1361
+ # Available to use for quota purposes for server-side applications. Can be any
1362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1363
+ # @param [Google::Apis::RequestOptions] options
1364
+ # Request-specific options
1365
+ #
1366
+ # @yield [result, err] Result & error if block supplied
1367
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page] parsed result object
1368
+ # @yieldparam err [StandardError] error object if request failed
1369
+ #
1370
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page]
1371
+ #
1372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1375
+ def get_project_location_agent_flow_page(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1376
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
1377
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page::Representation
1378
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page
1379
+ command.params['name'] = name unless name.nil?
1380
+ command.query['languageCode'] = language_code unless language_code.nil?
1381
+ command.query['fields'] = fields unless fields.nil?
1382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1383
+ execute_or_queue_command(command, &block)
1384
+ end
1385
+
1386
+ # Returns the list of all pages in the specified flow.
1387
+ # @param [String] parent
1388
+ # Required. The flow to list all pages for. Format: `projects//locations//agents/
1389
+ # /flows/`.
1390
+ # @param [String] language_code
1391
+ # The language to list pages for. The following fields are language dependent: *
1392
+ # `Page.entry_fulfillment.messages` * `Page.form.parameters.fill_behavior.
1393
+ # initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.
1394
+ # reprompt_event_handlers.messages` * `Page.transition_routes.
1395
+ # trigger_fulfillment.messages` * `Page.transition_route_groups.
1396
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1397
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1398
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1399
+ # agent before they can be used.
1400
+ # @param [Fixnum] page_size
1401
+ # The maximum number of items to return in a single page. By default 100 and at
1402
+ # most 1000.
1403
+ # @param [String] page_token
1404
+ # The next_page_token value returned from a previous list request.
1405
+ # @param [String] fields
1406
+ # Selector specifying which fields to include in a partial response.
1407
+ # @param [String] quota_user
1408
+ # Available to use for quota purposes for server-side applications. Can be any
1409
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1410
+ # @param [Google::Apis::RequestOptions] options
1411
+ # Request-specific options
1412
+ #
1413
+ # @yield [result, err] Result & error if block supplied
1414
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListPagesResponse] parsed result object
1415
+ # @yieldparam err [StandardError] error object if request failed
1416
+ #
1417
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListPagesResponse]
1418
+ #
1419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1422
+ 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)
1423
+ command = make_simple_command(:get, 'v3beta1/{+parent}/pages', options)
1424
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListPagesResponse::Representation
1425
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListPagesResponse
1426
+ command.params['parent'] = parent unless parent.nil?
1427
+ command.query['languageCode'] = language_code unless language_code.nil?
1428
+ command.query['pageSize'] = page_size unless page_size.nil?
1429
+ command.query['pageToken'] = page_token unless page_token.nil?
1430
+ command.query['fields'] = fields unless fields.nil?
1431
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1432
+ execute_or_queue_command(command, &block)
1433
+ end
1434
+
1435
+ # Updates the specified page.
1436
+ # @param [String] name
1437
+ # The unique identifier of the page. Required for the Pages.UpdatePage method.
1438
+ # Pages.CreatePage populates the name automatically. Format: `projects//
1439
+ # locations//agents//flows//pages/`.
1440
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page] google_cloud_dialogflow_cx_v3beta1_page_object
1441
+ # @param [String] language_code
1442
+ # The language of the following fields in `page`: * `Page.entry_fulfillment.
1443
+ # messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.
1444
+ # messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.
1445
+ # messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.
1446
+ # transition_route_groups.transition_routes.trigger_fulfillment.messages` If not
1447
+ # specified, the agent's default language is used. [Many languages](https://
1448
+ # cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
1449
+ # languages must be enabled in the agent before they can be used.
1450
+ # @param [String] update_mask
1451
+ # The mask to control which fields get updated. If the mask is not present, all
1452
+ # fields will be updated.
1453
+ # @param [String] fields
1454
+ # Selector specifying which fields to include in a partial response.
1455
+ # @param [String] quota_user
1456
+ # Available to use for quota purposes for server-side applications. Can be any
1457
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1458
+ # @param [Google::Apis::RequestOptions] options
1459
+ # Request-specific options
1460
+ #
1461
+ # @yield [result, err] Result & error if block supplied
1462
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page] parsed result object
1463
+ # @yieldparam err [StandardError] error object if request failed
1464
+ #
1465
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page]
1466
+ #
1467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1470
+ def patch_project_location_agent_flow_page(name, google_cloud_dialogflow_cx_v3beta1_page_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1471
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
1472
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page::Representation
1473
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_page_object
1474
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page::Representation
1475
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Page
1476
+ command.params['name'] = name unless name.nil?
1477
+ command.query['languageCode'] = language_code unless language_code.nil?
1478
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1479
+ command.query['fields'] = fields unless fields.nil?
1480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1481
+ execute_or_queue_command(command, &block)
1482
+ end
1483
+
1484
+ # Creates an TransitionRouteGroup in the specified flow.
1485
+ # @param [String] parent
1486
+ # Required. The flow to create an TransitionRouteGroup for. Format: `projects//
1487
+ # locations//agents//flows/`.
1488
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup] google_cloud_dialogflow_cx_v3beta1_transition_route_group_object
1489
+ # @param [String] language_code
1490
+ # The language to list transition route groups for. The field `messages` in
1491
+ # TransitionRoute is language dependent. If not specified, the agent's default
1492
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1493
+ # reference/language) are supported. Note: languages must be enabled in the
1494
+ # agent before they can be used.
1495
+ # @param [String] fields
1496
+ # Selector specifying which fields to include in a partial response.
1497
+ # @param [String] quota_user
1498
+ # Available to use for quota purposes for server-side applications. Can be any
1499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1500
+ # @param [Google::Apis::RequestOptions] options
1501
+ # Request-specific options
1502
+ #
1503
+ # @yield [result, err] Result & error if block supplied
1504
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup] parsed result object
1505
+ # @yieldparam err [StandardError] error object if request failed
1506
+ #
1507
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup]
1508
+ #
1509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1512
+ def create_project_location_agent_flow_transition_route_group(parent, google_cloud_dialogflow_cx_v3beta1_transition_route_group_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1513
+ command = make_simple_command(:post, 'v3beta1/{+parent}/transitionRouteGroups', options)
1514
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup::Representation
1515
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_transition_route_group_object
1516
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup::Representation
1517
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
1518
+ command.params['parent'] = parent unless parent.nil?
1519
+ command.query['languageCode'] = language_code unless language_code.nil?
1520
+ command.query['fields'] = fields unless fields.nil?
1521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1522
+ execute_or_queue_command(command, &block)
1523
+ end
1524
+
1525
+ # Deletes the specified TransitionRouteGroup.
1526
+ # @param [String] name
1527
+ # Required. The name of the TransitionRouteGroup to delete. Format: `projects//
1528
+ # locations//agents//flows//transitionRouteGroups/`.
1529
+ # @param [Boolean] force
1530
+ # This field has no effect for transition route group that no page is using. If
1531
+ # the transition route group is referenced by any page: * If `force` is set to
1532
+ # false, an error will be returned with message indicating pages that reference
1533
+ # the transition route group. * If `force` is set to true, Dialogflow will
1534
+ # remove the transition route group, as well as any reference to it.
1535
+ # @param [String] fields
1536
+ # Selector specifying which fields to include in a partial response.
1537
+ # @param [String] quota_user
1538
+ # Available to use for quota purposes for server-side applications. Can be any
1539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1540
+ # @param [Google::Apis::RequestOptions] options
1541
+ # Request-specific options
1542
+ #
1543
+ # @yield [result, err] Result & error if block supplied
1544
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
1545
+ # @yieldparam err [StandardError] error object if request failed
1546
+ #
1547
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
1548
+ #
1549
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1550
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1551
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1552
+ def delete_project_location_agent_flow_transition_route_group(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1553
+ command = make_simple_command(:delete, 'v3beta1/{+name}', options)
1554
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
1555
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
1556
+ command.params['name'] = name unless name.nil?
1557
+ command.query['force'] = force unless force.nil?
1558
+ command.query['fields'] = fields unless fields.nil?
1559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1560
+ execute_or_queue_command(command, &block)
1561
+ end
1562
+
1563
+ # Retrieves the specified TransitionRouteGroup.
1564
+ # @param [String] name
1565
+ # Required. The name of the TransitionRouteGroup. Format: `projects//locations//
1566
+ # agents//flows//transitionRouteGroups/`.
1567
+ # @param [String] language_code
1568
+ # The language to list transition route groups for. The field `messages` in
1569
+ # TransitionRoute is language dependent. If not specified, the agent's default
1570
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1571
+ # reference/language) are supported. Note: languages must be enabled in the
1572
+ # agent before they can be used.
1573
+ # @param [String] fields
1574
+ # Selector specifying which fields to include in a partial response.
1575
+ # @param [String] quota_user
1576
+ # Available to use for quota purposes for server-side applications. Can be any
1577
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1578
+ # @param [Google::Apis::RequestOptions] options
1579
+ # Request-specific options
1580
+ #
1581
+ # @yield [result, err] Result & error if block supplied
1582
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup] parsed result object
1583
+ # @yieldparam err [StandardError] error object if request failed
1584
+ #
1585
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup]
1586
+ #
1587
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1588
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1589
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1590
+ def get_project_location_agent_flow_transition_route_group(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1591
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
1592
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup::Representation
1593
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
1594
+ command.params['name'] = name unless name.nil?
1595
+ command.query['languageCode'] = language_code unless language_code.nil?
1596
+ command.query['fields'] = fields unless fields.nil?
1597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1598
+ execute_or_queue_command(command, &block)
1599
+ end
1600
+
1601
+ # Returns the list of all transition route groups in the specified flow.
1602
+ # @param [String] parent
1603
+ # Required. The flow to list all transition route groups for. Format: `projects//
1604
+ # locations//agents//flows/`.
1605
+ # @param [String] language_code
1606
+ # The language to list transition route groups for. The field `messages` in
1607
+ # TransitionRoute is language dependent. If not specified, the agent's default
1608
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1609
+ # reference/language) are supported. Note: languages must be enabled in the
1610
+ # agent before they can be used.
1611
+ # @param [Fixnum] page_size
1612
+ # The maximum number of items to return in a single page. By default 100 and at
1613
+ # most 1000.
1614
+ # @param [String] page_token
1615
+ # The next_page_token value returned from a previous list request.
1616
+ # @param [String] fields
1617
+ # Selector specifying which fields to include in a partial response.
1618
+ # @param [String] quota_user
1619
+ # Available to use for quota purposes for server-side applications. Can be any
1620
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1621
+ # @param [Google::Apis::RequestOptions] options
1622
+ # Request-specific options
1623
+ #
1624
+ # @yield [result, err] Result & error if block supplied
1625
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse] parsed result object
1626
+ # @yieldparam err [StandardError] error object if request failed
1627
+ #
1628
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse]
1629
+ #
1630
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1631
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1632
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1633
+ 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)
1634
+ command = make_simple_command(:get, 'v3beta1/{+parent}/transitionRouteGroups', options)
1635
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse::Representation
1636
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse
1637
+ command.params['parent'] = parent unless parent.nil?
1638
+ command.query['languageCode'] = language_code unless language_code.nil?
1639
+ command.query['pageSize'] = page_size unless page_size.nil?
1640
+ command.query['pageToken'] = page_token unless page_token.nil?
1641
+ command.query['fields'] = fields unless fields.nil?
1642
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1643
+ execute_or_queue_command(command, &block)
1644
+ end
1645
+
1646
+ # Updates the specified TransitionRouteGroup.
1647
+ # @param [String] name
1648
+ # The unique identifier of the transition route group. TransitionRouteGroups.
1649
+ # CreateTransitionRouteGroup populates the name automatically. Format: `projects/
1650
+ # /locations//agents//flows//transitionRouteGroups/`.
1651
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup] google_cloud_dialogflow_cx_v3beta1_transition_route_group_object
1652
+ # @param [String] language_code
1653
+ # The language to list transition route groups for. The field `messages` in
1654
+ # TransitionRoute is language dependent. If not specified, the agent's default
1655
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1656
+ # reference/language) are supported. Note: languages must be enabled in the
1657
+ # agent before they can be used.
1658
+ # @param [String] update_mask
1659
+ # The mask to control which fields get updated.
1660
+ # @param [String] fields
1661
+ # Selector specifying which fields to include in a partial response.
1662
+ # @param [String] quota_user
1663
+ # Available to use for quota purposes for server-side applications. Can be any
1664
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1665
+ # @param [Google::Apis::RequestOptions] options
1666
+ # Request-specific options
1667
+ #
1668
+ # @yield [result, err] Result & error if block supplied
1669
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup] parsed result object
1670
+ # @yieldparam err [StandardError] error object if request failed
1671
+ #
1672
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup]
1673
+ #
1674
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1675
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1676
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1677
+ def patch_project_location_agent_flow_transition_route_group(name, google_cloud_dialogflow_cx_v3beta1_transition_route_group_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1678
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
1679
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup::Representation
1680
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_transition_route_group_object
1681
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup::Representation
1682
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
1683
+ command.params['name'] = name unless name.nil?
1684
+ command.query['languageCode'] = language_code unless language_code.nil?
1685
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1686
+ command.query['fields'] = fields unless fields.nil?
1687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1688
+ execute_or_queue_command(command, &block)
1689
+ end
1690
+
1691
+ # Creates a Version in the specified Flow.
1692
+ # @param [String] parent
1693
+ # Required. The Flow to create an Version for. Format: `projects//locations//
1694
+ # agents//flows/`.
1695
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version] google_cloud_dialogflow_cx_v3beta1_version_object
1696
+ # @param [String] fields
1697
+ # Selector specifying which fields to include in a partial response.
1698
+ # @param [String] quota_user
1699
+ # Available to use for quota purposes for server-side applications. Can be any
1700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1701
+ # @param [Google::Apis::RequestOptions] options
1702
+ # Request-specific options
1703
+ #
1704
+ # @yield [result, err] Result & error if block supplied
1705
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
1706
+ # @yieldparam err [StandardError] error object if request failed
1707
+ #
1708
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
1709
+ #
1710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1713
+ def create_project_location_agent_flow_version(parent, google_cloud_dialogflow_cx_v3beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1714
+ command = make_simple_command(:post, 'v3beta1/{+parent}/versions', options)
1715
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version::Representation
1716
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_version_object
1717
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
1718
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
1719
+ command.params['parent'] = parent unless parent.nil?
1720
+ command.query['fields'] = fields unless fields.nil?
1721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1722
+ execute_or_queue_command(command, &block)
1723
+ end
1724
+
1725
+ # Deletes the specified Version.
1726
+ # @param [String] name
1727
+ # Required. The name of the Version to delete. Format: `projects//locations//
1728
+ # agents//flows//versions/`.
1729
+ # @param [String] fields
1730
+ # Selector specifying which fields to include in a partial response.
1731
+ # @param [String] quota_user
1732
+ # Available to use for quota purposes for server-side applications. Can be any
1733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1734
+ # @param [Google::Apis::RequestOptions] options
1735
+ # Request-specific options
1736
+ #
1737
+ # @yield [result, err] Result & error if block supplied
1738
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
1739
+ # @yieldparam err [StandardError] error object if request failed
1740
+ #
1741
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
1742
+ #
1743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1746
+ def delete_project_location_agent_flow_version(name, fields: nil, quota_user: nil, options: nil, &block)
1747
+ command = make_simple_command(:delete, 'v3beta1/{+name}', options)
1748
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
1749
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
1750
+ command.params['name'] = name unless name.nil?
1751
+ command.query['fields'] = fields unless fields.nil?
1752
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1753
+ execute_or_queue_command(command, &block)
1754
+ end
1755
+
1756
+ # Retrieves the specified Version.
1757
+ # @param [String] name
1758
+ # Required. The name of the Version. Format: `projects//locations//agents//flows/
1759
+ # /versions/`.
1760
+ # @param [String] fields
1761
+ # Selector specifying which fields to include in a partial response.
1762
+ # @param [String] quota_user
1763
+ # Available to use for quota purposes for server-side applications. Can be any
1764
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1765
+ # @param [Google::Apis::RequestOptions] options
1766
+ # Request-specific options
1767
+ #
1768
+ # @yield [result, err] Result & error if block supplied
1769
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version] parsed result object
1770
+ # @yieldparam err [StandardError] error object if request failed
1771
+ #
1772
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version]
1773
+ #
1774
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1775
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1776
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1777
+ def get_project_location_agent_flow_version(name, fields: nil, quota_user: nil, options: nil, &block)
1778
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
1779
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version::Representation
1780
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version
1781
+ command.params['name'] = name unless name.nil?
1782
+ command.query['fields'] = fields unless fields.nil?
1783
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1784
+ execute_or_queue_command(command, &block)
1785
+ end
1786
+
1787
+ # Returns the list of all versions in the specified Flow.
1788
+ # @param [String] parent
1789
+ # Required. The Flow to list all versions for. Format: `projects//locations//
1790
+ # agents//flows/`.
1791
+ # @param [Fixnum] page_size
1792
+ # The maximum number of items to return in a single page. By default 20 and at
1793
+ # most 100.
1794
+ # @param [String] page_token
1795
+ # The next_page_token value returned from a previous list request.
1796
+ # @param [String] fields
1797
+ # Selector specifying which fields to include in a partial response.
1798
+ # @param [String] quota_user
1799
+ # Available to use for quota purposes for server-side applications. Can be any
1800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1801
+ # @param [Google::Apis::RequestOptions] options
1802
+ # Request-specific options
1803
+ #
1804
+ # @yield [result, err] Result & error if block supplied
1805
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListVersionsResponse] parsed result object
1806
+ # @yieldparam err [StandardError] error object if request failed
1807
+ #
1808
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListVersionsResponse]
1809
+ #
1810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1813
+ def list_project_location_agent_flow_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1814
+ command = make_simple_command(:get, 'v3beta1/{+parent}/versions', options)
1815
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListVersionsResponse::Representation
1816
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListVersionsResponse
1817
+ command.params['parent'] = parent unless parent.nil?
1818
+ command.query['pageSize'] = page_size unless page_size.nil?
1819
+ command.query['pageToken'] = page_token unless page_token.nil?
1820
+ command.query['fields'] = fields unless fields.nil?
1821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1822
+ execute_or_queue_command(command, &block)
1823
+ end
1824
+
1825
+ # Loads a specified version to draft version.
1826
+ # @param [String] name
1827
+ # Required. The Version to be loaded to draft version. Format: `projects//
1828
+ # locations//agents//flows//versions/`.
1829
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LoadVersionRequest] google_cloud_dialogflow_cx_v3beta1_load_version_request_object
1830
+ # @param [String] fields
1831
+ # Selector specifying which fields to include in a partial response.
1832
+ # @param [String] quota_user
1833
+ # Available to use for quota purposes for server-side applications. Can be any
1834
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1835
+ # @param [Google::Apis::RequestOptions] options
1836
+ # Request-specific options
1837
+ #
1838
+ # @yield [result, err] Result & error if block supplied
1839
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
1840
+ # @yieldparam err [StandardError] error object if request failed
1841
+ #
1842
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
1843
+ #
1844
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1845
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1846
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1847
+ def load_project_location_agent_flow_version(name, google_cloud_dialogflow_cx_v3beta1_load_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1848
+ command = make_simple_command(:post, 'v3beta1/{+name}:load', options)
1849
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LoadVersionRequest::Representation
1850
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_load_version_request_object
1851
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
1852
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
1853
+ command.params['name'] = name unless name.nil?
1854
+ command.query['fields'] = fields unless fields.nil?
1855
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1856
+ execute_or_queue_command(command, &block)
1857
+ end
1858
+
1859
+ # Updates the specified Version.
1860
+ # @param [String] name
1861
+ # Format: projects//locations//agents//flows//versions/. Version ID is a self-
1862
+ # increasing number generated by Dialogflow upon version creation.
1863
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version] google_cloud_dialogflow_cx_v3beta1_version_object
1864
+ # @param [String] update_mask
1865
+ # Required. The mask to control which fields get updated. Currently only `
1866
+ # description` and `display_name` can be updated.
1867
+ # @param [String] fields
1868
+ # Selector specifying which fields to include in a partial response.
1869
+ # @param [String] quota_user
1870
+ # Available to use for quota purposes for server-side applications. Can be any
1871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1872
+ # @param [Google::Apis::RequestOptions] options
1873
+ # Request-specific options
1874
+ #
1875
+ # @yield [result, err] Result & error if block supplied
1876
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version] parsed result object
1877
+ # @yieldparam err [StandardError] error object if request failed
1878
+ #
1879
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version]
1880
+ #
1881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1884
+ def patch_project_location_agent_flow_version(name, google_cloud_dialogflow_cx_v3beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1885
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
1886
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version::Representation
1887
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_version_object
1888
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version::Representation
1889
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Version
1890
+ command.params['name'] = name unless name.nil?
1891
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1892
+ command.query['fields'] = fields unless fields.nil?
1893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1894
+ execute_or_queue_command(command, &block)
1895
+ end
1896
+
1897
+ # Creates an intent in the specified agent.
1898
+ # @param [String] parent
1899
+ # Required. The agent to create an intent for. Format: `projects//locations//
1900
+ # agents/`.
1901
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent] google_cloud_dialogflow_cx_v3beta1_intent_object
1902
+ # @param [String] language_code
1903
+ # The language of the following fields in `intent`: * `Intent.training_phrases.
1904
+ # parts.text` If not specified, the agent's default language is used. [Many
1905
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1906
+ # supported. Note: languages must be enabled in the agent before they can be
1907
+ # used.
1908
+ # @param [String] fields
1909
+ # Selector specifying which fields to include in a partial response.
1910
+ # @param [String] quota_user
1911
+ # Available to use for quota purposes for server-side applications. Can be any
1912
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1913
+ # @param [Google::Apis::RequestOptions] options
1914
+ # Request-specific options
1915
+ #
1916
+ # @yield [result, err] Result & error if block supplied
1917
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent] parsed result object
1918
+ # @yieldparam err [StandardError] error object if request failed
1919
+ #
1920
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent]
1921
+ #
1922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1925
+ def create_project_location_agent_intent(parent, google_cloud_dialogflow_cx_v3beta1_intent_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1926
+ command = make_simple_command(:post, 'v3beta1/{+parent}/intents', options)
1927
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent::Representation
1928
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_intent_object
1929
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent::Representation
1930
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent
1931
+ command.params['parent'] = parent unless parent.nil?
1932
+ command.query['languageCode'] = language_code unless language_code.nil?
1933
+ command.query['fields'] = fields unless fields.nil?
1934
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1935
+ execute_or_queue_command(command, &block)
1936
+ end
1937
+
1938
+ # Deletes the specified intent.
1939
+ # @param [String] name
1940
+ # Required. The name of the intent to delete. Format: `projects//locations//
1941
+ # agents//intents/`.
1942
+ # @param [String] fields
1943
+ # Selector specifying which fields to include in a partial response.
1944
+ # @param [String] quota_user
1945
+ # Available to use for quota purposes for server-side applications. Can be any
1946
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1947
+ # @param [Google::Apis::RequestOptions] options
1948
+ # Request-specific options
1949
+ #
1950
+ # @yield [result, err] Result & error if block supplied
1951
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
1952
+ # @yieldparam err [StandardError] error object if request failed
1953
+ #
1954
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
1955
+ #
1956
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1957
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1958
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1959
+ def delete_project_location_agent_intent(name, fields: nil, quota_user: nil, options: nil, &block)
1960
+ command = make_simple_command(:delete, 'v3beta1/{+name}', options)
1961
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
1962
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
1963
+ command.params['name'] = name unless name.nil?
1964
+ command.query['fields'] = fields unless fields.nil?
1965
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1966
+ execute_or_queue_command(command, &block)
1967
+ end
1968
+
1969
+ # Retrieves the specified intent.
1970
+ # @param [String] name
1971
+ # Required. The name of the intent. Format: `projects//locations//agents//
1972
+ # intents/`.
1973
+ # @param [String] language_code
1974
+ # The language to retrieve the intent for. The following fields are language
1975
+ # dependent: * `Intent.training_phrases.parts.text` If not specified, the agent'
1976
+ # s default language is used. [Many languages](https://cloud.google.com/
1977
+ # dialogflow/docs/reference/language) are supported. Note: languages must be
1978
+ # enabled in the agent before they can be used.
1979
+ # @param [String] fields
1980
+ # Selector specifying which fields to include in a partial response.
1981
+ # @param [String] quota_user
1982
+ # Available to use for quota purposes for server-side applications. Can be any
1983
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1984
+ # @param [Google::Apis::RequestOptions] options
1985
+ # Request-specific options
1986
+ #
1987
+ # @yield [result, err] Result & error if block supplied
1988
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent] parsed result object
1989
+ # @yieldparam err [StandardError] error object if request failed
1990
+ #
1991
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent]
1992
+ #
1993
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1994
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1995
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1996
+ def get_project_location_agent_intent(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1997
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
1998
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent::Representation
1999
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent
2000
+ command.params['name'] = name unless name.nil?
2001
+ command.query['languageCode'] = language_code unless language_code.nil?
2002
+ command.query['fields'] = fields unless fields.nil?
2003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2004
+ execute_or_queue_command(command, &block)
2005
+ end
2006
+
2007
+ # Returns the list of all intents in the specified agent.
2008
+ # @param [String] parent
2009
+ # Required. The agent to list all intents for. Format: `projects//locations//
2010
+ # agents/`.
2011
+ # @param [String] intent_view
2012
+ # The resource view to apply to the returned intent.
2013
+ # @param [String] language_code
2014
+ # The language to list intents for. The following fields are language dependent:
2015
+ # * `Intent.training_phrases.parts.text` If not specified, the agent's default
2016
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
2017
+ # reference/language) are supported. Note: languages must be enabled in the
2018
+ # agent before they can be used.
2019
+ # @param [Fixnum] page_size
2020
+ # The maximum number of items to return in a single page. By default 100 and at
2021
+ # most 1000.
2022
+ # @param [String] page_token
2023
+ # The next_page_token value returned from a previous list request.
2024
+ # @param [String] fields
2025
+ # Selector specifying which fields to include in a partial response.
2026
+ # @param [String] quota_user
2027
+ # Available to use for quota purposes for server-side applications. Can be any
2028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2029
+ # @param [Google::Apis::RequestOptions] options
2030
+ # Request-specific options
2031
+ #
2032
+ # @yield [result, err] Result & error if block supplied
2033
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListIntentsResponse] parsed result object
2034
+ # @yieldparam err [StandardError] error object if request failed
2035
+ #
2036
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListIntentsResponse]
2037
+ #
2038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2041
+ 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)
2042
+ command = make_simple_command(:get, 'v3beta1/{+parent}/intents', options)
2043
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListIntentsResponse::Representation
2044
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListIntentsResponse
2045
+ command.params['parent'] = parent unless parent.nil?
2046
+ command.query['intentView'] = intent_view unless intent_view.nil?
2047
+ command.query['languageCode'] = language_code unless language_code.nil?
2048
+ command.query['pageSize'] = page_size unless page_size.nil?
2049
+ command.query['pageToken'] = page_token unless page_token.nil?
2050
+ command.query['fields'] = fields unless fields.nil?
2051
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2052
+ execute_or_queue_command(command, &block)
2053
+ end
2054
+
2055
+ # Updates the specified intent.
2056
+ # @param [String] name
2057
+ # The unique identifier of the intent. Required for the Intents.UpdateIntent
2058
+ # method. Intents.CreateIntent populates the name automatically. Format: `
2059
+ # projects//locations//agents//intents/`.
2060
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent] google_cloud_dialogflow_cx_v3beta1_intent_object
2061
+ # @param [String] language_code
2062
+ # The language of the following fields in `intent`: * `Intent.training_phrases.
2063
+ # parts.text` If not specified, the agent's default language is used. [Many
2064
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
2065
+ # supported. Note: languages must be enabled in the agent before they can be
2066
+ # used.
2067
+ # @param [String] update_mask
2068
+ # The mask to control which fields get updated. If the mask is not present, all
2069
+ # fields will be updated.
2070
+ # @param [String] fields
2071
+ # Selector specifying which fields to include in a partial response.
2072
+ # @param [String] quota_user
2073
+ # Available to use for quota purposes for server-side applications. Can be any
2074
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2075
+ # @param [Google::Apis::RequestOptions] options
2076
+ # Request-specific options
2077
+ #
2078
+ # @yield [result, err] Result & error if block supplied
2079
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent] parsed result object
2080
+ # @yieldparam err [StandardError] error object if request failed
2081
+ #
2082
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent]
2083
+ #
2084
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2085
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2086
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2087
+ def patch_project_location_agent_intent(name, google_cloud_dialogflow_cx_v3beta1_intent_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2088
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
2089
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent::Representation
2090
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_intent_object
2091
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent::Representation
2092
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent
2093
+ command.params['name'] = name unless name.nil?
2094
+ command.query['languageCode'] = language_code unless language_code.nil?
2095
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2096
+ command.query['fields'] = fields unless fields.nil?
2097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2098
+ execute_or_queue_command(command, &block)
2099
+ end
2100
+
2101
+ # Processes a natural language query and returns structured, actionable data as
2102
+ # a result. This method is not idempotent, because it may cause session entity
2103
+ # types to be updated, which in turn might affect results of future queries.
2104
+ # @param [String] session
2105
+ # Required. The name of the session this query is sent to. Format: `projects//
2106
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2107
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2108
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2109
+ # It can be a random number or some type of session identifiers (preferably
2110
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2111
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2112
+ # cx/docs/concept/session).
2113
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest] google_cloud_dialogflow_cx_v3beta1_detect_intent_request_object
2114
+ # @param [String] fields
2115
+ # Selector specifying which fields to include in a partial response.
2116
+ # @param [String] quota_user
2117
+ # Available to use for quota purposes for server-side applications. Can be any
2118
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2119
+ # @param [Google::Apis::RequestOptions] options
2120
+ # Request-specific options
2121
+ #
2122
+ # @yield [result, err] Result & error if block supplied
2123
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse] parsed result object
2124
+ # @yieldparam err [StandardError] error object if request failed
2125
+ #
2126
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse]
2127
+ #
2128
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2129
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2130
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2131
+ def detect_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3beta1_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2132
+ command = make_simple_command(:post, 'v3beta1/{+session}:detectIntent', options)
2133
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentRequest::Representation
2134
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_detect_intent_request_object
2135
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse::Representation
2136
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DetectIntentResponse
2137
+ command.params['session'] = session unless session.nil?
2138
+ command.query['fields'] = fields unless fields.nil?
2139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2140
+ execute_or_queue_command(command, &block)
2141
+ end
2142
+
2143
+ # Fulfills a matched intent returned by MatchIntent. Must be called after
2144
+ # MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is
2145
+ # undefined.
2146
+ # @param [String] session
2147
+ # Required. The name of the session this query is sent to. Format: `projects//
2148
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2149
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2150
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2151
+ # It can be a random number or some type of session identifiers (preferably
2152
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2153
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2154
+ # cx/docs/concept/session).
2155
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentRequest] google_cloud_dialogflow_cx_v3beta1_fulfill_intent_request_object
2156
+ # @param [String] fields
2157
+ # Selector specifying which fields to include in a partial response.
2158
+ # @param [String] quota_user
2159
+ # Available to use for quota purposes for server-side applications. Can be any
2160
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2161
+ # @param [Google::Apis::RequestOptions] options
2162
+ # Request-specific options
2163
+ #
2164
+ # @yield [result, err] Result & error if block supplied
2165
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentResponse] parsed result object
2166
+ # @yieldparam err [StandardError] error object if request failed
2167
+ #
2168
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentResponse]
2169
+ #
2170
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2171
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2172
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2173
+ def fulfill_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3beta1_fulfill_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2174
+ command = make_simple_command(:post, 'v3beta1/{+session}:fulfillIntent', options)
2175
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentRequest::Representation
2176
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_fulfill_intent_request_object
2177
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentResponse::Representation
2178
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillIntentResponse
2179
+ command.params['session'] = session unless session.nil?
2180
+ command.query['fields'] = fields unless fields.nil?
2181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2182
+ execute_or_queue_command(command, &block)
2183
+ end
2184
+
2185
+ # Returns preliminary intent match results, doesn't change the session status.
2186
+ # @param [String] session
2187
+ # Required. The name of the session this query is sent to. Format: `projects//
2188
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2189
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2190
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2191
+ # It can be a random number or some type of session identifiers (preferably
2192
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2193
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2194
+ # cx/docs/concept/session).
2195
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentRequest] google_cloud_dialogflow_cx_v3beta1_match_intent_request_object
2196
+ # @param [String] fields
2197
+ # Selector specifying which fields to include in a partial response.
2198
+ # @param [String] quota_user
2199
+ # Available to use for quota purposes for server-side applications. Can be any
2200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2201
+ # @param [Google::Apis::RequestOptions] options
2202
+ # Request-specific options
2203
+ #
2204
+ # @yield [result, err] Result & error if block supplied
2205
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentResponse] parsed result object
2206
+ # @yieldparam err [StandardError] error object if request failed
2207
+ #
2208
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentResponse]
2209
+ #
2210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2213
+ def match_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3beta1_match_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2214
+ command = make_simple_command(:post, 'v3beta1/{+session}:matchIntent', options)
2215
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentRequest::Representation
2216
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_match_intent_request_object
2217
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentResponse::Representation
2218
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1MatchIntentResponse
2219
+ command.params['session'] = session unless session.nil?
2220
+ command.query['fields'] = fields unless fields.nil?
2221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2222
+ execute_or_queue_command(command, &block)
2223
+ end
2224
+
2225
+ # Creates a session entity type. If the specified session entity type already
2226
+ # exists, overrides the session entity type.
2227
+ # @param [String] parent
2228
+ # Required. The session to create a session entity type for. Format: `projects//
2229
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2230
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2231
+ # environment.
2232
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] google_cloud_dialogflow_cx_v3beta1_session_entity_type_object
2233
+ # @param [String] fields
2234
+ # Selector specifying which fields to include in a partial response.
2235
+ # @param [String] quota_user
2236
+ # Available to use for quota purposes for server-side applications. Can be any
2237
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2238
+ # @param [Google::Apis::RequestOptions] options
2239
+ # Request-specific options
2240
+ #
2241
+ # @yield [result, err] Result & error if block supplied
2242
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] parsed result object
2243
+ # @yieldparam err [StandardError] error object if request failed
2244
+ #
2245
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType]
2246
+ #
2247
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2248
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2249
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2250
+ def create_project_location_agent_session_entity_type(parent, google_cloud_dialogflow_cx_v3beta1_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2251
+ command = make_simple_command(:post, 'v3beta1/{+parent}/entityTypes', options)
2252
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
2253
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_session_entity_type_object
2254
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
2255
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType
2256
+ command.params['parent'] = parent unless parent.nil?
2257
+ command.query['fields'] = fields unless fields.nil?
2258
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2259
+ execute_or_queue_command(command, &block)
2260
+ end
2261
+
2262
+ # Deletes the specified session entity type.
2263
+ # @param [String] name
2264
+ # Required. The name of the session entity type to delete. Format: `projects//
2265
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
2266
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
2267
+ # we assume default 'draft' environment.
2268
+ # @param [String] fields
2269
+ # Selector specifying which fields to include in a partial response.
2270
+ # @param [String] quota_user
2271
+ # Available to use for quota purposes for server-side applications. Can be any
2272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2273
+ # @param [Google::Apis::RequestOptions] options
2274
+ # Request-specific options
2275
+ #
2276
+ # @yield [result, err] Result & error if block supplied
2277
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
2278
+ # @yieldparam err [StandardError] error object if request failed
2279
+ #
2280
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
2281
+ #
2282
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2283
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2284
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2285
+ def delete_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
2286
+ command = make_simple_command(:delete, 'v3beta1/{+name}', options)
2287
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
2288
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
2289
+ command.params['name'] = name unless name.nil?
2290
+ command.query['fields'] = fields unless fields.nil?
2291
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2292
+ execute_or_queue_command(command, &block)
2293
+ end
2294
+
2295
+ # Retrieves the specified session entity type.
2296
+ # @param [String] name
2297
+ # Required. The name of the session entity type. Format: `projects//locations//
2298
+ # agents//sessions//entityTypes/` or `projects//locations//agents//environments//
2299
+ # sessions//entityTypes/`. If `Environment ID` is not specified, we assume
2300
+ # default 'draft' environment.
2301
+ # @param [String] fields
2302
+ # Selector specifying which fields to include in a partial response.
2303
+ # @param [String] quota_user
2304
+ # Available to use for quota purposes for server-side applications. Can be any
2305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2306
+ # @param [Google::Apis::RequestOptions] options
2307
+ # Request-specific options
2308
+ #
2309
+ # @yield [result, err] Result & error if block supplied
2310
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] parsed result object
2311
+ # @yieldparam err [StandardError] error object if request failed
2312
+ #
2313
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType]
2314
+ #
2315
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2316
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2317
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2318
+ def get_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
2319
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
2320
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
2321
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType
2322
+ command.params['name'] = name unless name.nil?
2323
+ command.query['fields'] = fields unless fields.nil?
2324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2325
+ execute_or_queue_command(command, &block)
2326
+ end
2327
+
2328
+ # Returns the list of all session entity types in the specified session.
2329
+ # @param [String] parent
2330
+ # Required. The session to list all session entity types from. Format: `projects/
2331
+ # /locations//agents//sessions/` or `projects//locations//agents//environments//
2332
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2333
+ # environment.
2334
+ # @param [Fixnum] page_size
2335
+ # The maximum number of items to return in a single page. By default 100 and at
2336
+ # most 1000.
2337
+ # @param [String] page_token
2338
+ # The next_page_token value returned from a previous list request.
2339
+ # @param [String] fields
2340
+ # Selector specifying which fields to include in a partial response.
2341
+ # @param [String] quota_user
2342
+ # Available to use for quota purposes for server-side applications. Can be any
2343
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2344
+ # @param [Google::Apis::RequestOptions] options
2345
+ # Request-specific options
2346
+ #
2347
+ # @yield [result, err] Result & error if block supplied
2348
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse] parsed result object
2349
+ # @yieldparam err [StandardError] error object if request failed
2350
+ #
2351
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse]
2352
+ #
2353
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2354
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2355
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2356
+ def list_project_location_agent_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2357
+ command = make_simple_command(:get, 'v3beta1/{+parent}/entityTypes', options)
2358
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse::Representation
2359
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse
2360
+ command.params['parent'] = parent unless parent.nil?
2361
+ command.query['pageSize'] = page_size unless page_size.nil?
2362
+ command.query['pageToken'] = page_token unless page_token.nil?
2363
+ command.query['fields'] = fields unless fields.nil?
2364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2365
+ execute_or_queue_command(command, &block)
2366
+ end
2367
+
2368
+ # Updates the specified session entity type.
2369
+ # @param [String] name
2370
+ # Required. The unique identifier of the session entity type. Format: `projects//
2371
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
2372
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
2373
+ # we assume default 'draft' environment.
2374
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] google_cloud_dialogflow_cx_v3beta1_session_entity_type_object
2375
+ # @param [String] update_mask
2376
+ # The mask to control which fields get updated.
2377
+ # @param [String] fields
2378
+ # Selector specifying which fields to include in a partial response.
2379
+ # @param [String] quota_user
2380
+ # Available to use for quota purposes for server-side applications. Can be any
2381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2382
+ # @param [Google::Apis::RequestOptions] options
2383
+ # Request-specific options
2384
+ #
2385
+ # @yield [result, err] Result & error if block supplied
2386
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType] parsed result object
2387
+ # @yieldparam err [StandardError] error object if request failed
2388
+ #
2389
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType]
2390
+ #
2391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2394
+ def patch_project_location_agent_session_entity_type(name, google_cloud_dialogflow_cx_v3beta1_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2395
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
2396
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
2397
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_session_entity_type_object
2398
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType::Representation
2399
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType
2400
+ command.params['name'] = name unless name.nil?
2401
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2402
+ command.query['fields'] = fields unless fields.nil?
2403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2404
+ execute_or_queue_command(command, &block)
2405
+ end
2406
+
2407
+ # Creates a webhook in the specified agent.
2408
+ # @param [String] parent
2409
+ # Required. The agent to create a webhook for. Format: `projects//locations//
2410
+ # agents/`.
2411
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook] google_cloud_dialogflow_cx_v3beta1_webhook_object
2412
+ # @param [String] fields
2413
+ # Selector specifying which fields to include in a partial response.
2414
+ # @param [String] quota_user
2415
+ # Available to use for quota purposes for server-side applications. Can be any
2416
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2417
+ # @param [Google::Apis::RequestOptions] options
2418
+ # Request-specific options
2419
+ #
2420
+ # @yield [result, err] Result & error if block supplied
2421
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook] parsed result object
2422
+ # @yieldparam err [StandardError] error object if request failed
2423
+ #
2424
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook]
2425
+ #
2426
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2427
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2428
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2429
+ def create_project_location_agent_webhook(parent, google_cloud_dialogflow_cx_v3beta1_webhook_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2430
+ command = make_simple_command(:post, 'v3beta1/{+parent}/webhooks', options)
2431
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook::Representation
2432
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_webhook_object
2433
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook::Representation
2434
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook
2435
+ command.params['parent'] = parent unless parent.nil?
2436
+ command.query['fields'] = fields unless fields.nil?
2437
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2438
+ execute_or_queue_command(command, &block)
2439
+ end
2440
+
2441
+ # Deletes the specified webhook.
2442
+ # @param [String] name
2443
+ # Required. The name of the webhook to delete. Format: `projects//locations//
2444
+ # agents//webhooks/`.
2445
+ # @param [Boolean] force
2446
+ # This field has no effect for webhook not being used. For webhooks that are
2447
+ # used by pages/flows/transition route groups: * If `force` is set to false, an
2448
+ # error will be returned with message indicating the referenced resources. * If `
2449
+ # force` is set to true, Dialogflow will remove the webhook, as well as any
2450
+ # references to the webhook (i.e. Webhook and tagin fulfillments that point to
2451
+ # this webhook will be removed).
2452
+ # @param [String] fields
2453
+ # Selector specifying which fields to include in a partial response.
2454
+ # @param [String] quota_user
2455
+ # Available to use for quota purposes for server-side applications. Can be any
2456
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2457
+ # @param [Google::Apis::RequestOptions] options
2458
+ # Request-specific options
2459
+ #
2460
+ # @yield [result, err] Result & error if block supplied
2461
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
2462
+ # @yieldparam err [StandardError] error object if request failed
2463
+ #
2464
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
2465
+ #
2466
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2467
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2468
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2469
+ def delete_project_location_agent_webhook(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2470
+ command = make_simple_command(:delete, 'v3beta1/{+name}', options)
2471
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
2472
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
2473
+ command.params['name'] = name unless name.nil?
2474
+ command.query['force'] = force unless force.nil?
2475
+ command.query['fields'] = fields unless fields.nil?
2476
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2477
+ execute_or_queue_command(command, &block)
2478
+ end
2479
+
2480
+ # Retrieves the specified webhook.
2481
+ # @param [String] name
2482
+ # Required. The name of the webhook. Format: `projects//locations//agents//
2483
+ # webhooks/`.
2484
+ # @param [String] fields
2485
+ # Selector specifying which fields to include in a partial response.
2486
+ # @param [String] quota_user
2487
+ # Available to use for quota purposes for server-side applications. Can be any
2488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2489
+ # @param [Google::Apis::RequestOptions] options
2490
+ # Request-specific options
2491
+ #
2492
+ # @yield [result, err] Result & error if block supplied
2493
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook] parsed result object
2494
+ # @yieldparam err [StandardError] error object if request failed
2495
+ #
2496
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook]
2497
+ #
2498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2501
+ def get_project_location_agent_webhook(name, fields: nil, quota_user: nil, options: nil, &block)
2502
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
2503
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook::Representation
2504
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook
2505
+ command.params['name'] = name unless name.nil?
2506
+ command.query['fields'] = fields unless fields.nil?
2507
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2508
+ execute_or_queue_command(command, &block)
2509
+ end
2510
+
2511
+ # Returns the list of all webhooks in the specified agent.
2512
+ # @param [String] parent
2513
+ # Required. The agent to list all webhooks for. Format: `projects//locations//
2514
+ # agents/`.
2515
+ # @param [Fixnum] page_size
2516
+ # The maximum number of items to return in a single page. By default 100 and at
2517
+ # most 1000.
2518
+ # @param [String] page_token
2519
+ # The next_page_token value returned from a previous list request.
2520
+ # @param [String] fields
2521
+ # Selector specifying which fields to include in a partial response.
2522
+ # @param [String] quota_user
2523
+ # Available to use for quota purposes for server-side applications. Can be any
2524
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2525
+ # @param [Google::Apis::RequestOptions] options
2526
+ # Request-specific options
2527
+ #
2528
+ # @yield [result, err] Result & error if block supplied
2529
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListWebhooksResponse] parsed result object
2530
+ # @yieldparam err [StandardError] error object if request failed
2531
+ #
2532
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListWebhooksResponse]
2533
+ #
2534
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2535
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2536
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2537
+ def list_project_location_agent_webhooks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2538
+ command = make_simple_command(:get, 'v3beta1/{+parent}/webhooks', options)
2539
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListWebhooksResponse::Representation
2540
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListWebhooksResponse
2541
+ command.params['parent'] = parent unless parent.nil?
2542
+ command.query['pageSize'] = page_size unless page_size.nil?
2543
+ command.query['pageToken'] = page_token unless page_token.nil?
2544
+ command.query['fields'] = fields unless fields.nil?
2545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2546
+ execute_or_queue_command(command, &block)
2547
+ end
2548
+
2549
+ # Updates the specified webhook.
2550
+ # @param [String] name
2551
+ # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook
2552
+ # method. Webhooks.CreateWebhook populates the name automatically. Format: `
2553
+ # projects//locations//agents//webhooks/`.
2554
+ # @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook] google_cloud_dialogflow_cx_v3beta1_webhook_object
2555
+ # @param [String] update_mask
2556
+ # The mask to control which fields get updated. If the mask is not present, all
2557
+ # fields will be updated.
2558
+ # @param [String] fields
2559
+ # Selector specifying which fields to include in a partial response.
2560
+ # @param [String] quota_user
2561
+ # Available to use for quota purposes for server-side applications. Can be any
2562
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2563
+ # @param [Google::Apis::RequestOptions] options
2564
+ # Request-specific options
2565
+ #
2566
+ # @yield [result, err] Result & error if block supplied
2567
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook] parsed result object
2568
+ # @yieldparam err [StandardError] error object if request failed
2569
+ #
2570
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook]
2571
+ #
2572
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2573
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2574
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2575
+ def patch_project_location_agent_webhook(name, google_cloud_dialogflow_cx_v3beta1_webhook_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2576
+ command = make_simple_command(:patch, 'v3beta1/{+name}', options)
2577
+ command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook::Representation
2578
+ command.request_object = google_cloud_dialogflow_cx_v3beta1_webhook_object
2579
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook::Representation
2580
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Webhook
2581
+ command.params['name'] = name unless name.nil?
2582
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2583
+ command.query['fields'] = fields unless fields.nil?
2584
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2585
+ execute_or_queue_command(command, &block)
2586
+ end
2587
+
2588
+ # Starts asynchronous cancellation on a long-running operation. The server makes
2589
+ # a best effort to cancel the operation, but success is not guaranteed. If the
2590
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2591
+ # Clients can use Operations.GetOperation or other methods to check whether the
2592
+ # cancellation succeeded or whether the operation completed despite cancellation.
2593
+ # On successful cancellation, the operation is not deleted; instead, it becomes
2594
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
2595
+ # corresponding to `Code.CANCELLED`.
2596
+ # @param [String] name
2597
+ # The name of the operation resource to be cancelled.
2598
+ # @param [String] fields
2599
+ # Selector specifying which fields to include in a partial response.
2600
+ # @param [String] quota_user
2601
+ # Available to use for quota purposes for server-side applications. Can be any
2602
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2603
+ # @param [Google::Apis::RequestOptions] options
2604
+ # Request-specific options
2605
+ #
2606
+ # @yield [result, err] Result & error if block supplied
2607
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
2608
+ # @yieldparam err [StandardError] error object if request failed
2609
+ #
2610
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
2611
+ #
2612
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2613
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2614
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2615
+ def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2616
+ command = make_simple_command(:post, 'v3beta1/{+name}:cancel', options)
2617
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
2618
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
2619
+ command.params['name'] = name unless name.nil?
2620
+ command.query['fields'] = fields unless fields.nil?
2621
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2622
+ execute_or_queue_command(command, &block)
2623
+ end
2624
+
2625
+ # Gets the latest state of a long-running operation. Clients can use this method
2626
+ # to poll the operation result at intervals as recommended by the API service.
2627
+ # @param [String] name
2628
+ # The name of the operation resource.
2629
+ # @param [String] fields
2630
+ # Selector specifying which fields to include in a partial response.
2631
+ # @param [String] quota_user
2632
+ # Available to use for quota purposes for server-side applications. Can be any
2633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2634
+ # @param [Google::Apis::RequestOptions] options
2635
+ # Request-specific options
2636
+ #
2637
+ # @yield [result, err] Result & error if block supplied
2638
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
2639
+ # @yieldparam err [StandardError] error object if request failed
2640
+ #
2641
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
2642
+ #
2643
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2644
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2645
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2646
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2647
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
2648
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
2649
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
2650
+ command.params['name'] = name unless name.nil?
2651
+ command.query['fields'] = fields unless fields.nil?
2652
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2653
+ execute_or_queue_command(command, &block)
2654
+ end
2655
+
2656
+ # Lists operations that match the specified filter in the request. If the server
2657
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2658
+ # binding allows API services to override the binding to use different resource
2659
+ # name schemes, such as `users/*/operations`. To override the binding, API
2660
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2661
+ # service configuration. For backwards compatibility, the default name includes
2662
+ # the operations collection id, however overriding users must ensure the name
2663
+ # binding is the parent resource, without the operations collection id.
2664
+ # @param [String] name
2665
+ # The name of the operation's parent resource.
2666
+ # @param [String] filter
2667
+ # The standard list filter.
2668
+ # @param [Fixnum] page_size
2669
+ # The standard list page size.
2670
+ # @param [String] page_token
2671
+ # The standard list page token.
2672
+ # @param [String] fields
2673
+ # Selector specifying which fields to include in a partial response.
2674
+ # @param [String] quota_user
2675
+ # Available to use for quota purposes for server-side applications. Can be any
2676
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2677
+ # @param [Google::Apis::RequestOptions] options
2678
+ # Request-specific options
2679
+ #
2680
+ # @yield [result, err] Result & error if block supplied
2681
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningListOperationsResponse] parsed result object
2682
+ # @yieldparam err [StandardError] error object if request failed
2683
+ #
2684
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningListOperationsResponse]
2685
+ #
2686
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2687
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2688
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2689
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2690
+ command = make_simple_command(:get, 'v3beta1/{+name}/operations', options)
2691
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningListOperationsResponse::Representation
2692
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningListOperationsResponse
2693
+ command.params['name'] = name unless name.nil?
2694
+ command.query['filter'] = filter unless filter.nil?
2695
+ command.query['pageSize'] = page_size unless page_size.nil?
2696
+ command.query['pageToken'] = page_token unless page_token.nil?
2697
+ command.query['fields'] = fields unless fields.nil?
2698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2699
+ execute_or_queue_command(command, &block)
2700
+ end
2701
+
2702
+ # Starts asynchronous cancellation on a long-running operation. The server makes
2703
+ # a best effort to cancel the operation, but success is not guaranteed. If the
2704
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2705
+ # Clients can use Operations.GetOperation or other methods to check whether the
2706
+ # cancellation succeeded or whether the operation completed despite cancellation.
2707
+ # On successful cancellation, the operation is not deleted; instead, it becomes
2708
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
2709
+ # corresponding to `Code.CANCELLED`.
2710
+ # @param [String] name
2711
+ # The name of the operation resource to be cancelled.
2712
+ # @param [String] fields
2713
+ # Selector specifying which fields to include in a partial response.
2714
+ # @param [String] quota_user
2715
+ # Available to use for quota purposes for server-side applications. Can be any
2716
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2717
+ # @param [Google::Apis::RequestOptions] options
2718
+ # Request-specific options
2719
+ #
2720
+ # @yield [result, err] Result & error if block supplied
2721
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
2722
+ # @yieldparam err [StandardError] error object if request failed
2723
+ #
2724
+ # @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
2725
+ #
2726
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2727
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2728
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2729
+ def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2730
+ command = make_simple_command(:post, 'v3beta1/{+name}:cancel', options)
2731
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
2732
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
2733
+ command.params['name'] = name unless name.nil?
2734
+ command.query['fields'] = fields unless fields.nil?
2735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2736
+ execute_or_queue_command(command, &block)
2737
+ end
2738
+
2739
+ # Gets the latest state of a long-running operation. Clients can use this method
2740
+ # to poll the operation result at intervals as recommended by the API service.
2741
+ # @param [String] name
2742
+ # The name of the operation resource.
2743
+ # @param [String] fields
2744
+ # Selector specifying which fields to include in a partial response.
2745
+ # @param [String] quota_user
2746
+ # Available to use for quota purposes for server-side applications. Can be any
2747
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2748
+ # @param [Google::Apis::RequestOptions] options
2749
+ # Request-specific options
2750
+ #
2751
+ # @yield [result, err] Result & error if block supplied
2752
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation] parsed result object
2753
+ # @yieldparam err [StandardError] error object if request failed
2754
+ #
2755
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation]
2756
+ #
2757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2760
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2761
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
2762
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation::Representation
2763
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningOperation
2764
+ command.params['name'] = name unless name.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
+ # Lists operations that match the specified filter in the request. If the server
2771
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2772
+ # binding allows API services to override the binding to use different resource
2773
+ # name schemes, such as `users/*/operations`. To override the binding, API
2774
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2775
+ # service configuration. For backwards compatibility, the default name includes
2776
+ # the operations collection id, however overriding users must ensure the name
2777
+ # binding is the parent resource, without the operations collection id.
2778
+ # @param [String] name
2779
+ # The name of the operation's parent resource.
2780
+ # @param [String] filter
2781
+ # The standard list filter.
2782
+ # @param [Fixnum] page_size
2783
+ # The standard list page size.
2784
+ # @param [String] page_token
2785
+ # The standard list page token.
2786
+ # @param [String] fields
2787
+ # Selector specifying which fields to include in a partial response.
2788
+ # @param [String] quota_user
2789
+ # Available to use for quota purposes for server-side applications. Can be any
2790
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2791
+ # @param [Google::Apis::RequestOptions] options
2792
+ # Request-specific options
2793
+ #
2794
+ # @yield [result, err] Result & error if block supplied
2795
+ # @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleLongrunningListOperationsResponse] parsed result object
2796
+ # @yieldparam err [StandardError] error object if request failed
2797
+ #
2798
+ # @return [Google::Apis::DialogflowV3beta1::GoogleLongrunningListOperationsResponse]
2799
+ #
2800
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2801
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2802
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2803
+ def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2804
+ command = make_simple_command(:get, 'v3beta1/{+name}/operations', options)
2805
+ command.response_representation = Google::Apis::DialogflowV3beta1::GoogleLongrunningListOperationsResponse::Representation
2806
+ command.response_class = Google::Apis::DialogflowV3beta1::GoogleLongrunningListOperationsResponse
2807
+ command.params['name'] = name unless name.nil?
2808
+ command.query['filter'] = filter unless filter.nil?
2809
+ command.query['pageSize'] = page_size unless page_size.nil?
2810
+ command.query['pageToken'] = page_token unless page_token.nil?
2811
+ command.query['fields'] = fields unless fields.nil?
2812
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2813
+ execute_or_queue_command(command, &block)
2814
+ end
2815
+
2816
+ protected
2817
+
2818
+ def apply_command_defaults(command)
2819
+ command.query['key'] = key unless key.nil?
2820
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2821
+ end
2822
+ end
2823
+ end
2824
+ end
2825
+ end