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