google-api-client 0.36.4 → 0.37.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 (481) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +184 -0
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -4
  5. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  6. data/generated/google/apis/{servicebroker_v1.rb → accessapproval_v1.rb} +8 -10
  7. data/generated/google/apis/accessapproval_v1/classes.rb +417 -0
  8. data/generated/google/apis/accessapproval_v1/representations.rb +203 -0
  9. data/generated/google/apis/accessapproval_v1/service.rb +869 -0
  10. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  11. data/generated/google/apis/accesscontextmanager_v1/classes.rb +113 -0
  12. data/generated/google/apis/accesscontextmanager_v1/representations.rb +32 -0
  13. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  14. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +151 -0
  15. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +48 -0
  16. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  17. data/generated/google/apis/adexperiencereport_v1.rb +1 -4
  18. data/generated/google/apis/{analytics_v2_4/classes.rb → admob_v1.rb} +11 -6
  19. data/generated/google/apis/admob_v1/classes.rb +951 -0
  20. data/generated/google/apis/admob_v1/representations.rb +378 -0
  21. data/generated/google/apis/admob_v1/service.rb +196 -0
  22. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  23. data/generated/google/apis/alertcenter_v1beta1/classes.rb +252 -0
  24. data/generated/google/apis/alertcenter_v1beta1/representations.rb +126 -0
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +7 -1
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  30. data/generated/google/apis/androidenterprise_v1/service.rb +0 -403
  31. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  32. data/generated/google/apis/androidmanagement_v1/classes.rb +8 -2
  33. data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
  34. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  35. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -94
  36. data/generated/google/apis/androidpublisher_v2/representations.rb +0 -50
  37. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  38. data/generated/google/apis/androidpublisher_v3/classes.rb +134 -94
  39. data/generated/google/apis/androidpublisher_v3/representations.rb +63 -50
  40. data/generated/google/apis/androidpublisher_v3/service.rb +158 -0
  41. data/generated/google/apis/appengine_v1beta.rb +1 -1
  42. data/generated/google/apis/appengine_v1beta/classes.rb +0 -38
  43. data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  46. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +49 -15
  47. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  48. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +49 -0
  49. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +19 -0
  50. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  51. data/generated/google/apis/bigqueryreservation_v1/classes.rb +0 -22
  52. data/generated/google/apis/bigqueryreservation_v1/representations.rb +0 -13
  53. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  54. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -22
  55. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -13
  56. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  57. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +5 -99
  58. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +0 -45
  59. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +1 -70
  60. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  61. data/generated/google/apis/bigtableadmin_v2/classes.rb +49 -15
  62. data/generated/google/apis/bigtableadmin_v2/service.rb +76 -4
  63. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  64. data/generated/google/apis/binaryauthorization_v1/classes.rb +49 -15
  65. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  66. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +49 -15
  67. data/generated/google/apis/chat_v1.rb +1 -1
  68. data/generated/google/apis/classroom_v1.rb +1 -1
  69. data/generated/google/apis/cloudasset_v1.rb +2 -2
  70. data/generated/google/apis/cloudasset_v1/classes.rb +103 -20
  71. data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
  72. data/generated/google/apis/cloudasset_v1/service.rb +1 -1
  73. data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
  74. data/generated/google/apis/cloudasset_v1beta1/classes.rb +49 -15
  75. data/generated/google/apis/cloudasset_v1beta1/service.rb +1 -1
  76. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  77. data/generated/google/apis/cloudbilling_v1/classes.rb +51 -16
  78. data/generated/google/apis/cloudbilling_v1/service.rb +8 -6
  79. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  80. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
  81. data/generated/google/apis/{servicebroker_v1beta1.rb → cloudbuild_v1alpha2.rb} +9 -11
  82. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +1124 -0
  83. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +429 -0
  84. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +232 -0
  85. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  86. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  87. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  88. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +12 -12
  89. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  90. data/generated/google/apis/cloudfunctions_v1/classes.rb +63 -15
  91. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  92. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  93. data/generated/google/apis/cloudidentity_v1/classes.rb +560 -0
  94. data/generated/google/apis/cloudidentity_v1/representations.rb +226 -0
  95. data/generated/google/apis/cloudidentity_v1/service.rb +20 -13
  96. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +765 -72
  98. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +289 -0
  99. data/generated/google/apis/cloudidentity_v1beta1/service.rb +189 -79
  100. data/generated/google/apis/cloudiot_v1.rb +1 -1
  101. data/generated/google/apis/cloudiot_v1/classes.rb +49 -15
  102. data/generated/google/apis/cloudkms_v1.rb +1 -1
  103. data/generated/google/apis/cloudkms_v1/classes.rb +64 -21
  104. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  105. data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +1 -1
  106. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  107. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +49 -15
  108. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  109. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +49 -15
  111. data/generated/google/apis/cloudresourcemanager_v1/service.rb +3 -3
  112. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +49 -15
  114. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  115. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +49 -15
  116. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  117. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +49 -15
  118. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  119. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  120. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  121. data/generated/google/apis/cloudsearch_v1/classes.rb +8 -0
  122. data/generated/google/apis/cloudsearch_v1/representations.rb +1 -0
  123. data/generated/google/apis/cloudshell_v1.rb +1 -1
  124. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  125. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  126. data/generated/google/apis/cloudtasks_v2/classes.rb +49 -15
  127. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  128. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +49 -15
  129. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  130. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +49 -15
  131. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  132. data/generated/google/apis/cloudtrace_v1/service.rb +6 -0
  133. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  134. data/generated/google/apis/cloudtrace_v2/service.rb +4 -0
  135. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  136. data/generated/google/apis/composer_v1.rb +1 -1
  137. data/generated/google/apis/composer_v1/classes.rb +2 -0
  138. data/generated/google/apis/composer_v1beta1.rb +1 -1
  139. data/generated/google/apis/composer_v1beta1/classes.rb +59 -0
  140. data/generated/google/apis/composer_v1beta1/representations.rb +30 -0
  141. data/generated/google/apis/compute_alpha.rb +1 -1
  142. data/generated/google/apis/compute_alpha/classes.rb +429 -237
  143. data/generated/google/apis/compute_alpha/representations.rb +42 -3
  144. data/generated/google/apis/compute_alpha/service.rb +99 -32
  145. data/generated/google/apis/compute_beta.rb +1 -1
  146. data/generated/google/apis/compute_beta/classes.rb +1054 -235
  147. data/generated/google/apis/compute_beta/representations.rb +266 -0
  148. data/generated/google/apis/compute_beta/service.rb +5821 -4671
  149. data/generated/google/apis/compute_v1.rb +1 -1
  150. data/generated/google/apis/compute_v1/classes.rb +1118 -314
  151. data/generated/google/apis/compute_v1/representations.rb +313 -0
  152. data/generated/google/apis/compute_v1/service.rb +612 -24
  153. data/generated/google/apis/container_v1.rb +1 -1
  154. data/generated/google/apis/container_v1/classes.rb +247 -3
  155. data/generated/google/apis/container_v1/representations.rb +74 -0
  156. data/generated/google/apis/container_v1/service.rb +8 -0
  157. data/generated/google/apis/container_v1beta1.rb +1 -1
  158. data/generated/google/apis/container_v1beta1/classes.rb +284 -80
  159. data/generated/google/apis/container_v1beta1/representations.rb +85 -0
  160. data/generated/google/apis/container_v1beta1/service.rb +129 -121
  161. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  162. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +49 -15
  163. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  164. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +49 -15
  165. data/generated/google/apis/content_v2.rb +1 -1
  166. data/generated/google/apis/content_v2/classes.rb +97 -0
  167. data/generated/google/apis/content_v2/representations.rb +47 -0
  168. data/generated/google/apis/content_v2/service.rb +33 -0
  169. data/generated/google/apis/content_v2_1.rb +1 -1
  170. data/generated/google/apis/content_v2_1/classes.rb +191 -0
  171. data/generated/google/apis/content_v2_1/representations.rb +94 -0
  172. data/generated/google/apis/content_v2_1/service.rb +77 -0
  173. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  174. data/generated/google/apis/datacatalog_v1beta1/classes.rb +157 -24
  175. data/generated/google/apis/datacatalog_v1beta1/representations.rb +33 -0
  176. data/generated/google/apis/datacatalog_v1beta1/service.rb +151 -66
  177. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  178. data/generated/google/apis/dataflow_v1b3/classes.rb +120 -2
  179. data/generated/google/apis/dataflow_v1b3/representations.rb +63 -0
  180. data/generated/google/apis/dataflow_v1b3/service.rb +38 -0
  181. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  182. data/generated/google/apis/datafusion_v1beta1/classes.rb +134 -387
  183. data/generated/google/apis/datafusion_v1beta1/representations.rb +1 -132
  184. data/generated/google/apis/datafusion_v1beta1/service.rb +5 -1
  185. data/generated/google/apis/dataproc_v1.rb +1 -1
  186. data/generated/google/apis/dataproc_v1/classes.rb +156 -122
  187. data/generated/google/apis/dataproc_v1/service.rb +16 -14
  188. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  189. data/generated/google/apis/dataproc_v1beta2/classes.rb +155 -121
  190. data/generated/google/apis/dataproc_v1beta2/service.rb +28 -26
  191. data/generated/google/apis/dialogflow_v2.rb +1 -1
  192. data/generated/google/apis/dialogflow_v2/classes.rb +506 -9
  193. data/generated/google/apis/dialogflow_v2/representations.rb +191 -0
  194. data/generated/google/apis/dialogflow_v2/service.rb +477 -0
  195. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  196. data/generated/google/apis/dialogflow_v2beta1/classes.rb +404 -9
  197. data/generated/google/apis/dialogflow_v2beta1/representations.rb +160 -0
  198. data/generated/google/apis/dialogflow_v2beta1/service.rb +919 -45
  199. data/generated/google/apis/dlp_v2.rb +1 -1
  200. data/generated/google/apis/dlp_v2/classes.rb +101 -92
  201. data/generated/google/apis/dlp_v2/service.rb +56 -56
  202. data/generated/google/apis/docs_v1.rb +1 -1
  203. data/generated/google/apis/docs_v1/classes.rb +275 -18
  204. data/generated/google/apis/docs_v1/representations.rb +75 -0
  205. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  206. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +34 -0
  207. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +16 -0
  208. data/generated/google/apis/drive_v2.rb +1 -1
  209. data/generated/google/apis/drive_v2/classes.rb +1 -2
  210. data/generated/google/apis/drive_v2/service.rb +0 -92
  211. data/generated/google/apis/driveactivity_v2.rb +1 -1
  212. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  213. data/generated/google/apis/fcm_v1.rb +1 -1
  214. data/generated/google/apis/file_v1.rb +1 -1
  215. data/generated/google/apis/file_v1beta1.rb +1 -1
  216. data/generated/google/apis/file_v1beta1/classes.rb +1 -1
  217. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  218. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  219. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  220. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +161 -0
  221. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +64 -0
  222. data/generated/google/apis/firebasehosting_v1beta1/service.rb +67 -0
  223. data/generated/google/apis/firebaserules_v1.rb +1 -1
  224. data/generated/google/apis/firebaserules_v1/classes.rb +12 -0
  225. data/generated/google/apis/firebaserules_v1/representations.rb +2 -0
  226. data/generated/google/apis/firestore_v1.rb +1 -1
  227. data/generated/google/apis/firestore_v1/classes.rb +4 -2
  228. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  229. data/generated/google/apis/firestore_v1beta1/classes.rb +4 -2
  230. data/generated/google/apis/fitness_v1.rb +1 -1
  231. data/generated/google/apis/fitness_v1/classes.rb +8 -4
  232. data/generated/google/apis/fitness_v1/service.rb +26 -8
  233. data/generated/google/apis/genomics_v1.rb +1 -1
  234. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  235. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  236. data/generated/google/apis/gmail_v1.rb +13 -1
  237. data/generated/google/apis/gmail_v1/service.rb +1 -1
  238. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  239. data/generated/google/apis/healthcare_v1beta1/classes.rb +113 -35
  240. data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -0
  241. data/generated/google/apis/healthcare_v1beta1/service.rb +68 -36
  242. data/generated/google/apis/homegraph_v1.rb +1 -1
  243. data/generated/google/apis/iam_v1.rb +1 -1
  244. data/generated/google/apis/iam_v1/classes.rb +93 -23
  245. data/generated/google/apis/iap_v1.rb +1 -1
  246. data/generated/google/apis/iap_v1/classes.rb +66 -17
  247. data/generated/google/apis/iap_v1/representations.rb +1 -0
  248. data/generated/google/apis/iap_v1/service.rb +31 -33
  249. data/generated/google/apis/iap_v1beta1.rb +1 -1
  250. data/generated/google/apis/iap_v1beta1/classes.rb +49 -15
  251. data/generated/google/apis/jobs_v3.rb +1 -1
  252. data/generated/google/apis/jobs_v3/classes.rb +1 -0
  253. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  254. data/generated/google/apis/jobs_v3p1beta1/classes.rb +8 -2
  255. data/generated/google/apis/kgsearch_v1.rb +1 -1
  256. data/generated/google/apis/language_v1.rb +1 -1
  257. data/generated/google/apis/language_v1beta1.rb +1 -1
  258. data/generated/google/apis/language_v1beta2.rb +1 -1
  259. data/generated/google/apis/libraryagent_v1.rb +1 -1
  260. data/generated/google/apis/logging_v2.rb +1 -1
  261. data/generated/google/apis/logging_v2/classes.rb +106 -4
  262. data/generated/google/apis/logging_v2/representations.rb +16 -0
  263. data/generated/google/apis/logging_v2/service.rb +184 -0
  264. data/generated/google/apis/manufacturers_v1.rb +1 -1
  265. data/generated/google/apis/ml_v1.rb +4 -1
  266. data/generated/google/apis/ml_v1/classes.rb +131 -26
  267. data/generated/google/apis/ml_v1/representations.rb +15 -0
  268. data/generated/google/apis/ml_v1/service.rb +2 -7
  269. data/generated/google/apis/monitoring_v1.rb +1 -1
  270. data/generated/google/apis/monitoring_v1/classes.rb +144 -109
  271. data/generated/google/apis/monitoring_v1/representations.rb +0 -18
  272. data/generated/google/apis/monitoring_v1/service.rb +11 -10
  273. data/generated/google/apis/monitoring_v3.rb +1 -1
  274. data/generated/google/apis/monitoring_v3/classes.rb +211 -99
  275. data/generated/google/apis/monitoring_v3/representations.rb +18 -0
  276. data/generated/google/apis/monitoring_v3/service.rb +178 -153
  277. data/generated/google/apis/{servicebroker_v1alpha1.rb → osconfig_v1beta.rb} +10 -11
  278. data/generated/google/apis/osconfig_v1beta/classes.rb +2357 -0
  279. data/generated/google/apis/osconfig_v1beta/representations.rb +966 -0
  280. data/generated/google/apis/osconfig_v1beta/service.rb +605 -0
  281. data/generated/google/apis/oslogin_v1.rb +1 -2
  282. data/generated/google/apis/oslogin_v1/service.rb +0 -1
  283. data/generated/google/apis/oslogin_v1alpha.rb +1 -2
  284. data/generated/google/apis/oslogin_v1alpha/service.rb +0 -1
  285. data/generated/google/apis/oslogin_v1beta.rb +1 -2
  286. data/generated/google/apis/oslogin_v1beta/service.rb +0 -1
  287. data/generated/google/apis/pagespeedonline_v5.rb +9 -4
  288. data/generated/google/apis/pagespeedonline_v5/classes.rb +529 -498
  289. data/generated/google/apis/pagespeedonline_v5/representations.rb +225 -221
  290. data/generated/google/apis/pagespeedonline_v5/service.rb +22 -24
  291. data/generated/google/apis/people_v1.rb +1 -1
  292. data/generated/google/apis/people_v1/classes.rb +14 -13
  293. data/generated/google/apis/people_v1/service.rb +12 -16
  294. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  295. data/generated/google/apis/policytroubleshooter_v1/classes.rb +71 -19
  296. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  297. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +71 -19
  298. data/generated/google/apis/poly_v1.rb +1 -1
  299. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  300. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +39 -0
  301. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +27 -0
  302. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +66 -0
  303. data/generated/google/apis/pubsub_v1.rb +1 -1
  304. data/generated/google/apis/pubsub_v1/classes.rb +119 -15
  305. data/generated/google/apis/pubsub_v1/representations.rb +17 -0
  306. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  307. data/generated/google/apis/pubsub_v1beta2/classes.rb +49 -15
  308. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  309. data/generated/google/apis/recommender_v1beta1/classes.rb +2 -5
  310. data/generated/google/apis/recommender_v1beta1/service.rb +13 -11
  311. data/generated/google/apis/redis_v1.rb +1 -1
  312. data/generated/google/apis/redis_v1/classes.rb +10 -3
  313. data/generated/google/apis/redis_v1/representations.rb +1 -0
  314. data/generated/google/apis/redis_v1beta1.rb +1 -1
  315. data/generated/google/apis/redis_v1beta1/classes.rb +29 -3
  316. data/generated/google/apis/redis_v1beta1/representations.rb +14 -0
  317. data/generated/google/apis/redis_v1beta1/service.rb +36 -0
  318. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  319. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  320. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  321. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  322. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  323. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  324. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  325. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  326. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  327. data/generated/google/apis/run_v1.rb +1 -1
  328. data/generated/google/apis/run_v1/classes.rb +49 -15
  329. data/generated/google/apis/run_v1/service.rb +0 -30
  330. data/generated/google/apis/run_v1alpha1.rb +1 -1
  331. data/generated/google/apis/run_v1alpha1/classes.rb +278 -572
  332. data/generated/google/apis/run_v1alpha1/representations.rb +82 -223
  333. data/generated/google/apis/run_v1alpha1/service.rb +272 -682
  334. data/generated/google/apis/run_v1beta1.rb +4 -1
  335. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  336. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  337. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +49 -15
  338. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  339. data/generated/google/apis/safebrowsing_v4/classes.rb +2 -2
  340. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  341. data/generated/google/apis/sasportal_v1alpha1/classes.rb +39 -0
  342. data/generated/google/apis/sasportal_v1alpha1/representations.rb +27 -0
  343. data/generated/google/apis/sasportal_v1alpha1/service.rb +66 -0
  344. data/generated/google/apis/script_v1.rb +1 -1
  345. data/generated/google/apis/searchconsole_v1.rb +1 -1
  346. data/generated/google/apis/secretmanager_v1beta1.rb +3 -2
  347. data/generated/google/apis/secretmanager_v1beta1/classes.rb +49 -15
  348. data/generated/google/apis/secretmanager_v1beta1/service.rb +2 -1
  349. data/generated/google/apis/securitycenter_v1.rb +1 -1
  350. data/generated/google/apis/securitycenter_v1/classes.rb +449 -15
  351. data/generated/google/apis/securitycenter_v1/representations.rb +138 -0
  352. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  353. data/generated/google/apis/securitycenter_v1beta1/classes.rb +442 -15
  354. data/generated/google/apis/securitycenter_v1beta1/representations.rb +138 -0
  355. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  356. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +393 -0
  357. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +138 -0
  358. data/generated/google/apis/securitycenter_v1p1beta1.rb +35 -0
  359. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +1999 -0
  360. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +699 -0
  361. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +1315 -0
  362. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  363. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +101 -5
  364. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +19 -0
  365. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  366. data/generated/google/apis/servicecontrol_v1/classes.rb +238 -0
  367. data/generated/google/apis/servicecontrol_v1/representations.rb +86 -0
  368. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  369. data/generated/google/apis/servicemanagement_v1/classes.rb +156 -20
  370. data/generated/google/apis/servicemanagement_v1/representations.rb +18 -0
  371. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  372. data/generated/google/apis/servicenetworking_v1/classes.rb +101 -5
  373. data/generated/google/apis/servicenetworking_v1/representations.rb +19 -0
  374. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  375. data/generated/google/apis/servicenetworking_v1beta/classes.rb +101 -5
  376. data/generated/google/apis/servicenetworking_v1beta/representations.rb +19 -0
  377. data/generated/google/apis/serviceusage_v1.rb +1 -1
  378. data/generated/google/apis/serviceusage_v1/classes.rb +101 -5
  379. data/generated/google/apis/serviceusage_v1/representations.rb +19 -0
  380. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  381. data/generated/google/apis/serviceusage_v1beta1/classes.rb +101 -5
  382. data/generated/google/apis/serviceusage_v1beta1/representations.rb +19 -0
  383. data/generated/google/apis/sheets_v4.rb +1 -1
  384. data/generated/google/apis/sheets_v4/classes.rb +195 -31
  385. data/generated/google/apis/sheets_v4/representations.rb +56 -0
  386. data/generated/google/apis/sheets_v4/service.rb +9 -11
  387. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  388. data/generated/google/apis/sourcerepo_v1/classes.rb +172 -65
  389. data/generated/google/apis/sourcerepo_v1/service.rb +9 -1
  390. data/generated/google/apis/spanner_v1.rb +1 -1
  391. data/generated/google/apis/spanner_v1/classes.rb +49 -15
  392. data/generated/google/apis/spanner_v1/service.rb +1 -1
  393. data/generated/google/apis/speech_v1.rb +1 -1
  394. data/generated/google/apis/speech_v1/classes.rb +1 -8
  395. data/generated/google/apis/speech_v1/representations.rb +0 -1
  396. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  397. data/generated/google/apis/speech_v1p1beta1/classes.rb +3 -8
  398. data/generated/google/apis/speech_v1p1beta1/representations.rb +0 -1
  399. data/generated/google/apis/sql_v1beta4.rb +1 -1
  400. data/generated/google/apis/sql_v1beta4/classes.rb +130 -2
  401. data/generated/google/apis/sql_v1beta4/representations.rb +52 -0
  402. data/generated/google/apis/sql_v1beta4/service.rb +190 -9
  403. data/generated/google/apis/storage_v1.rb +1 -1
  404. data/generated/google/apis/storage_v1/classes.rb +16 -7
  405. data/generated/google/apis/storage_v1/service.rb +1 -1
  406. data/generated/google/apis/storage_v1beta2.rb +1 -1
  407. data/generated/google/apis/storage_v1beta2/service.rb +1 -1
  408. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  409. data/generated/google/apis/storagetransfer_v1/classes.rb +13 -4
  410. data/generated/google/apis/storagetransfer_v1/service.rb +0 -30
  411. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  412. data/generated/google/apis/tagmanager_v1.rb +1 -1
  413. data/generated/google/apis/tagmanager_v1/classes.rb +2 -0
  414. data/generated/google/apis/tagmanager_v2.rb +1 -1
  415. data/generated/google/apis/tagmanager_v2/classes.rb +170 -0
  416. data/generated/google/apis/tagmanager_v2/representations.rb +49 -0
  417. data/generated/google/apis/tasks_v1.rb +1 -1
  418. data/generated/google/apis/tasks_v1/service.rb +4 -1
  419. data/generated/google/apis/toolresults_v1.rb +1 -1
  420. data/generated/google/apis/tpu_v1.rb +1 -1
  421. data/generated/google/apis/tpu_v1/classes.rb +0 -1
  422. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  423. data/generated/google/apis/tpu_v1alpha1/classes.rb +0 -1
  424. data/generated/google/apis/translate_v3.rb +37 -0
  425. data/generated/google/apis/translate_v3/classes.rb +943 -0
  426. data/generated/google/apis/translate_v3/representations.rb +439 -0
  427. data/generated/google/apis/translate_v3/service.rb +781 -0
  428. data/generated/google/apis/videointelligence_v1.rb +1 -1
  429. data/generated/google/apis/videointelligence_v1/classes.rb +97 -0
  430. data/generated/google/apis/videointelligence_v1/representations.rb +51 -0
  431. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  432. data/generated/google/apis/videointelligence_v1beta2/classes.rb +97 -0
  433. data/generated/google/apis/videointelligence_v1beta2/representations.rb +51 -0
  434. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  435. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +97 -0
  436. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +51 -0
  437. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  438. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +97 -0
  439. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +51 -0
  440. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  441. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +184 -0
  442. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +85 -0
  443. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  444. data/generated/google/apis/websecurityscanner_v1/classes.rb +63 -0
  445. data/generated/google/apis/websecurityscanner_v1/representations.rb +31 -0
  446. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  447. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  448. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +63 -0
  449. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +31 -0
  450. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  451. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  452. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  453. data/generated/google/apis/youtube_v3.rb +1 -1
  454. data/generated/google/apis/youtube_v3/classes.rb +61 -9
  455. data/generated/google/apis/youtube_v3/representations.rb +8 -1
  456. data/generated/google/apis/youtube_v3/service.rb +8 -2
  457. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  458. data/lib/google/apis/core/base_service.rb +1 -1
  459. data/lib/google/apis/core/http_command.rb +1 -2
  460. data/lib/google/apis/version.rb +1 -1
  461. metadata +27 -27
  462. data/generated/google/apis/analytics_v2_4.rb +0 -37
  463. data/generated/google/apis/analytics_v2_4/representations.rb +0 -26
  464. data/generated/google/apis/analytics_v2_4/service.rb +0 -331
  465. data/generated/google/apis/plus_domains_v1.rb +0 -55
  466. data/generated/google/apis/plus_domains_v1/classes.rb +0 -2609
  467. data/generated/google/apis/plus_domains_v1/representations.rb +0 -1111
  468. data/generated/google/apis/plus_domains_v1/service.rb +0 -489
  469. data/generated/google/apis/replicapool_v1beta1.rb +0 -50
  470. data/generated/google/apis/replicapool_v1beta1/classes.rb +0 -918
  471. data/generated/google/apis/replicapool_v1beta1/representations.rb +0 -409
  472. data/generated/google/apis/replicapool_v1beta1/service.rb +0 -489
  473. data/generated/google/apis/servicebroker_v1/classes.rb +0 -368
  474. data/generated/google/apis/servicebroker_v1/representations.rb +0 -114
  475. data/generated/google/apis/servicebroker_v1/service.rb +0 -177
  476. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +0 -1072
  477. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +0 -367
  478. data/generated/google/apis/servicebroker_v1alpha1/service.rb +0 -737
  479. data/generated/google/apis/servicebroker_v1beta1/classes.rb +0 -1208
  480. data/generated/google/apis/servicebroker_v1beta1/representations.rb +0 -416
  481. data/generated/google/apis/servicebroker_v1beta1/service.rb +0 -926
@@ -436,6 +436,24 @@ module Google
436
436
  include Google::Apis::Core::JsonObjectSupport
437
437
  end
438
438
 
439
+ class GoogleCloudDialogflowV2beta1Environment
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
445
+ class GoogleCloudDialogflowV2beta1EnvironmentHistory
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
451
+ class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
439
457
  class GoogleCloudDialogflowV2beta1EventInput
440
458
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
459
 
@@ -454,6 +472,24 @@ module Google
454
472
  include Google::Apis::Core::JsonObjectSupport
455
473
  end
456
474
 
475
+ class GoogleCloudDialogflowV2beta1Fulfillment
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ include Google::Apis::Core::JsonObjectSupport
479
+ end
480
+
481
+ class GoogleCloudDialogflowV2beta1FulfillmentFeature
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
487
+ class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
457
493
  class GoogleCloudDialogflowV2beta1GcsSource
458
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
495
 
@@ -808,6 +844,12 @@ module Google
808
844
  include Google::Apis::Core::JsonObjectSupport
809
845
  end
810
846
 
847
+ class GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
848
+ class Representation < Google::Apis::Core::JsonRepresentation; end
849
+
850
+ include Google::Apis::Core::JsonObjectSupport
851
+ end
852
+
811
853
  class GoogleCloudDialogflowV2beta1ListIntentsResponse
812
854
  class Representation < Google::Apis::Core::JsonRepresentation; end
813
855
 
@@ -826,6 +868,12 @@ module Google
826
868
  include Google::Apis::Core::JsonObjectSupport
827
869
  end
828
870
 
871
+ class GoogleCloudDialogflowV2beta1ListVersionsResponse
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
829
877
  class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
830
878
  class Representation < Google::Apis::Core::JsonRepresentation; end
831
879
 
@@ -904,6 +952,12 @@ module Google
904
952
  include Google::Apis::Core::JsonObjectSupport
905
953
  end
906
954
 
955
+ class GoogleCloudDialogflowV2beta1SubAgent
956
+ class Representation < Google::Apis::Core::JsonRepresentation; end
957
+
958
+ include Google::Apis::Core::JsonObjectSupport
959
+ end
960
+
907
961
  class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
908
962
  class Representation < Google::Apis::Core::JsonRepresentation; end
909
963
 
@@ -934,6 +988,12 @@ module Google
934
988
  include Google::Apis::Core::JsonObjectSupport
935
989
  end
936
990
 
991
+ class GoogleCloudDialogflowV2beta1Version
992
+ class Representation < Google::Apis::Core::JsonRepresentation; end
993
+
994
+ include Google::Apis::Core::JsonObjectSupport
995
+ end
996
+
937
997
  class GoogleCloudDialogflowV2beta1VoiceSelectionParams
938
998
  class Representation < Google::Apis::Core::JsonRepresentation; end
939
999
 
@@ -1729,6 +1789,36 @@ module Google
1729
1789
  end
1730
1790
  end
1731
1791
 
1792
+ class GoogleCloudDialogflowV2beta1Environment
1793
+ # @private
1794
+ class Representation < Google::Apis::Core::JsonRepresentation
1795
+ property :agent_version, as: 'agentVersion'
1796
+ property :description, as: 'description'
1797
+ property :name, as: 'name'
1798
+ property :state, as: 'state'
1799
+ property :update_time, as: 'updateTime'
1800
+ end
1801
+ end
1802
+
1803
+ class GoogleCloudDialogflowV2beta1EnvironmentHistory
1804
+ # @private
1805
+ class Representation < Google::Apis::Core::JsonRepresentation
1806
+ collection :entries, as: 'entries', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry::Representation
1807
+
1808
+ property :next_page_token, as: 'nextPageToken'
1809
+ property :parent, as: 'parent'
1810
+ end
1811
+ end
1812
+
1813
+ class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
1814
+ # @private
1815
+ class Representation < Google::Apis::Core::JsonRepresentation
1816
+ property :agent_version, as: 'agentVersion'
1817
+ property :create_time, as: 'createTime'
1818
+ property :description, as: 'description'
1819
+ end
1820
+ end
1821
+
1732
1822
  class GoogleCloudDialogflowV2beta1EventInput
1733
1823
  # @private
1734
1824
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1753,6 +1843,37 @@ module Google
1753
1843
  end
1754
1844
  end
1755
1845
 
1846
+ class GoogleCloudDialogflowV2beta1Fulfillment
1847
+ # @private
1848
+ class Representation < Google::Apis::Core::JsonRepresentation
1849
+ property :display_name, as: 'displayName'
1850
+ property :enabled, as: 'enabled'
1851
+ collection :features, as: 'features', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentFeature, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentFeature::Representation
1852
+
1853
+ property :generic_web_service, as: 'genericWebService', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FulfillmentGenericWebService::Representation
1854
+
1855
+ property :name, as: 'name'
1856
+ end
1857
+ end
1858
+
1859
+ class GoogleCloudDialogflowV2beta1FulfillmentFeature
1860
+ # @private
1861
+ class Representation < Google::Apis::Core::JsonRepresentation
1862
+ property :type, as: 'type'
1863
+ end
1864
+ end
1865
+
1866
+ class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
1867
+ # @private
1868
+ class Representation < Google::Apis::Core::JsonRepresentation
1869
+ property :is_cloud_function, as: 'isCloudFunction'
1870
+ property :password, as: 'password'
1871
+ hash :request_headers, as: 'requestHeaders'
1872
+ property :uri, as: 'uri'
1873
+ property :username, as: 'username'
1874
+ end
1875
+ end
1876
+
1756
1877
  class GoogleCloudDialogflowV2beta1GcsSource
1757
1878
  # @private
1758
1879
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2358,6 +2479,15 @@ module Google
2358
2479
  end
2359
2480
  end
2360
2481
 
2482
+ class GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
2483
+ # @private
2484
+ class Representation < Google::Apis::Core::JsonRepresentation
2485
+ collection :environments, as: 'environments', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
2486
+
2487
+ property :next_page_token, as: 'nextPageToken'
2488
+ end
2489
+ end
2490
+
2361
2491
  class GoogleCloudDialogflowV2beta1ListIntentsResponse
2362
2492
  # @private
2363
2493
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2385,6 +2515,15 @@ module Google
2385
2515
  end
2386
2516
  end
2387
2517
 
2518
+ class GoogleCloudDialogflowV2beta1ListVersionsResponse
2519
+ # @private
2520
+ class Representation < Google::Apis::Core::JsonRepresentation
2521
+ property :next_page_token, as: 'nextPageToken'
2522
+ collection :versions, as: 'versions', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
2523
+
2524
+ end
2525
+ end
2526
+
2388
2527
  class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
2389
2528
  # @private
2390
2529
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2430,6 +2569,8 @@ module Google
2430
2569
 
2431
2570
  collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
2432
2571
 
2572
+ collection :sub_agents, as: 'subAgents', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SubAgent, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SubAgent::Representation
2573
+
2433
2574
  property :time_zone, as: 'timeZone'
2434
2575
  hash :webhook_headers, as: 'webhookHeaders'
2435
2576
  end
@@ -2528,6 +2669,14 @@ module Google
2528
2669
  end
2529
2670
  end
2530
2671
 
2672
+ class GoogleCloudDialogflowV2beta1SubAgent
2673
+ # @private
2674
+ class Representation < Google::Apis::Core::JsonRepresentation
2675
+ property :environment, as: 'environment'
2676
+ property :project, as: 'project'
2677
+ end
2678
+ end
2679
+
2531
2680
  class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
2532
2681
  # @private
2533
2682
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2571,6 +2720,17 @@ module Google
2571
2720
  end
2572
2721
  end
2573
2722
 
2723
+ class GoogleCloudDialogflowV2beta1Version
2724
+ # @private
2725
+ class Representation < Google::Apis::Core::JsonRepresentation
2726
+ property :create_time, as: 'createTime'
2727
+ property :description, as: 'description'
2728
+ property :name, as: 'name'
2729
+ property :status, as: 'status'
2730
+ property :version_number, as: 'versionNumber'
2731
+ end
2732
+ end
2733
+
2574
2734
  class GoogleCloudDialogflowV2beta1VoiceSelectionParams
2575
2735
  # @private
2576
2736
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -182,6 +182,37 @@ module Google
182
182
  execute_or_queue_command(command, &block)
183
183
  end
184
184
 
185
+ # Retrieves the fulfillment.
186
+ # @param [String] name
187
+ # Required. The name of the fulfillment.
188
+ # Format: `projects/<Project ID>/agent/fulfillment`.
189
+ # @param [String] fields
190
+ # Selector specifying which fields to include in a partial response.
191
+ # @param [String] quota_user
192
+ # Available to use for quota purposes for server-side applications. Can be any
193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
194
+ # @param [Google::Apis::RequestOptions] options
195
+ # Request-specific options
196
+ #
197
+ # @yield [result, err] Result & error if block supplied
198
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] parsed result object
199
+ # @yieldparam err [StandardError] error object if request failed
200
+ #
201
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment]
202
+ #
203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
206
+ def get_project_agent_fulfillment(name, fields: nil, quota_user: nil, options: nil, &block)
207
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
208
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation
209
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
210
+ command.params['name'] = name unless name.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
+
185
216
  # Gets agent validation result. Agent validation is performed during
186
217
  # training time and is updated automatically when training is completed.
187
218
  # @param [String] parent
@@ -375,6 +406,44 @@ module Google
375
406
  execute_or_queue_command(command, &block)
376
407
  end
377
408
 
409
+ # Updates the fulfillment.
410
+ # @param [String] name
411
+ # Required. The unique identifier of the fulfillment.
412
+ # Format: `projects/<Project ID>/agent/fulfillment`.
413
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] google_cloud_dialogflow_v2beta1_fulfillment_object
414
+ # @param [String] update_mask
415
+ # Required. The mask to control which fields get updated. If the mask is not
416
+ # present, all fields will be updated.
417
+ # @param [String] fields
418
+ # Selector specifying which fields to include in a partial response.
419
+ # @param [String] quota_user
420
+ # Available to use for quota purposes for server-side applications. Can be any
421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
422
+ # @param [Google::Apis::RequestOptions] options
423
+ # Request-specific options
424
+ #
425
+ # @yield [result, err] Result & error if block supplied
426
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] parsed result object
427
+ # @yieldparam err [StandardError] error object if request failed
428
+ #
429
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment]
430
+ #
431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
434
+ def update_project_agent_fulfillment(name, google_cloud_dialogflow_v2beta1_fulfillment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
435
+ command = make_simple_command(:patch, 'v2beta1/{+name}', options)
436
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation
437
+ command.request_object = google_cloud_dialogflow_v2beta1_fulfillment_object
438
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation
439
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
440
+ command.params['name'] = name unless name.nil?
441
+ command.query['updateMask'] = update_mask unless update_mask.nil?
442
+ command.query['fields'] = fields unless fields.nil?
443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
444
+ execute_or_queue_command(command, &block)
445
+ end
446
+
378
447
  # Deletes entity types in the specified agent.
379
448
  # Operation <response: google.protobuf.Empty>
380
449
  # @param [String] parent
@@ -757,6 +826,229 @@ module Google
757
826
  execute_or_queue_command(command, &block)
758
827
  end
759
828
 
829
+ # Creates an agent environment.
830
+ # @param [String] parent
831
+ # Required. The agent to create a environment for.
832
+ # Format: `projects/<Project ID>/agent`.
833
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
834
+ # @param [String] environment_id
835
+ # Required. The unique id of the new environment.
836
+ # @param [String] fields
837
+ # Selector specifying which fields to include in a partial response.
838
+ # @param [String] quota_user
839
+ # Available to use for quota purposes for server-side applications. Can be any
840
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
841
+ # @param [Google::Apis::RequestOptions] options
842
+ # Request-specific options
843
+ #
844
+ # @yield [result, err] Result & error if block supplied
845
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
846
+ # @yieldparam err [StandardError] error object if request failed
847
+ #
848
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
849
+ #
850
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
851
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
853
+ def create_project_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
854
+ command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options)
855
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
856
+ command.request_object = google_cloud_dialogflow_v2beta1_environment_object
857
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
858
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
859
+ command.params['parent'] = parent unless parent.nil?
860
+ command.query['environmentId'] = environment_id unless environment_id.nil?
861
+ command.query['fields'] = fields unless fields.nil?
862
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
863
+ execute_or_queue_command(command, &block)
864
+ end
865
+
866
+ # Deletes the specified agent environment.
867
+ # @param [String] name
868
+ # Required. The name of the environment to delete.
869
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
870
+ # @param [String] fields
871
+ # Selector specifying which fields to include in a partial response.
872
+ # @param [String] quota_user
873
+ # Available to use for quota purposes for server-side applications. Can be any
874
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
875
+ # @param [Google::Apis::RequestOptions] options
876
+ # Request-specific options
877
+ #
878
+ # @yield [result, err] Result & error if block supplied
879
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
880
+ # @yieldparam err [StandardError] error object if request failed
881
+ #
882
+ # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
883
+ #
884
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
885
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
886
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
887
+ def delete_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
888
+ command = make_simple_command(:delete, 'v2beta1/{+name}', options)
889
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
890
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
891
+ command.params['name'] = name unless name.nil?
892
+ command.query['fields'] = fields unless fields.nil?
893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
894
+ execute_or_queue_command(command, &block)
895
+ end
896
+
897
+ # Retrieves the specified agent environment.
898
+ # @param [String] name
899
+ # Required. The name of the environment.
900
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
901
+ # @param [String] fields
902
+ # Selector specifying which fields to include in a partial response.
903
+ # @param [String] quota_user
904
+ # Available to use for quota purposes for server-side applications. Can be any
905
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
906
+ # @param [Google::Apis::RequestOptions] options
907
+ # Request-specific options
908
+ #
909
+ # @yield [result, err] Result & error if block supplied
910
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
911
+ # @yieldparam err [StandardError] error object if request failed
912
+ #
913
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
914
+ #
915
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
916
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
917
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
918
+ def get_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
919
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
920
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
921
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
922
+ command.params['name'] = name unless name.nil?
923
+ command.query['fields'] = fields unless fields.nil?
924
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
925
+ execute_or_queue_command(command, &block)
926
+ end
927
+
928
+ # Gets the history of the specified environment.
929
+ # @param [String] parent
930
+ # Required. The name of the environment to retrieve history for.
931
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
932
+ # @param [Fixnum] page_size
933
+ # Optional. The maximum number of items to return in a single page. By default
934
+ # 100 and
935
+ # at most 1000.
936
+ # @param [String] page_token
937
+ # Optional. The next_page_token value returned from a previous list request.
938
+ # @param [String] fields
939
+ # Selector specifying which fields to include in a partial response.
940
+ # @param [String] quota_user
941
+ # Available to use for quota purposes for server-side applications. Can be any
942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
943
+ # @param [Google::Apis::RequestOptions] options
944
+ # Request-specific options
945
+ #
946
+ # @yield [result, err] Result & error if block supplied
947
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object
948
+ # @yieldparam err [StandardError] error object if request failed
949
+ #
950
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory]
951
+ #
952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
955
+ def get_project_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
956
+ command = make_simple_command(:get, 'v2beta1/{+parent}/history', options)
957
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation
958
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory
959
+ command.params['parent'] = parent unless parent.nil?
960
+ command.query['pageSize'] = page_size unless page_size.nil?
961
+ command.query['pageToken'] = page_token unless page_token.nil?
962
+ command.query['fields'] = fields unless fields.nil?
963
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
964
+ execute_or_queue_command(command, &block)
965
+ end
966
+
967
+ # Returns the list of all environments of the specified agent.
968
+ # @param [String] parent
969
+ # Required. The agent to list all environments from.
970
+ # Format: `projects/<Project ID>/agent`.
971
+ # @param [Fixnum] page_size
972
+ # Optional. The maximum number of items to return in a single page. By default
973
+ # 100 and
974
+ # at most 1000.
975
+ # @param [String] page_token
976
+ # Optional. The next_page_token value returned from a previous list request.
977
+ # @param [String] fields
978
+ # Selector specifying which fields to include in a partial response.
979
+ # @param [String] quota_user
980
+ # Available to use for quota purposes for server-side applications. Can be any
981
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
982
+ # @param [Google::Apis::RequestOptions] options
983
+ # Request-specific options
984
+ #
985
+ # @yield [result, err] Result & error if block supplied
986
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse] parsed result object
987
+ # @yieldparam err [StandardError] error object if request failed
988
+ #
989
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse]
990
+ #
991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
994
+ def list_project_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
995
+ command = make_simple_command(:get, 'v2beta1/{+parent}/environments', options)
996
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse::Representation
997
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
998
+ command.params['parent'] = parent unless parent.nil?
999
+ command.query['pageSize'] = page_size unless page_size.nil?
1000
+ command.query['pageToken'] = page_token unless page_token.nil?
1001
+ command.query['fields'] = fields unless fields.nil?
1002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1003
+ execute_or_queue_command(command, &block)
1004
+ end
1005
+
1006
+ # Updates the specified agent environment.
1007
+ # This method allows you to deploy new agent versions into the environment.
1008
+ # When a environment is pointed to a new agent version by setting
1009
+ # `environment.agent_version`, the environment is temporarily set to the
1010
+ # `LOADING` state. During that time, the environment keeps on serving the
1011
+ # previous version of the agent. After the new agent version is done
1012
+ # loading, the environment is set back to the `RUNNING` state.
1013
+ # You can use "-" as Environment ID in environment name to update version
1014
+ # in "draft" environment.
1015
+ # @param [String] name
1016
+ # Output only. The unique identifier of this agent environment.
1017
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
1018
+ # You can use "-" as Environment ID to refer to 'draft' environment.
1019
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
1020
+ # @param [String] update_mask
1021
+ # Required. The mask to control which fields get updated.
1022
+ # @param [String] fields
1023
+ # Selector specifying which fields to include in a partial response.
1024
+ # @param [String] quota_user
1025
+ # Available to use for quota purposes for server-side applications. Can be any
1026
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1027
+ # @param [Google::Apis::RequestOptions] options
1028
+ # Request-specific options
1029
+ #
1030
+ # @yield [result, err] Result & error if block supplied
1031
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
1032
+ # @yieldparam err [StandardError] error object if request failed
1033
+ #
1034
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
1035
+ #
1036
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1037
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1038
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1039
+ def patch_project_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1040
+ command = make_simple_command(:patch, 'v2beta1/{+name}', options)
1041
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
1042
+ command.request_object = google_cloud_dialogflow_v2beta1_environment_object
1043
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
1044
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
1045
+ command.params['name'] = name unless name.nil?
1046
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1047
+ command.query['fields'] = fields unless fields.nil?
1048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1049
+ execute_or_queue_command(command, &block)
1050
+ end
1051
+
760
1052
  # Deletes all active contexts in the specified session.
761
1053
  # @param [String] parent
762
1054
  # Required. The name of the session to delete all contexts from. Format:
@@ -2444,13 +2736,12 @@ module Google
2444
2736
  execute_or_queue_command(command, &block)
2445
2737
  end
2446
2738
 
2447
- # Creates a knowledge base.
2448
- # Note: The `projects.agent.knowledgeBases` resource is deprecated;
2449
- # only use `projects.knowledgeBases`.
2739
+ # Creates an agent version.
2740
+ # The new version points to the agent instance in the "default" environment.
2450
2741
  # @param [String] parent
2451
- # Required. The project to create a knowledge base for.
2452
- # Format: `projects/<Project ID>`.
2453
- # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] google_cloud_dialogflow_v2beta1_knowledge_base_object
2742
+ # Required. The agent to create a version for.
2743
+ # Format: `projects/<Project ID>/agent`.
2744
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
2454
2745
  # @param [String] fields
2455
2746
  # Selector specifying which fields to include in a partial response.
2456
2747
  # @param [String] quota_user
@@ -2460,35 +2751,30 @@ module Google
2460
2751
  # Request-specific options
2461
2752
  #
2462
2753
  # @yield [result, err] Result & error if block supplied
2463
- # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object
2754
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
2464
2755
  # @yieldparam err [StandardError] error object if request failed
2465
2756
  #
2466
- # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase]
2757
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
2467
2758
  #
2468
2759
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2469
2760
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2470
2761
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2471
- def create_project_knowledge_basis(parent, google_cloud_dialogflow_v2beta1_knowledge_base_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2472
- command = make_simple_command(:post, 'v2beta1/{+parent}/knowledgeBases', options)
2473
- command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
2474
- command.request_object = google_cloud_dialogflow_v2beta1_knowledge_base_object
2475
- command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
2476
- command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
2762
+ def create_project_agent_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2763
+ command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options)
2764
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
2765
+ command.request_object = google_cloud_dialogflow_v2beta1_version_object
2766
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
2767
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
2477
2768
  command.params['parent'] = parent unless parent.nil?
2478
2769
  command.query['fields'] = fields unless fields.nil?
2479
2770
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2480
2771
  execute_or_queue_command(command, &block)
2481
2772
  end
2482
2773
 
2483
- # Deletes the specified knowledge base.
2484
- # Note: The `projects.agent.knowledgeBases` resource is deprecated;
2485
- # only use `projects.knowledgeBases`.
2774
+ # Retrieves the specified agent version.
2486
2775
  # @param [String] name
2487
- # Required. The name of the knowledge base to delete.
2488
- # Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
2489
- # @param [Boolean] force
2490
- # Optional. Force deletes the knowledge base. When set to true, any documents
2491
- # in the knowledge base are also deleted.
2776
+ # Required. The name of the version.
2777
+ # Format: `projects/<Project ID>/agent/versions/<Version ID>`.
2492
2778
  # @param [String] fields
2493
2779
  # Selector specifying which fields to include in a partial response.
2494
2780
  # @param [String] quota_user
@@ -2498,31 +2784,34 @@ module Google
2498
2784
  # Request-specific options
2499
2785
  #
2500
2786
  # @yield [result, err] Result & error if block supplied
2501
- # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
2787
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
2502
2788
  # @yieldparam err [StandardError] error object if request failed
2503
2789
  #
2504
- # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
2790
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
2505
2791
  #
2506
2792
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2507
2793
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2508
2794
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2509
- def delete_project_knowledge_basis(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2510
- command = make_simple_command(:delete, 'v2beta1/{+name}', options)
2511
- command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
2512
- command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
2795
+ def get_project_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
2796
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
2797
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
2798
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
2513
2799
  command.params['name'] = name unless name.nil?
2514
- command.query['force'] = force unless force.nil?
2515
2800
  command.query['fields'] = fields unless fields.nil?
2516
2801
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2517
2802
  execute_or_queue_command(command, &block)
2518
2803
  end
2519
2804
 
2520
- # Retrieves the specified knowledge base.
2521
- # Note: The `projects.agent.knowledgeBases` resource is deprecated;
2522
- # only use `projects.knowledgeBases`.
2523
- # @param [String] name
2524
- # Required. The name of the knowledge base to retrieve.
2525
- # Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
2805
+ # Returns the list of all versions of the specified agent.
2806
+ # @param [String] parent
2807
+ # Required. The agent to list all versions from.
2808
+ # Format: `projects/<Project ID>/agent`.
2809
+ # @param [Fixnum] page_size
2810
+ # Optional. The maximum number of items to return in a single page. By default
2811
+ # 100 and
2812
+ # at most 1000.
2813
+ # @param [String] page_token
2814
+ # Optional. The next_page_token value returned from a previous list request.
2526
2815
  # @param [String] fields
2527
2816
  # Selector specifying which fields to include in a partial response.
2528
2817
  # @param [String] quota_user
@@ -2532,27 +2821,175 @@ module Google
2532
2821
  # Request-specific options
2533
2822
  #
2534
2823
  # @yield [result, err] Result & error if block supplied
2535
- # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object
2824
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object
2536
2825
  # @yieldparam err [StandardError] error object if request failed
2537
2826
  #
2538
- # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase]
2827
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse]
2539
2828
  #
2540
2829
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2541
2830
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2542
2831
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2543
- def get_project_knowledge_basis(name, fields: nil, quota_user: nil, options: nil, &block)
2544
- command = make_simple_command(:get, 'v2beta1/{+name}', options)
2545
- command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
2546
- command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
2547
- command.params['name'] = name unless name.nil?
2832
+ def list_project_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2833
+ command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options)
2834
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation
2835
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse
2836
+ command.params['parent'] = parent unless parent.nil?
2837
+ command.query['pageSize'] = page_size unless page_size.nil?
2838
+ command.query['pageToken'] = page_token unless page_token.nil?
2548
2839
  command.query['fields'] = fields unless fields.nil?
2549
2840
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2550
2841
  execute_or_queue_command(command, &block)
2551
2842
  end
2552
2843
 
2553
- # Returns the list of all knowledge bases of the specified agent.
2554
- # Note: The `projects.agent.knowledgeBases` resource is deprecated;
2555
- # only use `projects.knowledgeBases`.
2844
+ # Updates the specified agent version.
2845
+ # Note that this method does not allow you to update the state of the agent
2846
+ # the given version points to. It allows you to update only mutable
2847
+ # properties of the version resource.
2848
+ # @param [String] name
2849
+ # Output only. The unique identifier of this agent version.
2850
+ # Format: `projects/<Project ID>/agent/versions/<Version ID>`.
2851
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
2852
+ # @param [String] update_mask
2853
+ # Required. The mask to control which fields get updated.
2854
+ # @param [String] fields
2855
+ # Selector specifying which fields to include in a partial response.
2856
+ # @param [String] quota_user
2857
+ # Available to use for quota purposes for server-side applications. Can be any
2858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2859
+ # @param [Google::Apis::RequestOptions] options
2860
+ # Request-specific options
2861
+ #
2862
+ # @yield [result, err] Result & error if block supplied
2863
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
2864
+ # @yieldparam err [StandardError] error object if request failed
2865
+ #
2866
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
2867
+ #
2868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2871
+ def patch_project_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2872
+ command = make_simple_command(:patch, 'v2beta1/{+name}', options)
2873
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
2874
+ command.request_object = google_cloud_dialogflow_v2beta1_version_object
2875
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
2876
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
2877
+ command.params['name'] = name unless name.nil?
2878
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2879
+ command.query['fields'] = fields unless fields.nil?
2880
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2881
+ execute_or_queue_command(command, &block)
2882
+ end
2883
+
2884
+ # Creates a knowledge base.
2885
+ # Note: The `projects.agent.knowledgeBases` resource is deprecated;
2886
+ # only use `projects.knowledgeBases`.
2887
+ # @param [String] parent
2888
+ # Required. The project to create a knowledge base for.
2889
+ # Format: `projects/<Project ID>`.
2890
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] google_cloud_dialogflow_v2beta1_knowledge_base_object
2891
+ # @param [String] fields
2892
+ # Selector specifying which fields to include in a partial response.
2893
+ # @param [String] quota_user
2894
+ # Available to use for quota purposes for server-side applications. Can be any
2895
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2896
+ # @param [Google::Apis::RequestOptions] options
2897
+ # Request-specific options
2898
+ #
2899
+ # @yield [result, err] Result & error if block supplied
2900
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object
2901
+ # @yieldparam err [StandardError] error object if request failed
2902
+ #
2903
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase]
2904
+ #
2905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2908
+ def create_project_knowledge_basis(parent, google_cloud_dialogflow_v2beta1_knowledge_base_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2909
+ command = make_simple_command(:post, 'v2beta1/{+parent}/knowledgeBases', options)
2910
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
2911
+ command.request_object = google_cloud_dialogflow_v2beta1_knowledge_base_object
2912
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
2913
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
2914
+ command.params['parent'] = parent unless parent.nil?
2915
+ command.query['fields'] = fields unless fields.nil?
2916
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2917
+ execute_or_queue_command(command, &block)
2918
+ end
2919
+
2920
+ # Deletes the specified knowledge base.
2921
+ # Note: The `projects.agent.knowledgeBases` resource is deprecated;
2922
+ # only use `projects.knowledgeBases`.
2923
+ # @param [String] name
2924
+ # Required. The name of the knowledge base to delete.
2925
+ # Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
2926
+ # @param [Boolean] force
2927
+ # Optional. Force deletes the knowledge base. When set to true, any documents
2928
+ # in the knowledge base are also deleted.
2929
+ # @param [String] fields
2930
+ # Selector specifying which fields to include in a partial response.
2931
+ # @param [String] quota_user
2932
+ # Available to use for quota purposes for server-side applications. Can be any
2933
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2934
+ # @param [Google::Apis::RequestOptions] options
2935
+ # Request-specific options
2936
+ #
2937
+ # @yield [result, err] Result & error if block supplied
2938
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
2939
+ # @yieldparam err [StandardError] error object if request failed
2940
+ #
2941
+ # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
2942
+ #
2943
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2944
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2945
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2946
+ def delete_project_knowledge_basis(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2947
+ command = make_simple_command(:delete, 'v2beta1/{+name}', options)
2948
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
2949
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
2950
+ command.params['name'] = name unless name.nil?
2951
+ command.query['force'] = force unless force.nil?
2952
+ command.query['fields'] = fields unless fields.nil?
2953
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2954
+ execute_or_queue_command(command, &block)
2955
+ end
2956
+
2957
+ # Retrieves the specified knowledge base.
2958
+ # Note: The `projects.agent.knowledgeBases` resource is deprecated;
2959
+ # only use `projects.knowledgeBases`.
2960
+ # @param [String] name
2961
+ # Required. The name of the knowledge base to retrieve.
2962
+ # Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
2963
+ # @param [String] fields
2964
+ # Selector specifying which fields to include in a partial response.
2965
+ # @param [String] quota_user
2966
+ # Available to use for quota purposes for server-side applications. Can be any
2967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2968
+ # @param [Google::Apis::RequestOptions] options
2969
+ # Request-specific options
2970
+ #
2971
+ # @yield [result, err] Result & error if block supplied
2972
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object
2973
+ # @yieldparam err [StandardError] error object if request failed
2974
+ #
2975
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase]
2976
+ #
2977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2980
+ def get_project_knowledge_basis(name, fields: nil, quota_user: nil, options: nil, &block)
2981
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
2982
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
2983
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
2984
+ command.params['name'] = name unless name.nil?
2985
+ command.query['fields'] = fields unless fields.nil?
2986
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2987
+ execute_or_queue_command(command, &block)
2988
+ end
2989
+
2990
+ # Returns the list of all knowledge bases of the specified agent.
2991
+ # Note: The `projects.agent.knowledgeBases` resource is deprecated;
2992
+ # only use `projects.knowledgeBases`.
2556
2993
  # @param [String] parent
2557
2994
  # Required. The project to list of knowledge bases for.
2558
2995
  # Format: `projects/<Project ID>`.
@@ -3001,6 +3438,75 @@ module Google
3001
3438
  execute_or_queue_command(command, &block)
3002
3439
  end
3003
3440
 
3441
+ # Updates the fulfillment.
3442
+ # @param [String] name
3443
+ # Required. The unique identifier of the fulfillment.
3444
+ # Format: `projects/<Project ID>/agent/fulfillment`.
3445
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] google_cloud_dialogflow_v2beta1_fulfillment_object
3446
+ # @param [String] update_mask
3447
+ # Required. The mask to control which fields get updated. If the mask is not
3448
+ # present, all fields will be updated.
3449
+ # @param [String] fields
3450
+ # Selector specifying which fields to include in a partial response.
3451
+ # @param [String] quota_user
3452
+ # Available to use for quota purposes for server-side applications. Can be any
3453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3454
+ # @param [Google::Apis::RequestOptions] options
3455
+ # Request-specific options
3456
+ #
3457
+ # @yield [result, err] Result & error if block supplied
3458
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] parsed result object
3459
+ # @yieldparam err [StandardError] error object if request failed
3460
+ #
3461
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment]
3462
+ #
3463
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3464
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3465
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3466
+ def fulfillment_project_location_agent(name, google_cloud_dialogflow_v2beta1_fulfillment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3467
+ command = make_simple_command(:post, 'v2beta1/{+name}', options)
3468
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation
3469
+ command.request_object = google_cloud_dialogflow_v2beta1_fulfillment_object
3470
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation
3471
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
3472
+ command.params['name'] = name unless name.nil?
3473
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3474
+ command.query['fields'] = fields unless fields.nil?
3475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3476
+ execute_or_queue_command(command, &block)
3477
+ end
3478
+
3479
+ # Retrieves the fulfillment.
3480
+ # @param [String] name
3481
+ # Required. The name of the fulfillment.
3482
+ # Format: `projects/<Project ID>/agent/fulfillment`.
3483
+ # @param [String] fields
3484
+ # Selector specifying which fields to include in a partial response.
3485
+ # @param [String] quota_user
3486
+ # Available to use for quota purposes for server-side applications. Can be any
3487
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3488
+ # @param [Google::Apis::RequestOptions] options
3489
+ # Request-specific options
3490
+ #
3491
+ # @yield [result, err] Result & error if block supplied
3492
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment] parsed result object
3493
+ # @yieldparam err [StandardError] error object if request failed
3494
+ #
3495
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment]
3496
+ #
3497
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3498
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3499
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3500
+ def get_project_location_agent_fulfillment(name, fields: nil, quota_user: nil, options: nil, &block)
3501
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
3502
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation
3503
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment
3504
+ command.params['name'] = name unless name.nil?
3505
+ command.query['fields'] = fields unless fields.nil?
3506
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3507
+ execute_or_queue_command(command, &block)
3508
+ end
3509
+
3004
3510
  # Imports the specified agent from a ZIP file.
3005
3511
  # Uploads new intents and entity types without deleting the existing ones.
3006
3512
  # Intents and entity types with the same name are replaced with the new
@@ -3493,6 +3999,229 @@ module Google
3493
3999
  execute_or_queue_command(command, &block)
3494
4000
  end
3495
4001
 
4002
+ # Creates an agent environment.
4003
+ # @param [String] parent
4004
+ # Required. The agent to create a environment for.
4005
+ # Format: `projects/<Project ID>/agent`.
4006
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
4007
+ # @param [String] environment_id
4008
+ # Required. The unique id of the new environment.
4009
+ # @param [String] fields
4010
+ # Selector specifying which fields to include in a partial response.
4011
+ # @param [String] quota_user
4012
+ # Available to use for quota purposes for server-side applications. Can be any
4013
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4014
+ # @param [Google::Apis::RequestOptions] options
4015
+ # Request-specific options
4016
+ #
4017
+ # @yield [result, err] Result & error if block supplied
4018
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
4019
+ # @yieldparam err [StandardError] error object if request failed
4020
+ #
4021
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
4022
+ #
4023
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4024
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4025
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4026
+ def create_project_location_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4027
+ command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options)
4028
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
4029
+ command.request_object = google_cloud_dialogflow_v2beta1_environment_object
4030
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
4031
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
4032
+ command.params['parent'] = parent unless parent.nil?
4033
+ command.query['environmentId'] = environment_id unless environment_id.nil?
4034
+ command.query['fields'] = fields unless fields.nil?
4035
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4036
+ execute_or_queue_command(command, &block)
4037
+ end
4038
+
4039
+ # Deletes the specified agent environment.
4040
+ # @param [String] name
4041
+ # Required. The name of the environment to delete.
4042
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
4043
+ # @param [String] fields
4044
+ # Selector specifying which fields to include in a partial response.
4045
+ # @param [String] quota_user
4046
+ # Available to use for quota purposes for server-side applications. Can be any
4047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4048
+ # @param [Google::Apis::RequestOptions] options
4049
+ # Request-specific options
4050
+ #
4051
+ # @yield [result, err] Result & error if block supplied
4052
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
4053
+ # @yieldparam err [StandardError] error object if request failed
4054
+ #
4055
+ # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
4056
+ #
4057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4060
+ def delete_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
4061
+ command = make_simple_command(:delete, 'v2beta1/{+name}', options)
4062
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
4063
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
4064
+ command.params['name'] = name unless name.nil?
4065
+ command.query['fields'] = fields unless fields.nil?
4066
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4067
+ execute_or_queue_command(command, &block)
4068
+ end
4069
+
4070
+ # Retrieves the specified agent environment.
4071
+ # @param [String] name
4072
+ # Required. The name of the environment.
4073
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
4074
+ # @param [String] fields
4075
+ # Selector specifying which fields to include in a partial response.
4076
+ # @param [String] quota_user
4077
+ # Available to use for quota purposes for server-side applications. Can be any
4078
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4079
+ # @param [Google::Apis::RequestOptions] options
4080
+ # Request-specific options
4081
+ #
4082
+ # @yield [result, err] Result & error if block supplied
4083
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
4084
+ # @yieldparam err [StandardError] error object if request failed
4085
+ #
4086
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
4087
+ #
4088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4091
+ def get_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
4092
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
4093
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
4094
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
4095
+ command.params['name'] = name unless name.nil?
4096
+ command.query['fields'] = fields unless fields.nil?
4097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4098
+ execute_or_queue_command(command, &block)
4099
+ end
4100
+
4101
+ # Gets the history of the specified environment.
4102
+ # @param [String] parent
4103
+ # Required. The name of the environment to retrieve history for.
4104
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
4105
+ # @param [Fixnum] page_size
4106
+ # Optional. The maximum number of items to return in a single page. By default
4107
+ # 100 and
4108
+ # at most 1000.
4109
+ # @param [String] page_token
4110
+ # Optional. The next_page_token value returned from a previous list request.
4111
+ # @param [String] fields
4112
+ # Selector specifying which fields to include in a partial response.
4113
+ # @param [String] quota_user
4114
+ # Available to use for quota purposes for server-side applications. Can be any
4115
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4116
+ # @param [Google::Apis::RequestOptions] options
4117
+ # Request-specific options
4118
+ #
4119
+ # @yield [result, err] Result & error if block supplied
4120
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object
4121
+ # @yieldparam err [StandardError] error object if request failed
4122
+ #
4123
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory]
4124
+ #
4125
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4126
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4127
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4128
+ def get_project_location_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4129
+ command = make_simple_command(:get, 'v2beta1/{+parent}/history', options)
4130
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation
4131
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory
4132
+ command.params['parent'] = parent unless parent.nil?
4133
+ command.query['pageSize'] = page_size unless page_size.nil?
4134
+ command.query['pageToken'] = page_token unless page_token.nil?
4135
+ command.query['fields'] = fields unless fields.nil?
4136
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4137
+ execute_or_queue_command(command, &block)
4138
+ end
4139
+
4140
+ # Returns the list of all environments of the specified agent.
4141
+ # @param [String] parent
4142
+ # Required. The agent to list all environments from.
4143
+ # Format: `projects/<Project ID>/agent`.
4144
+ # @param [Fixnum] page_size
4145
+ # Optional. The maximum number of items to return in a single page. By default
4146
+ # 100 and
4147
+ # at most 1000.
4148
+ # @param [String] page_token
4149
+ # Optional. The next_page_token value returned from a previous list request.
4150
+ # @param [String] fields
4151
+ # Selector specifying which fields to include in a partial response.
4152
+ # @param [String] quota_user
4153
+ # Available to use for quota purposes for server-side applications. Can be any
4154
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4155
+ # @param [Google::Apis::RequestOptions] options
4156
+ # Request-specific options
4157
+ #
4158
+ # @yield [result, err] Result & error if block supplied
4159
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse] parsed result object
4160
+ # @yieldparam err [StandardError] error object if request failed
4161
+ #
4162
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse]
4163
+ #
4164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4166
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4167
+ def list_project_location_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4168
+ command = make_simple_command(:get, 'v2beta1/{+parent}/environments', options)
4169
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse::Representation
4170
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
4171
+ command.params['parent'] = parent unless parent.nil?
4172
+ command.query['pageSize'] = page_size unless page_size.nil?
4173
+ command.query['pageToken'] = page_token unless page_token.nil?
4174
+ command.query['fields'] = fields unless fields.nil?
4175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4176
+ execute_or_queue_command(command, &block)
4177
+ end
4178
+
4179
+ # Updates the specified agent environment.
4180
+ # This method allows you to deploy new agent versions into the environment.
4181
+ # When a environment is pointed to a new agent version by setting
4182
+ # `environment.agent_version`, the environment is temporarily set to the
4183
+ # `LOADING` state. During that time, the environment keeps on serving the
4184
+ # previous version of the agent. After the new agent version is done
4185
+ # loading, the environment is set back to the `RUNNING` state.
4186
+ # You can use "-" as Environment ID in environment name to update version
4187
+ # in "draft" environment.
4188
+ # @param [String] name
4189
+ # Output only. The unique identifier of this agent environment.
4190
+ # Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
4191
+ # You can use "-" as Environment ID to refer to 'draft' environment.
4192
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
4193
+ # @param [String] update_mask
4194
+ # Required. The mask to control which fields get updated.
4195
+ # @param [String] fields
4196
+ # Selector specifying which fields to include in a partial response.
4197
+ # @param [String] quota_user
4198
+ # Available to use for quota purposes for server-side applications. Can be any
4199
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4200
+ # @param [Google::Apis::RequestOptions] options
4201
+ # Request-specific options
4202
+ #
4203
+ # @yield [result, err] Result & error if block supplied
4204
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
4205
+ # @yieldparam err [StandardError] error object if request failed
4206
+ #
4207
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
4208
+ #
4209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4212
+ def patch_project_location_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4213
+ command = make_simple_command(:patch, 'v2beta1/{+name}', options)
4214
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
4215
+ command.request_object = google_cloud_dialogflow_v2beta1_environment_object
4216
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
4217
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
4218
+ command.params['name'] = name unless name.nil?
4219
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4220
+ command.query['fields'] = fields unless fields.nil?
4221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4222
+ execute_or_queue_command(command, &block)
4223
+ end
4224
+
3496
4225
  # Deletes all active contexts in the specified session.
3497
4226
  # @param [String] parent
3498
4227
  # Required. The name of the session to delete all contexts from. Format:
@@ -4757,6 +5486,151 @@ module Google
4757
5486
  execute_or_queue_command(command, &block)
4758
5487
  end
4759
5488
 
5489
+ # Creates an agent version.
5490
+ # The new version points to the agent instance in the "default" environment.
5491
+ # @param [String] parent
5492
+ # Required. The agent to create a version for.
5493
+ # Format: `projects/<Project ID>/agent`.
5494
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
5495
+ # @param [String] fields
5496
+ # Selector specifying which fields to include in a partial response.
5497
+ # @param [String] quota_user
5498
+ # Available to use for quota purposes for server-side applications. Can be any
5499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5500
+ # @param [Google::Apis::RequestOptions] options
5501
+ # Request-specific options
5502
+ #
5503
+ # @yield [result, err] Result & error if block supplied
5504
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
5505
+ # @yieldparam err [StandardError] error object if request failed
5506
+ #
5507
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
5508
+ #
5509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5512
+ def create_project_location_agent_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5513
+ command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options)
5514
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
5515
+ command.request_object = google_cloud_dialogflow_v2beta1_version_object
5516
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
5517
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
5518
+ command.params['parent'] = parent unless parent.nil?
5519
+ command.query['fields'] = fields unless fields.nil?
5520
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5521
+ execute_or_queue_command(command, &block)
5522
+ end
5523
+
5524
+ # Retrieves the specified agent version.
5525
+ # @param [String] name
5526
+ # Required. The name of the version.
5527
+ # Format: `projects/<Project ID>/agent/versions/<Version ID>`.
5528
+ # @param [String] fields
5529
+ # Selector specifying which fields to include in a partial response.
5530
+ # @param [String] quota_user
5531
+ # Available to use for quota purposes for server-side applications. Can be any
5532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5533
+ # @param [Google::Apis::RequestOptions] options
5534
+ # Request-specific options
5535
+ #
5536
+ # @yield [result, err] Result & error if block supplied
5537
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
5538
+ # @yieldparam err [StandardError] error object if request failed
5539
+ #
5540
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
5541
+ #
5542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5545
+ def get_project_location_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
5546
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
5547
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
5548
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
5549
+ command.params['name'] = name unless name.nil?
5550
+ command.query['fields'] = fields unless fields.nil?
5551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5552
+ execute_or_queue_command(command, &block)
5553
+ end
5554
+
5555
+ # Returns the list of all versions of the specified agent.
5556
+ # @param [String] parent
5557
+ # Required. The agent to list all versions from.
5558
+ # Format: `projects/<Project ID>/agent`.
5559
+ # @param [Fixnum] page_size
5560
+ # Optional. The maximum number of items to return in a single page. By default
5561
+ # 100 and
5562
+ # at most 1000.
5563
+ # @param [String] page_token
5564
+ # Optional. The next_page_token value returned from a previous list request.
5565
+ # @param [String] fields
5566
+ # Selector specifying which fields to include in a partial response.
5567
+ # @param [String] quota_user
5568
+ # Available to use for quota purposes for server-side applications. Can be any
5569
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5570
+ # @param [Google::Apis::RequestOptions] options
5571
+ # Request-specific options
5572
+ #
5573
+ # @yield [result, err] Result & error if block supplied
5574
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object
5575
+ # @yieldparam err [StandardError] error object if request failed
5576
+ #
5577
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse]
5578
+ #
5579
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5580
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5581
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5582
+ def list_project_location_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5583
+ command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options)
5584
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation
5585
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse
5586
+ command.params['parent'] = parent unless parent.nil?
5587
+ command.query['pageSize'] = page_size unless page_size.nil?
5588
+ command.query['pageToken'] = page_token unless page_token.nil?
5589
+ command.query['fields'] = fields unless fields.nil?
5590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5591
+ execute_or_queue_command(command, &block)
5592
+ end
5593
+
5594
+ # Updates the specified agent version.
5595
+ # Note that this method does not allow you to update the state of the agent
5596
+ # the given version points to. It allows you to update only mutable
5597
+ # properties of the version resource.
5598
+ # @param [String] name
5599
+ # Output only. The unique identifier of this agent version.
5600
+ # Format: `projects/<Project ID>/agent/versions/<Version ID>`.
5601
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
5602
+ # @param [String] update_mask
5603
+ # Required. The mask to control which fields get updated.
5604
+ # @param [String] fields
5605
+ # Selector specifying which fields to include in a partial response.
5606
+ # @param [String] quota_user
5607
+ # Available to use for quota purposes for server-side applications. Can be any
5608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5609
+ # @param [Google::Apis::RequestOptions] options
5610
+ # Request-specific options
5611
+ #
5612
+ # @yield [result, err] Result & error if block supplied
5613
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
5614
+ # @yieldparam err [StandardError] error object if request failed
5615
+ #
5616
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
5617
+ #
5618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5621
+ def patch_project_location_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
5622
+ command = make_simple_command(:patch, 'v2beta1/{+name}', options)
5623
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
5624
+ command.request_object = google_cloud_dialogflow_v2beta1_version_object
5625
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
5626
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
5627
+ command.params['name'] = name unless name.nil?
5628
+ command.query['updateMask'] = update_mask unless update_mask.nil?
5629
+ command.query['fields'] = fields unless fields.nil?
5630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5631
+ execute_or_queue_command(command, &block)
5632
+ end
5633
+
4760
5634
  # Starts asynchronous cancellation on a long-running operation. The server
4761
5635
  # makes a best effort to cancel the operation, but success is not
4762
5636
  # guaranteed. If the server doesn't support this method, it returns