google-api-client 0.24.3 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -2
  3. data/CHANGELOG.md +99 -0
  4. data/Gemfile +1 -0
  5. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  6. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +0 -1
  7. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  8. data/generated/google/apis/{content_v2sandbox.rb → accesscontextmanager_v1beta.rb} +11 -12
  9. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +697 -0
  10. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +240 -0
  11. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +666 -0
  12. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +16 -0
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +2 -0
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -2
  16. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  17. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  18. data/generated/google/apis/alertcenter_v1beta1.rb +4 -3
  19. data/generated/google/apis/alertcenter_v1beta1/classes.rb +9 -2
  20. data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
  21. data/generated/google/apis/alertcenter_v1beta1/service.rb +3 -2
  22. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  23. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +3 -2
  24. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  25. data/generated/google/apis/androidenterprise_v1/classes.rb +68 -6
  26. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -0
  27. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  28. data/generated/google/apis/androidmanagement_v1/classes.rb +92 -0
  29. data/generated/google/apis/androidmanagement_v1/representations.rb +36 -0
  30. data/generated/google/apis/androidpublisher_v1.rb +2 -2
  31. data/generated/google/apis/androidpublisher_v1/service.rb +1 -1
  32. data/generated/google/apis/androidpublisher_v1_1.rb +2 -2
  33. data/generated/google/apis/androidpublisher_v1_1/service.rb +1 -1
  34. data/generated/google/apis/androidpublisher_v2.rb +2 -2
  35. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  36. data/generated/google/apis/androidpublisher_v3.rb +2 -2
  37. data/generated/google/apis/androidpublisher_v3/service.rb +3 -2
  38. data/generated/google/apis/appengine_v1.rb +2 -3
  39. data/generated/google/apis/appengine_v1/service.rb +1 -2
  40. data/generated/google/apis/appengine_v1alpha.rb +2 -3
  41. data/generated/google/apis/appengine_v1alpha/service.rb +1 -2
  42. data/generated/google/apis/appengine_v1beta.rb +2 -3
  43. data/generated/google/apis/appengine_v1beta/service.rb +1 -2
  44. data/generated/google/apis/appengine_v1beta4.rb +2 -3
  45. data/generated/google/apis/appengine_v1beta4/service.rb +1 -2
  46. data/generated/google/apis/appengine_v1beta5.rb +2 -3
  47. data/generated/google/apis/appengine_v1beta5/service.rb +1 -2
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +98 -7
  50. data/generated/google/apis/bigquery_v2/representations.rb +35 -0
  51. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  52. data/generated/google/apis/civicinfo_v2.rb +1 -1
  53. data/generated/google/apis/civicinfo_v2/classes.rb +18 -0
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  55. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudasset_v1beta1/classes.rb +5 -5
  57. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  58. data/generated/google/apis/cloudbuild_v1/classes.rb +10 -1
  59. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  60. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  61. data/generated/google/apis/cloudfunctions_v1/classes.rb +418 -0
  62. data/generated/google/apis/cloudfunctions_v1/representations.rb +121 -0
  63. data/generated/google/apis/cloudfunctions_v1/service.rb +107 -0
  64. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  65. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +16 -0
  66. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  67. data/generated/google/apis/cloudkms_v1.rb +1 -1
  68. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  69. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -1
  70. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +3 -3
  72. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -1
  73. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  74. data/generated/google/apis/cloudresourcemanager_v2.rb +3 -3
  75. data/generated/google/apis/cloudresourcemanager_v2/service.rb +2 -2
  76. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +3 -3
  77. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +2 -2
  78. data/generated/google/apis/cloudsearch_v1.rb +59 -0
  79. data/generated/google/apis/cloudsearch_v1/classes.rb +4697 -0
  80. data/generated/google/apis/cloudsearch_v1/representations.rb +2151 -0
  81. data/generated/google/apis/cloudsearch_v1/service.rb +1351 -0
  82. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  83. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +34 -0
  84. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  85. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +34 -30
  86. data/generated/google/apis/composer_v1beta1.rb +1 -1
  87. data/generated/google/apis/composer_v1beta1/classes.rb +5 -8
  88. data/generated/google/apis/compute_alpha.rb +1 -1
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_v1.rb +1 -1
  91. data/generated/google/apis/content_v2.rb +1 -1
  92. data/generated/google/apis/content_v2/classes.rb +197 -69
  93. data/generated/google/apis/content_v2/representations.rb +64 -33
  94. data/generated/google/apis/content_v2/service.rb +1 -1
  95. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  96. data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
  97. data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
  98. data/generated/google/apis/dataproc_v1.rb +1 -1
  99. data/generated/google/apis/dataproc_v1/classes.rb +19 -19
  100. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  101. data/generated/google/apis/dataproc_v1beta2/classes.rb +19 -19
  102. data/generated/google/apis/dialogflow_v2.rb +6 -3
  103. data/generated/google/apis/dialogflow_v2/classes.rb +112 -8
  104. data/generated/google/apis/dialogflow_v2/representations.rb +30 -0
  105. data/generated/google/apis/dialogflow_v2/service.rb +7 -2
  106. data/generated/google/apis/dialogflow_v2beta1.rb +6 -3
  107. data/generated/google/apis/dialogflow_v2beta1/classes.rb +116 -8
  108. data/generated/google/apis/dialogflow_v2beta1/representations.rb +30 -0
  109. data/generated/google/apis/dialogflow_v2beta1/service.rb +19 -8
  110. data/generated/google/apis/digitalassetlinks_v1.rb +2 -3
  111. data/generated/google/apis/digitalassetlinks_v1/service.rb +1 -2
  112. data/generated/google/apis/dlp_v2.rb +1 -1
  113. data/generated/google/apis/dlp_v2/classes.rb +17 -5
  114. data/generated/google/apis/dlp_v2/representations.rb +2 -0
  115. data/generated/google/apis/dns_v1beta2.rb +1 -1
  116. data/generated/google/apis/dns_v1beta2/classes.rb +81 -0
  117. data/generated/google/apis/dns_v1beta2/representations.rb +34 -0
  118. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  119. data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
  120. data/generated/google/apis/drive_v2.rb +1 -1
  121. data/generated/google/apis/drive_v2/classes.rb +3 -1
  122. data/generated/google/apis/firebaserules_v1.rb +1 -1
  123. data/generated/google/apis/firestore_v1.rb +1 -1
  124. data/generated/google/apis/firestore_v1/classes.rb +637 -0
  125. data/generated/google/apis/firestore_v1/representations.rb +260 -0
  126. data/generated/google/apis/firestore_v1/service.rb +377 -0
  127. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  128. data/generated/google/apis/firestore_v1beta2/classes.rb +205 -0
  129. data/generated/google/apis/firestore_v1beta2/representations.rb +83 -0
  130. data/generated/google/apis/firestore_v1beta2/service.rb +79 -0
  131. data/generated/google/apis/genomics_v1.rb +2 -2
  132. data/generated/google/apis/genomics_v1/service.rb +1 -1
  133. data/generated/google/apis/genomics_v1alpha2.rb +2 -2
  134. data/generated/google/apis/genomics_v1alpha2/service.rb +1 -1
  135. data/generated/google/apis/genomics_v2alpha1.rb +2 -2
  136. data/generated/google/apis/genomics_v2alpha1/service.rb +1 -1
  137. data/generated/google/apis/iam_v1.rb +1 -1
  138. data/generated/google/apis/iam_v1/classes.rb +4 -3
  139. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  140. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  141. data/generated/google/apis/indexing_v3.rb +2 -3
  142. data/generated/google/apis/indexing_v3/service.rb +1 -2
  143. data/generated/google/apis/jobs_v2.rb +1 -1
  144. data/generated/google/apis/jobs_v2/classes.rb +2 -2
  145. data/generated/google/apis/jobs_v3.rb +1 -1
  146. data/generated/google/apis/jobs_v3/classes.rb +3 -3
  147. data/generated/google/apis/jobs_v3/service.rb +20 -2
  148. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  149. data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
  150. data/generated/google/apis/jobs_v3p1beta1/service.rb +20 -2
  151. data/generated/google/apis/language_v1.rb +4 -4
  152. data/generated/google/apis/language_v1/service.rb +3 -3
  153. data/generated/google/apis/language_v1beta1.rb +4 -4
  154. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  155. data/generated/google/apis/language_v1beta2.rb +4 -4
  156. data/generated/google/apis/language_v1beta2/service.rb +3 -3
  157. data/generated/google/apis/logging_v2.rb +1 -1
  158. data/generated/google/apis/logging_v2/classes.rb +2 -13
  159. data/generated/google/apis/logging_v2/representations.rb +0 -2
  160. data/generated/google/apis/logging_v2beta1.rb +1 -1
  161. data/generated/google/apis/logging_v2beta1/classes.rb +2 -41
  162. data/generated/google/apis/logging_v2beta1/representations.rb +0 -16
  163. data/generated/google/apis/logging_v2beta1/service.rb +0 -255
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +25 -15
  166. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  167. data/generated/google/apis/monitoring_v3/service.rb +366 -1
  168. data/generated/google/apis/oslogin_v1.rb +1 -1
  169. data/generated/google/apis/oslogin_v1/service.rb +7 -1
  170. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  171. data/generated/google/apis/oslogin_v1alpha/service.rb +10 -1
  172. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  173. data/generated/google/apis/oslogin_v1beta/service.rb +7 -1
  174. data/generated/google/apis/redis_v1.rb +1 -1
  175. data/generated/google/apis/redis_v1/classes.rb +6 -0
  176. data/generated/google/apis/redis_v1/representations.rb +1 -0
  177. data/generated/google/apis/redis_v1beta1.rb +1 -1
  178. data/generated/google/apis/redis_v1beta1/classes.rb +6 -0
  179. data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
  180. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  181. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -6
  182. data/generated/google/apis/script_v1.rb +2 -2
  183. data/generated/google/apis/script_v1/service.rb +7 -3
  184. data/generated/google/apis/serviceconsumermanagement_v1.rb +2 -3
  185. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +7 -0
  186. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  187. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -2
  188. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +18 -230
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +2 -99
  191. data/generated/google/apis/servicecontrol_v1/service.rb +2 -140
  192. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
  194. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  195. data/generated/google/apis/servicenetworking_v1beta/classes.rb +24 -0
  196. data/generated/google/apis/servicenetworking_v1beta/representations.rb +3 -0
  197. data/generated/google/apis/serviceusage_v1.rb +1 -1
  198. data/generated/google/apis/serviceusage_v1/classes.rb +7 -0
  199. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  200. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1beta1/classes.rb +7 -0
  202. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  203. data/generated/google/apis/slides_v1.rb +2 -2
  204. data/generated/google/apis/slides_v1/classes.rb +4 -3
  205. data/generated/google/apis/slides_v1/service.rb +1 -1
  206. data/generated/google/apis/storage_v1.rb +1 -1
  207. data/generated/google/apis/storage_v1/service.rb +2 -3
  208. data/generated/google/apis/testing_v1.rb +1 -1
  209. data/generated/google/apis/testing_v1/classes.rb +9 -0
  210. data/generated/google/apis/testing_v1/representations.rb +1 -0
  211. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  212. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
  213. data/generated/google/apis/tpu_v1.rb +1 -1
  214. data/generated/google/apis/tpu_v1/classes.rb +6 -0
  215. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  216. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  217. data/generated/google/apis/tpu_v1alpha1/classes.rb +6 -0
  218. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  219. data/generated/google/apis/vault_v1.rb +1 -1
  220. data/generated/google/apis/vault_v1/classes.rb +7 -0
  221. data/generated/google/apis/vault_v1/representations.rb +1 -0
  222. data/generated/google/apis/videointelligence_v1.rb +3 -2
  223. data/generated/google/apis/videointelligence_v1/classes.rb +547 -12
  224. data/generated/google/apis/videointelligence_v1/representations.rb +190 -2
  225. data/generated/google/apis/videointelligence_v1/service.rb +2 -1
  226. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  227. data/generated/google/apis/videointelligence_v1beta2/classes.rb +547 -12
  228. data/generated/google/apis/videointelligence_v1beta2/representations.rb +190 -2
  229. data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
  230. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  231. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +418 -13
  232. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +153 -2
  233. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
  234. data/generated/google/apis/vision_v1.rb +1 -1
  235. data/generated/google/apis/vision_v1/classes.rb +1139 -54
  236. data/generated/google/apis/vision_v1/representations.rb +478 -0
  237. data/generated/google/apis/vision_v1/service.rb +744 -0
  238. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  239. data/generated/google/apis/vision_v1p1beta1/classes.rb +761 -16
  240. data/generated/google/apis/vision_v1p1beta1/representations.rb +333 -0
  241. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  242. data/generated/google/apis/vision_v1p2beta1/classes.rb +758 -13
  243. data/generated/google/apis/vision_v1p2beta1/representations.rb +333 -0
  244. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  245. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  246. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  247. data/generated/google/apis/youtube_v3.rb +1 -1
  248. data/lib/google/apis/core/http_command.rb +83 -10
  249. data/lib/google/apis/options.rb +5 -1
  250. data/lib/google/apis/version.rb +1 -1
  251. metadata +10 -14
  252. data/generated/google/apis/content_v2sandbox/classes.rb +0 -4436
  253. data/generated/google/apis/content_v2sandbox/representations.rb +0 -1956
  254. data/generated/google/apis/content_v2sandbox/service.rb +0 -1296
  255. data/generated/google/apis/dfareporting_v2_8.rb +0 -40
  256. data/generated/google/apis/dfareporting_v2_8/classes.rb +0 -12043
  257. data/generated/google/apis/dfareporting_v2_8/representations.rb +0 -4311
  258. data/generated/google/apis/dfareporting_v2_8/service.rb +0 -8727
  259. data/generated/google/apis/serviceuser_v1.rb +0 -42
  260. data/generated/google/apis/serviceuser_v1/classes.rb +0 -3472
  261. data/generated/google/apis/serviceuser_v1/representations.rb +0 -1030
  262. data/generated/google/apis/serviceuser_v1/service.rb +0 -215
@@ -0,0 +1,1351 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module CloudsearchV1
23
+ # Cloud Search API
24
+ #
25
+ # Cloud Search provides cloud-based search capabilities over G Suite data. The
26
+ # Cloud Search API allows indexing of non-G Suite data into Cloud Search.
27
+ #
28
+ # @example
29
+ # require 'google/apis/cloudsearch_v1'
30
+ #
31
+ # Cloudsearch = Google::Apis::CloudsearchV1 # Alias the module
32
+ # service = Cloudsearch::CloudSearchService.new
33
+ #
34
+ # @see https://gsuite.google.com/products/cloud-search/
35
+ class CloudSearchService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://cloudsearch.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # List all unmapped identities for a specific item.
52
+ # @param [String] parent
53
+ # The name of the item, in the following format:
54
+ # datasources/`source_id`/items/`ID`
55
+ # @param [Fixnum] page_size
56
+ # Maximum number of items to fetch in a request.
57
+ # Defaults to 100.
58
+ # @param [String] page_token
59
+ # The next_page_token value returned from a previous List request, if any.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::CloudsearchV1::ListUnmappedIdentitiesResponse] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::CloudsearchV1::ListUnmappedIdentitiesResponse]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def list_debug_datasource_item_unmappedids(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:get, 'v1/debug/{+parent}/unmappedids', options)
79
+ command.response_representation = Google::Apis::CloudsearchV1::ListUnmappedIdentitiesResponse::Representation
80
+ command.response_class = Google::Apis::CloudsearchV1::ListUnmappedIdentitiesResponse
81
+ command.params['parent'] = parent unless parent.nil?
82
+ command.query['pageSize'] = page_size unless page_size.nil?
83
+ command.query['pageToken'] = page_token unless page_token.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ # Lists names of items associated with an unmapped identity.
90
+ # @param [String] parent
91
+ # The name of the identity source, in the following format:
92
+ # identitysources/`source_id``
93
+ # @param [String] group_resource_name
94
+ # @param [Fixnum] page_size
95
+ # Maximum number of items to fetch in a request.
96
+ # Defaults to 100.
97
+ # @param [String] page_token
98
+ # The next_page_token value returned from a previous List request, if any.
99
+ # @param [String] user_resource_name
100
+ # @param [String] fields
101
+ # Selector specifying which fields to include in a partial response.
102
+ # @param [String] quota_user
103
+ # Available to use for quota purposes for server-side applications. Can be any
104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
105
+ # @param [Google::Apis::RequestOptions] options
106
+ # Request-specific options
107
+ #
108
+ # @yield [result, err] Result & error if block supplied
109
+ # @yieldparam result [Google::Apis::CloudsearchV1::ListItemNamesForUnmappedIdentityResponse] parsed result object
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [Google::Apis::CloudsearchV1::ListItemNamesForUnmappedIdentityResponse]
113
+ #
114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
117
+ def list_debug_identitysource_item_forunmappedidentity(parent, group_resource_name: nil, page_size: nil, page_token: nil, user_resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
118
+ command = make_simple_command(:get, 'v1/debug/{+parent}/items:forunmappedidentity', options)
119
+ command.response_representation = Google::Apis::CloudsearchV1::ListItemNamesForUnmappedIdentityResponse::Representation
120
+ command.response_class = Google::Apis::CloudsearchV1::ListItemNamesForUnmappedIdentityResponse
121
+ command.params['parent'] = parent unless parent.nil?
122
+ command.query['groupResourceName'] = group_resource_name unless group_resource_name.nil?
123
+ command.query['pageSize'] = page_size unless page_size.nil?
124
+ command.query['pageToken'] = page_token unless page_token.nil?
125
+ command.query['userResourceName'] = user_resource_name unless user_resource_name.nil?
126
+ command.query['fields'] = fields unless fields.nil?
127
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
128
+ execute_or_queue_command(command, &block)
129
+ end
130
+
131
+ # Lists unmapped user identities for an identity source.
132
+ # @param [String] parent
133
+ # The name of the identity source, in the following format:
134
+ # identitysources/`source_id`
135
+ # @param [Fixnum] page_size
136
+ # Maximum number of items to fetch in a request.
137
+ # Defaults to 100.
138
+ # @param [String] page_token
139
+ # The next_page_token value returned from a previous List request, if any.
140
+ # @param [String] resolution_status_code
141
+ # Limit users selection to this status.
142
+ # @param [String] fields
143
+ # Selector specifying which fields to include in a partial response.
144
+ # @param [String] quota_user
145
+ # Available to use for quota purposes for server-side applications. Can be any
146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
147
+ # @param [Google::Apis::RequestOptions] options
148
+ # Request-specific options
149
+ #
150
+ # @yield [result, err] Result & error if block supplied
151
+ # @yieldparam result [Google::Apis::CloudsearchV1::ListUnmappedIdentitiesResponse] parsed result object
152
+ # @yieldparam err [StandardError] error object if request failed
153
+ #
154
+ # @return [Google::Apis::CloudsearchV1::ListUnmappedIdentitiesResponse]
155
+ #
156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
159
+ def list_debug_identitysource_unmappedids(parent, page_size: nil, page_token: nil, resolution_status_code: nil, fields: nil, quota_user: nil, options: nil, &block)
160
+ command = make_simple_command(:get, 'v1/debug/{+parent}/unmappedids', options)
161
+ command.response_representation = Google::Apis::CloudsearchV1::ListUnmappedIdentitiesResponse::Representation
162
+ command.response_class = Google::Apis::CloudsearchV1::ListUnmappedIdentitiesResponse
163
+ command.params['parent'] = parent unless parent.nil?
164
+ command.query['pageSize'] = page_size unless page_size.nil?
165
+ command.query['pageToken'] = page_token unless page_token.nil?
166
+ command.query['resolutionStatusCode'] = resolution_status_code unless resolution_status_code.nil?
167
+ command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
169
+ execute_or_queue_command(command, &block)
170
+ end
171
+
172
+ # Deletes the schema of a data source.
173
+ # @param [String] name
174
+ # Name of the data source to delete Schema. Format:
175
+ # datasources/`source_id`
176
+ # @param [Boolean] debug_options_enable_debugging
177
+ # If set, the request will enable debugging features of Cloud Search.
178
+ # Only turn on this field, if asked by Google to help with debugging.
179
+ # @param [String] fields
180
+ # Selector specifying which fields to include in a partial response.
181
+ # @param [String] quota_user
182
+ # Available to use for quota purposes for server-side applications. Can be any
183
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
184
+ # @param [Google::Apis::RequestOptions] options
185
+ # Request-specific options
186
+ #
187
+ # @yield [result, err] Result & error if block supplied
188
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
189
+ # @yieldparam err [StandardError] error object if request failed
190
+ #
191
+ # @return [Google::Apis::CloudsearchV1::Operation]
192
+ #
193
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
196
+ def delete_indexing_datasource_schema(name, debug_options_enable_debugging: nil, fields: nil, quota_user: nil, options: nil, &block)
197
+ command = make_simple_command(:delete, 'v1/indexing/{+name}/schema', options)
198
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
199
+ command.response_class = Google::Apis::CloudsearchV1::Operation
200
+ command.params['name'] = name unless name.nil?
201
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
202
+ command.query['fields'] = fields unless fields.nil?
203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
204
+ execute_or_queue_command(command, &block)
205
+ end
206
+
207
+ # Gets the schema of a data source.
208
+ # @param [String] name
209
+ # Name of the data source to get Schema. Format:
210
+ # datasources/`source_id`
211
+ # @param [Boolean] debug_options_enable_debugging
212
+ # If set, the request will enable debugging features of Cloud Search.
213
+ # Only turn on this field, if asked by Google to help with debugging.
214
+ # @param [String] fields
215
+ # Selector specifying which fields to include in a partial response.
216
+ # @param [String] quota_user
217
+ # Available to use for quota purposes for server-side applications. Can be any
218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
219
+ # @param [Google::Apis::RequestOptions] options
220
+ # Request-specific options
221
+ #
222
+ # @yield [result, err] Result & error if block supplied
223
+ # @yieldparam result [Google::Apis::CloudsearchV1::Schema] parsed result object
224
+ # @yieldparam err [StandardError] error object if request failed
225
+ #
226
+ # @return [Google::Apis::CloudsearchV1::Schema]
227
+ #
228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
231
+ def get_indexing_datasource_schema(name, debug_options_enable_debugging: nil, fields: nil, quota_user: nil, options: nil, &block)
232
+ command = make_simple_command(:get, 'v1/indexing/{+name}/schema', options)
233
+ command.response_representation = Google::Apis::CloudsearchV1::Schema::Representation
234
+ command.response_class = Google::Apis::CloudsearchV1::Schema
235
+ command.params['name'] = name unless name.nil?
236
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
237
+ command.query['fields'] = fields unless fields.nil?
238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
239
+ execute_or_queue_command(command, &block)
240
+ end
241
+
242
+ # Updates the schema of a data source.
243
+ # @param [String] name
244
+ # Name of the data source to update Schema. Format:
245
+ # datasources/`source_id`
246
+ # @param [Google::Apis::CloudsearchV1::UpdateSchemaRequest] update_schema_request_object
247
+ # @param [String] fields
248
+ # Selector specifying which fields to include in a partial response.
249
+ # @param [String] quota_user
250
+ # Available to use for quota purposes for server-side applications. Can be any
251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
252
+ # @param [Google::Apis::RequestOptions] options
253
+ # Request-specific options
254
+ #
255
+ # @yield [result, err] Result & error if block supplied
256
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::CloudsearchV1::Operation]
260
+ #
261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
264
+ def update_datasource_schema(name, update_schema_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:put, 'v1/indexing/{+name}/schema', options)
266
+ command.request_representation = Google::Apis::CloudsearchV1::UpdateSchemaRequest::Representation
267
+ command.request_object = update_schema_request_object
268
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
269
+ command.response_class = Google::Apis::CloudsearchV1::Operation
270
+ command.params['name'] = name unless name.nil?
271
+ command.query['fields'] = fields unless fields.nil?
272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
273
+ execute_or_queue_command(command, &block)
274
+ end
275
+
276
+ # Deletes Item resource for the
277
+ # specified resource name.
278
+ # @param [String] name
279
+ # Required. Name of the item to delete.
280
+ # Format: datasources/`source_id`/items/`item_id`
281
+ # @param [String] connector_name
282
+ # Name of connector making this call.
283
+ # <br />Format: datasources/`source_id`/connectors/`ID`
284
+ # @param [Boolean] debug_options_enable_debugging
285
+ # If set, the request will enable debugging features of Cloud Search.
286
+ # Only turn on this field, if asked by Google to help with debugging.
287
+ # @param [String] mode
288
+ # Required. The RequestMode for this request.
289
+ # @param [String] version
290
+ # Required. The incremented version of the item to delete from the index.
291
+ # The indexing system stores the version from the datasource as a
292
+ # byte string and compares the Item version in the index
293
+ # to the version of the queued Item using lexical ordering.
294
+ # <br /><br />
295
+ # Cloud Search Indexing won't delete any queued item with
296
+ # a version value that is less than or equal to
297
+ # the version of the currently indexed item.
298
+ # The maximum length for this field is 1024 bytes.
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
301
+ # @param [String] quota_user
302
+ # Available to use for quota purposes for server-side applications. Can be any
303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
304
+ # @param [Google::Apis::RequestOptions] options
305
+ # Request-specific options
306
+ #
307
+ # @yield [result, err] Result & error if block supplied
308
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
309
+ # @yieldparam err [StandardError] error object if request failed
310
+ #
311
+ # @return [Google::Apis::CloudsearchV1::Operation]
312
+ #
313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
316
+ def delete_indexing_datasource_item(name, connector_name: nil, debug_options_enable_debugging: nil, mode: nil, version: nil, fields: nil, quota_user: nil, options: nil, &block)
317
+ command = make_simple_command(:delete, 'v1/indexing/{+name}', options)
318
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
319
+ command.response_class = Google::Apis::CloudsearchV1::Operation
320
+ command.params['name'] = name unless name.nil?
321
+ command.query['connectorName'] = connector_name unless connector_name.nil?
322
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
323
+ command.query['mode'] = mode unless mode.nil?
324
+ command.query['version'] = version unless version.nil?
325
+ command.query['fields'] = fields unless fields.nil?
326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
327
+ execute_or_queue_command(command, &block)
328
+ end
329
+
330
+ # Deletes all items in a queue. This method is useful for deleting stale
331
+ # items.
332
+ # @param [String] name
333
+ # Name of the Data Source to delete items in a queue.
334
+ # Format: datasources/`source_id`
335
+ # @param [Google::Apis::CloudsearchV1::DeleteQueueItemsRequest] delete_queue_items_request_object
336
+ # @param [String] fields
337
+ # Selector specifying which fields to include in a partial response.
338
+ # @param [String] quota_user
339
+ # Available to use for quota purposes for server-side applications. Can be any
340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
341
+ # @param [Google::Apis::RequestOptions] options
342
+ # Request-specific options
343
+ #
344
+ # @yield [result, err] Result & error if block supplied
345
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
346
+ # @yieldparam err [StandardError] error object if request failed
347
+ #
348
+ # @return [Google::Apis::CloudsearchV1::Operation]
349
+ #
350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
353
+ def delete_queue_items(name, delete_queue_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
354
+ command = make_simple_command(:post, 'v1/indexing/{+name}/items:deleteQueueItems', options)
355
+ command.request_representation = Google::Apis::CloudsearchV1::DeleteQueueItemsRequest::Representation
356
+ command.request_object = delete_queue_items_request_object
357
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
358
+ command.response_class = Google::Apis::CloudsearchV1::Operation
359
+ command.params['name'] = name unless name.nil?
360
+ command.query['fields'] = fields unless fields.nil?
361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
362
+ execute_or_queue_command(command, &block)
363
+ end
364
+
365
+ # Gets Item resource by item name.
366
+ # @param [String] name
367
+ # Name of the item to get info.
368
+ # Format: datasources/`source_id`/items/`item_id`
369
+ # @param [String] connector_name
370
+ # Name of connector making this call.
371
+ # <br />Format: datasources/`source_id`/connectors/`ID`
372
+ # @param [Boolean] debug_options_enable_debugging
373
+ # If set, the request will enable debugging features of Cloud Search.
374
+ # Only turn on this field, if asked by Google to help with debugging.
375
+ # @param [String] fields
376
+ # Selector specifying which fields to include in a partial response.
377
+ # @param [String] quota_user
378
+ # Available to use for quota purposes for server-side applications. Can be any
379
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
380
+ # @param [Google::Apis::RequestOptions] options
381
+ # Request-specific options
382
+ #
383
+ # @yield [result, err] Result & error if block supplied
384
+ # @yieldparam result [Google::Apis::CloudsearchV1::Item] parsed result object
385
+ # @yieldparam err [StandardError] error object if request failed
386
+ #
387
+ # @return [Google::Apis::CloudsearchV1::Item]
388
+ #
389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
392
+ def get_indexing_datasource_item(name, connector_name: nil, debug_options_enable_debugging: nil, fields: nil, quota_user: nil, options: nil, &block)
393
+ command = make_simple_command(:get, 'v1/indexing/{+name}', options)
394
+ command.response_representation = Google::Apis::CloudsearchV1::Item::Representation
395
+ command.response_class = Google::Apis::CloudsearchV1::Item
396
+ command.params['name'] = name unless name.nil?
397
+ command.query['connectorName'] = connector_name unless connector_name.nil?
398
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
399
+ command.query['fields'] = fields unless fields.nil?
400
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
401
+ execute_or_queue_command(command, &block)
402
+ end
403
+
404
+ # Updates Item ACL, metadata, and
405
+ # content. It will insert the Item if it
406
+ # does not exist.
407
+ # This method does not support partial updates. Fields with no provided
408
+ # values are cleared out in the Cloud Search index.
409
+ # @param [String] name
410
+ # Name of the Item. Format:
411
+ # datasources/`source_id`/items/`item_id`
412
+ # <br />This is a required field.
413
+ # The maximum length is 1536 characters.
414
+ # @param [Google::Apis::CloudsearchV1::IndexItemRequest] index_item_request_object
415
+ # @param [String] fields
416
+ # Selector specifying which fields to include in a partial response.
417
+ # @param [String] quota_user
418
+ # Available to use for quota purposes for server-side applications. Can be any
419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
420
+ # @param [Google::Apis::RequestOptions] options
421
+ # Request-specific options
422
+ #
423
+ # @yield [result, err] Result & error if block supplied
424
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
425
+ # @yieldparam err [StandardError] error object if request failed
426
+ #
427
+ # @return [Google::Apis::CloudsearchV1::Operation]
428
+ #
429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
432
+ def index_item(name, index_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
433
+ command = make_simple_command(:post, 'v1/indexing/{+name}:index', options)
434
+ command.request_representation = Google::Apis::CloudsearchV1::IndexItemRequest::Representation
435
+ command.request_object = index_item_request_object
436
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
437
+ command.response_class = Google::Apis::CloudsearchV1::Operation
438
+ command.params['name'] = name unless name.nil?
439
+ command.query['fields'] = fields unless fields.nil?
440
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
441
+ execute_or_queue_command(command, &block)
442
+ end
443
+
444
+ # Lists all or a subset of Item resources.
445
+ # @param [String] name
446
+ # Name of the Data Source to list Items. Format:
447
+ # datasources/`source_id`
448
+ # @param [Boolean] brief
449
+ # When set to true, the indexing system only populates the following fields:
450
+ # name,
451
+ # version,
452
+ # metadata.hash,
453
+ # structured_data.hash,
454
+ # content.hash.
455
+ # <br />If this value is false, then all the fields are populated in Item.
456
+ # @param [String] connector_name
457
+ # Name of connector making this call.
458
+ # <br />Format: datasources/`source_id`/connectors/`ID`
459
+ # @param [Boolean] debug_options_enable_debugging
460
+ # If set, the request will enable debugging features of Cloud Search.
461
+ # Only turn on this field, if asked by Google to help with debugging.
462
+ # @param [Fixnum] page_size
463
+ # Maximum number of items to fetch in a request.
464
+ # The max value is 1000 when brief is true. The max value is 10 if brief
465
+ # is false.
466
+ # <br />The default value is 10
467
+ # @param [String] page_token
468
+ # The next_page_token value returned from a previous List request, if any.
469
+ # @param [String] fields
470
+ # Selector specifying which fields to include in a partial response.
471
+ # @param [String] quota_user
472
+ # Available to use for quota purposes for server-side applications. Can be any
473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
474
+ # @param [Google::Apis::RequestOptions] options
475
+ # Request-specific options
476
+ #
477
+ # @yield [result, err] Result & error if block supplied
478
+ # @yieldparam result [Google::Apis::CloudsearchV1::ListItemsResponse] parsed result object
479
+ # @yieldparam err [StandardError] error object if request failed
480
+ #
481
+ # @return [Google::Apis::CloudsearchV1::ListItemsResponse]
482
+ #
483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
486
+ def list_indexing_datasource_items(name, brief: nil, connector_name: nil, debug_options_enable_debugging: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
487
+ command = make_simple_command(:get, 'v1/indexing/{+name}/items', options)
488
+ command.response_representation = Google::Apis::CloudsearchV1::ListItemsResponse::Representation
489
+ command.response_class = Google::Apis::CloudsearchV1::ListItemsResponse
490
+ command.params['name'] = name unless name.nil?
491
+ command.query['brief'] = brief unless brief.nil?
492
+ command.query['connectorName'] = connector_name unless connector_name.nil?
493
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
494
+ command.query['pageSize'] = page_size unless page_size.nil?
495
+ command.query['pageToken'] = page_token unless page_token.nil?
496
+ command.query['fields'] = fields unless fields.nil?
497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
498
+ execute_or_queue_command(command, &block)
499
+ end
500
+
501
+ # Polls for unreserved items from the indexing queue and marks a
502
+ # set as reserved, starting with items that have
503
+ # the oldest timestamp from the highest priority
504
+ # ItemStatus.
505
+ # The priority order is as follows: <br />
506
+ # ERROR
507
+ # <br />
508
+ # MODIFIED
509
+ # <br />
510
+ # NEW_ITEM
511
+ # <br />
512
+ # ACCEPTED
513
+ # <br />
514
+ # Reserving items ensures that polling from other threads
515
+ # cannot create overlapping sets.
516
+ # After handling the reserved items, the client should put items back
517
+ # into the unreserved state, either by calling
518
+ # index,
519
+ # or by calling
520
+ # push with
521
+ # the type REQUEUE.
522
+ # Items automatically become available (unreserved) after 4 hours even if no
523
+ # update or push method is called.
524
+ # @param [String] name
525
+ # Name of the Data Source to poll items.
526
+ # Format: datasources/`source_id`
527
+ # @param [Google::Apis::CloudsearchV1::PollItemsRequest] poll_items_request_object
528
+ # @param [String] fields
529
+ # Selector specifying which fields to include in a partial response.
530
+ # @param [String] quota_user
531
+ # Available to use for quota purposes for server-side applications. Can be any
532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
533
+ # @param [Google::Apis::RequestOptions] options
534
+ # Request-specific options
535
+ #
536
+ # @yield [result, err] Result & error if block supplied
537
+ # @yieldparam result [Google::Apis::CloudsearchV1::PollItemsResponse] parsed result object
538
+ # @yieldparam err [StandardError] error object if request failed
539
+ #
540
+ # @return [Google::Apis::CloudsearchV1::PollItemsResponse]
541
+ #
542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
545
+ def poll_items(name, poll_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
546
+ command = make_simple_command(:post, 'v1/indexing/{+name}/items:poll', options)
547
+ command.request_representation = Google::Apis::CloudsearchV1::PollItemsRequest::Representation
548
+ command.request_object = poll_items_request_object
549
+ command.response_representation = Google::Apis::CloudsearchV1::PollItemsResponse::Representation
550
+ command.response_class = Google::Apis::CloudsearchV1::PollItemsResponse
551
+ command.params['name'] = name unless name.nil?
552
+ command.query['fields'] = fields unless fields.nil?
553
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
554
+ execute_or_queue_command(command, &block)
555
+ end
556
+
557
+ # Pushes an item onto a queue for later polling and updating.
558
+ # @param [String] name
559
+ # Name of the item to
560
+ # push into the indexing queue.<br />
561
+ # Format: datasources/`source_id`/items/`ID`
562
+ # <br />This is a required field.
563
+ # The maximum length is 1536 characters.
564
+ # @param [Google::Apis::CloudsearchV1::PushItemRequest] push_item_request_object
565
+ # @param [String] fields
566
+ # Selector specifying which fields to include in a partial response.
567
+ # @param [String] quota_user
568
+ # Available to use for quota purposes for server-side applications. Can be any
569
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
570
+ # @param [Google::Apis::RequestOptions] options
571
+ # Request-specific options
572
+ #
573
+ # @yield [result, err] Result & error if block supplied
574
+ # @yieldparam result [Google::Apis::CloudsearchV1::Item] parsed result object
575
+ # @yieldparam err [StandardError] error object if request failed
576
+ #
577
+ # @return [Google::Apis::CloudsearchV1::Item]
578
+ #
579
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
580
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
581
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
582
+ def push_item(name, push_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
583
+ command = make_simple_command(:post, 'v1/indexing/{+name}:push', options)
584
+ command.request_representation = Google::Apis::CloudsearchV1::PushItemRequest::Representation
585
+ command.request_object = push_item_request_object
586
+ command.response_representation = Google::Apis::CloudsearchV1::Item::Representation
587
+ command.response_class = Google::Apis::CloudsearchV1::Item
588
+ command.params['name'] = name unless name.nil?
589
+ command.query['fields'] = fields unless fields.nil?
590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
591
+ execute_or_queue_command(command, &block)
592
+ end
593
+
594
+ # Unreserves all items from a queue, making them all eligible to be
595
+ # polled. This method is useful for resetting the indexing queue
596
+ # after a connector has been restarted.
597
+ # @param [String] name
598
+ # Name of the Data Source to unreserve all items.
599
+ # Format: datasources/`source_id`
600
+ # @param [Google::Apis::CloudsearchV1::UnreserveItemsRequest] unreserve_items_request_object
601
+ # @param [String] fields
602
+ # Selector specifying which fields to include in a partial response.
603
+ # @param [String] quota_user
604
+ # Available to use for quota purposes for server-side applications. Can be any
605
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
606
+ # @param [Google::Apis::RequestOptions] options
607
+ # Request-specific options
608
+ #
609
+ # @yield [result, err] Result & error if block supplied
610
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
611
+ # @yieldparam err [StandardError] error object if request failed
612
+ #
613
+ # @return [Google::Apis::CloudsearchV1::Operation]
614
+ #
615
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
618
+ def unreserve_items(name, unreserve_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
619
+ command = make_simple_command(:post, 'v1/indexing/{+name}/items:unreserve', options)
620
+ command.request_representation = Google::Apis::CloudsearchV1::UnreserveItemsRequest::Representation
621
+ command.request_object = unreserve_items_request_object
622
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
623
+ command.response_class = Google::Apis::CloudsearchV1::Operation
624
+ command.params['name'] = name unless name.nil?
625
+ command.query['fields'] = fields unless fields.nil?
626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
627
+ execute_or_queue_command(command, &block)
628
+ end
629
+
630
+ # Creates an upload session for uploading item content. For items smaller
631
+ # than 100 KiB, it's easier to embed the content
632
+ # inline within
633
+ # update.
634
+ # @param [String] name
635
+ # Name of the Data Source to start a resumable upload.
636
+ # Format: datasources/`source_id`
637
+ # @param [Google::Apis::CloudsearchV1::StartUploadItemRequest] start_upload_item_request_object
638
+ # @param [String] fields
639
+ # Selector specifying which fields to include in a partial response.
640
+ # @param [String] quota_user
641
+ # Available to use for quota purposes for server-side applications. Can be any
642
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
643
+ # @param [Google::Apis::RequestOptions] options
644
+ # Request-specific options
645
+ #
646
+ # @yield [result, err] Result & error if block supplied
647
+ # @yieldparam result [Google::Apis::CloudsearchV1::UploadItemRef] parsed result object
648
+ # @yieldparam err [StandardError] error object if request failed
649
+ #
650
+ # @return [Google::Apis::CloudsearchV1::UploadItemRef]
651
+ #
652
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
653
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
654
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
655
+ def upload_indexing_datasource_item(name, start_upload_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
656
+ command = make_simple_command(:post, 'v1/indexing/{+name}:upload', options)
657
+ command.request_representation = Google::Apis::CloudsearchV1::StartUploadItemRequest::Representation
658
+ command.request_object = start_upload_item_request_object
659
+ command.response_representation = Google::Apis::CloudsearchV1::UploadItemRef::Representation
660
+ command.response_class = Google::Apis::CloudsearchV1::UploadItemRef
661
+ command.params['name'] = name unless name.nil?
662
+ command.query['fields'] = fields unless fields.nil?
663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
664
+ execute_or_queue_command(command, &block)
665
+ end
666
+
667
+ # Uploads media for indexing.
668
+ # The upload endpoint supports direct and resumable upload protocols and
669
+ # is intended for large items that can not be inlined during index requests. To
670
+ # index large content:
671
+ # 1. Call upload to begin
672
+ # a session and get the item reference.
673
+ # 1. Upload the content using the item reference's resource name.
674
+ # 1. Call index with the item
675
+ # reference as the content.
676
+ # For additional information, see
677
+ # [Create a content connector using the REST API](https://developers.google.com/
678
+ # cloud-search/docs/guides/content-connector#rest).
679
+ # @param [String] resource_name
680
+ # Name of the media that is being downloaded. See
681
+ # ReadRequest.resource_name.
682
+ # @param [Google::Apis::CloudsearchV1::Media] media_object
683
+ # @param [String] fields
684
+ # Selector specifying which fields to include in a partial response.
685
+ # @param [String] quota_user
686
+ # Available to use for quota purposes for server-side applications. Can be any
687
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
688
+ # @param [IO, String] upload_source
689
+ # IO stream or filename containing content to upload
690
+ # @param [String] content_type
691
+ # Content type of the uploaded content.
692
+ # @param [Google::Apis::RequestOptions] options
693
+ # Request-specific options
694
+ #
695
+ # @yield [result, err] Result & error if block supplied
696
+ # @yieldparam result [Google::Apis::CloudsearchV1::Media] parsed result object
697
+ # @yieldparam err [StandardError] error object if request failed
698
+ #
699
+ # @return [Google::Apis::CloudsearchV1::Media]
700
+ #
701
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
702
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
703
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
704
+ def upload_medium(resource_name, media_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
705
+ if upload_source.nil?
706
+ command = make_simple_command(:post, 'v1/media/{+resourceName}', options)
707
+ else
708
+ command = make_upload_command(:post, 'v1/media/{+resourceName}', options)
709
+ command.upload_source = upload_source
710
+ command.upload_content_type = content_type
711
+ end
712
+ command.request_representation = Google::Apis::CloudsearchV1::Media::Representation
713
+ command.request_object = media_object
714
+ command.response_representation = Google::Apis::CloudsearchV1::Media::Representation
715
+ command.response_class = Google::Apis::CloudsearchV1::Media
716
+ command.params['resourceName'] = resource_name unless resource_name.nil?
717
+ command.query['fields'] = fields unless fields.nil?
718
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
719
+ execute_or_queue_command(command, &block)
720
+ end
721
+
722
+ # Gets the latest state of a long-running operation. Clients can use this
723
+ # method to poll the operation result at intervals as recommended by the API
724
+ # service.
725
+ # @param [String] name
726
+ # The name of the operation resource.
727
+ # @param [String] fields
728
+ # Selector specifying which fields to include in a partial response.
729
+ # @param [String] quota_user
730
+ # Available to use for quota purposes for server-side applications. Can be any
731
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
732
+ # @param [Google::Apis::RequestOptions] options
733
+ # Request-specific options
734
+ #
735
+ # @yield [result, err] Result & error if block supplied
736
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
737
+ # @yieldparam err [StandardError] error object if request failed
738
+ #
739
+ # @return [Google::Apis::CloudsearchV1::Operation]
740
+ #
741
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
742
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
743
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
744
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
745
+ command = make_simple_command(:get, 'v1/{+name}', options)
746
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
747
+ command.response_class = Google::Apis::CloudsearchV1::Operation
748
+ command.params['name'] = name unless name.nil?
749
+ command.query['fields'] = fields unless fields.nil?
750
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
751
+ execute_or_queue_command(command, &block)
752
+ end
753
+
754
+ # The Cloud Search Query API provides the search method, which returns
755
+ # the most relevant results from a user query. The results can come from
756
+ # G Suite Apps, such as Gmail or Google Drive, or they can come from data
757
+ # that you have indexed from a third party.
758
+ # @param [Google::Apis::CloudsearchV1::SearchRequest] search_request_object
759
+ # @param [String] fields
760
+ # Selector specifying which fields to include in a partial response.
761
+ # @param [String] quota_user
762
+ # Available to use for quota purposes for server-side applications. Can be any
763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
764
+ # @param [Google::Apis::RequestOptions] options
765
+ # Request-specific options
766
+ #
767
+ # @yield [result, err] Result & error if block supplied
768
+ # @yieldparam result [Google::Apis::CloudsearchV1::SearchResponse] parsed result object
769
+ # @yieldparam err [StandardError] error object if request failed
770
+ #
771
+ # @return [Google::Apis::CloudsearchV1::SearchResponse]
772
+ #
773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
776
+ def search_query(search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
777
+ command = make_simple_command(:post, 'v1/query/search', options)
778
+ command.request_representation = Google::Apis::CloudsearchV1::SearchRequest::Representation
779
+ command.request_object = search_request_object
780
+ command.response_representation = Google::Apis::CloudsearchV1::SearchResponse::Representation
781
+ command.response_class = Google::Apis::CloudsearchV1::SearchResponse
782
+ command.query['fields'] = fields unless fields.nil?
783
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
784
+ execute_or_queue_command(command, &block)
785
+ end
786
+
787
+ # Provides suggestions for autocompleting the query.
788
+ # @param [Google::Apis::CloudsearchV1::SuggestRequest] suggest_request_object
789
+ # @param [String] fields
790
+ # Selector specifying which fields to include in a partial response.
791
+ # @param [String] quota_user
792
+ # Available to use for quota purposes for server-side applications. Can be any
793
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
794
+ # @param [Google::Apis::RequestOptions] options
795
+ # Request-specific options
796
+ #
797
+ # @yield [result, err] Result & error if block supplied
798
+ # @yieldparam result [Google::Apis::CloudsearchV1::SuggestResponse] parsed result object
799
+ # @yieldparam err [StandardError] error object if request failed
800
+ #
801
+ # @return [Google::Apis::CloudsearchV1::SuggestResponse]
802
+ #
803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
806
+ def suggest_query(suggest_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
807
+ command = make_simple_command(:post, 'v1/query/suggest', options)
808
+ command.request_representation = Google::Apis::CloudsearchV1::SuggestRequest::Representation
809
+ command.request_object = suggest_request_object
810
+ command.response_representation = Google::Apis::CloudsearchV1::SuggestResponse::Representation
811
+ command.response_class = Google::Apis::CloudsearchV1::SuggestResponse
812
+ command.query['fields'] = fields unless fields.nil?
813
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
814
+ execute_or_queue_command(command, &block)
815
+ end
816
+
817
+ # Returns list of sources that user can use for Search and Suggest APIs.
818
+ # @param [String] page_token
819
+ # Number of sources to return in the response.
820
+ # @param [Boolean] request_options_debug_options_enable_debugging
821
+ # If set, the request will enable debugging features of Cloud Search.
822
+ # Only turn on this field, if asked by Google to help with debugging.
823
+ # @param [String] request_options_language_code
824
+ # The BCP-47 language code, such as "en-US" or "sr-Latn".
825
+ # For more information, see
826
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
827
+ # For translations.
828
+ # @param [String] request_options_search_application_id
829
+ # Id of the application created using SearchApplicationsService.
830
+ # @param [String] request_options_time_zone
831
+ # Current user's time zone id, such as "America/Los_Angeles" or
832
+ # "Australia/Sydney". These IDs are defined by
833
+ # [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/)
834
+ # project, and currently available in the file
835
+ # [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml)
836
+ # @param [String] fields
837
+ # Selector specifying which fields to include in a partial response.
838
+ # @param [String] quota_user
839
+ # Available to use for quota purposes for server-side applications. Can be any
840
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
841
+ # @param [Google::Apis::RequestOptions] options
842
+ # Request-specific options
843
+ #
844
+ # @yield [result, err] Result & error if block supplied
845
+ # @yieldparam result [Google::Apis::CloudsearchV1::ListQuerySourcesResponse] parsed result object
846
+ # @yieldparam err [StandardError] error object if request failed
847
+ #
848
+ # @return [Google::Apis::CloudsearchV1::ListQuerySourcesResponse]
849
+ #
850
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
851
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
853
+ def list_query_sources(page_token: nil, request_options_debug_options_enable_debugging: nil, request_options_language_code: nil, request_options_search_application_id: nil, request_options_time_zone: nil, fields: nil, quota_user: nil, options: nil, &block)
854
+ command = make_simple_command(:get, 'v1/query/sources', options)
855
+ command.response_representation = Google::Apis::CloudsearchV1::ListQuerySourcesResponse::Representation
856
+ command.response_class = Google::Apis::CloudsearchV1::ListQuerySourcesResponse
857
+ command.query['pageToken'] = page_token unless page_token.nil?
858
+ command.query['requestOptions.debugOptions.enableDebugging'] = request_options_debug_options_enable_debugging unless request_options_debug_options_enable_debugging.nil?
859
+ command.query['requestOptions.languageCode'] = request_options_language_code unless request_options_language_code.nil?
860
+ command.query['requestOptions.searchApplicationId'] = request_options_search_application_id unless request_options_search_application_id.nil?
861
+ command.query['requestOptions.timeZone'] = request_options_time_zone unless request_options_time_zone.nil?
862
+ command.query['fields'] = fields unless fields.nil?
863
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
864
+ execute_or_queue_command(command, &block)
865
+ end
866
+
867
+ # Creates data source.
868
+ # @param [Google::Apis::CloudsearchV1::DataSource] data_source_object
869
+ # @param [String] fields
870
+ # Selector specifying which fields to include in a partial response.
871
+ # @param [String] quota_user
872
+ # Available to use for quota purposes for server-side applications. Can be any
873
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
874
+ # @param [Google::Apis::RequestOptions] options
875
+ # Request-specific options
876
+ #
877
+ # @yield [result, err] Result & error if block supplied
878
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
879
+ # @yieldparam err [StandardError] error object if request failed
880
+ #
881
+ # @return [Google::Apis::CloudsearchV1::Operation]
882
+ #
883
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
884
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
885
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
886
+ def create_setting_datasource(data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
887
+ command = make_simple_command(:post, 'v1/settings/datasources', options)
888
+ command.request_representation = Google::Apis::CloudsearchV1::DataSource::Representation
889
+ command.request_object = data_source_object
890
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
891
+ command.response_class = Google::Apis::CloudsearchV1::Operation
892
+ command.query['fields'] = fields unless fields.nil?
893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
894
+ execute_or_queue_command(command, &block)
895
+ end
896
+
897
+ # Deletes a data source.
898
+ # @param [String] name
899
+ # Name of the data source.
900
+ # Format: datasources/`source_id`.
901
+ # @param [Boolean] debug_options_enable_debugging
902
+ # If set, the request will enable debugging features of Cloud Search.
903
+ # Only turn on this field, if asked by Google to help with debugging.
904
+ # @param [String] fields
905
+ # Selector specifying which fields to include in a partial response.
906
+ # @param [String] quota_user
907
+ # Available to use for quota purposes for server-side applications. Can be any
908
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
909
+ # @param [Google::Apis::RequestOptions] options
910
+ # Request-specific options
911
+ #
912
+ # @yield [result, err] Result & error if block supplied
913
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
914
+ # @yieldparam err [StandardError] error object if request failed
915
+ #
916
+ # @return [Google::Apis::CloudsearchV1::Operation]
917
+ #
918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
921
+ def delete_setting_datasource(name, debug_options_enable_debugging: nil, fields: nil, quota_user: nil, options: nil, &block)
922
+ command = make_simple_command(:delete, 'v1/settings/{+name}', options)
923
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
924
+ command.response_class = Google::Apis::CloudsearchV1::Operation
925
+ command.params['name'] = name unless name.nil?
926
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
927
+ command.query['fields'] = fields unless fields.nil?
928
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
929
+ execute_or_queue_command(command, &block)
930
+ end
931
+
932
+ # Gets a data source.
933
+ # @param [String] name
934
+ # Name of the data source resource.
935
+ # Format: datasources/`source_id`.
936
+ # @param [Boolean] debug_options_enable_debugging
937
+ # If set, the request will enable debugging features of Cloud Search.
938
+ # Only turn on this field, if asked by Google to help with debugging.
939
+ # @param [String] fields
940
+ # Selector specifying which fields to include in a partial response.
941
+ # @param [String] quota_user
942
+ # Available to use for quota purposes for server-side applications. Can be any
943
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
944
+ # @param [Google::Apis::RequestOptions] options
945
+ # Request-specific options
946
+ #
947
+ # @yield [result, err] Result & error if block supplied
948
+ # @yieldparam result [Google::Apis::CloudsearchV1::DataSource] parsed result object
949
+ # @yieldparam err [StandardError] error object if request failed
950
+ #
951
+ # @return [Google::Apis::CloudsearchV1::DataSource]
952
+ #
953
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
954
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
955
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
956
+ def get_setting_datasource(name, debug_options_enable_debugging: nil, fields: nil, quota_user: nil, options: nil, &block)
957
+ command = make_simple_command(:get, 'v1/settings/{+name}', options)
958
+ command.response_representation = Google::Apis::CloudsearchV1::DataSource::Representation
959
+ command.response_class = Google::Apis::CloudsearchV1::DataSource
960
+ command.params['name'] = name unless name.nil?
961
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
962
+ command.query['fields'] = fields unless fields.nil?
963
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
964
+ execute_or_queue_command(command, &block)
965
+ end
966
+
967
+ # Lists data sources.
968
+ # @param [Boolean] debug_options_enable_debugging
969
+ # If set, the request will enable debugging features of Cloud Search.
970
+ # Only turn on this field, if asked by Google to help with debugging.
971
+ # @param [Fixnum] page_size
972
+ # Maximum number of data sources to fetch in a request.
973
+ # The max value is 100.
974
+ # <br />The default value is 10
975
+ # @param [String] page_token
976
+ # Starting index of the results.
977
+ # @param [String] fields
978
+ # Selector specifying which fields to include in a partial response.
979
+ # @param [String] quota_user
980
+ # Available to use for quota purposes for server-side applications. Can be any
981
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
982
+ # @param [Google::Apis::RequestOptions] options
983
+ # Request-specific options
984
+ #
985
+ # @yield [result, err] Result & error if block supplied
986
+ # @yieldparam result [Google::Apis::CloudsearchV1::ListDataSourceResponse] parsed result object
987
+ # @yieldparam err [StandardError] error object if request failed
988
+ #
989
+ # @return [Google::Apis::CloudsearchV1::ListDataSourceResponse]
990
+ #
991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
994
+ def list_setting_datasources(debug_options_enable_debugging: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
995
+ command = make_simple_command(:get, 'v1/settings/datasources', options)
996
+ command.response_representation = Google::Apis::CloudsearchV1::ListDataSourceResponse::Representation
997
+ command.response_class = Google::Apis::CloudsearchV1::ListDataSourceResponse
998
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
999
+ command.query['pageSize'] = page_size unless page_size.nil?
1000
+ command.query['pageToken'] = page_token unless page_token.nil?
1001
+ command.query['fields'] = fields unless fields.nil?
1002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1003
+ execute_or_queue_command(command, &block)
1004
+ end
1005
+
1006
+ # Updates a data source.
1007
+ # @param [String] name
1008
+ # Name of the data source resource.
1009
+ # Format: datasources/`source_id`.
1010
+ # <br />The name is ignored when creating a data source.
1011
+ # @param [Google::Apis::CloudsearchV1::UpdateDataSourceRequest] update_data_source_request_object
1012
+ # @param [String] fields
1013
+ # Selector specifying which fields to include in a partial response.
1014
+ # @param [String] quota_user
1015
+ # Available to use for quota purposes for server-side applications. Can be any
1016
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1017
+ # @param [Google::Apis::RequestOptions] options
1018
+ # Request-specific options
1019
+ #
1020
+ # @yield [result, err] Result & error if block supplied
1021
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
1022
+ # @yieldparam err [StandardError] error object if request failed
1023
+ #
1024
+ # @return [Google::Apis::CloudsearchV1::Operation]
1025
+ #
1026
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1027
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1028
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1029
+ def update_datasource_data_source(name, update_data_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1030
+ command = make_simple_command(:put, 'v1/settings/{+name}', options)
1031
+ command.request_representation = Google::Apis::CloudsearchV1::UpdateDataSourceRequest::Representation
1032
+ command.request_object = update_data_source_request_object
1033
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
1034
+ command.response_class = Google::Apis::CloudsearchV1::Operation
1035
+ command.params['name'] = name unless name.nil?
1036
+ command.query['fields'] = fields unless fields.nil?
1037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1038
+ execute_or_queue_command(command, &block)
1039
+ end
1040
+
1041
+ # Creates a search application.
1042
+ # @param [Google::Apis::CloudsearchV1::SearchApplication] search_application_object
1043
+ # @param [String] fields
1044
+ # Selector specifying which fields to include in a partial response.
1045
+ # @param [String] quota_user
1046
+ # Available to use for quota purposes for server-side applications. Can be any
1047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1048
+ # @param [Google::Apis::RequestOptions] options
1049
+ # Request-specific options
1050
+ #
1051
+ # @yield [result, err] Result & error if block supplied
1052
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
1053
+ # @yieldparam err [StandardError] error object if request failed
1054
+ #
1055
+ # @return [Google::Apis::CloudsearchV1::Operation]
1056
+ #
1057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1060
+ def create_setting_searchapplication(search_application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1061
+ command = make_simple_command(:post, 'v1/settings/searchapplications', options)
1062
+ command.request_representation = Google::Apis::CloudsearchV1::SearchApplication::Representation
1063
+ command.request_object = search_application_object
1064
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
1065
+ command.response_class = Google::Apis::CloudsearchV1::Operation
1066
+ command.query['fields'] = fields unless fields.nil?
1067
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1068
+ execute_or_queue_command(command, &block)
1069
+ end
1070
+
1071
+ # Deletes a search application.
1072
+ # @param [String] name
1073
+ # The name of the search application to be deleted.
1074
+ # <br />Format: applications/`application_id`.
1075
+ # @param [Boolean] debug_options_enable_debugging
1076
+ # If set, the request will enable debugging features of Cloud Search.
1077
+ # Only turn on this field, if asked by Google to help with debugging.
1078
+ # @param [String] fields
1079
+ # Selector specifying which fields to include in a partial response.
1080
+ # @param [String] quota_user
1081
+ # Available to use for quota purposes for server-side applications. Can be any
1082
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1083
+ # @param [Google::Apis::RequestOptions] options
1084
+ # Request-specific options
1085
+ #
1086
+ # @yield [result, err] Result & error if block supplied
1087
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
1088
+ # @yieldparam err [StandardError] error object if request failed
1089
+ #
1090
+ # @return [Google::Apis::CloudsearchV1::Operation]
1091
+ #
1092
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1093
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1094
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1095
+ def delete_setting_searchapplication(name, debug_options_enable_debugging: nil, fields: nil, quota_user: nil, options: nil, &block)
1096
+ command = make_simple_command(:delete, 'v1/settings/{+name}', options)
1097
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
1098
+ command.response_class = Google::Apis::CloudsearchV1::Operation
1099
+ command.params['name'] = name unless name.nil?
1100
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
1101
+ command.query['fields'] = fields unless fields.nil?
1102
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1103
+ execute_or_queue_command(command, &block)
1104
+ end
1105
+
1106
+ # Gets the specified search application.
1107
+ # @param [String] name
1108
+ # Name of the search application.
1109
+ # <br />Format: applications/`application_id`.
1110
+ # @param [Boolean] debug_options_enable_debugging
1111
+ # If set, the request will enable debugging features of Cloud Search.
1112
+ # Only turn on this field, if asked by Google to help with debugging.
1113
+ # @param [String] fields
1114
+ # Selector specifying which fields to include in a partial response.
1115
+ # @param [String] quota_user
1116
+ # Available to use for quota purposes for server-side applications. Can be any
1117
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1118
+ # @param [Google::Apis::RequestOptions] options
1119
+ # Request-specific options
1120
+ #
1121
+ # @yield [result, err] Result & error if block supplied
1122
+ # @yieldparam result [Google::Apis::CloudsearchV1::SearchApplication] parsed result object
1123
+ # @yieldparam err [StandardError] error object if request failed
1124
+ #
1125
+ # @return [Google::Apis::CloudsearchV1::SearchApplication]
1126
+ #
1127
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1128
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1129
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1130
+ def get_setting_searchapplication(name, debug_options_enable_debugging: nil, fields: nil, quota_user: nil, options: nil, &block)
1131
+ command = make_simple_command(:get, 'v1/settings/{+name}', options)
1132
+ command.response_representation = Google::Apis::CloudsearchV1::SearchApplication::Representation
1133
+ command.response_class = Google::Apis::CloudsearchV1::SearchApplication
1134
+ command.params['name'] = name unless name.nil?
1135
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
1136
+ command.query['fields'] = fields unless fields.nil?
1137
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1138
+ execute_or_queue_command(command, &block)
1139
+ end
1140
+
1141
+ # Lists all search applications.
1142
+ # @param [Boolean] debug_options_enable_debugging
1143
+ # If set, the request will enable debugging features of Cloud Search.
1144
+ # Only turn on this field, if asked by Google to help with debugging.
1145
+ # @param [Fixnum] page_size
1146
+ # The maximum number of items to return.
1147
+ # @param [String] page_token
1148
+ # The next_page_token value returned from a previous List request, if any.
1149
+ # <br/> The default value is 10
1150
+ # @param [String] fields
1151
+ # Selector specifying which fields to include in a partial response.
1152
+ # @param [String] quota_user
1153
+ # Available to use for quota purposes for server-side applications. Can be any
1154
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1155
+ # @param [Google::Apis::RequestOptions] options
1156
+ # Request-specific options
1157
+ #
1158
+ # @yield [result, err] Result & error if block supplied
1159
+ # @yieldparam result [Google::Apis::CloudsearchV1::ListSearchApplicationsResponse] parsed result object
1160
+ # @yieldparam err [StandardError] error object if request failed
1161
+ #
1162
+ # @return [Google::Apis::CloudsearchV1::ListSearchApplicationsResponse]
1163
+ #
1164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1166
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1167
+ def list_setting_searchapplications(debug_options_enable_debugging: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1168
+ command = make_simple_command(:get, 'v1/settings/searchapplications', options)
1169
+ command.response_representation = Google::Apis::CloudsearchV1::ListSearchApplicationsResponse::Representation
1170
+ command.response_class = Google::Apis::CloudsearchV1::ListSearchApplicationsResponse
1171
+ command.query['debugOptions.enableDebugging'] = debug_options_enable_debugging unless debug_options_enable_debugging.nil?
1172
+ command.query['pageSize'] = page_size unless page_size.nil?
1173
+ command.query['pageToken'] = page_token unless page_token.nil?
1174
+ command.query['fields'] = fields unless fields.nil?
1175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1176
+ execute_or_queue_command(command, &block)
1177
+ end
1178
+
1179
+ # Resets a search application to default settings. This will return an empty
1180
+ # response.
1181
+ # @param [String] name
1182
+ # The name of the search application to be reset.
1183
+ # <br />Format: applications/`application_id`.
1184
+ # @param [Google::Apis::CloudsearchV1::ResetSearchApplicationRequest] reset_search_application_request_object
1185
+ # @param [String] fields
1186
+ # Selector specifying which fields to include in a partial response.
1187
+ # @param [String] quota_user
1188
+ # Available to use for quota purposes for server-side applications. Can be any
1189
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1190
+ # @param [Google::Apis::RequestOptions] options
1191
+ # Request-specific options
1192
+ #
1193
+ # @yield [result, err] Result & error if block supplied
1194
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
1195
+ # @yieldparam err [StandardError] error object if request failed
1196
+ #
1197
+ # @return [Google::Apis::CloudsearchV1::Operation]
1198
+ #
1199
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1200
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1201
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1202
+ def reset_searchapplication_search_application(name, reset_search_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1203
+ command = make_simple_command(:post, 'v1/settings/{+name}:reset', options)
1204
+ command.request_representation = Google::Apis::CloudsearchV1::ResetSearchApplicationRequest::Representation
1205
+ command.request_object = reset_search_application_request_object
1206
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
1207
+ command.response_class = Google::Apis::CloudsearchV1::Operation
1208
+ command.params['name'] = name unless name.nil?
1209
+ command.query['fields'] = fields unless fields.nil?
1210
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1211
+ execute_or_queue_command(command, &block)
1212
+ end
1213
+
1214
+ # Updates a search application.
1215
+ # @param [String] name
1216
+ # Name of the Search Application.
1217
+ # <br />Format: searchapplications/`application_id`.
1218
+ # @param [Google::Apis::CloudsearchV1::SearchApplication] search_application_object
1219
+ # @param [String] fields
1220
+ # Selector specifying which fields to include in a partial response.
1221
+ # @param [String] quota_user
1222
+ # Available to use for quota purposes for server-side applications. Can be any
1223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1224
+ # @param [Google::Apis::RequestOptions] options
1225
+ # Request-specific options
1226
+ #
1227
+ # @yield [result, err] Result & error if block supplied
1228
+ # @yieldparam result [Google::Apis::CloudsearchV1::Operation] parsed result object
1229
+ # @yieldparam err [StandardError] error object if request failed
1230
+ #
1231
+ # @return [Google::Apis::CloudsearchV1::Operation]
1232
+ #
1233
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1234
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1235
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1236
+ def update_setting_searchapplication(name, search_application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1237
+ command = make_simple_command(:put, 'v1/settings/{+name}', options)
1238
+ command.request_representation = Google::Apis::CloudsearchV1::SearchApplication::Representation
1239
+ command.request_object = search_application_object
1240
+ command.response_representation = Google::Apis::CloudsearchV1::Operation::Representation
1241
+ command.response_class = Google::Apis::CloudsearchV1::Operation
1242
+ command.params['name'] = name unless name.nil?
1243
+ command.query['fields'] = fields unless fields.nil?
1244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1245
+ execute_or_queue_command(command, &block)
1246
+ end
1247
+
1248
+ # Gets indexed item statistics aggreggated across all data sources.
1249
+ # @param [Fixnum] from_date_day
1250
+ # Day of month. Must be from 1 to 31 and valid for the year and month.
1251
+ # @param [Fixnum] from_date_month
1252
+ # Month of date. Must be from 1 to 12.
1253
+ # @param [Fixnum] from_date_year
1254
+ # Year of date. Must be from 1 to 9999.
1255
+ # @param [Fixnum] to_date_day
1256
+ # Day of month. Must be from 1 to 31 and valid for the year and month.
1257
+ # @param [Fixnum] to_date_month
1258
+ # Month of date. Must be from 1 to 12.
1259
+ # @param [Fixnum] to_date_year
1260
+ # Year of date. Must be from 1 to 9999.
1261
+ # @param [String] fields
1262
+ # Selector specifying which fields to include in a partial response.
1263
+ # @param [String] quota_user
1264
+ # Available to use for quota purposes for server-side applications. Can be any
1265
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1266
+ # @param [Google::Apis::RequestOptions] options
1267
+ # Request-specific options
1268
+ #
1269
+ # @yield [result, err] Result & error if block supplied
1270
+ # @yieldparam result [Google::Apis::CloudsearchV1::GetCustomerIndexStatsResponse] parsed result object
1271
+ # @yieldparam err [StandardError] error object if request failed
1272
+ #
1273
+ # @return [Google::Apis::CloudsearchV1::GetCustomerIndexStatsResponse]
1274
+ #
1275
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1276
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1277
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1278
+ def get_stat_index(from_date_day: nil, from_date_month: nil, from_date_year: nil, to_date_day: nil, to_date_month: nil, to_date_year: nil, fields: nil, quota_user: nil, options: nil, &block)
1279
+ command = make_simple_command(:get, 'v1/stats/index', options)
1280
+ command.response_representation = Google::Apis::CloudsearchV1::GetCustomerIndexStatsResponse::Representation
1281
+ command.response_class = Google::Apis::CloudsearchV1::GetCustomerIndexStatsResponse
1282
+ command.query['fromDate.day'] = from_date_day unless from_date_day.nil?
1283
+ command.query['fromDate.month'] = from_date_month unless from_date_month.nil?
1284
+ command.query['fromDate.year'] = from_date_year unless from_date_year.nil?
1285
+ command.query['toDate.day'] = to_date_day unless to_date_day.nil?
1286
+ command.query['toDate.month'] = to_date_month unless to_date_month.nil?
1287
+ command.query['toDate.year'] = to_date_year unless to_date_year.nil?
1288
+ command.query['fields'] = fields unless fields.nil?
1289
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1290
+ execute_or_queue_command(command, &block)
1291
+ end
1292
+
1293
+ # Gets indexed item statistics for a single data source.
1294
+ # @param [String] name
1295
+ # The resource id of the data source to retrieve statistics for,
1296
+ # in the following format: "datasources/`source_id`"
1297
+ # @param [Fixnum] from_date_day
1298
+ # Day of month. Must be from 1 to 31 and valid for the year and month.
1299
+ # @param [Fixnum] from_date_month
1300
+ # Month of date. Must be from 1 to 12.
1301
+ # @param [Fixnum] from_date_year
1302
+ # Year of date. Must be from 1 to 9999.
1303
+ # @param [Fixnum] to_date_day
1304
+ # Day of month. Must be from 1 to 31 and valid for the year and month.
1305
+ # @param [Fixnum] to_date_month
1306
+ # Month of date. Must be from 1 to 12.
1307
+ # @param [Fixnum] to_date_year
1308
+ # Year of date. Must be from 1 to 9999.
1309
+ # @param [String] fields
1310
+ # Selector specifying which fields to include in a partial response.
1311
+ # @param [String] quota_user
1312
+ # Available to use for quota purposes for server-side applications. Can be any
1313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1314
+ # @param [Google::Apis::RequestOptions] options
1315
+ # Request-specific options
1316
+ #
1317
+ # @yield [result, err] Result & error if block supplied
1318
+ # @yieldparam result [Google::Apis::CloudsearchV1::GetDataSourceIndexStatsResponse] parsed result object
1319
+ # @yieldparam err [StandardError] error object if request failed
1320
+ #
1321
+ # @return [Google::Apis::CloudsearchV1::GetDataSourceIndexStatsResponse]
1322
+ #
1323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1326
+ def get_stat_index_datasource(name, from_date_day: nil, from_date_month: nil, from_date_year: nil, to_date_day: nil, to_date_month: nil, to_date_year: nil, fields: nil, quota_user: nil, options: nil, &block)
1327
+ command = make_simple_command(:get, 'v1/stats/index/{+name}', options)
1328
+ command.response_representation = Google::Apis::CloudsearchV1::GetDataSourceIndexStatsResponse::Representation
1329
+ command.response_class = Google::Apis::CloudsearchV1::GetDataSourceIndexStatsResponse
1330
+ command.params['name'] = name unless name.nil?
1331
+ command.query['fromDate.day'] = from_date_day unless from_date_day.nil?
1332
+ command.query['fromDate.month'] = from_date_month unless from_date_month.nil?
1333
+ command.query['fromDate.year'] = from_date_year unless from_date_year.nil?
1334
+ command.query['toDate.day'] = to_date_day unless to_date_day.nil?
1335
+ command.query['toDate.month'] = to_date_month unless to_date_month.nil?
1336
+ command.query['toDate.year'] = to_date_year unless to_date_year.nil?
1337
+ command.query['fields'] = fields unless fields.nil?
1338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1339
+ execute_or_queue_command(command, &block)
1340
+ end
1341
+
1342
+ protected
1343
+
1344
+ def apply_command_defaults(command)
1345
+ command.query['key'] = key unless key.nil?
1346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1347
+ end
1348
+ end
1349
+ end
1350
+ end
1351
+ end