google-api-client 0.40.0 → 0.41.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (452) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +297 -0
  3. data/bin/generate-api +1 -3
  4. data/generated/google/apis/admin_directory_v1.rb +1 -1
  5. data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
  6. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  7. data/generated/google/apis/admin_directory_v1/service.rb +3 -5
  8. data/generated/google/apis/admob_v1.rb +1 -1
  9. data/generated/google/apis/admob_v1/classes.rb +5 -6
  10. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  11. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +32 -26
  12. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  13. data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
  14. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
  15. data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
  16. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  17. data/generated/google/apis/androidmanagement_v1/classes.rb +117 -0
  18. data/generated/google/apis/androidmanagement_v1/representations.rb +39 -0
  19. data/generated/google/apis/androidpublisher_v3.rb +3 -3
  20. data/generated/google/apis/androidpublisher_v3/classes.rb +499 -684
  21. data/generated/google/apis/androidpublisher_v3/representations.rb +19 -166
  22. data/generated/google/apis/androidpublisher_v3/service.rb +564 -748
  23. data/generated/google/apis/apigee_v1.rb +1 -1
  24. data/generated/google/apis/apigee_v1/classes.rb +144 -48
  25. data/generated/google/apis/apigee_v1/representations.rb +17 -0
  26. data/generated/google/apis/apigee_v1/service.rb +23 -24
  27. data/generated/google/apis/appsmarket_v2.rb +3 -3
  28. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  29. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  30. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  31. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  32. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +122 -0
  33. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +62 -0
  34. data/generated/google/apis/bigquery_v2.rb +1 -1
  35. data/generated/google/apis/bigquery_v2/classes.rb +51 -13
  36. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  37. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  38. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
  39. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  40. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -4
  41. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  42. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  43. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  44. data/generated/google/apis/bigtableadmin_v1/classes.rb +5 -10
  45. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  46. data/generated/google/apis/bigtableadmin_v2/classes.rb +45 -37
  47. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -5
  48. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  49. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
  50. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  51. data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
  52. data/generated/google/apis/books_v1.rb +1 -1
  53. data/generated/google/apis/books_v1/service.rb +2 -2
  54. data/generated/google/apis/calendar_v3.rb +1 -1
  55. data/generated/google/apis/chat_v1.rb +1 -1
  56. data/generated/google/apis/chat_v1/classes.rb +2 -0
  57. data/generated/google/apis/civicinfo_v2.rb +2 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +12 -800
  59. data/generated/google/apis/civicinfo_v2/representations.rb +0 -295
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -62
  61. data/generated/google/apis/cloudasset_v1.rb +1 -1
  62. data/generated/google/apis/cloudasset_v1/classes.rb +116 -36
  63. data/generated/google/apis/cloudasset_v1/representations.rb +6 -0
  64. data/generated/google/apis/cloudasset_v1/service.rb +18 -15
  65. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  66. data/generated/google/apis/cloudasset_v1beta1/classes.rb +954 -42
  67. data/generated/google/apis/cloudasset_v1beta1/representations.rb +241 -0
  68. data/generated/google/apis/cloudasset_v1beta1/service.rb +8 -8
  69. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  70. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
  71. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
  72. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  73. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +40 -23
  74. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +34 -9
  75. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  76. data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
  77. data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
  78. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  79. data/generated/google/apis/cloudbuild_v1/classes.rb +287 -15
  80. data/generated/google/apis/cloudbuild_v1/representations.rb +131 -4
  81. data/generated/google/apis/cloudbuild_v1/service.rb +0 -94
  82. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +298 -26
  84. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +136 -9
  85. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
  86. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  87. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +298 -26
  88. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +136 -9
  89. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
  90. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  91. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +5 -6
  93. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  94. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -6
  95. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  96. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +7 -1
  98. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  99. data/generated/google/apis/cloudkms_v1.rb +1 -1
  100. data/generated/google/apis/cloudkms_v1/classes.rb +7 -7
  101. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  102. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +22 -18
  103. data/generated/google/apis/cloudresourcemanager_v1/service.rb +21 -14
  104. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  105. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -11
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
  107. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  108. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
  109. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
  111. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  112. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
  113. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  114. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
  115. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  116. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  117. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  118. data/generated/google/apis/cloudtasks_v2/classes.rb +6 -4
  119. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  120. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +9 -0
  121. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  122. data/generated/google/apis/composer_v1beta1.rb +1 -1
  123. data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
  124. data/generated/google/apis/composer_v1beta1/service.rb +13 -0
  125. data/generated/google/apis/compute_alpha.rb +1 -1
  126. data/generated/google/apis/compute_alpha/classes.rb +801 -219
  127. data/generated/google/apis/compute_alpha/representations.rb +220 -32
  128. data/generated/google/apis/compute_alpha/service.rb +899 -113
  129. data/generated/google/apis/compute_beta.rb +1 -1
  130. data/generated/google/apis/compute_beta/classes.rb +490 -131
  131. data/generated/google/apis/compute_beta/representations.rb +97 -0
  132. data/generated/google/apis/compute_beta/service.rb +308 -33
  133. data/generated/google/apis/compute_v1.rb +1 -1
  134. data/generated/google/apis/compute_v1/classes.rb +706 -76
  135. data/generated/google/apis/compute_v1/representations.rb +200 -0
  136. data/generated/google/apis/compute_v1/service.rb +522 -33
  137. data/generated/google/apis/container_v1.rb +1 -1
  138. data/generated/google/apis/container_v1/classes.rb +123 -5
  139. data/generated/google/apis/container_v1/representations.rb +50 -0
  140. data/generated/google/apis/container_v1beta1.rb +1 -1
  141. data/generated/google/apis/container_v1beta1/classes.rb +142 -24
  142. data/generated/google/apis/container_v1beta1/representations.rb +37 -0
  143. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  144. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
  145. data/generated/google/apis/content_v2.rb +1 -1
  146. data/generated/google/apis/content_v2/classes.rb +41 -1
  147. data/generated/google/apis/content_v2/representations.rb +17 -0
  148. data/generated/google/apis/content_v2/service.rb +15 -6
  149. data/generated/google/apis/content_v2_1.rb +1 -1
  150. data/generated/google/apis/content_v2_1/classes.rb +616 -6
  151. data/generated/google/apis/content_v2_1/representations.rb +243 -0
  152. data/generated/google/apis/content_v2_1/service.rb +95 -6
  153. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  154. data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
  155. data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
  156. data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
  157. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  158. data/generated/google/apis/dataflow_v1b3/classes.rb +19 -0
  159. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  160. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  161. data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
  162. data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
  163. data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
  164. data/generated/google/apis/dataproc_v1.rb +1 -1
  165. data/generated/google/apis/dataproc_v1/classes.rb +71 -24
  166. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  167. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  168. data/generated/google/apis/dataproc_v1beta2/classes.rb +65 -23
  169. data/generated/google/apis/dataproc_v1beta2/representations.rb +5 -0
  170. data/generated/google/apis/dialogflow_v2.rb +1 -1
  171. data/generated/google/apis/dialogflow_v2/classes.rb +277 -57
  172. data/generated/google/apis/dialogflow_v2/representations.rb +93 -4
  173. data/generated/google/apis/dialogflow_v2/service.rb +14 -2
  174. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  175. data/generated/google/apis/dialogflow_v2beta1/classes.rb +268 -56
  176. data/generated/google/apis/dialogflow_v2beta1/representations.rb +93 -4
  177. data/generated/google/apis/dialogflow_v2beta1/service.rb +70 -46
  178. data/generated/google/apis/displayvideo_v1.rb +1 -1
  179. data/generated/google/apis/displayvideo_v1/classes.rb +569 -6
  180. data/generated/google/apis/displayvideo_v1/representations.rb +249 -0
  181. data/generated/google/apis/displayvideo_v1/service.rb +1496 -77
  182. data/generated/google/apis/dlp_v2.rb +1 -1
  183. data/generated/google/apis/dlp_v2/classes.rb +8 -6
  184. data/generated/google/apis/dlp_v2/service.rb +170 -64
  185. data/generated/google/apis/dns_v1beta2.rb +4 -4
  186. data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
  187. data/generated/google/apis/dns_v1beta2/service.rb +247 -180
  188. data/generated/google/apis/{dialogflow_v3alpha1.rb → documentai_v1beta2.rb} +11 -13
  189. data/generated/google/apis/documentai_v1beta2/classes.rb +3284 -0
  190. data/generated/google/apis/documentai_v1beta2/representations.rb +1344 -0
  191. data/generated/google/apis/{dialogflow_v3alpha1 → documentai_v1beta2}/service.rb +91 -118
  192. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  193. data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
  194. data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
  195. data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
  196. data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
  197. data/generated/google/apis/drive_v2.rb +1 -1
  198. data/generated/google/apis/drive_v2/classes.rb +9 -0
  199. data/generated/google/apis/drive_v2/representations.rb +1 -0
  200. data/generated/google/apis/drive_v2/service.rb +26 -78
  201. data/generated/google/apis/drive_v3.rb +1 -1
  202. data/generated/google/apis/drive_v3/classes.rb +9 -0
  203. data/generated/google/apis/drive_v3/representations.rb +1 -0
  204. data/generated/google/apis/drive_v3/service.rb +18 -54
  205. data/generated/google/apis/fcm_v1.rb +1 -1
  206. data/generated/google/apis/fcm_v1/classes.rb +6 -0
  207. data/generated/google/apis/file_v1.rb +1 -1
  208. data/generated/google/apis/file_v1/classes.rb +0 -1156
  209. data/generated/google/apis/file_v1/representations.rb +0 -381
  210. data/generated/google/apis/file_v1beta1.rb +1 -1
  211. data/generated/google/apis/file_v1beta1/classes.rb +67 -1156
  212. data/generated/google/apis/file_v1beta1/representations.rb +14 -376
  213. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  214. data/generated/google/apis/firebase_v1beta1/classes.rb +7 -6
  215. data/generated/google/apis/firebase_v1beta1/service.rb +53 -49
  216. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  217. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
  218. data/generated/google/apis/fitness_v1.rb +1 -1
  219. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  220. data/generated/google/apis/games_v1.rb +1 -1
  221. data/generated/google/apis/gameservices_v1.rb +34 -0
  222. data/generated/google/apis/gameservices_v1/classes.rb +2354 -0
  223. data/generated/google/apis/gameservices_v1/representations.rb +971 -0
  224. data/generated/google/apis/gameservices_v1/service.rb +1472 -0
  225. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  226. data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
  227. data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
  228. data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
  229. data/generated/google/apis/gmail_v1.rb +3 -2
  230. data/generated/google/apis/gmail_v1/classes.rb +263 -200
  231. data/generated/google/apis/gmail_v1/service.rb +551 -743
  232. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +33 -0
  233. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +306 -0
  234. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
  235. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +236 -0
  236. data/generated/google/apis/groupsmigration_v1.rb +3 -2
  237. data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
  238. data/generated/google/apis/healthcare_v1.rb +1 -1
  239. data/generated/google/apis/healthcare_v1/classes.rb +9 -9
  240. data/generated/google/apis/healthcare_v1/service.rb +5 -3
  241. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  242. data/generated/google/apis/healthcare_v1beta1/classes.rb +919 -52
  243. data/generated/google/apis/healthcare_v1beta1/representations.rb +404 -0
  244. data/generated/google/apis/healthcare_v1beta1/service.rb +520 -3
  245. data/generated/google/apis/iam_v1.rb +1 -1
  246. data/generated/google/apis/iam_v1/classes.rb +92 -81
  247. data/generated/google/apis/iam_v1/service.rb +167 -148
  248. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  249. data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
  250. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  251. data/generated/google/apis/jobs_v3.rb +1 -1
  252. data/generated/google/apis/jobs_v3/classes.rb +4 -2
  253. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  254. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
  255. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  256. data/generated/google/apis/lifesciences_v2beta/classes.rb +10 -0
  257. data/generated/google/apis/lifesciences_v2beta/representations.rb +1 -0
  258. data/generated/google/apis/logging_v2.rb +1 -1
  259. data/generated/google/apis/logging_v2/classes.rb +69 -21
  260. data/generated/google/apis/managedidentities_v1.rb +1 -1
  261. data/generated/google/apis/managedidentities_v1/classes.rb +54 -10
  262. data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
  263. data/generated/google/apis/managedidentities_v1/service.rb +3 -0
  264. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  265. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +54 -10
  266. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
  267. data/generated/google/apis/managedidentities_v1alpha1/service.rb +3 -0
  268. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  269. data/generated/google/apis/managedidentities_v1beta1/classes.rb +54 -10
  270. data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
  271. data/generated/google/apis/managedidentities_v1beta1/service.rb +3 -0
  272. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  273. data/generated/google/apis/memcache_v1beta2/classes.rb +42 -11
  274. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  275. data/generated/google/apis/ml_v1.rb +1 -1
  276. data/generated/google/apis/ml_v1/classes.rb +8 -0
  277. data/generated/google/apis/ml_v1/representations.rb +1 -0
  278. data/generated/google/apis/monitoring_v1.rb +1 -1
  279. data/generated/google/apis/monitoring_v1/classes.rb +46 -0
  280. data/generated/google/apis/monitoring_v1/representations.rb +18 -0
  281. data/generated/google/apis/monitoring_v3.rb +1 -1
  282. data/generated/google/apis/monitoring_v3/classes.rb +68 -19
  283. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  284. data/generated/google/apis/osconfig_v1.rb +1 -1
  285. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  286. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  287. data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
  288. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  289. data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
  290. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  291. data/generated/google/apis/people_v1.rb +4 -1
  292. data/generated/google/apis/people_v1/classes.rb +216 -0
  293. data/generated/google/apis/people_v1/representations.rb +82 -0
  294. data/generated/google/apis/people_v1/service.rb +371 -8
  295. data/generated/google/apis/playablelocations_v3.rb +31 -0
  296. data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
  297. data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
  298. data/generated/google/apis/playablelocations_v3/service.rb +157 -0
  299. data/generated/google/apis/playcustomapp_v1.rb +3 -3
  300. data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
  301. data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
  302. data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
  303. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  304. data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
  305. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  306. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
  307. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  308. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +92 -0
  309. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +46 -0
  310. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +507 -0
  311. data/generated/google/apis/pubsub_v1.rb +1 -1
  312. data/generated/google/apis/pubsub_v1/classes.rb +68 -10
  313. data/generated/google/apis/pubsub_v1/representations.rb +28 -0
  314. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  315. data/generated/google/apis/realtimebidding_v1.rb +40 -0
  316. data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
  317. data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
  318. data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
  319. data/generated/google/apis/recommender_v1.rb +34 -0
  320. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  321. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  322. data/generated/google/apis/recommender_v1/service.rb +266 -0
  323. data/generated/google/apis/redis_v1.rb +1 -1
  324. data/generated/google/apis/redis_v1/classes.rb +1 -1
  325. data/generated/google/apis/redis_v1/service.rb +1 -1
  326. data/generated/google/apis/redis_v1beta1.rb +1 -1
  327. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  328. data/generated/google/apis/redis_v1beta1/service.rb +1 -1
  329. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  330. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  331. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  332. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  333. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  334. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  335. data/generated/google/apis/run_v1.rb +1 -1
  336. data/generated/google/apis/run_v1/classes.rb +16 -9
  337. data/generated/google/apis/run_v1/representations.rb +1 -0
  338. data/generated/google/apis/run_v1alpha1.rb +1 -1
  339. data/generated/google/apis/run_v1alpha1/classes.rb +15 -6
  340. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  341. data/generated/google/apis/run_v1beta1.rb +1 -1
  342. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  343. data/generated/google/apis/sasportal_v1alpha1/classes.rb +92 -0
  344. data/generated/google/apis/sasportal_v1alpha1/representations.rb +46 -0
  345. data/generated/google/apis/sasportal_v1alpha1/service.rb +507 -0
  346. data/generated/google/apis/secretmanager_v1.rb +1 -1
  347. data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
  348. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  349. data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
  350. data/generated/google/apis/securitycenter_v1.rb +1 -1
  351. data/generated/google/apis/securitycenter_v1/classes.rb +116 -16
  352. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  353. data/generated/google/apis/securitycenter_v1/service.rb +14 -15
  354. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  355. data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
  356. data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
  357. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  358. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
  359. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
  360. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  361. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +116 -16
  362. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
  363. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -15
  364. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  365. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +223 -43
  366. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +33 -1
  367. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  368. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +229 -43
  369. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +34 -1
  370. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  371. data/generated/google/apis/servicecontrol_v1/classes.rb +9 -3
  372. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  373. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  374. data/generated/google/apis/servicemanagement_v1/classes.rb +124 -49
  375. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  376. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  377. data/generated/google/apis/servicenetworking_v1/classes.rb +119 -43
  378. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  379. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  380. data/generated/google/apis/servicenetworking_v1beta/classes.rb +119 -43
  381. data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
  382. data/generated/google/apis/serviceusage_v1.rb +1 -1
  383. data/generated/google/apis/serviceusage_v1/classes.rb +221 -43
  384. data/generated/google/apis/serviceusage_v1/representations.rb +34 -1
  385. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  386. data/generated/google/apis/serviceusage_v1beta1/classes.rb +272 -43
  387. data/generated/google/apis/serviceusage_v1beta1/representations.rb +63 -1
  388. data/generated/google/apis/serviceusage_v1beta1/service.rb +71 -0
  389. data/generated/google/apis/sheets_v4.rb +1 -1
  390. data/generated/google/apis/sheets_v4/classes.rb +90 -0
  391. data/generated/google/apis/slides_v1.rb +1 -1
  392. data/generated/google/apis/slides_v1/classes.rb +4 -0
  393. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  394. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  395. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  396. data/generated/google/apis/spanner_v1.rb +1 -1
  397. data/generated/google/apis/spanner_v1/classes.rb +26 -22
  398. data/generated/google/apis/spanner_v1/service.rb +15 -8
  399. data/generated/google/apis/speech_v1.rb +1 -1
  400. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  401. data/generated/google/apis/sql_v1beta4.rb +1 -1
  402. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  403. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  404. data/generated/google/apis/storage_v1.rb +1 -1
  405. data/generated/google/apis/storage_v1/service.rb +2 -3
  406. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  407. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  408. data/generated/google/apis/testing_v1.rb +1 -1
  409. data/generated/google/apis/testing_v1/classes.rb +2 -1
  410. data/generated/google/apis/texttospeech_v1.rb +1 -1
  411. data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
  412. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  413. data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
  414. data/generated/google/apis/{customsearch_v1.rb → vectortile_v1.rb} +8 -8
  415. data/generated/google/apis/vectortile_v1/classes.rb +881 -0
  416. data/generated/google/apis/vectortile_v1/representations.rb +329 -0
  417. data/generated/google/apis/vectortile_v1/service.rb +268 -0
  418. data/generated/google/apis/videointelligence_v1.rb +1 -1
  419. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  420. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  421. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  422. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  423. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  424. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  425. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  426. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  427. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  428. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  429. data/generated/google/apis/vision_v1.rb +1 -1
  430. data/generated/google/apis/vision_v1/classes.rb +18 -0
  431. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  432. data/generated/google/apis/vision_v1p1beta1/classes.rb +18 -0
  433. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  434. data/generated/google/apis/vision_v1p2beta1/classes.rb +18 -0
  435. data/generated/google/apis/webfonts_v1.rb +5 -5
  436. data/generated/google/apis/webfonts_v1/classes.rb +4 -3
  437. data/generated/google/apis/webfonts_v1/representations.rb +1 -2
  438. data/generated/google/apis/webfonts_v1/service.rb +14 -21
  439. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  440. data/generated/google/apis/youtube_v3.rb +1 -1
  441. data/generated/google/apis/youtube_v3/classes.rb +38 -0
  442. data/generated/google/apis/youtube_v3/representations.rb +27 -0
  443. data/generated/google/apis/youtube_v3/service.rb +32 -0
  444. data/lib/google/apis/core/api_command.rb +12 -7
  445. data/lib/google/apis/options.rb +5 -1
  446. data/lib/google/apis/version.rb +1 -1
  447. metadata +31 -11
  448. data/generated/google/apis/customsearch_v1/classes.rb +0 -1606
  449. data/generated/google/apis/customsearch_v1/representations.rb +0 -372
  450. data/generated/google/apis/customsearch_v1/service.rb +0 -608
  451. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +0 -5579
  452. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +0 -2295
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/youtube/partner/
26
26
  module YoutubePartnerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200519'
28
+ REVISION = '20200525'
29
29
 
30
30
  # View and manage your assets and associated content on YouTube
31
31
  AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/youtube/
27
27
  module YoutubeV3
28
28
  VERSION = 'V3'
29
- REVISION = '20200526'
29
+ REVISION = '20200618'
30
30
 
31
31
  # Manage your YouTube account
32
32
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -7200,6 +7200,44 @@ module Google
7200
7200
  end
7201
7201
  end
7202
7202
 
7203
+ #
7204
+ class TestItem
7205
+ include Google::Apis::Core::Hashable
7206
+
7207
+ #
7208
+ # Corresponds to the JSON property `id`
7209
+ # @return [String]
7210
+ attr_accessor :id
7211
+
7212
+ #
7213
+ # Corresponds to the JSON property `snippet`
7214
+ # @return [Google::Apis::YoutubeV3::TestItemTestItemSnippet]
7215
+ attr_accessor :snippet
7216
+
7217
+ def initialize(**args)
7218
+ update!(**args)
7219
+ end
7220
+
7221
+ # Update properties of this object
7222
+ def update!(**args)
7223
+ @id = args[:id] if args.key?(:id)
7224
+ @snippet = args[:snippet] if args.key?(:snippet)
7225
+ end
7226
+ end
7227
+
7228
+ #
7229
+ class TestItemTestItemSnippet
7230
+ include Google::Apis::Core::Hashable
7231
+
7232
+ def initialize(**args)
7233
+ update!(**args)
7234
+ end
7235
+
7236
+ # Update properties of this object
7237
+ def update!(**args)
7238
+ end
7239
+ end
7240
+
7203
7241
  # A thumbnail is an image representing a YouTube resource.
7204
7242
  class Thumbnail
7205
7243
  include Google::Apis::Core::Hashable
@@ -880,6 +880,18 @@ module Google
880
880
  include Google::Apis::Core::JsonObjectSupport
881
881
  end
882
882
 
883
+ class TestItem
884
+ class Representation < Google::Apis::Core::JsonRepresentation; end
885
+
886
+ include Google::Apis::Core::JsonObjectSupport
887
+ end
888
+
889
+ class TestItemTestItemSnippet
890
+ class Representation < Google::Apis::Core::JsonRepresentation; end
891
+
892
+ include Google::Apis::Core::JsonObjectSupport
893
+ end
894
+
883
895
  class Thumbnail
884
896
  class Representation < Google::Apis::Core::JsonRepresentation; end
885
897
 
@@ -2918,6 +2930,21 @@ module Google
2918
2930
  end
2919
2931
  end
2920
2932
 
2933
+ class TestItem
2934
+ # @private
2935
+ class Representation < Google::Apis::Core::JsonRepresentation
2936
+ property :id, as: 'id'
2937
+ property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::TestItemTestItemSnippet, decorator: Google::Apis::YoutubeV3::TestItemTestItemSnippet::Representation
2938
+
2939
+ end
2940
+ end
2941
+
2942
+ class TestItemTestItemSnippet
2943
+ # @private
2944
+ class Representation < Google::Apis::Core::JsonRepresentation
2945
+ end
2946
+ end
2947
+
2921
2948
  class Thumbnail
2922
2949
  # @private
2923
2950
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4058,6 +4058,38 @@ module Google
4058
4058
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4059
4059
  execute_or_queue_command(command, &block)
4060
4060
  end
4061
+
4062
+ # POST method.
4063
+ # @param [Google::Apis::YoutubeV3::TestItem] test_item_object
4064
+ # @param [Array<String>, String] part
4065
+ # @param [String] fields
4066
+ # Selector specifying which fields to include in a partial response.
4067
+ # @param [String] quota_user
4068
+ # Available to use for quota purposes for server-side applications. Can be any
4069
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4070
+ # @param [Google::Apis::RequestOptions] options
4071
+ # Request-specific options
4072
+ #
4073
+ # @yield [result, err] Result & error if block supplied
4074
+ # @yieldparam result [Google::Apis::YoutubeV3::TestItem] parsed result object
4075
+ # @yieldparam err [StandardError] error object if request failed
4076
+ #
4077
+ # @return [Google::Apis::YoutubeV3::TestItem]
4078
+ #
4079
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4080
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4081
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4082
+ def create_youtube_v3_test(test_item_object = nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
4083
+ command = make_simple_command(:post, 'youtube/v3/tests', options)
4084
+ command.request_representation = Google::Apis::YoutubeV3::TestItem::Representation
4085
+ command.request_object = test_item_object
4086
+ command.response_representation = Google::Apis::YoutubeV3::TestItem::Representation
4087
+ command.response_class = Google::Apis::YoutubeV3::TestItem
4088
+ command.query['part'] = part unless part.nil?
4089
+ command.query['fields'] = fields unless fields.nil?
4090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4091
+ execute_or_queue_command(command, &block)
4092
+ end
4061
4093
 
4062
4094
  protected
4063
4095
 
@@ -52,12 +52,9 @@ module Google
52
52
  #
53
53
  # @return [void]
54
54
  def prepare!
55
- set_xgac
56
- if options&.authorization.respond_to? :quota_project_id
57
- quota_project_id = options.authorization.quota_project_id
58
- header['X-Goog-User-Project'] = quota_project_id if quota_project_id
59
- end
60
- if options && options.api_format_version
55
+ set_api_client_header
56
+ set_user_project_header
57
+ if options&.api_format_version
61
58
  header['X-Goog-Api-Format-Version'] = options.api_format_version.to_s
62
59
  end
63
60
  query[FIELDS_PARAM] = normalize_fields_param(query[FIELDS_PARAM]) if query.key?(FIELDS_PARAM)
@@ -130,7 +127,7 @@ module Google
130
127
 
131
128
  private
132
129
 
133
- def set_xgac
130
+ def set_api_client_header
134
131
  old_xgac = header
135
132
  .find_all { |k, v| k.downcase == 'x-goog-api-client' }
136
133
  .map { |(a, b)| b }
@@ -144,6 +141,14 @@ module Google
144
141
  header['X-Goog-Api-Client'] = xgac
145
142
  end
146
143
 
144
+ def set_user_project_header
145
+ quota_project_id = options.quota_project
146
+ if !quota_project_id && options&.authorization.respond_to?(:quota_project_id)
147
+ quota_project_id = options.authorization.quota_project_id
148
+ end
149
+ header['X-Goog-User-Project'] = quota_project_id if quota_project_id
150
+ end
151
+
147
152
  # Attempt to parse a JSON error message
148
153
  # @param [String] body
149
154
  # HTTP response body
@@ -33,7 +33,8 @@ module Google
33
33
  :skip_serialization,
34
34
  :skip_deserialization,
35
35
  :api_format_version,
36
- :use_opencensus)
36
+ :use_opencensus,
37
+ :quota_project)
37
38
 
38
39
  # General client options
39
40
  class ClientOptions
@@ -76,6 +77,8 @@ module Google
76
77
  # @return [Fixnum] Version of the error format to request/expect.
77
78
  # @!attribute [rw] use_opencensus
78
79
  # @return [Boolean] Whether OpenCensus spans should be generated for requests. Default is true.
80
+ # @!attribute [rw] quota_project
81
+ # @return [String] Project ID to charge quota, or `nil` to default to the credentials-specified project.
79
82
 
80
83
  # Get the default options
81
84
  # @return [Google::Apis::RequestOptions]
@@ -105,5 +108,6 @@ module Google
105
108
  RequestOptions.default.skip_deserialization = false
106
109
  RequestOptions.default.api_format_version = nil
107
110
  RequestOptions.default.use_opencensus = true
111
+ RequestOptions.default.quota_project = nil
108
112
  end
109
113
  end
@@ -17,7 +17,7 @@ require 'open3'
17
17
  module Google
18
18
  module Apis
19
19
  # Client library version
20
- VERSION = '0.40.0'.freeze
20
+ VERSION = '0.41.2'.freeze
21
21
 
22
22
  # Current operating system
23
23
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.41.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-06-01 00:00:00.000000000 Z
14
+ date: 2020-07-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -612,10 +612,6 @@ files:
612
612
  - generated/google/apis/content_v2_1/classes.rb
613
613
  - generated/google/apis/content_v2_1/representations.rb
614
614
  - generated/google/apis/content_v2_1/service.rb
615
- - generated/google/apis/customsearch_v1.rb
616
- - generated/google/apis/customsearch_v1/classes.rb
617
- - generated/google/apis/customsearch_v1/representations.rb
618
- - generated/google/apis/customsearch_v1/service.rb
619
615
  - generated/google/apis/datacatalog_v1beta1.rb
620
616
  - generated/google/apis/datacatalog_v1beta1/classes.rb
621
617
  - generated/google/apis/datacatalog_v1beta1/representations.rb
@@ -676,10 +672,6 @@ files:
676
672
  - generated/google/apis/dialogflow_v2beta1/classes.rb
677
673
  - generated/google/apis/dialogflow_v2beta1/representations.rb
678
674
  - generated/google/apis/dialogflow_v2beta1/service.rb
679
- - generated/google/apis/dialogflow_v3alpha1.rb
680
- - generated/google/apis/dialogflow_v3alpha1/classes.rb
681
- - generated/google/apis/dialogflow_v3alpha1/representations.rb
682
- - generated/google/apis/dialogflow_v3alpha1/service.rb
683
675
  - generated/google/apis/digitalassetlinks_v1.rb
684
676
  - generated/google/apis/digitalassetlinks_v1/classes.rb
685
677
  - generated/google/apis/digitalassetlinks_v1/representations.rb
@@ -712,6 +704,10 @@ files:
712
704
  - generated/google/apis/docs_v1/classes.rb
713
705
  - generated/google/apis/docs_v1/representations.rb
714
706
  - generated/google/apis/docs_v1/service.rb
707
+ - generated/google/apis/documentai_v1beta2.rb
708
+ - generated/google/apis/documentai_v1beta2/classes.rb
709
+ - generated/google/apis/documentai_v1beta2/representations.rb
710
+ - generated/google/apis/documentai_v1beta2/service.rb
715
711
  - generated/google/apis/domainsrdap_v1.rb
716
712
  - generated/google/apis/domainsrdap_v1/classes.rb
717
713
  - generated/google/apis/domainsrdap_v1/representations.rb
@@ -808,6 +804,10 @@ files:
808
804
  - generated/google/apis/games_v1/classes.rb
809
805
  - generated/google/apis/games_v1/representations.rb
810
806
  - generated/google/apis/games_v1/service.rb
807
+ - generated/google/apis/gameservices_v1.rb
808
+ - generated/google/apis/gameservices_v1/classes.rb
809
+ - generated/google/apis/gameservices_v1/representations.rb
810
+ - generated/google/apis/gameservices_v1/service.rb
811
811
  - generated/google/apis/gameservices_v1beta.rb
812
812
  - generated/google/apis/gameservices_v1beta/classes.rb
813
813
  - generated/google/apis/gameservices_v1beta/representations.rb
@@ -828,6 +828,10 @@ files:
828
828
  - generated/google/apis/gmail_v1/classes.rb
829
829
  - generated/google/apis/gmail_v1/representations.rb
830
830
  - generated/google/apis/gmail_v1/service.rb
831
+ - generated/google/apis/gmailpostmastertools_v1beta1.rb
832
+ - generated/google/apis/gmailpostmastertools_v1beta1/classes.rb
833
+ - generated/google/apis/gmailpostmastertools_v1beta1/representations.rb
834
+ - generated/google/apis/gmailpostmastertools_v1beta1/service.rb
831
835
  - generated/google/apis/groupsmigration_v1.rb
832
836
  - generated/google/apis/groupsmigration_v1/classes.rb
833
837
  - generated/google/apis/groupsmigration_v1/representations.rb
@@ -988,6 +992,10 @@ files:
988
992
  - generated/google/apis/people_v1/classes.rb
989
993
  - generated/google/apis/people_v1/representations.rb
990
994
  - generated/google/apis/people_v1/service.rb
995
+ - generated/google/apis/playablelocations_v3.rb
996
+ - generated/google/apis/playablelocations_v3/classes.rb
997
+ - generated/google/apis/playablelocations_v3/representations.rb
998
+ - generated/google/apis/playablelocations_v3/service.rb
991
999
  - generated/google/apis/playcustomapp_v1.rb
992
1000
  - generated/google/apis/playcustomapp_v1/classes.rb
993
1001
  - generated/google/apis/playcustomapp_v1/representations.rb
@@ -1024,6 +1032,14 @@ files:
1024
1032
  - generated/google/apis/pubsub_v1beta2/classes.rb
1025
1033
  - generated/google/apis/pubsub_v1beta2/representations.rb
1026
1034
  - generated/google/apis/pubsub_v1beta2/service.rb
1035
+ - generated/google/apis/realtimebidding_v1.rb
1036
+ - generated/google/apis/realtimebidding_v1/classes.rb
1037
+ - generated/google/apis/realtimebidding_v1/representations.rb
1038
+ - generated/google/apis/realtimebidding_v1/service.rb
1039
+ - generated/google/apis/recommender_v1.rb
1040
+ - generated/google/apis/recommender_v1/classes.rb
1041
+ - generated/google/apis/recommender_v1/representations.rb
1042
+ - generated/google/apis/recommender_v1/service.rb
1027
1043
  - generated/google/apis/recommender_v1beta1.rb
1028
1044
  - generated/google/apis/recommender_v1beta1/classes.rb
1029
1045
  - generated/google/apis/recommender_v1beta1/representations.rb
@@ -1252,6 +1268,10 @@ files:
1252
1268
  - generated/google/apis/vault_v1/classes.rb
1253
1269
  - generated/google/apis/vault_v1/representations.rb
1254
1270
  - generated/google/apis/vault_v1/service.rb
1271
+ - generated/google/apis/vectortile_v1.rb
1272
+ - generated/google/apis/vectortile_v1/classes.rb
1273
+ - generated/google/apis/vectortile_v1/representations.rb
1274
+ - generated/google/apis/vectortile_v1/service.rb
1255
1275
  - generated/google/apis/verifiedaccess_v1.rb
1256
1276
  - generated/google/apis/verifiedaccess_v1/classes.rb
1257
1277
  - generated/google/apis/verifiedaccess_v1/representations.rb
@@ -1400,7 +1420,7 @@ homepage: https://github.com/google/google-api-ruby-client
1400
1420
  licenses:
1401
1421
  - Apache-2.0
1402
1422
  metadata:
1403
- documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.40.0
1423
+ documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.41.2
1404
1424
  post_install_message:
1405
1425
  rdoc_options: []
1406
1426
  require_paths:
@@ -1,1606 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module CustomsearchV1
24
-
25
- # Promotion result.
26
- class Promotion
27
- include Google::Apis::Core::Hashable
28
-
29
- # An array of block objects for this promotion. See [Google WebSearch
30
- # Protocol
31
- # reference](https://developers.google.com/custom-search/docs/xml_results)
32
- # for more information.
33
- # Corresponds to the JSON property `bodyLines`
34
- # @return [Array<Google::Apis::CustomsearchV1::Promotion::BodyLine>]
35
- attr_accessor :body_lines
36
-
37
- # An abridged version of this search's result URL, e.g. www.example.com.
38
- # Corresponds to the JSON property `displayLink`
39
- # @return [String]
40
- attr_accessor :display_link
41
-
42
- # The title of the promotion, in HTML.
43
- # Corresponds to the JSON property `htmlTitle`
44
- # @return [String]
45
- attr_accessor :html_title
46
-
47
- # Image belonging to a promotion.
48
- # Corresponds to the JSON property `image`
49
- # @return [Google::Apis::CustomsearchV1::Promotion::Image]
50
- attr_accessor :image
51
-
52
- # The URL of the promotion.
53
- # Corresponds to the JSON property `link`
54
- # @return [String]
55
- attr_accessor :link
56
-
57
- # The title of the promotion.
58
- # Corresponds to the JSON property `title`
59
- # @return [String]
60
- attr_accessor :title
61
-
62
- def initialize(**args)
63
- update!(**args)
64
- end
65
-
66
- # Update properties of this object
67
- def update!(**args)
68
- @body_lines = args[:body_lines] if args.key?(:body_lines)
69
- @display_link = args[:display_link] if args.key?(:display_link)
70
- @html_title = args[:html_title] if args.key?(:html_title)
71
- @image = args[:image] if args.key?(:image)
72
- @link = args[:link] if args.key?(:link)
73
- @title = args[:title] if args.key?(:title)
74
- end
75
-
76
- # Block object belonging to a promotion.
77
- class BodyLine
78
- include Google::Apis::Core::Hashable
79
-
80
- # The block object's text in HTML, if it has text.
81
- # Corresponds to the JSON property `htmlTitle`
82
- # @return [String]
83
- attr_accessor :html_title
84
-
85
- # The anchor text of the block object's link, if it has a link.
86
- # Corresponds to the JSON property `link`
87
- # @return [String]
88
- attr_accessor :link
89
-
90
- # The block object's text, if it has text.
91
- # Corresponds to the JSON property `title`
92
- # @return [String]
93
- attr_accessor :title
94
-
95
- # The URL of the block object's link, if it has one.
96
- # Corresponds to the JSON property `url`
97
- # @return [String]
98
- attr_accessor :url
99
-
100
- def initialize(**args)
101
- update!(**args)
102
- end
103
-
104
- # Update properties of this object
105
- def update!(**args)
106
- @html_title = args[:html_title] if args.key?(:html_title)
107
- @link = args[:link] if args.key?(:link)
108
- @title = args[:title] if args.key?(:title)
109
- @url = args[:url] if args.key?(:url)
110
- end
111
- end
112
-
113
- # Image belonging to a promotion.
114
- class Image
115
- include Google::Apis::Core::Hashable
116
-
117
- # Image height in pixels.
118
- # Corresponds to the JSON property `height`
119
- # @return [Fixnum]
120
- attr_accessor :height
121
-
122
- # URL of the image for this promotion link.
123
- # Corresponds to the JSON property `source`
124
- # @return [String]
125
- attr_accessor :source
126
-
127
- # Image width in pixels.
128
- # Corresponds to the JSON property `width`
129
- # @return [Fixnum]
130
- attr_accessor :width
131
-
132
- def initialize(**args)
133
- update!(**args)
134
- end
135
-
136
- # Update properties of this object
137
- def update!(**args)
138
- @height = args[:height] if args.key?(:height)
139
- @source = args[:source] if args.key?(:source)
140
- @width = args[:width] if args.key?(:width)
141
- end
142
- end
143
- end
144
-
145
- # A custom search result.
146
- class Result
147
- include Google::Apis::Core::Hashable
148
-
149
- # Indicates the ID of Google's cached version of the search result.
150
- # Corresponds to the JSON property `cacheId`
151
- # @return [String]
152
- attr_accessor :cache_id
153
-
154
- # An abridged version of this search result’s URL, e.g. www.example.com.
155
- # Corresponds to the JSON property `displayLink`
156
- # @return [String]
157
- attr_accessor :display_link
158
-
159
- # The file format of the search result.
160
- # Corresponds to the JSON property `fileFormat`
161
- # @return [String]
162
- attr_accessor :file_format
163
-
164
- # The URL displayed after the snippet for each search result.
165
- # Corresponds to the JSON property `formattedUrl`
166
- # @return [String]
167
- attr_accessor :formatted_url
168
-
169
- # The HTML-formatted URL displayed after the snippet for each search result.
170
- # Corresponds to the JSON property `htmlFormattedUrl`
171
- # @return [String]
172
- attr_accessor :html_formatted_url
173
-
174
- # The snippet of the search result, in HTML.
175
- # Corresponds to the JSON property `htmlSnippet`
176
- # @return [String]
177
- attr_accessor :html_snippet
178
-
179
- # The title of the search result, in HTML.
180
- # Corresponds to the JSON property `htmlTitle`
181
- # @return [String]
182
- attr_accessor :html_title
183
-
184
- # Image belonging to a custom search result.
185
- # Corresponds to the JSON property `image`
186
- # @return [Google::Apis::CustomsearchV1::Result::Image]
187
- attr_accessor :image
188
-
189
- # A unique identifier for the type of current object. For this API, it is
190
- # `customsearch#result.`
191
- # Corresponds to the JSON property `kind`
192
- # @return [String]
193
- attr_accessor :kind
194
-
195
- # Encapsulates all information about [refinement
196
- # labels](https://developers.google.com/custom-search/docs/xml_results).
197
- # Corresponds to the JSON property `labels`
198
- # @return [Array<Google::Apis::CustomsearchV1::Result::Label>]
199
- attr_accessor :labels
200
-
201
- # The full URL to which the search result is pointing, e.g.
202
- # http://www.example.com/foo/bar.
203
- # Corresponds to the JSON property `link`
204
- # @return [String]
205
- attr_accessor :link
206
-
207
- # The MIME type of the search result.
208
- # Corresponds to the JSON property `mime`
209
- # @return [String]
210
- attr_accessor :mime
211
-
212
- # Contains
213
- # [PageMap](https://developers.google.com/custom-search/docs/structured_data#
214
- # pagemaps)
215
- # information for this search result.
216
- # Corresponds to the JSON property `pagemap`
217
- # @return [Hash<String,Object>]
218
- attr_accessor :pagemap
219
-
220
- # The snippet of the search result, in plain text.
221
- # Corresponds to the JSON property `snippet`
222
- # @return [String]
223
- attr_accessor :snippet
224
-
225
- # The title of the search result, in plain text.
226
- # Corresponds to the JSON property `title`
227
- # @return [String]
228
- attr_accessor :title
229
-
230
- def initialize(**args)
231
- update!(**args)
232
- end
233
-
234
- # Update properties of this object
235
- def update!(**args)
236
- @cache_id = args[:cache_id] if args.key?(:cache_id)
237
- @display_link = args[:display_link] if args.key?(:display_link)
238
- @file_format = args[:file_format] if args.key?(:file_format)
239
- @formatted_url = args[:formatted_url] if args.key?(:formatted_url)
240
- @html_formatted_url = args[:html_formatted_url] if args.key?(:html_formatted_url)
241
- @html_snippet = args[:html_snippet] if args.key?(:html_snippet)
242
- @html_title = args[:html_title] if args.key?(:html_title)
243
- @image = args[:image] if args.key?(:image)
244
- @kind = args[:kind] if args.key?(:kind)
245
- @labels = args[:labels] if args.key?(:labels)
246
- @link = args[:link] if args.key?(:link)
247
- @mime = args[:mime] if args.key?(:mime)
248
- @pagemap = args[:pagemap] if args.key?(:pagemap)
249
- @snippet = args[:snippet] if args.key?(:snippet)
250
- @title = args[:title] if args.key?(:title)
251
- end
252
-
253
- # Image belonging to a custom search result.
254
- class Image
255
- include Google::Apis::Core::Hashable
256
-
257
- # The size of the image, in pixels.
258
- # Corresponds to the JSON property `byteSize`
259
- # @return [Fixnum]
260
- attr_accessor :byte_size
261
-
262
- # A URL pointing to the webpage hosting the image.
263
- # Corresponds to the JSON property `contextLink`
264
- # @return [String]
265
- attr_accessor :context_link
266
-
267
- # The height of the image, in pixels.
268
- # Corresponds to the JSON property `height`
269
- # @return [Fixnum]
270
- attr_accessor :height
271
-
272
- # The height of the thumbnail image, in pixels.
273
- # Corresponds to the JSON property `thumbnailHeight`
274
- # @return [Fixnum]
275
- attr_accessor :thumbnail_height
276
-
277
- # A URL to the thumbnail image.
278
- # Corresponds to the JSON property `thumbnailLink`
279
- # @return [String]
280
- attr_accessor :thumbnail_link
281
-
282
- # The width of the thumbnail image, in pixels.
283
- # Corresponds to the JSON property `thumbnailWidth`
284
- # @return [Fixnum]
285
- attr_accessor :thumbnail_width
286
-
287
- # The width of the image, in pixels.
288
- # Corresponds to the JSON property `width`
289
- # @return [Fixnum]
290
- attr_accessor :width
291
-
292
- def initialize(**args)
293
- update!(**args)
294
- end
295
-
296
- # Update properties of this object
297
- def update!(**args)
298
- @byte_size = args[:byte_size] if args.key?(:byte_size)
299
- @context_link = args[:context_link] if args.key?(:context_link)
300
- @height = args[:height] if args.key?(:height)
301
- @thumbnail_height = args[:thumbnail_height] if args.key?(:thumbnail_height)
302
- @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
303
- @thumbnail_width = args[:thumbnail_width] if args.key?(:thumbnail_width)
304
- @width = args[:width] if args.key?(:width)
305
- end
306
- end
307
-
308
- # Refinement label associated with a custom search result.
309
- class Label
310
- include Google::Apis::Core::Hashable
311
-
312
- # The display name of a refinement label. This is the name you should
313
- # display in your user interface.
314
- # Corresponds to the JSON property `displayName`
315
- # @return [String]
316
- attr_accessor :display_name
317
-
318
- # Refinement label and the associated refinement operation.
319
- # Corresponds to the JSON property `label_with_op`
320
- # @return [String]
321
- attr_accessor :label_with_op
322
-
323
- # The name of a refinement label, which you can use to refine searches.
324
- # Don't display this in your user interface; instead, use displayName.
325
- # Corresponds to the JSON property `name`
326
- # @return [String]
327
- attr_accessor :name
328
-
329
- def initialize(**args)
330
- update!(**args)
331
- end
332
-
333
- # Update properties of this object
334
- def update!(**args)
335
- @display_name = args[:display_name] if args.key?(:display_name)
336
- @label_with_op = args[:label_with_op] if args.key?(:label_with_op)
337
- @name = args[:name] if args.key?(:name)
338
- end
339
- end
340
- end
341
-
342
- # Response to a custom search request.
343
- class Search
344
- include Google::Apis::Core::Hashable
345
-
346
- # Metadata and refinements associated with the given search engine,
347
- # including:
348
- # * The name of the search engine that was used for the query.
349
- # * A set of [facet
350
- # objects](https://developers.google.com/custom-search/docs/refinements#create)
351
- # (refinements) you can use for refining a search.
352
- # Corresponds to the JSON property `context`
353
- # @return [Hash<String,Object>]
354
- attr_accessor :context
355
-
356
- # The current set of custom search results.
357
- # Corresponds to the JSON property `items`
358
- # @return [Array<Google::Apis::CustomsearchV1::Result>]
359
- attr_accessor :items
360
-
361
- # Unique identifier for the type of current object. For this API, it is
362
- # customsearch#search.
363
- # Corresponds to the JSON property `kind`
364
- # @return [String]
365
- attr_accessor :kind
366
-
367
- # The set of
368
- # [promotions](https://developers.google.com/custom-search/docs/promotions).
369
- # Present only if the custom search engine's configuration files define any
370
- # promotions for the given query.
371
- # Corresponds to the JSON property `promotions`
372
- # @return [Array<Google::Apis::CustomsearchV1::Promotion>]
373
- attr_accessor :promotions
374
-
375
- # Query metadata for the previous, current, and next pages of results.
376
- # Corresponds to the JSON property `queries`
377
- # @return [Google::Apis::CustomsearchV1::Search::Queries]
378
- attr_accessor :queries
379
-
380
- # Metadata about a search operation.
381
- # Corresponds to the JSON property `searchInformation`
382
- # @return [Google::Apis::CustomsearchV1::Search::SearchInformation]
383
- attr_accessor :search_information
384
-
385
- # Spell correction information for a query.
386
- # Corresponds to the JSON property `spelling`
387
- # @return [Google::Apis::CustomsearchV1::Search::Spelling]
388
- attr_accessor :spelling
389
-
390
- # OpenSearch template and URL.
391
- # Corresponds to the JSON property `url`
392
- # @return [Google::Apis::CustomsearchV1::Search::Url]
393
- attr_accessor :url
394
-
395
- def initialize(**args)
396
- update!(**args)
397
- end
398
-
399
- # Update properties of this object
400
- def update!(**args)
401
- @context = args[:context] if args.key?(:context)
402
- @items = args[:items] if args.key?(:items)
403
- @kind = args[:kind] if args.key?(:kind)
404
- @promotions = args[:promotions] if args.key?(:promotions)
405
- @queries = args[:queries] if args.key?(:queries)
406
- @search_information = args[:search_information] if args.key?(:search_information)
407
- @spelling = args[:spelling] if args.key?(:spelling)
408
- @url = args[:url] if args.key?(:url)
409
- end
410
-
411
- # Query metadata for the previous, current, and next pages of results.
412
- class Queries
413
- include Google::Apis::Core::Hashable
414
-
415
- # Metadata representing the next page of results, if applicable.
416
- # Corresponds to the JSON property `nextPage`
417
- # @return [Array<Google::Apis::CustomsearchV1::Search::Queries::NextPage>]
418
- attr_accessor :next_page
419
-
420
- # Metadata representing the previous page of results, if applicable.
421
- # Corresponds to the JSON property `previousPage`
422
- # @return [Array<Google::Apis::CustomsearchV1::Search::Queries::PreviousPage>]
423
- attr_accessor :previous_page
424
-
425
- # Metadata representing the current request.
426
- # Corresponds to the JSON property `request`
427
- # @return [Array<Google::Apis::CustomsearchV1::Search::Queries::Request>]
428
- attr_accessor :request
429
-
430
- def initialize(**args)
431
- update!(**args)
432
- end
433
-
434
- # Update properties of this object
435
- def update!(**args)
436
- @next_page = args[:next_page] if args.key?(:next_page)
437
- @previous_page = args[:previous_page] if args.key?(:previous_page)
438
- @request = args[:request] if args.key?(:request)
439
- end
440
-
441
- # Custom search request metadata.
442
- class NextPage
443
- include Google::Apis::Core::Hashable
444
-
445
- # Number of search results returned in this set.
446
- # Corresponds to the JSON property `count`
447
- # @return [Fixnum]
448
- attr_accessor :count
449
-
450
- # Restricts search results to documents originating in a particular
451
- # country. You may use [Boolean
452
- # operators](https://developers.google.com/custom-search/docs/xml_results#
453
- # booleanOperators)
454
- # in the `cr` parameter's value.
455
- # Google WebSearch determines the country of a document by analyzing the
456
- # following:
457
- # * The top-level domain (TLD) of the document's URL.
458
- # * The geographic location of the web server's IP address.
459
- # See [Country (cr) Parameter
460
- # Values](https://developers.google.com/custom-search/docs/xml_results#
461
- # countryCollections)
462
- # for a list of valid values for this parameter.
463
- # Corresponds to the JSON property `cr`
464
- # @return [String]
465
- attr_accessor :cr
466
-
467
- # The identifier of a custom search engine created using the Custom Search
468
- # [Control Panel](https://cse.google.com/). This is a custom property not
469
- # defined in the OpenSearch spec. This parameter is **required**.
470
- # Corresponds to the JSON property `cx`
471
- # @return [String]
472
- attr_accessor :cx
473
-
474
- # Restricts results to URLs based on date. Supported values include:
475
- # * `d[number]`: requests results from the specified number of past days.
476
- # * `w[number]`: requests results from the specified number of past weeks.
477
- # * `m[number]`: requests results from the specified number of past months.
478
- # * `y[number]`: requests results from the specified number of past years.
479
- # Corresponds to the JSON property `dateRestrict`
480
- # @return [String]
481
- attr_accessor :date_restrict
482
-
483
- # Enables or disables the [Simplified and Traditional Chinese
484
- # Search](https://developers.google.com/custom-search/docs/xml_results#
485
- # chineseSearch)
486
- # feature.
487
- # Supported values are:
488
- # * `0`: enabled (default)
489
- # * `1`: disabled
490
- # Corresponds to the JSON property `disableCnTwTranslation`
491
- # @return [String]
492
- attr_accessor :disable_cn_tw_translation
493
-
494
- # Identifies a phrase that all documents in the search results must
495
- # contain.
496
- # Corresponds to the JSON property `exactTerms`
497
- # @return [String]
498
- attr_accessor :exact_terms
499
-
500
- # Identifies a word or phrase that should not appear in any documents in
501
- # the search results.
502
- # Corresponds to the JSON property `excludeTerms`
503
- # @return [String]
504
- attr_accessor :exclude_terms
505
-
506
- # Restricts results to files of a specified extension. Filetypes supported
507
- # by Google include:
508
- # * Adobe Portable Document Format (`pdf`)
509
- # * Adobe PostScript (`ps`)
510
- # * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`)
511
- # * Lotus WordPro (`lwp`)
512
- # * Macwrite (`mw`)
513
- # * Microsoft Excel (`xls`)
514
- # * Microsoft PowerPoint (`ppt`)
515
- # * Microsoft Word (`doc`)
516
- # * Microsoft Works (`wks`, `wps`, `wdb`)
517
- # * Microsoft Write (`wri`)
518
- # * Rich Text Format (`rtf`)
519
- # * Shockwave Flash (`swf`)
520
- # * Text (`ans`, `txt`).
521
- # Additional filetypes may be added in the future. An up-to-date list can
522
- # always be found in Google's [file type
523
- # FAQ](https://support.google.com/webmasters/answer/35287).
524
- # Corresponds to the JSON property `fileType`
525
- # @return [String]
526
- attr_accessor :file_type
527
-
528
- # Activates or deactivates the automatic filtering of Google search
529
- # results. See [Automatic
530
- # Filtering](https://developers.google.com/custom-search/docs/xml_results#
531
- # automaticFiltering)
532
- # for more information about Google's search results filters. Valid values
533
- # for this parameter are:
534
- # * `0`: Disabled
535
- # * `1`: Enabled (default)
536
- # **Note**: By default, Google applies filtering to all search results to
537
- # improve the quality of those results.
538
- # Corresponds to the JSON property `filter`
539
- # @return [String]
540
- attr_accessor :filter
541
-
542
- # Boosts search results whose country of origin matches the parameter
543
- # value. See [Country
544
- # Codes](https://developers.google.com/custom-search/docs/xml_results#
545
- # countryCodes)
546
- # for a list of valid values.
547
- # Specifying a `gl` parameter value in WebSearch requests should improve
548
- # the relevance of results. This is particularly true for international
549
- # customers and, even more specifically, for customers in English-speaking
550
- # countries other than the United States.
551
- # Corresponds to the JSON property `gl`
552
- # @return [String]
553
- attr_accessor :gl
554
-
555
- # Specifies the Google domain (for example, google.com, google.de, or
556
- # google.fr) to which the search should be limited.
557
- # Corresponds to the JSON property `googleHost`
558
- # @return [String]
559
- attr_accessor :google_host
560
-
561
- # Specifies the ending value for a search range. Use `cse:lowRange` and
562
- # `cse:highrange` to append an inclusive search range of
563
- # `lowRange...highRange` to the query.
564
- # Corresponds to the JSON property `highRange`
565
- # @return [String]
566
- attr_accessor :high_range
567
-
568
- # Specifies the interface language (host language) of your user interface.
569
- # Explicitly setting this parameter improves the performance and the
570
- # quality of your search results.
571
- # See the [Interface
572
- # Languages](https://developers.google.com/custom-search/docs/xml_results#
573
- # wsInterfaceLanguages)
574
- # section of [Internationalizing Queries and Results
575
- # Presentation](https://developers.google.com/custom-search/docs/xml_results#
576
- # wsInternationalizing)
577
- # for more information, and [Supported Interface
578
- # Languages](https://developers.google.com/custom-search/docs/
579
- # xml_results_appendices#interfaceLanguages)
580
- # for a list of supported languages.
581
- # Corresponds to the JSON property `hl`
582
- # @return [String]
583
- attr_accessor :hl
584
-
585
- # Appends the specified query terms to the query, as if they were combined
586
- # with a logical `AND` operator.
587
- # Corresponds to the JSON property `hq`
588
- # @return [String]
589
- attr_accessor :hq
590
-
591
- # Restricts results to images of a specified color type. Supported values
592
- # are:
593
- # * `mono` (black and white)
594
- # * `gray` (grayscale)
595
- # * `color` (color)
596
- # Corresponds to the JSON property `imgColorType`
597
- # @return [String]
598
- attr_accessor :img_color_type
599
-
600
- # Restricts results to images with a specific dominant color. Supported
601
- # values are:
602
- # * `red`
603
- # * `orange`
604
- # * `yellow`
605
- # * `green`
606
- # * `teal`
607
- # * `blue`
608
- # * `purple`
609
- # * `pink`
610
- # * `white`
611
- # * `gray`
612
- # * `black`
613
- # * `brown`
614
- # Corresponds to the JSON property `imgDominantColor`
615
- # @return [String]
616
- attr_accessor :img_dominant_color
617
-
618
- # Restricts results to images of a specified size. Supported values are:
619
- # * `icon` (small)
620
- # * `small | medium | large | xlarge` (medium)
621
- # * `xxlarge` (large)
622
- # * `huge` (extra-large)
623
- # Corresponds to the JSON property `imgSize`
624
- # @return [String]
625
- attr_accessor :img_size
626
-
627
- # Restricts results to images of a specified type. Supported values are:
628
- # * `clipart` (Clip art)
629
- # * `face` (Face)
630
- # * `lineart` (Line drawing)
631
- # * `photo` (Photo)
632
- # * `animated` (Animated)
633
- # * `stock` (Stock)
634
- # Corresponds to the JSON property `imgType`
635
- # @return [String]
636
- attr_accessor :img_type
637
-
638
- # The character encoding supported for search requests.
639
- # Corresponds to the JSON property `inputEncoding`
640
- # @return [String]
641
- attr_accessor :input_encoding
642
-
643
- # The language of the search results.
644
- # Corresponds to the JSON property `language`
645
- # @return [String]
646
- attr_accessor :language
647
-
648
- # Specifies that all results should contain a link to a specific URL.
649
- # Corresponds to the JSON property `linkSite`
650
- # @return [String]
651
- attr_accessor :link_site
652
-
653
- # Specifies the starting value for a search range. Use `cse:lowRange` and
654
- # `cse:highrange` to append an inclusive search range of
655
- # `lowRange...highRange` to the query.
656
- # Corresponds to the JSON property `lowRange`
657
- # @return [String]
658
- attr_accessor :low_range
659
-
660
- # Provides additional search terms to check for in a document, where each
661
- # document in the search results must contain at least one of the
662
- # additional search terms. You can also use the [Boolean
663
- # OR](https://developers.google.com/custom-search/docs/xml_results#BooleanOrqt)
664
- # query term for this type of query.
665
- # Corresponds to the JSON property `orTerms`
666
- # @return [String]
667
- attr_accessor :or_terms
668
-
669
- # The character encoding supported for search results.
670
- # Corresponds to the JSON property `outputEncoding`
671
- # @return [String]
672
- attr_accessor :output_encoding
673
-
674
- # Specifies that all search results should be pages that are related to the
675
- # specified URL. The parameter value should be a URL.
676
- # Corresponds to the JSON property `relatedSite`
677
- # @return [String]
678
- attr_accessor :related_site
679
-
680
- # Filters based on licensing. Supported values include:
681
- # * `cc_publicdomain`
682
- # * `cc_attribute`
683
- # * `cc_sharealike`
684
- # * `cc_noncommercial`
685
- # * `cc_nonderived`
686
- # Corresponds to the JSON property `rights`
687
- # @return [String]
688
- attr_accessor :rights
689
-
690
- # Specifies the [SafeSearch
691
- # level](https://developers.google.com/custom-search/docs/xml_results#
692
- # safeSearchLevels)
693
- # used for filtering out adult results. This is a custom property not
694
- # defined in the OpenSearch spec. Valid parameter values are:
695
- # * `"off"`: Disable SafeSearch
696
- # * `"active"`: Enable SafeSearch
697
- # Corresponds to the JSON property `safe`
698
- # @return [String]
699
- attr_accessor :safe
700
-
701
- # The search terms entered by the user.
702
- # Corresponds to the JSON property `searchTerms`
703
- # @return [String]
704
- attr_accessor :search_terms
705
-
706
- # Allowed values are `web` or `image`. If unspecified, results are limited
707
- # to webpages.
708
- # Corresponds to the JSON property `searchType`
709
- # @return [String]
710
- attr_accessor :search_type
711
-
712
- # Restricts results to URLs from a specified site.
713
- # Corresponds to the JSON property `siteSearch`
714
- # @return [String]
715
- attr_accessor :site_search
716
-
717
- # Specifies whether to include or exclude results from the site named in
718
- # the `sitesearch` parameter. Supported values are:
719
- # * `i`: include content from site
720
- # * `e`: exclude content from site
721
- # Corresponds to the JSON property `siteSearchFilter`
722
- # @return [String]
723
- attr_accessor :site_search_filter
724
-
725
- # Specifies that results should be sorted according to the specified
726
- # expression. For example, sort by date.
727
- # Corresponds to the JSON property `sort`
728
- # @return [String]
729
- attr_accessor :sort
730
-
731
- # The index of the current set of search results into the total set of
732
- # results, where the index of the first result is 1.
733
- # Corresponds to the JSON property `startIndex`
734
- # @return [Fixnum]
735
- attr_accessor :start_index
736
-
737
- # The page number of this set of results, where the page length is set by
738
- # the `count` property.
739
- # Corresponds to the JSON property `startPage`
740
- # @return [Fixnum]
741
- attr_accessor :start_page
742
-
743
- # A description of the query.
744
- # Corresponds to the JSON property `title`
745
- # @return [String]
746
- attr_accessor :title
747
-
748
- # Estimated number of total search results. May not be accurate.
749
- # Corresponds to the JSON property `totalResults`
750
- # @return [Fixnum]
751
- attr_accessor :total_results
752
-
753
- def initialize(**args)
754
- update!(**args)
755
- end
756
-
757
- # Update properties of this object
758
- def update!(**args)
759
- @count = args[:count] if args.key?(:count)
760
- @cr = args[:cr] if args.key?(:cr)
761
- @cx = args[:cx] if args.key?(:cx)
762
- @date_restrict = args[:date_restrict] if args.key?(:date_restrict)
763
- @disable_cn_tw_translation = args[:disable_cn_tw_translation] if args.key?(:disable_cn_tw_translation)
764
- @exact_terms = args[:exact_terms] if args.key?(:exact_terms)
765
- @exclude_terms = args[:exclude_terms] if args.key?(:exclude_terms)
766
- @file_type = args[:file_type] if args.key?(:file_type)
767
- @filter = args[:filter] if args.key?(:filter)
768
- @gl = args[:gl] if args.key?(:gl)
769
- @google_host = args[:google_host] if args.key?(:google_host)
770
- @high_range = args[:high_range] if args.key?(:high_range)
771
- @hl = args[:hl] if args.key?(:hl)
772
- @hq = args[:hq] if args.key?(:hq)
773
- @img_color_type = args[:img_color_type] if args.key?(:img_color_type)
774
- @img_dominant_color = args[:img_dominant_color] if args.key?(:img_dominant_color)
775
- @img_size = args[:img_size] if args.key?(:img_size)
776
- @img_type = args[:img_type] if args.key?(:img_type)
777
- @input_encoding = args[:input_encoding] if args.key?(:input_encoding)
778
- @language = args[:language] if args.key?(:language)
779
- @link_site = args[:link_site] if args.key?(:link_site)
780
- @low_range = args[:low_range] if args.key?(:low_range)
781
- @or_terms = args[:or_terms] if args.key?(:or_terms)
782
- @output_encoding = args[:output_encoding] if args.key?(:output_encoding)
783
- @related_site = args[:related_site] if args.key?(:related_site)
784
- @rights = args[:rights] if args.key?(:rights)
785
- @safe = args[:safe] if args.key?(:safe)
786
- @search_terms = args[:search_terms] if args.key?(:search_terms)
787
- @search_type = args[:search_type] if args.key?(:search_type)
788
- @site_search = args[:site_search] if args.key?(:site_search)
789
- @site_search_filter = args[:site_search_filter] if args.key?(:site_search_filter)
790
- @sort = args[:sort] if args.key?(:sort)
791
- @start_index = args[:start_index] if args.key?(:start_index)
792
- @start_page = args[:start_page] if args.key?(:start_page)
793
- @title = args[:title] if args.key?(:title)
794
- @total_results = args[:total_results] if args.key?(:total_results)
795
- end
796
- end
797
-
798
- # Custom search request metadata.
799
- class PreviousPage
800
- include Google::Apis::Core::Hashable
801
-
802
- # Number of search results returned in this set.
803
- # Corresponds to the JSON property `count`
804
- # @return [Fixnum]
805
- attr_accessor :count
806
-
807
- # Restricts search results to documents originating in a particular
808
- # country. You may use [Boolean
809
- # operators](https://developers.google.com/custom-search/docs/xml_results#
810
- # booleanOperators)
811
- # in the `cr` parameter's value.
812
- # Google WebSearch determines the country of a document by analyzing the
813
- # following:
814
- # * The top-level domain (TLD) of the document's URL.
815
- # * The geographic location of the web server's IP address.
816
- # See [Country (cr) Parameter
817
- # Values](https://developers.google.com/custom-search/docs/xml_results#
818
- # countryCollections)
819
- # for a list of valid values for this parameter.
820
- # Corresponds to the JSON property `cr`
821
- # @return [String]
822
- attr_accessor :cr
823
-
824
- # The identifier of a custom search engine created using the Custom Search
825
- # [Control Panel](https://cse.google.com/). This is a custom property not
826
- # defined in the OpenSearch spec. This parameter is **required**.
827
- # Corresponds to the JSON property `cx`
828
- # @return [String]
829
- attr_accessor :cx
830
-
831
- # Restricts results to URLs based on date. Supported values include:
832
- # * `d[number]`: requests results from the specified number of past days.
833
- # * `w[number]`: requests results from the specified number of past weeks.
834
- # * `m[number]`: requests results from the specified number of past months.
835
- # * `y[number]`: requests results from the specified number of past years.
836
- # Corresponds to the JSON property `dateRestrict`
837
- # @return [String]
838
- attr_accessor :date_restrict
839
-
840
- # Enables or disables the [Simplified and Traditional Chinese
841
- # Search](https://developers.google.com/custom-search/docs/xml_results#
842
- # chineseSearch)
843
- # feature.
844
- # Supported values are:
845
- # * `0`: enabled (default)
846
- # * `1`: disabled
847
- # Corresponds to the JSON property `disableCnTwTranslation`
848
- # @return [String]
849
- attr_accessor :disable_cn_tw_translation
850
-
851
- # Identifies a phrase that all documents in the search results must
852
- # contain.
853
- # Corresponds to the JSON property `exactTerms`
854
- # @return [String]
855
- attr_accessor :exact_terms
856
-
857
- # Identifies a word or phrase that should not appear in any documents in
858
- # the search results.
859
- # Corresponds to the JSON property `excludeTerms`
860
- # @return [String]
861
- attr_accessor :exclude_terms
862
-
863
- # Restricts results to files of a specified extension. Filetypes supported
864
- # by Google include:
865
- # * Adobe Portable Document Format (`pdf`)
866
- # * Adobe PostScript (`ps`)
867
- # * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`)
868
- # * Lotus WordPro (`lwp`)
869
- # * Macwrite (`mw`)
870
- # * Microsoft Excel (`xls`)
871
- # * Microsoft PowerPoint (`ppt`)
872
- # * Microsoft Word (`doc`)
873
- # * Microsoft Works (`wks`, `wps`, `wdb`)
874
- # * Microsoft Write (`wri`)
875
- # * Rich Text Format (`rtf`)
876
- # * Shockwave Flash (`swf`)
877
- # * Text (`ans`, `txt`).
878
- # Additional filetypes may be added in the future. An up-to-date list can
879
- # always be found in Google's [file type
880
- # FAQ](https://support.google.com/webmasters/answer/35287).
881
- # Corresponds to the JSON property `fileType`
882
- # @return [String]
883
- attr_accessor :file_type
884
-
885
- # Activates or deactivates the automatic filtering of Google search
886
- # results. See [Automatic
887
- # Filtering](https://developers.google.com/custom-search/docs/xml_results#
888
- # automaticFiltering)
889
- # for more information about Google's search results filters. Valid values
890
- # for this parameter are:
891
- # * `0`: Disabled
892
- # * `1`: Enabled (default)
893
- # **Note**: By default, Google applies filtering to all search results to
894
- # improve the quality of those results.
895
- # Corresponds to the JSON property `filter`
896
- # @return [String]
897
- attr_accessor :filter
898
-
899
- # Boosts search results whose country of origin matches the parameter
900
- # value. See [Country
901
- # Codes](https://developers.google.com/custom-search/docs/xml_results#
902
- # countryCodes)
903
- # for a list of valid values.
904
- # Specifying a `gl` parameter value in WebSearch requests should improve
905
- # the relevance of results. This is particularly true for international
906
- # customers and, even more specifically, for customers in English-speaking
907
- # countries other than the United States.
908
- # Corresponds to the JSON property `gl`
909
- # @return [String]
910
- attr_accessor :gl
911
-
912
- # Specifies the Google domain (for example, google.com, google.de, or
913
- # google.fr) to which the search should be limited.
914
- # Corresponds to the JSON property `googleHost`
915
- # @return [String]
916
- attr_accessor :google_host
917
-
918
- # Specifies the ending value for a search range. Use `cse:lowRange` and
919
- # `cse:highrange` to append an inclusive search range of
920
- # `lowRange...highRange` to the query.
921
- # Corresponds to the JSON property `highRange`
922
- # @return [String]
923
- attr_accessor :high_range
924
-
925
- # Specifies the interface language (host language) of your user interface.
926
- # Explicitly setting this parameter improves the performance and the
927
- # quality of your search results.
928
- # See the [Interface
929
- # Languages](https://developers.google.com/custom-search/docs/xml_results#
930
- # wsInterfaceLanguages)
931
- # section of [Internationalizing Queries and Results
932
- # Presentation](https://developers.google.com/custom-search/docs/xml_results#
933
- # wsInternationalizing)
934
- # for more information, and [Supported Interface
935
- # Languages](https://developers.google.com/custom-search/docs/
936
- # xml_results_appendices#interfaceLanguages)
937
- # for a list of supported languages.
938
- # Corresponds to the JSON property `hl`
939
- # @return [String]
940
- attr_accessor :hl
941
-
942
- # Appends the specified query terms to the query, as if they were combined
943
- # with a logical `AND` operator.
944
- # Corresponds to the JSON property `hq`
945
- # @return [String]
946
- attr_accessor :hq
947
-
948
- # Restricts results to images of a specified color type. Supported values
949
- # are:
950
- # * `mono` (black and white)
951
- # * `gray` (grayscale)
952
- # * `color` (color)
953
- # Corresponds to the JSON property `imgColorType`
954
- # @return [String]
955
- attr_accessor :img_color_type
956
-
957
- # Restricts results to images with a specific dominant color. Supported
958
- # values are:
959
- # * `red`
960
- # * `orange`
961
- # * `yellow`
962
- # * `green`
963
- # * `teal`
964
- # * `blue`
965
- # * `purple`
966
- # * `pink`
967
- # * `white`
968
- # * `gray`
969
- # * `black`
970
- # * `brown`
971
- # Corresponds to the JSON property `imgDominantColor`
972
- # @return [String]
973
- attr_accessor :img_dominant_color
974
-
975
- # Restricts results to images of a specified size. Supported values are:
976
- # * `icon` (small)
977
- # * `small | medium | large | xlarge` (medium)
978
- # * `xxlarge` (large)
979
- # * `huge` (extra-large)
980
- # Corresponds to the JSON property `imgSize`
981
- # @return [String]
982
- attr_accessor :img_size
983
-
984
- # Restricts results to images of a specified type. Supported values are:
985
- # * `clipart` (Clip art)
986
- # * `face` (Face)
987
- # * `lineart` (Line drawing)
988
- # * `photo` (Photo)
989
- # * `animated` (Animated)
990
- # * `stock` (Stock)
991
- # Corresponds to the JSON property `imgType`
992
- # @return [String]
993
- attr_accessor :img_type
994
-
995
- # The character encoding supported for search requests.
996
- # Corresponds to the JSON property `inputEncoding`
997
- # @return [String]
998
- attr_accessor :input_encoding
999
-
1000
- # The language of the search results.
1001
- # Corresponds to the JSON property `language`
1002
- # @return [String]
1003
- attr_accessor :language
1004
-
1005
- # Specifies that all results should contain a link to a specific URL.
1006
- # Corresponds to the JSON property `linkSite`
1007
- # @return [String]
1008
- attr_accessor :link_site
1009
-
1010
- # Specifies the starting value for a search range. Use `cse:lowRange` and
1011
- # `cse:highrange` to append an inclusive search range of
1012
- # `lowRange...highRange` to the query.
1013
- # Corresponds to the JSON property `lowRange`
1014
- # @return [String]
1015
- attr_accessor :low_range
1016
-
1017
- # Provides additional search terms to check for in a document, where each
1018
- # document in the search results must contain at least one of the
1019
- # additional search terms. You can also use the [Boolean
1020
- # OR](https://developers.google.com/custom-search/docs/xml_results#BooleanOrqt)
1021
- # query term for this type of query.
1022
- # Corresponds to the JSON property `orTerms`
1023
- # @return [String]
1024
- attr_accessor :or_terms
1025
-
1026
- # The character encoding supported for search results.
1027
- # Corresponds to the JSON property `outputEncoding`
1028
- # @return [String]
1029
- attr_accessor :output_encoding
1030
-
1031
- # Specifies that all search results should be pages that are related to the
1032
- # specified URL. The parameter value should be a URL.
1033
- # Corresponds to the JSON property `relatedSite`
1034
- # @return [String]
1035
- attr_accessor :related_site
1036
-
1037
- # Filters based on licensing. Supported values include:
1038
- # * `cc_publicdomain`
1039
- # * `cc_attribute`
1040
- # * `cc_sharealike`
1041
- # * `cc_noncommercial`
1042
- # * `cc_nonderived`
1043
- # Corresponds to the JSON property `rights`
1044
- # @return [String]
1045
- attr_accessor :rights
1046
-
1047
- # Specifies the [SafeSearch
1048
- # level](https://developers.google.com/custom-search/docs/xml_results#
1049
- # safeSearchLevels)
1050
- # used for filtering out adult results. This is a custom property not
1051
- # defined in the OpenSearch spec. Valid parameter values are:
1052
- # * `"off"`: Disable SafeSearch
1053
- # * `"active"`: Enable SafeSearch
1054
- # Corresponds to the JSON property `safe`
1055
- # @return [String]
1056
- attr_accessor :safe
1057
-
1058
- # The search terms entered by the user.
1059
- # Corresponds to the JSON property `searchTerms`
1060
- # @return [String]
1061
- attr_accessor :search_terms
1062
-
1063
- # Allowed values are `web` or `image`. If unspecified, results are limited
1064
- # to webpages.
1065
- # Corresponds to the JSON property `searchType`
1066
- # @return [String]
1067
- attr_accessor :search_type
1068
-
1069
- # Restricts results to URLs from a specified site.
1070
- # Corresponds to the JSON property `siteSearch`
1071
- # @return [String]
1072
- attr_accessor :site_search
1073
-
1074
- # Specifies whether to include or exclude results from the site named in
1075
- # the `sitesearch` parameter. Supported values are:
1076
- # * `i`: include content from site
1077
- # * `e`: exclude content from site
1078
- # Corresponds to the JSON property `siteSearchFilter`
1079
- # @return [String]
1080
- attr_accessor :site_search_filter
1081
-
1082
- # Specifies that results should be sorted according to the specified
1083
- # expression. For example, sort by date.
1084
- # Corresponds to the JSON property `sort`
1085
- # @return [String]
1086
- attr_accessor :sort
1087
-
1088
- # The index of the current set of search results into the total set of
1089
- # results, where the index of the first result is 1.
1090
- # Corresponds to the JSON property `startIndex`
1091
- # @return [Fixnum]
1092
- attr_accessor :start_index
1093
-
1094
- # The page number of this set of results, where the page length is set by
1095
- # the `count` property.
1096
- # Corresponds to the JSON property `startPage`
1097
- # @return [Fixnum]
1098
- attr_accessor :start_page
1099
-
1100
- # A description of the query.
1101
- # Corresponds to the JSON property `title`
1102
- # @return [String]
1103
- attr_accessor :title
1104
-
1105
- # Estimated number of total search results. May not be accurate.
1106
- # Corresponds to the JSON property `totalResults`
1107
- # @return [Fixnum]
1108
- attr_accessor :total_results
1109
-
1110
- def initialize(**args)
1111
- update!(**args)
1112
- end
1113
-
1114
- # Update properties of this object
1115
- def update!(**args)
1116
- @count = args[:count] if args.key?(:count)
1117
- @cr = args[:cr] if args.key?(:cr)
1118
- @cx = args[:cx] if args.key?(:cx)
1119
- @date_restrict = args[:date_restrict] if args.key?(:date_restrict)
1120
- @disable_cn_tw_translation = args[:disable_cn_tw_translation] if args.key?(:disable_cn_tw_translation)
1121
- @exact_terms = args[:exact_terms] if args.key?(:exact_terms)
1122
- @exclude_terms = args[:exclude_terms] if args.key?(:exclude_terms)
1123
- @file_type = args[:file_type] if args.key?(:file_type)
1124
- @filter = args[:filter] if args.key?(:filter)
1125
- @gl = args[:gl] if args.key?(:gl)
1126
- @google_host = args[:google_host] if args.key?(:google_host)
1127
- @high_range = args[:high_range] if args.key?(:high_range)
1128
- @hl = args[:hl] if args.key?(:hl)
1129
- @hq = args[:hq] if args.key?(:hq)
1130
- @img_color_type = args[:img_color_type] if args.key?(:img_color_type)
1131
- @img_dominant_color = args[:img_dominant_color] if args.key?(:img_dominant_color)
1132
- @img_size = args[:img_size] if args.key?(:img_size)
1133
- @img_type = args[:img_type] if args.key?(:img_type)
1134
- @input_encoding = args[:input_encoding] if args.key?(:input_encoding)
1135
- @language = args[:language] if args.key?(:language)
1136
- @link_site = args[:link_site] if args.key?(:link_site)
1137
- @low_range = args[:low_range] if args.key?(:low_range)
1138
- @or_terms = args[:or_terms] if args.key?(:or_terms)
1139
- @output_encoding = args[:output_encoding] if args.key?(:output_encoding)
1140
- @related_site = args[:related_site] if args.key?(:related_site)
1141
- @rights = args[:rights] if args.key?(:rights)
1142
- @safe = args[:safe] if args.key?(:safe)
1143
- @search_terms = args[:search_terms] if args.key?(:search_terms)
1144
- @search_type = args[:search_type] if args.key?(:search_type)
1145
- @site_search = args[:site_search] if args.key?(:site_search)
1146
- @site_search_filter = args[:site_search_filter] if args.key?(:site_search_filter)
1147
- @sort = args[:sort] if args.key?(:sort)
1148
- @start_index = args[:start_index] if args.key?(:start_index)
1149
- @start_page = args[:start_page] if args.key?(:start_page)
1150
- @title = args[:title] if args.key?(:title)
1151
- @total_results = args[:total_results] if args.key?(:total_results)
1152
- end
1153
- end
1154
-
1155
- # Custom search request metadata.
1156
- class Request
1157
- include Google::Apis::Core::Hashable
1158
-
1159
- # Number of search results returned in this set.
1160
- # Corresponds to the JSON property `count`
1161
- # @return [Fixnum]
1162
- attr_accessor :count
1163
-
1164
- # Restricts search results to documents originating in a particular
1165
- # country. You may use [Boolean
1166
- # operators](https://developers.google.com/custom-search/docs/xml_results#
1167
- # booleanOperators)
1168
- # in the `cr` parameter's value.
1169
- # Google WebSearch determines the country of a document by analyzing the
1170
- # following:
1171
- # * The top-level domain (TLD) of the document's URL.
1172
- # * The geographic location of the web server's IP address.
1173
- # See [Country (cr) Parameter
1174
- # Values](https://developers.google.com/custom-search/docs/xml_results#
1175
- # countryCollections)
1176
- # for a list of valid values for this parameter.
1177
- # Corresponds to the JSON property `cr`
1178
- # @return [String]
1179
- attr_accessor :cr
1180
-
1181
- # The identifier of a custom search engine created using the Custom Search
1182
- # [Control Panel](https://cse.google.com/). This is a custom property not
1183
- # defined in the OpenSearch spec. This parameter is **required**.
1184
- # Corresponds to the JSON property `cx`
1185
- # @return [String]
1186
- attr_accessor :cx
1187
-
1188
- # Restricts results to URLs based on date. Supported values include:
1189
- # * `d[number]`: requests results from the specified number of past days.
1190
- # * `w[number]`: requests results from the specified number of past weeks.
1191
- # * `m[number]`: requests results from the specified number of past months.
1192
- # * `y[number]`: requests results from the specified number of past years.
1193
- # Corresponds to the JSON property `dateRestrict`
1194
- # @return [String]
1195
- attr_accessor :date_restrict
1196
-
1197
- # Enables or disables the [Simplified and Traditional Chinese
1198
- # Search](https://developers.google.com/custom-search/docs/xml_results#
1199
- # chineseSearch)
1200
- # feature.
1201
- # Supported values are:
1202
- # * `0`: enabled (default)
1203
- # * `1`: disabled
1204
- # Corresponds to the JSON property `disableCnTwTranslation`
1205
- # @return [String]
1206
- attr_accessor :disable_cn_tw_translation
1207
-
1208
- # Identifies a phrase that all documents in the search results must
1209
- # contain.
1210
- # Corresponds to the JSON property `exactTerms`
1211
- # @return [String]
1212
- attr_accessor :exact_terms
1213
-
1214
- # Identifies a word or phrase that should not appear in any documents in
1215
- # the search results.
1216
- # Corresponds to the JSON property `excludeTerms`
1217
- # @return [String]
1218
- attr_accessor :exclude_terms
1219
-
1220
- # Restricts results to files of a specified extension. Filetypes supported
1221
- # by Google include:
1222
- # * Adobe Portable Document Format (`pdf`)
1223
- # * Adobe PostScript (`ps`)
1224
- # * Lotus 1-2-3 (`wk1`, `wk2`, `wk3`, `wk4`, `wk5`, `wki`, `wks`, `wku`)
1225
- # * Lotus WordPro (`lwp`)
1226
- # * Macwrite (`mw`)
1227
- # * Microsoft Excel (`xls`)
1228
- # * Microsoft PowerPoint (`ppt`)
1229
- # * Microsoft Word (`doc`)
1230
- # * Microsoft Works (`wks`, `wps`, `wdb`)
1231
- # * Microsoft Write (`wri`)
1232
- # * Rich Text Format (`rtf`)
1233
- # * Shockwave Flash (`swf`)
1234
- # * Text (`ans`, `txt`).
1235
- # Additional filetypes may be added in the future. An up-to-date list can
1236
- # always be found in Google's [file type
1237
- # FAQ](https://support.google.com/webmasters/answer/35287).
1238
- # Corresponds to the JSON property `fileType`
1239
- # @return [String]
1240
- attr_accessor :file_type
1241
-
1242
- # Activates or deactivates the automatic filtering of Google search
1243
- # results. See [Automatic
1244
- # Filtering](https://developers.google.com/custom-search/docs/xml_results#
1245
- # automaticFiltering)
1246
- # for more information about Google's search results filters. Valid values
1247
- # for this parameter are:
1248
- # * `0`: Disabled
1249
- # * `1`: Enabled (default)
1250
- # **Note**: By default, Google applies filtering to all search results to
1251
- # improve the quality of those results.
1252
- # Corresponds to the JSON property `filter`
1253
- # @return [String]
1254
- attr_accessor :filter
1255
-
1256
- # Boosts search results whose country of origin matches the parameter
1257
- # value. See [Country
1258
- # Codes](https://developers.google.com/custom-search/docs/xml_results#
1259
- # countryCodes)
1260
- # for a list of valid values.
1261
- # Specifying a `gl` parameter value in WebSearch requests should improve
1262
- # the relevance of results. This is particularly true for international
1263
- # customers and, even more specifically, for customers in English-speaking
1264
- # countries other than the United States.
1265
- # Corresponds to the JSON property `gl`
1266
- # @return [String]
1267
- attr_accessor :gl
1268
-
1269
- # Specifies the Google domain (for example, google.com, google.de, or
1270
- # google.fr) to which the search should be limited.
1271
- # Corresponds to the JSON property `googleHost`
1272
- # @return [String]
1273
- attr_accessor :google_host
1274
-
1275
- # Specifies the ending value for a search range. Use `cse:lowRange` and
1276
- # `cse:highrange` to append an inclusive search range of
1277
- # `lowRange...highRange` to the query.
1278
- # Corresponds to the JSON property `highRange`
1279
- # @return [String]
1280
- attr_accessor :high_range
1281
-
1282
- # Specifies the interface language (host language) of your user interface.
1283
- # Explicitly setting this parameter improves the performance and the
1284
- # quality of your search results.
1285
- # See the [Interface
1286
- # Languages](https://developers.google.com/custom-search/docs/xml_results#
1287
- # wsInterfaceLanguages)
1288
- # section of [Internationalizing Queries and Results
1289
- # Presentation](https://developers.google.com/custom-search/docs/xml_results#
1290
- # wsInternationalizing)
1291
- # for more information, and [Supported Interface
1292
- # Languages](https://developers.google.com/custom-search/docs/
1293
- # xml_results_appendices#interfaceLanguages)
1294
- # for a list of supported languages.
1295
- # Corresponds to the JSON property `hl`
1296
- # @return [String]
1297
- attr_accessor :hl
1298
-
1299
- # Appends the specified query terms to the query, as if they were combined
1300
- # with a logical `AND` operator.
1301
- # Corresponds to the JSON property `hq`
1302
- # @return [String]
1303
- attr_accessor :hq
1304
-
1305
- # Restricts results to images of a specified color type. Supported values
1306
- # are:
1307
- # * `mono` (black and white)
1308
- # * `gray` (grayscale)
1309
- # * `color` (color)
1310
- # Corresponds to the JSON property `imgColorType`
1311
- # @return [String]
1312
- attr_accessor :img_color_type
1313
-
1314
- # Restricts results to images with a specific dominant color. Supported
1315
- # values are:
1316
- # * `red`
1317
- # * `orange`
1318
- # * `yellow`
1319
- # * `green`
1320
- # * `teal`
1321
- # * `blue`
1322
- # * `purple`
1323
- # * `pink`
1324
- # * `white`
1325
- # * `gray`
1326
- # * `black`
1327
- # * `brown`
1328
- # Corresponds to the JSON property `imgDominantColor`
1329
- # @return [String]
1330
- attr_accessor :img_dominant_color
1331
-
1332
- # Restricts results to images of a specified size. Supported values are:
1333
- # * `icon` (small)
1334
- # * `small | medium | large | xlarge` (medium)
1335
- # * `xxlarge` (large)
1336
- # * `huge` (extra-large)
1337
- # Corresponds to the JSON property `imgSize`
1338
- # @return [String]
1339
- attr_accessor :img_size
1340
-
1341
- # Restricts results to images of a specified type. Supported values are:
1342
- # * `clipart` (Clip art)
1343
- # * `face` (Face)
1344
- # * `lineart` (Line drawing)
1345
- # * `photo` (Photo)
1346
- # * `animated` (Animated)
1347
- # * `stock` (Stock)
1348
- # Corresponds to the JSON property `imgType`
1349
- # @return [String]
1350
- attr_accessor :img_type
1351
-
1352
- # The character encoding supported for search requests.
1353
- # Corresponds to the JSON property `inputEncoding`
1354
- # @return [String]
1355
- attr_accessor :input_encoding
1356
-
1357
- # The language of the search results.
1358
- # Corresponds to the JSON property `language`
1359
- # @return [String]
1360
- attr_accessor :language
1361
-
1362
- # Specifies that all results should contain a link to a specific URL.
1363
- # Corresponds to the JSON property `linkSite`
1364
- # @return [String]
1365
- attr_accessor :link_site
1366
-
1367
- # Specifies the starting value for a search range. Use `cse:lowRange` and
1368
- # `cse:highrange` to append an inclusive search range of
1369
- # `lowRange...highRange` to the query.
1370
- # Corresponds to the JSON property `lowRange`
1371
- # @return [String]
1372
- attr_accessor :low_range
1373
-
1374
- # Provides additional search terms to check for in a document, where each
1375
- # document in the search results must contain at least one of the
1376
- # additional search terms. You can also use the [Boolean
1377
- # OR](https://developers.google.com/custom-search/docs/xml_results#BooleanOrqt)
1378
- # query term for this type of query.
1379
- # Corresponds to the JSON property `orTerms`
1380
- # @return [String]
1381
- attr_accessor :or_terms
1382
-
1383
- # The character encoding supported for search results.
1384
- # Corresponds to the JSON property `outputEncoding`
1385
- # @return [String]
1386
- attr_accessor :output_encoding
1387
-
1388
- # Specifies that all search results should be pages that are related to the
1389
- # specified URL. The parameter value should be a URL.
1390
- # Corresponds to the JSON property `relatedSite`
1391
- # @return [String]
1392
- attr_accessor :related_site
1393
-
1394
- # Filters based on licensing. Supported values include:
1395
- # * `cc_publicdomain`
1396
- # * `cc_attribute`
1397
- # * `cc_sharealike`
1398
- # * `cc_noncommercial`
1399
- # * `cc_nonderived`
1400
- # Corresponds to the JSON property `rights`
1401
- # @return [String]
1402
- attr_accessor :rights
1403
-
1404
- # Specifies the [SafeSearch
1405
- # level](https://developers.google.com/custom-search/docs/xml_results#
1406
- # safeSearchLevels)
1407
- # used for filtering out adult results. This is a custom property not
1408
- # defined in the OpenSearch spec. Valid parameter values are:
1409
- # * `"off"`: Disable SafeSearch
1410
- # * `"active"`: Enable SafeSearch
1411
- # Corresponds to the JSON property `safe`
1412
- # @return [String]
1413
- attr_accessor :safe
1414
-
1415
- # The search terms entered by the user.
1416
- # Corresponds to the JSON property `searchTerms`
1417
- # @return [String]
1418
- attr_accessor :search_terms
1419
-
1420
- # Allowed values are `web` or `image`. If unspecified, results are limited
1421
- # to webpages.
1422
- # Corresponds to the JSON property `searchType`
1423
- # @return [String]
1424
- attr_accessor :search_type
1425
-
1426
- # Restricts results to URLs from a specified site.
1427
- # Corresponds to the JSON property `siteSearch`
1428
- # @return [String]
1429
- attr_accessor :site_search
1430
-
1431
- # Specifies whether to include or exclude results from the site named in
1432
- # the `sitesearch` parameter. Supported values are:
1433
- # * `i`: include content from site
1434
- # * `e`: exclude content from site
1435
- # Corresponds to the JSON property `siteSearchFilter`
1436
- # @return [String]
1437
- attr_accessor :site_search_filter
1438
-
1439
- # Specifies that results should be sorted according to the specified
1440
- # expression. For example, sort by date.
1441
- # Corresponds to the JSON property `sort`
1442
- # @return [String]
1443
- attr_accessor :sort
1444
-
1445
- # The index of the current set of search results into the total set of
1446
- # results, where the index of the first result is 1.
1447
- # Corresponds to the JSON property `startIndex`
1448
- # @return [Fixnum]
1449
- attr_accessor :start_index
1450
-
1451
- # The page number of this set of results, where the page length is set by
1452
- # the `count` property.
1453
- # Corresponds to the JSON property `startPage`
1454
- # @return [Fixnum]
1455
- attr_accessor :start_page
1456
-
1457
- # A description of the query.
1458
- # Corresponds to the JSON property `title`
1459
- # @return [String]
1460
- attr_accessor :title
1461
-
1462
- # Estimated number of total search results. May not be accurate.
1463
- # Corresponds to the JSON property `totalResults`
1464
- # @return [Fixnum]
1465
- attr_accessor :total_results
1466
-
1467
- def initialize(**args)
1468
- update!(**args)
1469
- end
1470
-
1471
- # Update properties of this object
1472
- def update!(**args)
1473
- @count = args[:count] if args.key?(:count)
1474
- @cr = args[:cr] if args.key?(:cr)
1475
- @cx = args[:cx] if args.key?(:cx)
1476
- @date_restrict = args[:date_restrict] if args.key?(:date_restrict)
1477
- @disable_cn_tw_translation = args[:disable_cn_tw_translation] if args.key?(:disable_cn_tw_translation)
1478
- @exact_terms = args[:exact_terms] if args.key?(:exact_terms)
1479
- @exclude_terms = args[:exclude_terms] if args.key?(:exclude_terms)
1480
- @file_type = args[:file_type] if args.key?(:file_type)
1481
- @filter = args[:filter] if args.key?(:filter)
1482
- @gl = args[:gl] if args.key?(:gl)
1483
- @google_host = args[:google_host] if args.key?(:google_host)
1484
- @high_range = args[:high_range] if args.key?(:high_range)
1485
- @hl = args[:hl] if args.key?(:hl)
1486
- @hq = args[:hq] if args.key?(:hq)
1487
- @img_color_type = args[:img_color_type] if args.key?(:img_color_type)
1488
- @img_dominant_color = args[:img_dominant_color] if args.key?(:img_dominant_color)
1489
- @img_size = args[:img_size] if args.key?(:img_size)
1490
- @img_type = args[:img_type] if args.key?(:img_type)
1491
- @input_encoding = args[:input_encoding] if args.key?(:input_encoding)
1492
- @language = args[:language] if args.key?(:language)
1493
- @link_site = args[:link_site] if args.key?(:link_site)
1494
- @low_range = args[:low_range] if args.key?(:low_range)
1495
- @or_terms = args[:or_terms] if args.key?(:or_terms)
1496
- @output_encoding = args[:output_encoding] if args.key?(:output_encoding)
1497
- @related_site = args[:related_site] if args.key?(:related_site)
1498
- @rights = args[:rights] if args.key?(:rights)
1499
- @safe = args[:safe] if args.key?(:safe)
1500
- @search_terms = args[:search_terms] if args.key?(:search_terms)
1501
- @search_type = args[:search_type] if args.key?(:search_type)
1502
- @site_search = args[:site_search] if args.key?(:site_search)
1503
- @site_search_filter = args[:site_search_filter] if args.key?(:site_search_filter)
1504
- @sort = args[:sort] if args.key?(:sort)
1505
- @start_index = args[:start_index] if args.key?(:start_index)
1506
- @start_page = args[:start_page] if args.key?(:start_page)
1507
- @title = args[:title] if args.key?(:title)
1508
- @total_results = args[:total_results] if args.key?(:total_results)
1509
- end
1510
- end
1511
- end
1512
-
1513
- # Metadata about a search operation.
1514
- class SearchInformation
1515
- include Google::Apis::Core::Hashable
1516
-
1517
- # The time taken for the server to return search results, formatted
1518
- # according to locale style.
1519
- # Corresponds to the JSON property `formattedSearchTime`
1520
- # @return [String]
1521
- attr_accessor :formatted_search_time
1522
-
1523
- # The total number of search results, formatted according to locale style.
1524
- # Corresponds to the JSON property `formattedTotalResults`
1525
- # @return [String]
1526
- attr_accessor :formatted_total_results
1527
-
1528
- # The time taken for the server to return search results.
1529
- # Corresponds to the JSON property `searchTime`
1530
- # @return [Float]
1531
- attr_accessor :search_time
1532
-
1533
- # The total number of search results returned by the query.
1534
- # Corresponds to the JSON property `totalResults`
1535
- # @return [String]
1536
- attr_accessor :total_results
1537
-
1538
- def initialize(**args)
1539
- update!(**args)
1540
- end
1541
-
1542
- # Update properties of this object
1543
- def update!(**args)
1544
- @formatted_search_time = args[:formatted_search_time] if args.key?(:formatted_search_time)
1545
- @formatted_total_results = args[:formatted_total_results] if args.key?(:formatted_total_results)
1546
- @search_time = args[:search_time] if args.key?(:search_time)
1547
- @total_results = args[:total_results] if args.key?(:total_results)
1548
- end
1549
- end
1550
-
1551
- # Spell correction information for a query.
1552
- class Spelling
1553
- include Google::Apis::Core::Hashable
1554
-
1555
- # The corrected query.
1556
- # Corresponds to the JSON property `correctedQuery`
1557
- # @return [String]
1558
- attr_accessor :corrected_query
1559
-
1560
- # The corrected query, formatted in HTML.
1561
- # Corresponds to the JSON property `htmlCorrectedQuery`
1562
- # @return [String]
1563
- attr_accessor :html_corrected_query
1564
-
1565
- def initialize(**args)
1566
- update!(**args)
1567
- end
1568
-
1569
- # Update properties of this object
1570
- def update!(**args)
1571
- @corrected_query = args[:corrected_query] if args.key?(:corrected_query)
1572
- @html_corrected_query = args[:html_corrected_query] if args.key?(:html_corrected_query)
1573
- end
1574
- end
1575
-
1576
- # OpenSearch template and URL.
1577
- class Url
1578
- include Google::Apis::Core::Hashable
1579
-
1580
- # The actual [OpenSearch
1581
- # template](http://www.opensearch.org/specifications/opensearch/1.1#
1582
- # opensearch_url_template_syntax)
1583
- # for this API.
1584
- # Corresponds to the JSON property `template`
1585
- # @return [String]
1586
- attr_accessor :template
1587
-
1588
- # The MIME type of the OpenSearch URL template for the Custom Search API.
1589
- # Corresponds to the JSON property `type`
1590
- # @return [String]
1591
- attr_accessor :type
1592
-
1593
- def initialize(**args)
1594
- update!(**args)
1595
- end
1596
-
1597
- # Update properties of this object
1598
- def update!(**args)
1599
- @template = args[:template] if args.key?(:template)
1600
- @type = args[:type] if args.key?(:type)
1601
- end
1602
- end
1603
- end
1604
- end
1605
- end
1606
- end