google-cloud-discovery_engine-v1beta 0.26.0 → 0.28.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 (275) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +5 -5
  4. data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/client.rb +591 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/credentials.rb +49 -0
  6. data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/paths.rb +50 -0
  7. data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest/client.rb +534 -0
  8. data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest/service_stub.rb +204 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest.rb +52 -0
  10. data/lib/google/cloud/discovery_engine/v1beta/acl_config_service.rb +55 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/assistant_service/client.rb +1058 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/assistant_service/credentials.rb +50 -0
  13. data/lib/google/cloud/discovery_engine/v1beta/assistant_service/paths.rb +230 -0
  14. data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest/client.rb +975 -0
  15. data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest/service_stub.rb +444 -0
  16. data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest.rb +52 -0
  17. data/lib/google/cloud/discovery_engine/v1beta/assistant_service.rb +55 -0
  18. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/client.rb +823 -0
  19. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/credentials.rb +49 -0
  20. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/operations.rb +843 -0
  21. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/paths.rb +135 -0
  22. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/client.rb +752 -0
  23. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/operations.rb +1152 -0
  24. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/service_stub.rb +341 -0
  25. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest.rb +53 -0
  26. data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service.rb +56 -0
  27. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +148 -12
  28. data/lib/google/cloud/discovery_engine/v1beta/completion_service/credentials.rb +5 -1
  29. data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +2 -0
  30. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +141 -12
  31. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +23 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +62 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +2 -0
  34. data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +3 -1
  35. data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +53 -0
  36. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +2 -0
  37. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +212 -10
  38. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/credentials.rb +3 -1
  39. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +46 -0
  40. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +207 -10
  41. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +72 -0
  42. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +13 -1
  43. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/credentials.rb +3 -1
  44. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +2 -0
  45. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/paths.rb +104 -0
  46. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +13 -1
  47. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +23 -0
  48. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +10 -3
  49. data/lib/google/cloud/discovery_engine/v1beta/document_service/credentials.rb +3 -1
  50. data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +2 -0
  51. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +10 -3
  52. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +23 -0
  53. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +226 -6
  54. data/lib/google/cloud/discovery_engine/v1beta/engine_service/credentials.rb +3 -1
  55. data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +2 -0
  56. data/lib/google/cloud/discovery_engine/v1beta/engine_service/paths.rb +104 -0
  57. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +212 -6
  58. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +23 -0
  59. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +123 -0
  60. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +13 -9
  61. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +4 -1
  62. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +2 -0
  63. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +21 -0
  64. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +13 -9
  65. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +23 -0
  66. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +2 -0
  67. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +3 -1
  68. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +2 -0
  69. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/client.rb +1180 -0
  70. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/credentials.rb +49 -0
  71. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/operations.rb +843 -0
  72. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/paths.rb +154 -0
  73. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/client.rb +1088 -0
  74. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/operations.rb +1152 -0
  75. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/service_stub.rb +511 -0
  76. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest.rb +53 -0
  77. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service.rb +56 -0
  78. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/client.rb +1050 -0
  79. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/credentials.rb +49 -0
  80. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/paths.rb +86 -0
  81. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest/client.rb +965 -0
  82. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest/service_stub.rb +451 -0
  83. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest.rb +52 -0
  84. data/lib/google/cloud/discovery_engine/v1beta/license_config_service.rb +55 -0
  85. data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +5 -1
  86. data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +3 -1
  87. data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +2 -0
  88. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +5 -1
  89. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +23 -0
  90. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +4 -2
  91. data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +3 -1
  92. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +4 -2
  93. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +4 -2
  94. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/credentials.rb +3 -1
  95. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +4 -2
  96. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +10 -3
  97. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +2 -0
  98. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +3 -1
  99. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +2 -0
  100. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +2 -0
  101. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +23 -0
  102. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +2 -0
  103. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +3 -1
  104. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +2 -0
  105. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +2 -0
  106. data/lib/google/cloud/discovery_engine/v1beta/schema_service/credentials.rb +3 -1
  107. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +2 -0
  108. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +2 -0
  109. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +23 -0
  110. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +196 -38
  111. data/lib/google/cloud/discovery_engine/v1beta/search_service/credentials.rb +4 -1
  112. data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +21 -0
  113. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +196 -38
  114. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +2 -0
  115. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/credentials.rb +3 -1
  116. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +2 -0
  117. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +2 -0
  118. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +23 -0
  119. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +209 -3
  120. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/credentials.rb +3 -1
  121. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +195 -3
  122. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/service_stub.rb +153 -0
  123. data/lib/google/cloud/discovery_engine/v1beta/session_service/client.rb +27 -9
  124. data/lib/google/cloud/discovery_engine/v1beta/session_service/credentials.rb +4 -1
  125. data/lib/google/cloud/discovery_engine/v1beta/session_service/paths.rb +46 -0
  126. data/lib/google/cloud/discovery_engine/v1beta/session_service/rest/client.rb +27 -9
  127. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +3 -3
  128. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/credentials.rb +3 -1
  129. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +2 -0
  130. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +3 -3
  131. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +23 -0
  132. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +7 -0
  133. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +25 -11
  134. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/credentials.rb +4 -1
  135. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +2 -0
  136. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +25 -11
  137. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +23 -0
  138. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
  139. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/client.rb +768 -0
  140. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/credentials.rb +49 -0
  141. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/operations.rb +843 -0
  142. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/paths.rb +71 -0
  143. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/client.rb +704 -0
  144. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/operations.rb +1152 -0
  145. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/service_stub.rb +265 -0
  146. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest.rb +53 -0
  147. data/lib/google/cloud/discovery_engine/v1beta/user_license_service.rb +56 -0
  148. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/client.rb +590 -0
  149. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/credentials.rb +49 -0
  150. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/paths.rb +71 -0
  151. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest/client.rb +533 -0
  152. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest/service_stub.rb +204 -0
  153. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest.rb +52 -0
  154. data/lib/google/cloud/discovery_engine/v1beta/user_store_service.rb +55 -0
  155. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  156. data/lib/google/cloud/discovery_engine/v1beta.rb +11 -4
  157. data/lib/google/cloud/discoveryengine/v1beta/acl_config_pb.rb +25 -0
  158. data/lib/google/cloud/discoveryengine/v1beta/acl_config_service_pb.rb +28 -0
  159. data/lib/google/cloud/discoveryengine/v1beta/acl_config_service_services_pb.rb +49 -0
  160. data/lib/google/cloud/discoveryengine/v1beta/agent_gateway_setting_pb.rb +25 -0
  161. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +6 -1
  162. data/lib/google/cloud/discoveryengine/v1beta/assist_answer_pb.rb +48 -0
  163. data/lib/google/cloud/discoveryengine/v1beta/assistant_pb.rb +35 -0
  164. data/lib/google/cloud/discoveryengine/v1beta/assistant_service_pb.rb +48 -0
  165. data/lib/google/cloud/discoveryengine/v1beta/assistant_service_services_pb.rb +56 -0
  166. data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +4 -1
  167. data/lib/google/cloud/discoveryengine/v1beta/cmek_config_service_pb.rb +39 -0
  168. data/lib/google/cloud/discoveryengine/v1beta/cmek_config_service_services_pb.rb +55 -0
  169. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +12 -1
  170. data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +4 -1
  171. data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +6 -0
  172. data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +6 -1
  173. data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +1 -1
  174. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +12 -1
  175. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +8 -0
  176. data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +11 -1
  177. data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +1 -1
  178. data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +4 -1
  179. data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +1 -1
  180. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +1 -1
  181. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +17 -1
  182. data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +3 -1
  183. data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +28 -6
  184. data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +1 -1
  185. data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +1 -1
  186. data/lib/google/cloud/discoveryengine/v1beta/feedback_pb.rb +28 -0
  187. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +11 -1
  188. data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
  189. data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_pb.rb +26 -0
  190. data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_service_pb.rb +44 -0
  191. data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_service_services_pb.rb +58 -0
  192. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +1 -1
  193. data/lib/google/cloud/discoveryengine/v1beta/license_config_pb.rb +27 -0
  194. data/lib/google/cloud/discoveryengine/v1beta/license_config_service_pb.rb +36 -0
  195. data/lib/google/cloud/discoveryengine/v1beta/license_config_service_services_pb.rb +65 -0
  196. data/lib/google/cloud/discoveryengine/v1beta/logging_pb.rb +24 -0
  197. data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +10 -1
  198. data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +2 -1
  199. data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
  200. data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +1 -1
  201. data/lib/google/cloud/discoveryengine/v1beta/safety_pb.rb +26 -0
  202. data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +1 -1
  203. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +1 -1
  204. data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +1 -1
  205. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +18 -2
  206. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +1 -1
  207. data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +3 -1
  208. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +4 -1
  209. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_services_pb.rb +14 -0
  210. data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +2 -1
  211. data/lib/google/cloud/discoveryengine/v1beta/session_service_pb.rb +1 -1
  212. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
  213. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +1 -1
  214. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +2 -1
  215. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
  216. data/lib/google/cloud/discoveryengine/v1beta/user_license_pb.rb +27 -0
  217. data/lib/google/cloud/discoveryengine/v1beta/user_license_service_pb.rb +38 -0
  218. data/lib/google/cloud/discoveryengine/v1beta/user_license_service_services_pb.rb +52 -0
  219. data/lib/google/cloud/discoveryengine/v1beta/user_store_pb.rb +24 -0
  220. data/lib/google/cloud/discoveryengine/v1beta/user_store_service_pb.rb +29 -0
  221. data/lib/google/cloud/discoveryengine/v1beta/user_store_service_services_pb.rb +47 -0
  222. data/proto_docs/google/cloud/discoveryengine/v1beta/acl_config.rb +43 -0
  223. data/proto_docs/google/cloud/discoveryengine/v1beta/acl_config_service.rb +49 -0
  224. data/proto_docs/google/cloud/discoveryengine/v1beta/agent_gateway_setting.rb +53 -0
  225. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +117 -2
  226. data/proto_docs/google/cloud/discoveryengine/v1beta/assist_answer.rb +401 -0
  227. data/proto_docs/google/cloud/discoveryengine/v1beta/assistant.rb +253 -0
  228. data/proto_docs/google/cloud/discoveryengine/v1beta/assistant_service.rb +368 -0
  229. data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +60 -1
  230. data/proto_docs/google/cloud/discoveryengine/v1beta/cmek_config_service.rb +228 -0
  231. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +223 -0
  232. data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +115 -13
  233. data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +119 -6
  234. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +178 -8
  235. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +218 -9
  236. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +12 -0
  237. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +115 -10
  238. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +30 -0
  239. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +1 -1
  240. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +388 -8
  241. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +2 -2
  242. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +13 -11
  243. data/proto_docs/google/cloud/discoveryengine/v1beta/feedback.rb +147 -0
  244. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +190 -9
  245. data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +9 -0
  246. data/proto_docs/google/cloud/discoveryengine/v1beta/identity_mapping_store.rb +84 -0
  247. data/proto_docs/google/cloud/discoveryengine/v1beta/identity_mapping_store_service.rb +280 -0
  248. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +25 -5
  249. data/proto_docs/google/cloud/discoveryengine/v1beta/license_config.rb +101 -0
  250. data/proto_docs/google/cloud/discoveryengine/v1beta/license_config_service.rb +224 -0
  251. data/proto_docs/google/cloud/discoveryengine/v1beta/logging.rb +40 -0
  252. data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +214 -0
  253. data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +18 -0
  254. data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +9 -5
  255. data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +4 -2
  256. data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +2 -2
  257. data/proto_docs/google/cloud/discoveryengine/v1beta/safety.rb +108 -0
  258. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +461 -69
  259. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +50 -3
  260. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +30 -0
  261. data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +21 -0
  262. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +8 -2
  263. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +7 -3
  264. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +39 -3
  265. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +14 -6
  266. data/proto_docs/google/cloud/discoveryengine/v1beta/user_license.rb +100 -0
  267. data/proto_docs/google/cloud/discoveryengine/v1beta/user_license_service.rb +202 -0
  268. data/proto_docs/google/cloud/discoveryengine/v1beta/user_store.rb +67 -0
  269. data/proto_docs/google/cloud/discoveryengine/v1beta/user_store_service.rb +54 -0
  270. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  271. data/proto_docs/google/iam/v1/options.rb +50 -0
  272. data/proto_docs/google/iam/v1/policy.rb +426 -0
  273. data/proto_docs/google/type/expr.rb +75 -0
  274. data/proto_docs/google/type/latlng.rb +38 -0
  275. metadata +120 -3
@@ -0,0 +1,1180 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/discoveryengine/v1beta/identity_mapping_store_service_pb"
21
+ require "google/cloud/location"
22
+
23
+ module Google
24
+ module Cloud
25
+ module DiscoveryEngine
26
+ module V1beta
27
+ module IdentityMappingStoreService
28
+ ##
29
+ # Client for the IdentityMappingStoreService service.
30
+ #
31
+ # Service for managing Identity Mapping Stores.
32
+ #
33
+ class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
39
+
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :identity_mapping_store_service_stub
44
+
45
+ ##
46
+ # Configure the IdentityMappingStoreService Client class.
47
+ #
48
+ # See {::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all IdentityMappingStoreService clients
54
+ # ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ namespace = ["Google", "Cloud", "DiscoveryEngine", "V1beta"]
66
+ parent_config = while namespace.any?
67
+ parent_name = namespace.join "::"
68
+ parent_const = const_get parent_name
69
+ break parent_const.configure if parent_const.respond_to? :configure
70
+ namespace.pop
71
+ end
72
+ default_config = Client::Configuration.new parent_config
73
+
74
+ default_config
75
+ end
76
+ yield @configure if block_given?
77
+ @configure
78
+ end
79
+
80
+ ##
81
+ # Configure the IdentityMappingStoreService Client instance.
82
+ #
83
+ # The configuration is set to the derived mode, meaning that values can be changed,
84
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
85
+ # should be made on {Client.configure}.
86
+ #
87
+ # See {::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client::Configuration}
88
+ # for a description of the configuration fields.
89
+ #
90
+ # @yield [config] Configure the Client client.
91
+ # @yieldparam config [Client::Configuration]
92
+ #
93
+ # @return [Client::Configuration]
94
+ #
95
+ def configure
96
+ yield @config if block_given?
97
+ @config
98
+ end
99
+
100
+ ##
101
+ # The effective universe domain
102
+ #
103
+ # @return [String]
104
+ #
105
+ def universe_domain
106
+ @identity_mapping_store_service_stub.universe_domain
107
+ end
108
+
109
+ ##
110
+ # Create a new IdentityMappingStoreService client object.
111
+ #
112
+ # @example
113
+ #
114
+ # # Create a client using the default configuration
115
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new
116
+ #
117
+ # # Create a client using a custom configuration
118
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new do |config|
119
+ # config.timeout = 10.0
120
+ # end
121
+ #
122
+ # @yield [config] Configure the IdentityMappingStoreService client.
123
+ # @yieldparam config [Client::Configuration]
124
+ #
125
+ def initialize
126
+ # These require statements are intentionally placed here to initialize
127
+ # the gRPC module only when it's required.
128
+ # See https://github.com/googleapis/toolkit/issues/446
129
+ require "gapic/grpc"
130
+ require "google/cloud/discoveryengine/v1beta/identity_mapping_store_service_services_pb"
131
+
132
+ # Create the configuration object
133
+ @config = Configuration.new Client.configure
134
+
135
+ # Yield the configuration if needed
136
+ yield @config if block_given?
137
+
138
+ # Create credentials
139
+ credentials = @config.credentials
140
+ # Use self-signed JWT if the endpoint is unchanged from default,
141
+ # but only if the default endpoint does not have a region prefix.
142
+ enable_self_signed_jwt = @config.endpoint.nil? ||
143
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
144
+ !@config.endpoint.split(".").first.include?("-"))
145
+ credentials ||= Credentials.default scope: @config.scope,
146
+ enable_self_signed_jwt: enable_self_signed_jwt
147
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
148
+ credentials = Credentials.new credentials, scope: @config.scope
149
+ end
150
+ @quota_project_id = @config.quota_project
151
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
152
+
153
+ @operations_client = Operations.new do |config|
154
+ config.credentials = credentials
155
+ config.quota_project = @quota_project_id
156
+ config.endpoint = @config.endpoint
157
+ config.universe_domain = @config.universe_domain
158
+ end
159
+
160
+ @identity_mapping_store_service_stub = ::Gapic::ServiceStub.new(
161
+ ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Stub,
162
+ credentials: credentials,
163
+ endpoint: @config.endpoint,
164
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
165
+ universe_domain: @config.universe_domain,
166
+ channel_args: @config.channel_args,
167
+ interceptors: @config.interceptors,
168
+ channel_pool_config: @config.channel_pool,
169
+ logger: @config.logger
170
+ )
171
+
172
+ @identity_mapping_store_service_stub.stub_logger&.info do |entry|
173
+ entry.set_system_name
174
+ entry.set_service
175
+ entry.message = "Created client for #{entry.service}"
176
+ entry.set_credentials_fields credentials
177
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
178
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
179
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
180
+ end
181
+
182
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
183
+ config.credentials = credentials
184
+ config.quota_project = @quota_project_id
185
+ config.endpoint = @identity_mapping_store_service_stub.endpoint
186
+ config.universe_domain = @identity_mapping_store_service_stub.universe_domain
187
+ config.logger = @identity_mapping_store_service_stub.logger if config.respond_to? :logger=
188
+ end
189
+ end
190
+
191
+ ##
192
+ # Get the associated client for long-running operations.
193
+ #
194
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Operations]
195
+ #
196
+ attr_reader :operations_client
197
+
198
+ ##
199
+ # Get the associated client for mix-in of the Locations.
200
+ #
201
+ # @return [Google::Cloud::Location::Locations::Client]
202
+ #
203
+ attr_reader :location_client
204
+
205
+ ##
206
+ # The logger used for request/response debug logging.
207
+ #
208
+ # @return [Logger]
209
+ #
210
+ def logger
211
+ @identity_mapping_store_service_stub.logger
212
+ end
213
+
214
+ # Service calls
215
+
216
+ ##
217
+ # Creates a new Identity Mapping Store.
218
+ #
219
+ # @overload create_identity_mapping_store(request, options = nil)
220
+ # Pass arguments to `create_identity_mapping_store` via a request object, either of type
221
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CreateIdentityMappingStoreRequest} or an equivalent Hash.
222
+ #
223
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::CreateIdentityMappingStoreRequest, ::Hash]
224
+ # A request object representing the call parameters. Required. To specify no
225
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
226
+ # @param options [::Gapic::CallOptions, ::Hash]
227
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
228
+ #
229
+ # @overload create_identity_mapping_store(cmek_config_name: nil, disable_cmek: nil, parent: nil, identity_mapping_store_id: nil, identity_mapping_store: nil)
230
+ # Pass arguments to `create_identity_mapping_store` via keyword arguments. Note that at
231
+ # least one keyword argument is required. To specify no parameters, or to keep all
232
+ # the default parameter values, pass an empty Hash as a request object (see above).
233
+ #
234
+ # @param cmek_config_name [::String]
235
+ # Resource name of the CmekConfig to use for protecting this Identity
236
+ # Mapping Store.
237
+ #
238
+ # Note: The following parameters are mutually exclusive: `cmek_config_name`, `disable_cmek`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
239
+ # @param disable_cmek [::Boolean]
240
+ # Identity Mapping Store without CMEK protections. If a default CmekConfig
241
+ # is set for the project, setting this field will override the default
242
+ # CmekConfig as well.
243
+ #
244
+ # Note: The following parameters are mutually exclusive: `disable_cmek`, `cmek_config_name`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
245
+ # @param parent [::String]
246
+ # Required. The parent collection resource name, such as
247
+ # `projects/{project}/locations/{location}`.
248
+ # @param identity_mapping_store_id [::String]
249
+ # Required. The ID of the Identity Mapping Store to create.
250
+ #
251
+ # The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
252
+ # (_), and hyphens (-). The maximum length is 63 characters.
253
+ # @param identity_mapping_store [::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore, ::Hash]
254
+ # Required. The Identity Mapping Store to create.
255
+ #
256
+ # @yield [response, operation] Access the result along with the RPC operation
257
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore]
258
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
259
+ #
260
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore]
261
+ #
262
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
263
+ #
264
+ # @example Basic example
265
+ # require "google/cloud/discovery_engine/v1beta"
266
+ #
267
+ # # Create a client object. The client can be reused for multiple calls.
268
+ # client = Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new
269
+ #
270
+ # # Create a request. To set request fields, pass in keyword arguments.
271
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CreateIdentityMappingStoreRequest.new
272
+ #
273
+ # # Call the create_identity_mapping_store method.
274
+ # result = client.create_identity_mapping_store request
275
+ #
276
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore.
277
+ # p result
278
+ #
279
+ def create_identity_mapping_store request, options = nil
280
+ raise ::ArgumentError, "request must be provided" if request.nil?
281
+
282
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::CreateIdentityMappingStoreRequest
283
+
284
+ # Converts hash and nil to an options object
285
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
286
+
287
+ # Customize the options with defaults
288
+ metadata = @config.rpcs.create_identity_mapping_store.metadata.to_h
289
+
290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
293
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
294
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
295
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
296
+
297
+ header_params = {}
298
+ if request.parent
299
+ header_params["parent"] = request.parent
300
+ end
301
+
302
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
303
+ metadata[:"x-goog-request-params"] ||= request_params_header
304
+
305
+ options.apply_defaults timeout: @config.rpcs.create_identity_mapping_store.timeout,
306
+ metadata: metadata,
307
+ retry_policy: @config.rpcs.create_identity_mapping_store.retry_policy
308
+
309
+ options.apply_defaults timeout: @config.timeout,
310
+ metadata: @config.metadata,
311
+ retry_policy: @config.retry_policy
312
+
313
+ @identity_mapping_store_service_stub.call_rpc :create_identity_mapping_store, request, options: options do |response, operation|
314
+ yield response, operation if block_given?
315
+ end
316
+ rescue ::GRPC::BadStatus => e
317
+ raise ::Google::Cloud::Error.from_error(e)
318
+ end
319
+
320
+ ##
321
+ # Gets the Identity Mapping Store.
322
+ #
323
+ # @overload get_identity_mapping_store(request, options = nil)
324
+ # Pass arguments to `get_identity_mapping_store` via a request object, either of type
325
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GetIdentityMappingStoreRequest} or an equivalent Hash.
326
+ #
327
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::GetIdentityMappingStoreRequest, ::Hash]
328
+ # A request object representing the call parameters. Required. To specify no
329
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
330
+ # @param options [::Gapic::CallOptions, ::Hash]
331
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
332
+ #
333
+ # @overload get_identity_mapping_store(name: nil)
334
+ # Pass arguments to `get_identity_mapping_store` via keyword arguments. Note that at
335
+ # least one keyword argument is required. To specify no parameters, or to keep all
336
+ # the default parameter values, pass an empty Hash as a request object (see above).
337
+ #
338
+ # @param name [::String]
339
+ # Required. The name of the Identity Mapping Store to get.
340
+ # Format:
341
+ # `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
342
+ #
343
+ # @yield [response, operation] Access the result along with the RPC operation
344
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore]
345
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
346
+ #
347
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore]
348
+ #
349
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
350
+ #
351
+ # @example Basic example
352
+ # require "google/cloud/discovery_engine/v1beta"
353
+ #
354
+ # # Create a client object. The client can be reused for multiple calls.
355
+ # client = Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new
356
+ #
357
+ # # Create a request. To set request fields, pass in keyword arguments.
358
+ # request = Google::Cloud::DiscoveryEngine::V1beta::GetIdentityMappingStoreRequest.new
359
+ #
360
+ # # Call the get_identity_mapping_store method.
361
+ # result = client.get_identity_mapping_store request
362
+ #
363
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore.
364
+ # p result
365
+ #
366
+ def get_identity_mapping_store request, options = nil
367
+ raise ::ArgumentError, "request must be provided" if request.nil?
368
+
369
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::GetIdentityMappingStoreRequest
370
+
371
+ # Converts hash and nil to an options object
372
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
373
+
374
+ # Customize the options with defaults
375
+ metadata = @config.rpcs.get_identity_mapping_store.metadata.to_h
376
+
377
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
378
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
379
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
380
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
381
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
382
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
+
384
+ header_params = {}
385
+ if request.name
386
+ header_params["name"] = request.name
387
+ end
388
+
389
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
390
+ metadata[:"x-goog-request-params"] ||= request_params_header
391
+
392
+ options.apply_defaults timeout: @config.rpcs.get_identity_mapping_store.timeout,
393
+ metadata: metadata,
394
+ retry_policy: @config.rpcs.get_identity_mapping_store.retry_policy
395
+
396
+ options.apply_defaults timeout: @config.timeout,
397
+ metadata: @config.metadata,
398
+ retry_policy: @config.retry_policy
399
+
400
+ @identity_mapping_store_service_stub.call_rpc :get_identity_mapping_store, request, options: options do |response, operation|
401
+ yield response, operation if block_given?
402
+ end
403
+ rescue ::GRPC::BadStatus => e
404
+ raise ::Google::Cloud::Error.from_error(e)
405
+ end
406
+
407
+ ##
408
+ # Deletes the Identity Mapping Store.
409
+ #
410
+ # @overload delete_identity_mapping_store(request, options = nil)
411
+ # Pass arguments to `delete_identity_mapping_store` via a request object, either of type
412
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DeleteIdentityMappingStoreRequest} or an equivalent Hash.
413
+ #
414
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::DeleteIdentityMappingStoreRequest, ::Hash]
415
+ # A request object representing the call parameters. Required. To specify no
416
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
417
+ # @param options [::Gapic::CallOptions, ::Hash]
418
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
419
+ #
420
+ # @overload delete_identity_mapping_store(name: nil)
421
+ # Pass arguments to `delete_identity_mapping_store` via keyword arguments. Note that at
422
+ # least one keyword argument is required. To specify no parameters, or to keep all
423
+ # the default parameter values, pass an empty Hash as a request object (see above).
424
+ #
425
+ # @param name [::String]
426
+ # Required. The name of the Identity Mapping Store to delete.
427
+ # Format:
428
+ # `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
429
+ #
430
+ # @yield [response, operation] Access the result along with the RPC operation
431
+ # @yieldparam response [::Gapic::Operation]
432
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
433
+ #
434
+ # @return [::Gapic::Operation]
435
+ #
436
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
437
+ #
438
+ # @example Basic example
439
+ # require "google/cloud/discovery_engine/v1beta"
440
+ #
441
+ # # Create a client object. The client can be reused for multiple calls.
442
+ # client = Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new
443
+ #
444
+ # # Create a request. To set request fields, pass in keyword arguments.
445
+ # request = Google::Cloud::DiscoveryEngine::V1beta::DeleteIdentityMappingStoreRequest.new
446
+ #
447
+ # # Call the delete_identity_mapping_store method.
448
+ # result = client.delete_identity_mapping_store request
449
+ #
450
+ # # The returned object is of type Gapic::Operation. You can use it to
451
+ # # check the status of an operation, cancel it, or wait for results.
452
+ # # Here is how to wait for a response.
453
+ # result.wait_until_done! timeout: 60
454
+ # if result.response?
455
+ # p result.response
456
+ # else
457
+ # puts "No response received."
458
+ # end
459
+ #
460
+ def delete_identity_mapping_store request, options = nil
461
+ raise ::ArgumentError, "request must be provided" if request.nil?
462
+
463
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::DeleteIdentityMappingStoreRequest
464
+
465
+ # Converts hash and nil to an options object
466
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
467
+
468
+ # Customize the options with defaults
469
+ metadata = @config.rpcs.delete_identity_mapping_store.metadata.to_h
470
+
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
472
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
473
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
474
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
475
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
476
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
+
478
+ header_params = {}
479
+ if request.name
480
+ header_params["name"] = request.name
481
+ end
482
+
483
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
484
+ metadata[:"x-goog-request-params"] ||= request_params_header
485
+
486
+ options.apply_defaults timeout: @config.rpcs.delete_identity_mapping_store.timeout,
487
+ metadata: metadata,
488
+ retry_policy: @config.rpcs.delete_identity_mapping_store.retry_policy
489
+
490
+ options.apply_defaults timeout: @config.timeout,
491
+ metadata: @config.metadata,
492
+ retry_policy: @config.retry_policy
493
+
494
+ @identity_mapping_store_service_stub.call_rpc :delete_identity_mapping_store, request, options: options do |response, operation|
495
+ response = ::Gapic::Operation.new response, @operations_client, options: options
496
+ yield response, operation if block_given?
497
+ throw :response, response
498
+ end
499
+ rescue ::GRPC::BadStatus => e
500
+ raise ::Google::Cloud::Error.from_error(e)
501
+ end
502
+
503
+ ##
504
+ # Imports a list of Identity Mapping Entries to an Identity Mapping Store.
505
+ #
506
+ # @overload import_identity_mappings(request, options = nil)
507
+ # Pass arguments to `import_identity_mappings` via a request object, either of type
508
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ImportIdentityMappingsRequest} or an equivalent Hash.
509
+ #
510
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::ImportIdentityMappingsRequest, ::Hash]
511
+ # A request object representing the call parameters. Required. To specify no
512
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
513
+ # @param options [::Gapic::CallOptions, ::Hash]
514
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
515
+ #
516
+ # @overload import_identity_mappings(inline_source: nil, identity_mapping_store: nil)
517
+ # Pass arguments to `import_identity_mappings` via keyword arguments. Note that at
518
+ # least one keyword argument is required. To specify no parameters, or to keep all
519
+ # the default parameter values, pass an empty Hash as a request object (see above).
520
+ #
521
+ # @param inline_source [::Google::Cloud::DiscoveryEngine::V1beta::ImportIdentityMappingsRequest::InlineSource, ::Hash]
522
+ # The inline source to import identity mapping entries from.
523
+ # @param identity_mapping_store [::String]
524
+ # Required. The name of the Identity Mapping Store to import Identity Mapping
525
+ # Entries to. Format:
526
+ # `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
527
+ #
528
+ # @yield [response, operation] Access the result along with the RPC operation
529
+ # @yieldparam response [::Gapic::Operation]
530
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
531
+ #
532
+ # @return [::Gapic::Operation]
533
+ #
534
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
535
+ #
536
+ # @example Basic example
537
+ # require "google/cloud/discovery_engine/v1beta"
538
+ #
539
+ # # Create a client object. The client can be reused for multiple calls.
540
+ # client = Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new
541
+ #
542
+ # # Create a request. To set request fields, pass in keyword arguments.
543
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ImportIdentityMappingsRequest.new
544
+ #
545
+ # # Call the import_identity_mappings method.
546
+ # result = client.import_identity_mappings request
547
+ #
548
+ # # The returned object is of type Gapic::Operation. You can use it to
549
+ # # check the status of an operation, cancel it, or wait for results.
550
+ # # Here is how to wait for a response.
551
+ # result.wait_until_done! timeout: 60
552
+ # if result.response?
553
+ # p result.response
554
+ # else
555
+ # puts "No response received."
556
+ # end
557
+ #
558
+ def import_identity_mappings request, options = nil
559
+ raise ::ArgumentError, "request must be provided" if request.nil?
560
+
561
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::ImportIdentityMappingsRequest
562
+
563
+ # Converts hash and nil to an options object
564
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
565
+
566
+ # Customize the options with defaults
567
+ metadata = @config.rpcs.import_identity_mappings.metadata.to_h
568
+
569
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
572
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
573
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
574
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
575
+
576
+ header_params = {}
577
+ if request.identity_mapping_store
578
+ header_params["identity_mapping_store"] = request.identity_mapping_store
579
+ end
580
+
581
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
582
+ metadata[:"x-goog-request-params"] ||= request_params_header
583
+
584
+ options.apply_defaults timeout: @config.rpcs.import_identity_mappings.timeout,
585
+ metadata: metadata,
586
+ retry_policy: @config.rpcs.import_identity_mappings.retry_policy
587
+
588
+ options.apply_defaults timeout: @config.timeout,
589
+ metadata: @config.metadata,
590
+ retry_policy: @config.retry_policy
591
+
592
+ @identity_mapping_store_service_stub.call_rpc :import_identity_mappings, request, options: options do |response, operation|
593
+ response = ::Gapic::Operation.new response, @operations_client, options: options
594
+ yield response, operation if block_given?
595
+ throw :response, response
596
+ end
597
+ rescue ::GRPC::BadStatus => e
598
+ raise ::Google::Cloud::Error.from_error(e)
599
+ end
600
+
601
+ ##
602
+ # Purges specified or all Identity Mapping Entries from an Identity Mapping
603
+ # Store.
604
+ #
605
+ # @overload purge_identity_mappings(request, options = nil)
606
+ # Pass arguments to `purge_identity_mappings` via a request object, either of type
607
+ # {::Google::Cloud::DiscoveryEngine::V1beta::PurgeIdentityMappingsRequest} or an equivalent Hash.
608
+ #
609
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::PurgeIdentityMappingsRequest, ::Hash]
610
+ # A request object representing the call parameters. Required. To specify no
611
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
612
+ # @param options [::Gapic::CallOptions, ::Hash]
613
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
614
+ #
615
+ # @overload purge_identity_mappings(inline_source: nil, identity_mapping_store: nil, filter: nil, force: nil)
616
+ # Pass arguments to `purge_identity_mappings` via keyword arguments. Note that at
617
+ # least one keyword argument is required. To specify no parameters, or to keep all
618
+ # the default parameter values, pass an empty Hash as a request object (see above).
619
+ #
620
+ # @param inline_source [::Google::Cloud::DiscoveryEngine::V1beta::PurgeIdentityMappingsRequest::InlineSource, ::Hash]
621
+ # The inline source to purge identity mapping entries from.
622
+ # @param identity_mapping_store [::String]
623
+ # Required. The name of the Identity Mapping Store to purge Identity Mapping
624
+ # Entries from. Format:
625
+ # `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
626
+ # @param filter [::String]
627
+ # Filter matching identity mappings to purge.
628
+ # The eligible field for filtering is:
629
+ #
630
+ # * `update_time`: in ISO 8601 "zulu" format.
631
+ # * `external_id`
632
+ #
633
+ # Examples:
634
+ #
635
+ # * Deleting all identity mappings updated in a time range:
636
+ # `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
637
+ # "2012-04-23T18:30:43.511Z"`
638
+ # * Deleting all identity mappings for a given external_id:
639
+ # `external_id = "id1"`
640
+ # * Deleting all identity mappings inside an identity mapping store:
641
+ # `*`
642
+ #
643
+ # The filtering fields are assumed to have an implicit AND.
644
+ # Should not be used with source. An error will be thrown, if both are
645
+ # provided.
646
+ # @param force [::Boolean]
647
+ # Actually performs the purge. If `force` is set to false, return the
648
+ # expected purge count without deleting any identity mappings. This field is
649
+ # only supported for purge with filter. For input source this field is
650
+ # ignored and data will be purged regardless of the value of this field.
651
+ #
652
+ # @yield [response, operation] Access the result along with the RPC operation
653
+ # @yieldparam response [::Gapic::Operation]
654
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
655
+ #
656
+ # @return [::Gapic::Operation]
657
+ #
658
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
659
+ #
660
+ # @example Basic example
661
+ # require "google/cloud/discovery_engine/v1beta"
662
+ #
663
+ # # Create a client object. The client can be reused for multiple calls.
664
+ # client = Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new
665
+ #
666
+ # # Create a request. To set request fields, pass in keyword arguments.
667
+ # request = Google::Cloud::DiscoveryEngine::V1beta::PurgeIdentityMappingsRequest.new
668
+ #
669
+ # # Call the purge_identity_mappings method.
670
+ # result = client.purge_identity_mappings request
671
+ #
672
+ # # The returned object is of type Gapic::Operation. You can use it to
673
+ # # check the status of an operation, cancel it, or wait for results.
674
+ # # Here is how to wait for a response.
675
+ # result.wait_until_done! timeout: 60
676
+ # if result.response?
677
+ # p result.response
678
+ # else
679
+ # puts "No response received."
680
+ # end
681
+ #
682
+ def purge_identity_mappings request, options = nil
683
+ raise ::ArgumentError, "request must be provided" if request.nil?
684
+
685
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::PurgeIdentityMappingsRequest
686
+
687
+ # Converts hash and nil to an options object
688
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
689
+
690
+ # Customize the options with defaults
691
+ metadata = @config.rpcs.purge_identity_mappings.metadata.to_h
692
+
693
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
694
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
695
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
696
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
697
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
698
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
699
+
700
+ header_params = {}
701
+ if request.identity_mapping_store
702
+ header_params["identity_mapping_store"] = request.identity_mapping_store
703
+ end
704
+
705
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
706
+ metadata[:"x-goog-request-params"] ||= request_params_header
707
+
708
+ options.apply_defaults timeout: @config.rpcs.purge_identity_mappings.timeout,
709
+ metadata: metadata,
710
+ retry_policy: @config.rpcs.purge_identity_mappings.retry_policy
711
+
712
+ options.apply_defaults timeout: @config.timeout,
713
+ metadata: @config.metadata,
714
+ retry_policy: @config.retry_policy
715
+
716
+ @identity_mapping_store_service_stub.call_rpc :purge_identity_mappings, request, options: options do |response, operation|
717
+ response = ::Gapic::Operation.new response, @operations_client, options: options
718
+ yield response, operation if block_given?
719
+ throw :response, response
720
+ end
721
+ rescue ::GRPC::BadStatus => e
722
+ raise ::Google::Cloud::Error.from_error(e)
723
+ end
724
+
725
+ ##
726
+ # Lists Identity Mappings in an Identity Mapping Store.
727
+ #
728
+ # @overload list_identity_mappings(request, options = nil)
729
+ # Pass arguments to `list_identity_mappings` via a request object, either of type
730
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListIdentityMappingsRequest} or an equivalent Hash.
731
+ #
732
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::ListIdentityMappingsRequest, ::Hash]
733
+ # A request object representing the call parameters. Required. To specify no
734
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
735
+ # @param options [::Gapic::CallOptions, ::Hash]
736
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
737
+ #
738
+ # @overload list_identity_mappings(identity_mapping_store: nil, page_size: nil, page_token: nil)
739
+ # Pass arguments to `list_identity_mappings` via keyword arguments. Note that at
740
+ # least one keyword argument is required. To specify no parameters, or to keep all
741
+ # the default parameter values, pass an empty Hash as a request object (see above).
742
+ #
743
+ # @param identity_mapping_store [::String]
744
+ # Required. The name of the Identity Mapping Store to list Identity Mapping
745
+ # Entries in. Format:
746
+ # `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
747
+ # @param page_size [::Integer]
748
+ # Maximum number of IdentityMappings to return. If unspecified, defaults
749
+ # to 2000. The maximum allowed value is 10000. Values above 10000 will be
750
+ # coerced to 10000.
751
+ # @param page_token [::String]
752
+ # A page token, received from a previous `ListIdentityMappings` call.
753
+ # Provide this to retrieve the subsequent page.
754
+ #
755
+ # When paginating, all other parameters provided to
756
+ # `ListIdentityMappings` must match the call that provided the page
757
+ # token.
758
+ #
759
+ # @yield [response, operation] Access the result along with the RPC operation
760
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingEntry>]
761
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
762
+ #
763
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingEntry>]
764
+ #
765
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
766
+ #
767
+ # @example Basic example
768
+ # require "google/cloud/discovery_engine/v1beta"
769
+ #
770
+ # # Create a client object. The client can be reused for multiple calls.
771
+ # client = Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new
772
+ #
773
+ # # Create a request. To set request fields, pass in keyword arguments.
774
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListIdentityMappingsRequest.new
775
+ #
776
+ # # Call the list_identity_mappings method.
777
+ # result = client.list_identity_mappings request
778
+ #
779
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
780
+ # # over elements, and API calls will be issued to fetch pages as needed.
781
+ # result.each do |item|
782
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingEntry.
783
+ # p item
784
+ # end
785
+ #
786
+ def list_identity_mappings request, options = nil
787
+ raise ::ArgumentError, "request must be provided" if request.nil?
788
+
789
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::ListIdentityMappingsRequest
790
+
791
+ # Converts hash and nil to an options object
792
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
793
+
794
+ # Customize the options with defaults
795
+ metadata = @config.rpcs.list_identity_mappings.metadata.to_h
796
+
797
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
798
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
799
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
800
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
801
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
+
804
+ header_params = {}
805
+ if request.identity_mapping_store
806
+ header_params["identity_mapping_store"] = request.identity_mapping_store
807
+ end
808
+
809
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
810
+ metadata[:"x-goog-request-params"] ||= request_params_header
811
+
812
+ options.apply_defaults timeout: @config.rpcs.list_identity_mappings.timeout,
813
+ metadata: metadata,
814
+ retry_policy: @config.rpcs.list_identity_mappings.retry_policy
815
+
816
+ options.apply_defaults timeout: @config.timeout,
817
+ metadata: @config.metadata,
818
+ retry_policy: @config.retry_policy
819
+
820
+ @identity_mapping_store_service_stub.call_rpc :list_identity_mappings, request, options: options do |response, operation|
821
+ response = ::Gapic::PagedEnumerable.new @identity_mapping_store_service_stub, :list_identity_mappings, request, response, operation, options
822
+ yield response, operation if block_given?
823
+ throw :response, response
824
+ end
825
+ rescue ::GRPC::BadStatus => e
826
+ raise ::Google::Cloud::Error.from_error(e)
827
+ end
828
+
829
+ ##
830
+ # Lists all Identity Mapping Stores.
831
+ #
832
+ # @overload list_identity_mapping_stores(request, options = nil)
833
+ # Pass arguments to `list_identity_mapping_stores` via a request object, either of type
834
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListIdentityMappingStoresRequest} or an equivalent Hash.
835
+ #
836
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::ListIdentityMappingStoresRequest, ::Hash]
837
+ # A request object representing the call parameters. Required. To specify no
838
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
839
+ # @param options [::Gapic::CallOptions, ::Hash]
840
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
841
+ #
842
+ # @overload list_identity_mapping_stores(parent: nil, page_size: nil, page_token: nil)
843
+ # Pass arguments to `list_identity_mapping_stores` via keyword arguments. Note that at
844
+ # least one keyword argument is required. To specify no parameters, or to keep all
845
+ # the default parameter values, pass an empty Hash as a request object (see above).
846
+ #
847
+ # @param parent [::String]
848
+ # Required. The parent of the Identity Mapping Stores to list.
849
+ # Format:
850
+ # `projects/{project}/locations/{location}`.
851
+ # @param page_size [::Integer]
852
+ # Maximum number of IdentityMappingStores to return. If unspecified, defaults
853
+ # to 100. The maximum allowed value is 1000. Values above 1000 will be
854
+ # coerced to 1000.
855
+ # @param page_token [::String]
856
+ # A page token, received from a previous `ListIdentityMappingStores` call.
857
+ # Provide this to retrieve the subsequent page.
858
+ #
859
+ # When paginating, all other parameters provided to
860
+ # `ListIdentityMappingStores` must match the call that provided the page
861
+ # token.
862
+ #
863
+ # @yield [response, operation] Access the result along with the RPC operation
864
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore>]
865
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
866
+ #
867
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore>]
868
+ #
869
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
870
+ #
871
+ # @example Basic example
872
+ # require "google/cloud/discovery_engine/v1beta"
873
+ #
874
+ # # Create a client object. The client can be reused for multiple calls.
875
+ # client = Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new
876
+ #
877
+ # # Create a request. To set request fields, pass in keyword arguments.
878
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListIdentityMappingStoresRequest.new
879
+ #
880
+ # # Call the list_identity_mapping_stores method.
881
+ # result = client.list_identity_mapping_stores request
882
+ #
883
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
884
+ # # over elements, and API calls will be issued to fetch pages as needed.
885
+ # result.each do |item|
886
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStore.
887
+ # p item
888
+ # end
889
+ #
890
+ def list_identity_mapping_stores request, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request.nil?
892
+
893
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::ListIdentityMappingStoresRequest
894
+
895
+ # Converts hash and nil to an options object
896
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
897
+
898
+ # Customize the options with defaults
899
+ metadata = @config.rpcs.list_identity_mapping_stores.metadata.to_h
900
+
901
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
902
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
903
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
904
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
905
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
906
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
907
+
908
+ header_params = {}
909
+ if request.parent
910
+ header_params["parent"] = request.parent
911
+ end
912
+
913
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
914
+ metadata[:"x-goog-request-params"] ||= request_params_header
915
+
916
+ options.apply_defaults timeout: @config.rpcs.list_identity_mapping_stores.timeout,
917
+ metadata: metadata,
918
+ retry_policy: @config.rpcs.list_identity_mapping_stores.retry_policy
919
+
920
+ options.apply_defaults timeout: @config.timeout,
921
+ metadata: @config.metadata,
922
+ retry_policy: @config.retry_policy
923
+
924
+ @identity_mapping_store_service_stub.call_rpc :list_identity_mapping_stores, request, options: options do |response, operation|
925
+ response = ::Gapic::PagedEnumerable.new @identity_mapping_store_service_stub, :list_identity_mapping_stores, request, response, operation, options
926
+ yield response, operation if block_given?
927
+ throw :response, response
928
+ end
929
+ rescue ::GRPC::BadStatus => e
930
+ raise ::Google::Cloud::Error.from_error(e)
931
+ end
932
+
933
+ ##
934
+ # Configuration class for the IdentityMappingStoreService API.
935
+ #
936
+ # This class represents the configuration for IdentityMappingStoreService,
937
+ # providing control over timeouts, retry behavior, logging, transport
938
+ # parameters, and other low-level controls. Certain parameters can also be
939
+ # applied individually to specific RPCs. See
940
+ # {::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client::Configuration::Rpcs}
941
+ # for a list of RPCs that can be configured independently.
942
+ #
943
+ # Configuration can be applied globally to all clients, or to a single client
944
+ # on construction.
945
+ #
946
+ # @example
947
+ #
948
+ # # Modify the global config, setting the timeout for
949
+ # # create_identity_mapping_store to 20 seconds,
950
+ # # and all remaining timeouts to 10 seconds.
951
+ # ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.configure do |config|
952
+ # config.timeout = 10.0
953
+ # config.rpcs.create_identity_mapping_store.timeout = 20.0
954
+ # end
955
+ #
956
+ # # Apply the above configuration only to a new client.
957
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new do |config|
958
+ # config.timeout = 10.0
959
+ # config.rpcs.create_identity_mapping_store.timeout = 20.0
960
+ # end
961
+ #
962
+ # @!attribute [rw] endpoint
963
+ # A custom service endpoint, as a hostname or hostname:port. The default is
964
+ # nil, indicating to use the default endpoint in the current universe domain.
965
+ # @return [::String,nil]
966
+ # @!attribute [rw] credentials
967
+ # Credentials to send with calls. You may provide any of the following types:
968
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
969
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
970
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
971
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
972
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
973
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
974
+ # * (`nil`) indicating no credentials
975
+ #
976
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
977
+ # is deprecated. Providing an unvalidated credential configuration to
978
+ # Google APIs can compromise the security of your systems and data.
979
+ #
980
+ # @example
981
+ #
982
+ # # The recommended way to provide credentials is to use the `make_creds` method
983
+ # # on the appropriate credentials class for your environment.
984
+ #
985
+ # require "googleauth"
986
+ #
987
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
988
+ # json_key_io: ::File.open("/path/to/keyfile.json")
989
+ # )
990
+ #
991
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::IdentityMappingStoreService::Client.new do |config|
992
+ # config.credentials = credentials
993
+ # end
994
+ #
995
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
996
+ # external source for authentication to Google Cloud, you must validate it before
997
+ # providing it to a Google API client library. Providing an unvalidated credential
998
+ # configuration to Google APIs can compromise the security of your systems and data.
999
+ # For more information, refer to [Validate credential configurations from external
1000
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1001
+ # @return [::Object]
1002
+ # @!attribute [rw] scope
1003
+ # The OAuth scopes
1004
+ # @return [::Array<::String>]
1005
+ # @!attribute [rw] lib_name
1006
+ # The library name as recorded in instrumentation and logging
1007
+ # @return [::String]
1008
+ # @!attribute [rw] lib_version
1009
+ # The library version as recorded in instrumentation and logging
1010
+ # @return [::String]
1011
+ # @!attribute [rw] channel_args
1012
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1013
+ # `GRPC::Core::Channel` object is provided as the credential.
1014
+ # @return [::Hash]
1015
+ # @!attribute [rw] interceptors
1016
+ # An array of interceptors that are run before calls are executed.
1017
+ # @return [::Array<::GRPC::ClientInterceptor>]
1018
+ # @!attribute [rw] timeout
1019
+ # The call timeout in seconds.
1020
+ # @return [::Numeric]
1021
+ # @!attribute [rw] metadata
1022
+ # Additional gRPC headers to be sent with the call.
1023
+ # @return [::Hash{::Symbol=>::String}]
1024
+ # @!attribute [rw] retry_policy
1025
+ # The retry policy. The value is a hash with the following keys:
1026
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1027
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1028
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1029
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1030
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1031
+ # trigger a retry.
1032
+ # @return [::Hash]
1033
+ # @!attribute [rw] quota_project
1034
+ # A separate project against which to charge quota.
1035
+ # @return [::String]
1036
+ # @!attribute [rw] universe_domain
1037
+ # The universe domain within which to make requests. This determines the
1038
+ # default endpoint URL. The default value of nil uses the environment
1039
+ # universe (usually the default "googleapis.com" universe).
1040
+ # @return [::String,nil]
1041
+ # @!attribute [rw] logger
1042
+ # A custom logger to use for request/response debug logging, or the value
1043
+ # `:default` (the default) to construct a default logger, or `nil` to
1044
+ # explicitly disable logging.
1045
+ # @return [::Logger,:default,nil]
1046
+ #
1047
+ class Configuration
1048
+ extend ::Gapic::Config
1049
+
1050
+ # @private
1051
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1052
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
1053
+
1054
+ config_attr :endpoint, nil, ::String, nil
1055
+ config_attr :credentials, nil do |value|
1056
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1057
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
1058
+ allowed.any? { |klass| klass === value }
1059
+ end
1060
+ config_attr :scope, nil, ::String, ::Array, nil
1061
+ config_attr :lib_name, nil, ::String, nil
1062
+ config_attr :lib_version, nil, ::String, nil
1063
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
1064
+ config_attr :interceptors, nil, ::Array, nil
1065
+ config_attr :timeout, nil, ::Numeric, nil
1066
+ config_attr :metadata, nil, ::Hash, nil
1067
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1068
+ config_attr :quota_project, nil, ::String, nil
1069
+ config_attr :universe_domain, nil, ::String, nil
1070
+ config_attr :logger, :default, ::Logger, nil, :default
1071
+
1072
+ # @private
1073
+ def initialize parent_config = nil
1074
+ @parent_config = parent_config unless parent_config.nil?
1075
+
1076
+ yield self if block_given?
1077
+ end
1078
+
1079
+ ##
1080
+ # Configurations for individual RPCs
1081
+ # @return [Rpcs]
1082
+ #
1083
+ def rpcs
1084
+ @rpcs ||= begin
1085
+ parent_rpcs = nil
1086
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1087
+ Rpcs.new parent_rpcs
1088
+ end
1089
+ end
1090
+
1091
+ ##
1092
+ # Configuration for the channel pool
1093
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1094
+ #
1095
+ def channel_pool
1096
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1097
+ end
1098
+
1099
+ ##
1100
+ # Configuration RPC class for the IdentityMappingStoreService API.
1101
+ #
1102
+ # Includes fields providing the configuration for each RPC in this service.
1103
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1104
+ # the following configuration fields:
1105
+ #
1106
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1107
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1108
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1109
+ # include the following keys:
1110
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1111
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1112
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1113
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1114
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1115
+ # trigger a retry.
1116
+ #
1117
+ class Rpcs
1118
+ ##
1119
+ # RPC-specific configuration for `create_identity_mapping_store`
1120
+ # @return [::Gapic::Config::Method]
1121
+ #
1122
+ attr_reader :create_identity_mapping_store
1123
+ ##
1124
+ # RPC-specific configuration for `get_identity_mapping_store`
1125
+ # @return [::Gapic::Config::Method]
1126
+ #
1127
+ attr_reader :get_identity_mapping_store
1128
+ ##
1129
+ # RPC-specific configuration for `delete_identity_mapping_store`
1130
+ # @return [::Gapic::Config::Method]
1131
+ #
1132
+ attr_reader :delete_identity_mapping_store
1133
+ ##
1134
+ # RPC-specific configuration for `import_identity_mappings`
1135
+ # @return [::Gapic::Config::Method]
1136
+ #
1137
+ attr_reader :import_identity_mappings
1138
+ ##
1139
+ # RPC-specific configuration for `purge_identity_mappings`
1140
+ # @return [::Gapic::Config::Method]
1141
+ #
1142
+ attr_reader :purge_identity_mappings
1143
+ ##
1144
+ # RPC-specific configuration for `list_identity_mappings`
1145
+ # @return [::Gapic::Config::Method]
1146
+ #
1147
+ attr_reader :list_identity_mappings
1148
+ ##
1149
+ # RPC-specific configuration for `list_identity_mapping_stores`
1150
+ # @return [::Gapic::Config::Method]
1151
+ #
1152
+ attr_reader :list_identity_mapping_stores
1153
+
1154
+ # @private
1155
+ def initialize parent_rpcs = nil
1156
+ create_identity_mapping_store_config = parent_rpcs.create_identity_mapping_store if parent_rpcs.respond_to? :create_identity_mapping_store
1157
+ @create_identity_mapping_store = ::Gapic::Config::Method.new create_identity_mapping_store_config
1158
+ get_identity_mapping_store_config = parent_rpcs.get_identity_mapping_store if parent_rpcs.respond_to? :get_identity_mapping_store
1159
+ @get_identity_mapping_store = ::Gapic::Config::Method.new get_identity_mapping_store_config
1160
+ delete_identity_mapping_store_config = parent_rpcs.delete_identity_mapping_store if parent_rpcs.respond_to? :delete_identity_mapping_store
1161
+ @delete_identity_mapping_store = ::Gapic::Config::Method.new delete_identity_mapping_store_config
1162
+ import_identity_mappings_config = parent_rpcs.import_identity_mappings if parent_rpcs.respond_to? :import_identity_mappings
1163
+ @import_identity_mappings = ::Gapic::Config::Method.new import_identity_mappings_config
1164
+ purge_identity_mappings_config = parent_rpcs.purge_identity_mappings if parent_rpcs.respond_to? :purge_identity_mappings
1165
+ @purge_identity_mappings = ::Gapic::Config::Method.new purge_identity_mappings_config
1166
+ list_identity_mappings_config = parent_rpcs.list_identity_mappings if parent_rpcs.respond_to? :list_identity_mappings
1167
+ @list_identity_mappings = ::Gapic::Config::Method.new list_identity_mappings_config
1168
+ list_identity_mapping_stores_config = parent_rpcs.list_identity_mapping_stores if parent_rpcs.respond_to? :list_identity_mapping_stores
1169
+ @list_identity_mapping_stores = ::Gapic::Config::Method.new list_identity_mapping_stores_config
1170
+
1171
+ yield self if block_given?
1172
+ end
1173
+ end
1174
+ end
1175
+ end
1176
+ end
1177
+ end
1178
+ end
1179
+ end
1180
+ end