google-cloud-discovery_engine-v1beta 0.27.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 (252) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  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 +146 -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/rest/client.rb +139 -12
  30. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +21 -0
  31. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +62 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +3 -1
  33. data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +53 -0
  34. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +210 -10
  35. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/credentials.rb +3 -1
  36. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +46 -0
  37. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +205 -10
  38. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +72 -0
  39. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +11 -1
  40. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/credentials.rb +3 -1
  41. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/paths.rb +104 -0
  42. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +11 -1
  43. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +21 -0
  44. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +8 -3
  45. data/lib/google/cloud/discovery_engine/v1beta/document_service/credentials.rb +3 -1
  46. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +8 -3
  47. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +21 -0
  48. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +224 -6
  49. data/lib/google/cloud/discovery_engine/v1beta/engine_service/credentials.rb +3 -1
  50. data/lib/google/cloud/discovery_engine/v1beta/engine_service/paths.rb +104 -0
  51. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +210 -6
  52. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +21 -0
  53. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +123 -0
  54. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +11 -9
  55. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +4 -1
  56. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +21 -0
  57. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +11 -9
  58. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +21 -0
  59. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +3 -1
  60. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/client.rb +1180 -0
  61. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/credentials.rb +49 -0
  62. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/operations.rb +843 -0
  63. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/paths.rb +154 -0
  64. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/client.rb +1088 -0
  65. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/operations.rb +1152 -0
  66. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/service_stub.rb +511 -0
  67. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest.rb +53 -0
  68. data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service.rb +56 -0
  69. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/client.rb +1050 -0
  70. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/credentials.rb +49 -0
  71. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/paths.rb +86 -0
  72. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest/client.rb +965 -0
  73. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest/service_stub.rb +451 -0
  74. data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest.rb +52 -0
  75. data/lib/google/cloud/discovery_engine/v1beta/license_config_service.rb +55 -0
  76. data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +3 -1
  77. data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +3 -1
  78. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +3 -1
  79. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +21 -0
  80. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +2 -2
  81. data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +3 -1
  82. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +2 -2
  83. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +2 -2
  84. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/credentials.rb +3 -1
  85. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +2 -2
  86. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +10 -3
  87. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +3 -1
  88. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +21 -0
  89. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +3 -1
  90. data/lib/google/cloud/discovery_engine/v1beta/schema_service/credentials.rb +3 -1
  91. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +21 -0
  92. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +194 -38
  93. data/lib/google/cloud/discovery_engine/v1beta/search_service/credentials.rb +4 -1
  94. data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +21 -0
  95. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +194 -38
  96. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/credentials.rb +3 -1
  97. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +21 -0
  98. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +207 -3
  99. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/credentials.rb +3 -1
  100. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +193 -3
  101. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/service_stub.rb +153 -0
  102. data/lib/google/cloud/discovery_engine/v1beta/session_service/client.rb +25 -9
  103. data/lib/google/cloud/discovery_engine/v1beta/session_service/credentials.rb +4 -1
  104. data/lib/google/cloud/discovery_engine/v1beta/session_service/paths.rb +46 -0
  105. data/lib/google/cloud/discovery_engine/v1beta/session_service/rest/client.rb +25 -9
  106. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +1 -3
  107. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/credentials.rb +3 -1
  108. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +1 -3
  109. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +21 -0
  110. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +7 -0
  111. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +23 -11
  112. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/credentials.rb +4 -1
  113. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +23 -11
  114. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +21 -0
  115. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
  116. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/client.rb +768 -0
  117. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/credentials.rb +49 -0
  118. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/operations.rb +843 -0
  119. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/paths.rb +71 -0
  120. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/client.rb +704 -0
  121. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/operations.rb +1152 -0
  122. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/service_stub.rb +265 -0
  123. data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest.rb +53 -0
  124. data/lib/google/cloud/discovery_engine/v1beta/user_license_service.rb +56 -0
  125. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/client.rb +590 -0
  126. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/credentials.rb +49 -0
  127. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/paths.rb +71 -0
  128. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest/client.rb +533 -0
  129. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest/service_stub.rb +204 -0
  130. data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest.rb +52 -0
  131. data/lib/google/cloud/discovery_engine/v1beta/user_store_service.rb +55 -0
  132. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  133. data/lib/google/cloud/discovery_engine/v1beta.rb +11 -4
  134. data/lib/google/cloud/discoveryengine/v1beta/acl_config_pb.rb +25 -0
  135. data/lib/google/cloud/discoveryengine/v1beta/acl_config_service_pb.rb +28 -0
  136. data/lib/google/cloud/discoveryengine/v1beta/acl_config_service_services_pb.rb +49 -0
  137. data/lib/google/cloud/discoveryengine/v1beta/agent_gateway_setting_pb.rb +25 -0
  138. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +6 -1
  139. data/lib/google/cloud/discoveryengine/v1beta/assist_answer_pb.rb +48 -0
  140. data/lib/google/cloud/discoveryengine/v1beta/assistant_pb.rb +35 -0
  141. data/lib/google/cloud/discoveryengine/v1beta/assistant_service_pb.rb +48 -0
  142. data/lib/google/cloud/discoveryengine/v1beta/assistant_service_services_pb.rb +56 -0
  143. data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +4 -1
  144. data/lib/google/cloud/discoveryengine/v1beta/cmek_config_service_pb.rb +39 -0
  145. data/lib/google/cloud/discoveryengine/v1beta/cmek_config_service_services_pb.rb +55 -0
  146. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +12 -1
  147. data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +4 -1
  148. data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +6 -0
  149. data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +6 -1
  150. data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +1 -1
  151. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +12 -1
  152. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +8 -0
  153. data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +11 -1
  154. data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +1 -1
  155. data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +4 -1
  156. data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +1 -1
  157. data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +1 -1
  158. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +17 -1
  159. data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +3 -1
  160. data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +28 -6
  161. data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +1 -1
  162. data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +1 -1
  163. data/lib/google/cloud/discoveryengine/v1beta/feedback_pb.rb +28 -0
  164. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +11 -1
  165. data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
  166. data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_pb.rb +26 -0
  167. data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_service_pb.rb +44 -0
  168. data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_service_services_pb.rb +58 -0
  169. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +1 -1
  170. data/lib/google/cloud/discoveryengine/v1beta/license_config_pb.rb +27 -0
  171. data/lib/google/cloud/discoveryengine/v1beta/license_config_service_pb.rb +36 -0
  172. data/lib/google/cloud/discoveryengine/v1beta/license_config_service_services_pb.rb +65 -0
  173. data/lib/google/cloud/discoveryengine/v1beta/logging_pb.rb +24 -0
  174. data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +10 -1
  175. data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +2 -1
  176. data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
  177. data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +1 -1
  178. data/lib/google/cloud/discoveryengine/v1beta/safety_pb.rb +26 -0
  179. data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +1 -1
  180. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +1 -1
  181. data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +1 -1
  182. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +18 -2
  183. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +1 -1
  184. data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +3 -1
  185. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +4 -1
  186. data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_services_pb.rb +14 -0
  187. data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +2 -1
  188. data/lib/google/cloud/discoveryengine/v1beta/session_service_pb.rb +1 -1
  189. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
  190. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +1 -1
  191. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +2 -1
  192. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
  193. data/lib/google/cloud/discoveryengine/v1beta/user_license_pb.rb +27 -0
  194. data/lib/google/cloud/discoveryengine/v1beta/user_license_service_pb.rb +38 -0
  195. data/lib/google/cloud/discoveryengine/v1beta/user_license_service_services_pb.rb +52 -0
  196. data/lib/google/cloud/discoveryengine/v1beta/user_store_pb.rb +24 -0
  197. data/lib/google/cloud/discoveryengine/v1beta/user_store_service_pb.rb +29 -0
  198. data/lib/google/cloud/discoveryengine/v1beta/user_store_service_services_pb.rb +47 -0
  199. data/proto_docs/google/cloud/discoveryengine/v1beta/acl_config.rb +43 -0
  200. data/proto_docs/google/cloud/discoveryengine/v1beta/acl_config_service.rb +49 -0
  201. data/proto_docs/google/cloud/discoveryengine/v1beta/agent_gateway_setting.rb +53 -0
  202. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +117 -2
  203. data/proto_docs/google/cloud/discoveryengine/v1beta/assist_answer.rb +401 -0
  204. data/proto_docs/google/cloud/discoveryengine/v1beta/assistant.rb +253 -0
  205. data/proto_docs/google/cloud/discoveryengine/v1beta/assistant_service.rb +368 -0
  206. data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +60 -1
  207. data/proto_docs/google/cloud/discoveryengine/v1beta/cmek_config_service.rb +228 -0
  208. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +223 -0
  209. data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +115 -13
  210. data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +119 -6
  211. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +178 -8
  212. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +218 -9
  213. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +12 -0
  214. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +115 -10
  215. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +30 -0
  216. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +1 -1
  217. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +388 -8
  218. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +2 -2
  219. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +13 -11
  220. data/proto_docs/google/cloud/discoveryengine/v1beta/feedback.rb +147 -0
  221. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +190 -9
  222. data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +9 -0
  223. data/proto_docs/google/cloud/discoveryengine/v1beta/identity_mapping_store.rb +84 -0
  224. data/proto_docs/google/cloud/discoveryengine/v1beta/identity_mapping_store_service.rb +280 -0
  225. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +25 -5
  226. data/proto_docs/google/cloud/discoveryengine/v1beta/license_config.rb +101 -0
  227. data/proto_docs/google/cloud/discoveryengine/v1beta/license_config_service.rb +224 -0
  228. data/proto_docs/google/cloud/discoveryengine/v1beta/logging.rb +40 -0
  229. data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +214 -0
  230. data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +18 -0
  231. data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +9 -5
  232. data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +4 -2
  233. data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +2 -2
  234. data/proto_docs/google/cloud/discoveryengine/v1beta/safety.rb +108 -0
  235. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +461 -69
  236. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +50 -3
  237. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +30 -0
  238. data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +21 -0
  239. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +8 -2
  240. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +7 -3
  241. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +39 -3
  242. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +14 -6
  243. data/proto_docs/google/cloud/discoveryengine/v1beta/user_license.rb +100 -0
  244. data/proto_docs/google/cloud/discoveryengine/v1beta/user_license_service.rb +202 -0
  245. data/proto_docs/google/cloud/discoveryengine/v1beta/user_store.rb +67 -0
  246. data/proto_docs/google/cloud/discoveryengine/v1beta/user_store_service.rb +54 -0
  247. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  248. data/proto_docs/google/iam/v1/options.rb +50 -0
  249. data/proto_docs/google/iam/v1/policy.rb +426 -0
  250. data/proto_docs/google/type/expr.rb +75 -0
  251. data/proto_docs/google/type/latlng.rb +38 -0
  252. metadata +118 -1
@@ -0,0 +1,1050 @@
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/license_config_service_pb"
21
+ require "google/cloud/location"
22
+
23
+ module Google
24
+ module Cloud
25
+ module DiscoveryEngine
26
+ module V1beta
27
+ module LicenseConfigService
28
+ ##
29
+ # Client for the LicenseConfigService service.
30
+ #
31
+ # Service for managing license config related resources.
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 :license_config_service_stub
44
+
45
+ ##
46
+ # Configure the LicenseConfigService Client class.
47
+ #
48
+ # See {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all LicenseConfigService clients
54
+ # ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::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 LicenseConfigService 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::LicenseConfigService::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
+ @license_config_service_stub.universe_domain
107
+ end
108
+
109
+ ##
110
+ # Create a new LicenseConfigService client object.
111
+ #
112
+ # @example
113
+ #
114
+ # # Create a client using the default configuration
115
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new
116
+ #
117
+ # # Create a client using a custom configuration
118
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new do |config|
119
+ # config.timeout = 10.0
120
+ # end
121
+ #
122
+ # @yield [config] Configure the LicenseConfigService 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/license_config_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
+ @license_config_service_stub = ::Gapic::ServiceStub.new(
154
+ ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Stub,
155
+ credentials: credentials,
156
+ endpoint: @config.endpoint,
157
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
158
+ universe_domain: @config.universe_domain,
159
+ channel_args: @config.channel_args,
160
+ interceptors: @config.interceptors,
161
+ channel_pool_config: @config.channel_pool,
162
+ logger: @config.logger
163
+ )
164
+
165
+ @license_config_service_stub.stub_logger&.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::Client.new do |config|
176
+ config.credentials = credentials
177
+ config.quota_project = @quota_project_id
178
+ config.endpoint = @license_config_service_stub.endpoint
179
+ config.universe_domain = @license_config_service_stub.universe_domain
180
+ config.logger = @license_config_service_stub.logger if config.respond_to? :logger=
181
+ end
182
+ end
183
+
184
+ ##
185
+ # Get the associated client for mix-in of the Locations.
186
+ #
187
+ # @return [Google::Cloud::Location::Locations::Client]
188
+ #
189
+ attr_reader :location_client
190
+
191
+ ##
192
+ # The logger used for request/response debug logging.
193
+ #
194
+ # @return [Logger]
195
+ #
196
+ def logger
197
+ @license_config_service_stub.logger
198
+ end
199
+
200
+ # Service calls
201
+
202
+ ##
203
+ # Creates a
204
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} This
205
+ # method should only be used for creating NotebookLm licenses or Gemini
206
+ # Enterprise free trial licenses.
207
+ #
208
+ # @overload create_license_config(request, options = nil)
209
+ # Pass arguments to `create_license_config` via a request object, either of type
210
+ # {::Google::Cloud::DiscoveryEngine::V1beta::CreateLicenseConfigRequest} or an equivalent Hash.
211
+ #
212
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::CreateLicenseConfigRequest, ::Hash]
213
+ # A request object representing the call parameters. Required. To specify no
214
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
215
+ # @param options [::Gapic::CallOptions, ::Hash]
216
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
217
+ #
218
+ # @overload create_license_config(parent: nil, license_config: nil, license_config_id: nil)
219
+ # Pass arguments to `create_license_config` via keyword arguments. Note that at
220
+ # least one keyword argument is required. To specify no parameters, or to keep all
221
+ # the default parameter values, pass an empty Hash as a request object (see above).
222
+ #
223
+ # @param parent [::String]
224
+ # Required. The parent resource name, such as
225
+ # `projects/{project}/locations/{location}`.
226
+ # @param license_config [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig, ::Hash]
227
+ # Required. The
228
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} to
229
+ # create.
230
+ # @param license_config_id [::String]
231
+ # Optional. The ID to use for the
232
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}, which
233
+ # will become the final component of the
234
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}'s
235
+ # resource name. We are using the tier (product edition) name as the license
236
+ # config id such as `search` or `search_and_assistant`.
237
+ #
238
+ # @yield [response, operation] Access the result along with the RPC operation
239
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
240
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
241
+ #
242
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
243
+ #
244
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
245
+ #
246
+ # @example Basic example
247
+ # require "google/cloud/discovery_engine/v1beta"
248
+ #
249
+ # # Create a client object. The client can be reused for multiple calls.
250
+ # client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new
251
+ #
252
+ # # Create a request. To set request fields, pass in keyword arguments.
253
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CreateLicenseConfigRequest.new
254
+ #
255
+ # # Call the create_license_config method.
256
+ # result = client.create_license_config request
257
+ #
258
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.
259
+ # p result
260
+ #
261
+ def create_license_config request, options = nil
262
+ raise ::ArgumentError, "request must be provided" if request.nil?
263
+
264
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::CreateLicenseConfigRequest
265
+
266
+ # Converts hash and nil to an options object
267
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
268
+
269
+ # Customize the options with defaults
270
+ metadata = @config.rpcs.create_license_config.metadata.to_h
271
+
272
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
275
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
276
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
277
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
278
+
279
+ header_params = {}
280
+ if request.parent
281
+ header_params["parent"] = request.parent
282
+ end
283
+
284
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
285
+ metadata[:"x-goog-request-params"] ||= request_params_header
286
+
287
+ options.apply_defaults timeout: @config.rpcs.create_license_config.timeout,
288
+ metadata: metadata,
289
+ retry_policy: @config.rpcs.create_license_config.retry_policy
290
+
291
+ options.apply_defaults timeout: @config.timeout,
292
+ metadata: @config.metadata,
293
+ retry_policy: @config.retry_policy
294
+
295
+ @license_config_service_stub.call_rpc :create_license_config, request, options: options do |response, operation|
296
+ yield response, operation if block_given?
297
+ end
298
+ rescue ::GRPC::BadStatus => e
299
+ raise ::Google::Cloud::Error.from_error(e)
300
+ end
301
+
302
+ ##
303
+ # Updates the
304
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}
305
+ #
306
+ # @overload update_license_config(request, options = nil)
307
+ # Pass arguments to `update_license_config` via a request object, either of type
308
+ # {::Google::Cloud::DiscoveryEngine::V1beta::UpdateLicenseConfigRequest} or an equivalent Hash.
309
+ #
310
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::UpdateLicenseConfigRequest, ::Hash]
311
+ # A request object representing the call parameters. Required. To specify no
312
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
313
+ # @param options [::Gapic::CallOptions, ::Hash]
314
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
315
+ #
316
+ # @overload update_license_config(license_config: nil, update_mask: nil)
317
+ # Pass arguments to `update_license_config` via keyword arguments. Note that at
318
+ # least one keyword argument is required. To specify no parameters, or to keep all
319
+ # the default parameter values, pass an empty Hash as a request object (see above).
320
+ #
321
+ # @param license_config [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig, ::Hash]
322
+ # Required. The
323
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} to
324
+ # update.
325
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
326
+ # Optional. Indicates which fields in the provided
327
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} to
328
+ # update.
329
+ #
330
+ # If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
331
+ # is returned.
332
+ #
333
+ # @yield [response, operation] Access the result along with the RPC operation
334
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
335
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
336
+ #
337
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
338
+ #
339
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
340
+ #
341
+ # @example Basic example
342
+ # require "google/cloud/discovery_engine/v1beta"
343
+ #
344
+ # # Create a client object. The client can be reused for multiple calls.
345
+ # client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new
346
+ #
347
+ # # Create a request. To set request fields, pass in keyword arguments.
348
+ # request = Google::Cloud::DiscoveryEngine::V1beta::UpdateLicenseConfigRequest.new
349
+ #
350
+ # # Call the update_license_config method.
351
+ # result = client.update_license_config request
352
+ #
353
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.
354
+ # p result
355
+ #
356
+ def update_license_config request, options = nil
357
+ raise ::ArgumentError, "request must be provided" if request.nil?
358
+
359
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::UpdateLicenseConfigRequest
360
+
361
+ # Converts hash and nil to an options object
362
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
363
+
364
+ # Customize the options with defaults
365
+ metadata = @config.rpcs.update_license_config.metadata.to_h
366
+
367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
368
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
369
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
370
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
371
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
372
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
373
+
374
+ header_params = {}
375
+ if request.license_config&.name
376
+ header_params["license_config.name"] = request.license_config.name
377
+ end
378
+
379
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
380
+ metadata[:"x-goog-request-params"] ||= request_params_header
381
+
382
+ options.apply_defaults timeout: @config.rpcs.update_license_config.timeout,
383
+ metadata: metadata,
384
+ retry_policy: @config.rpcs.update_license_config.retry_policy
385
+
386
+ options.apply_defaults timeout: @config.timeout,
387
+ metadata: @config.metadata,
388
+ retry_policy: @config.retry_policy
389
+
390
+ @license_config_service_stub.call_rpc :update_license_config, request, options: options do |response, operation|
391
+ yield response, operation if block_given?
392
+ end
393
+ rescue ::GRPC::BadStatus => e
394
+ raise ::Google::Cloud::Error.from_error(e)
395
+ end
396
+
397
+ ##
398
+ # Gets a {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}.
399
+ #
400
+ # @overload get_license_config(request, options = nil)
401
+ # Pass arguments to `get_license_config` via a request object, either of type
402
+ # {::Google::Cloud::DiscoveryEngine::V1beta::GetLicenseConfigRequest} or an equivalent Hash.
403
+ #
404
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::GetLicenseConfigRequest, ::Hash]
405
+ # A request object representing the call parameters. Required. To specify no
406
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
407
+ # @param options [::Gapic::CallOptions, ::Hash]
408
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
409
+ #
410
+ # @overload get_license_config(name: nil)
411
+ # Pass arguments to `get_license_config` via keyword arguments. Note that at
412
+ # least one keyword argument is required. To specify no parameters, or to keep all
413
+ # the default parameter values, pass an empty Hash as a request object (see above).
414
+ #
415
+ # @param name [::String]
416
+ # Required. Full resource name of
417
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}, such as
418
+ # `projects/{project}/locations/{location}/licenseConfigs/*`.
419
+ #
420
+ # If the caller does not have permission to access the
421
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig},
422
+ # regardless of whether or not it exists, a PERMISSION_DENIED error is
423
+ # returned.
424
+ #
425
+ # If the requested
426
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} does not
427
+ # exist, a NOT_FOUND error is returned.
428
+ #
429
+ # @yield [response, operation] Access the result along with the RPC operation
430
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
431
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
432
+ #
433
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
434
+ #
435
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
436
+ #
437
+ # @example Basic example
438
+ # require "google/cloud/discovery_engine/v1beta"
439
+ #
440
+ # # Create a client object. The client can be reused for multiple calls.
441
+ # client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new
442
+ #
443
+ # # Create a request. To set request fields, pass in keyword arguments.
444
+ # request = Google::Cloud::DiscoveryEngine::V1beta::GetLicenseConfigRequest.new
445
+ #
446
+ # # Call the get_license_config method.
447
+ # result = client.get_license_config request
448
+ #
449
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.
450
+ # p result
451
+ #
452
+ def get_license_config request, options = nil
453
+ raise ::ArgumentError, "request must be provided" if request.nil?
454
+
455
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::GetLicenseConfigRequest
456
+
457
+ # Converts hash and nil to an options object
458
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
459
+
460
+ # Customize the options with defaults
461
+ metadata = @config.rpcs.get_license_config.metadata.to_h
462
+
463
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
464
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
465
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
466
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
467
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
468
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
469
+
470
+ header_params = {}
471
+ if request.name
472
+ header_params["name"] = request.name
473
+ end
474
+
475
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
476
+ metadata[:"x-goog-request-params"] ||= request_params_header
477
+
478
+ options.apply_defaults timeout: @config.rpcs.get_license_config.timeout,
479
+ metadata: metadata,
480
+ retry_policy: @config.rpcs.get_license_config.retry_policy
481
+
482
+ options.apply_defaults timeout: @config.timeout,
483
+ metadata: @config.metadata,
484
+ retry_policy: @config.retry_policy
485
+
486
+ @license_config_service_stub.call_rpc :get_license_config, request, options: options do |response, operation|
487
+ yield response, operation if block_given?
488
+ end
489
+ rescue ::GRPC::BadStatus => e
490
+ raise ::Google::Cloud::Error.from_error(e)
491
+ end
492
+
493
+ ##
494
+ # Lists all the
495
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}s
496
+ # associated with the project.
497
+ #
498
+ # @overload list_license_configs(request, options = nil)
499
+ # Pass arguments to `list_license_configs` via a request object, either of type
500
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListLicenseConfigsRequest} or an equivalent Hash.
501
+ #
502
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::ListLicenseConfigsRequest, ::Hash]
503
+ # A request object representing the call parameters. Required. To specify no
504
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
505
+ # @param options [::Gapic::CallOptions, ::Hash]
506
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
507
+ #
508
+ # @overload list_license_configs(parent: nil, page_size: nil, page_token: nil, filter: nil)
509
+ # Pass arguments to `list_license_configs` via keyword arguments. Note that at
510
+ # least one keyword argument is required. To specify no parameters, or to keep all
511
+ # the default parameter values, pass an empty Hash as a request object (see above).
512
+ #
513
+ # @param parent [::String]
514
+ # Required. The parent branch resource name, such as
515
+ # `projects/{project}/locations/{location}`.
516
+ # @param page_size [::Integer]
517
+ # Optional. Not supported.
518
+ # @param page_token [::String]
519
+ # Optional. Not supported.
520
+ # @param filter [::String]
521
+ # Optional. The filter to apply to the list results.
522
+ #
523
+ # The supported fields are:
524
+ #
525
+ # * `subscription_tier`
526
+ # * `state`
527
+ #
528
+ # Examples:
529
+ #
530
+ # * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
531
+ # active search license configs.
532
+ # * `state=ACTIVE` - Lists all active license configs.
533
+ #
534
+ # The filter string should be a comma-separated list of field=value pairs.
535
+ #
536
+ # @yield [response, operation] Access the result along with the RPC operation
537
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig>]
538
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
539
+ #
540
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig>]
541
+ #
542
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
543
+ #
544
+ # @example Basic example
545
+ # require "google/cloud/discovery_engine/v1beta"
546
+ #
547
+ # # Create a client object. The client can be reused for multiple calls.
548
+ # client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new
549
+ #
550
+ # # Create a request. To set request fields, pass in keyword arguments.
551
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListLicenseConfigsRequest.new
552
+ #
553
+ # # Call the list_license_configs method.
554
+ # result = client.list_license_configs request
555
+ #
556
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
557
+ # # over elements, and API calls will be issued to fetch pages as needed.
558
+ # result.each do |item|
559
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.
560
+ # p item
561
+ # end
562
+ #
563
+ def list_license_configs request, options = nil
564
+ raise ::ArgumentError, "request must be provided" if request.nil?
565
+
566
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::ListLicenseConfigsRequest
567
+
568
+ # Converts hash and nil to an options object
569
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
570
+
571
+ # Customize the options with defaults
572
+ metadata = @config.rpcs.list_license_configs.metadata.to_h
573
+
574
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
575
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
576
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
577
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
578
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
579
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
580
+
581
+ header_params = {}
582
+ if request.parent
583
+ header_params["parent"] = request.parent
584
+ end
585
+
586
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
587
+ metadata[:"x-goog-request-params"] ||= request_params_header
588
+
589
+ options.apply_defaults timeout: @config.rpcs.list_license_configs.timeout,
590
+ metadata: metadata,
591
+ retry_policy: @config.rpcs.list_license_configs.retry_policy
592
+
593
+ options.apply_defaults timeout: @config.timeout,
594
+ metadata: @config.metadata,
595
+ retry_policy: @config.retry_policy
596
+
597
+ @license_config_service_stub.call_rpc :list_license_configs, request, options: options do |response, operation|
598
+ response = ::Gapic::PagedEnumerable.new @license_config_service_stub, :list_license_configs, request, response, operation, options
599
+ yield response, operation if block_given?
600
+ throw :response, response
601
+ end
602
+ rescue ::GRPC::BadStatus => e
603
+ raise ::Google::Cloud::Error.from_error(e)
604
+ end
605
+
606
+ ##
607
+ # Distributes a
608
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} from
609
+ # billing account level to project level.
610
+ #
611
+ # @overload distribute_license_config(request, options = nil)
612
+ # Pass arguments to `distribute_license_config` via a request object, either of type
613
+ # {::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigRequest} or an equivalent Hash.
614
+ #
615
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigRequest, ::Hash]
616
+ # A request object representing the call parameters. Required. To specify no
617
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
618
+ # @param options [::Gapic::CallOptions, ::Hash]
619
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
620
+ #
621
+ # @overload distribute_license_config(billing_account_license_config: nil, project_number: nil, location: nil, license_count: nil, license_config_id: nil)
622
+ # Pass arguments to `distribute_license_config` via keyword arguments. Note that at
623
+ # least one keyword argument is required. To specify no parameters, or to keep all
624
+ # the default parameter values, pass an empty Hash as a request object (see above).
625
+ #
626
+ # @param billing_account_license_config [::String]
627
+ # Required. Full resource name of [BillingAccountLicenseConfig][].
628
+ #
629
+ # Format:
630
+ # `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
631
+ # @param project_number [::Integer]
632
+ # Required. The target GCP project number to distribute the license config
633
+ # to.
634
+ # @param location [::String]
635
+ # Required. The target GCP project region to distribute the license config
636
+ # to.
637
+ # @param license_count [::Integer]
638
+ # Required. The number of licenses to distribute.
639
+ # @param license_config_id [::String]
640
+ # Optional. Distribute seats to this license config instead of creating a new
641
+ # one. If not specified, a new license config will be created from the
642
+ # billing account license config.
643
+ #
644
+ # @yield [response, operation] Access the result along with the RPC operation
645
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigResponse]
646
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
647
+ #
648
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigResponse]
649
+ #
650
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
651
+ #
652
+ # @example Basic example
653
+ # require "google/cloud/discovery_engine/v1beta"
654
+ #
655
+ # # Create a client object. The client can be reused for multiple calls.
656
+ # client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new
657
+ #
658
+ # # Create a request. To set request fields, pass in keyword arguments.
659
+ # request = Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigRequest.new
660
+ #
661
+ # # Call the distribute_license_config method.
662
+ # result = client.distribute_license_config request
663
+ #
664
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigResponse.
665
+ # p result
666
+ #
667
+ def distribute_license_config request, options = nil
668
+ raise ::ArgumentError, "request must be provided" if request.nil?
669
+
670
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigRequest
671
+
672
+ # Converts hash and nil to an options object
673
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
674
+
675
+ # Customize the options with defaults
676
+ metadata = @config.rpcs.distribute_license_config.metadata.to_h
677
+
678
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
679
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
680
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
681
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
682
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
683
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
684
+
685
+ header_params = {}
686
+ if request.billing_account_license_config
687
+ header_params["billing_account_license_config"] = request.billing_account_license_config
688
+ end
689
+
690
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
691
+ metadata[:"x-goog-request-params"] ||= request_params_header
692
+
693
+ options.apply_defaults timeout: @config.rpcs.distribute_license_config.timeout,
694
+ metadata: metadata,
695
+ retry_policy: @config.rpcs.distribute_license_config.retry_policy
696
+
697
+ options.apply_defaults timeout: @config.timeout,
698
+ metadata: @config.metadata,
699
+ retry_policy: @config.retry_policy
700
+
701
+ @license_config_service_stub.call_rpc :distribute_license_config, request, options: options do |response, operation|
702
+ yield response, operation if block_given?
703
+ end
704
+ rescue ::GRPC::BadStatus => e
705
+ raise ::Google::Cloud::Error.from_error(e)
706
+ end
707
+
708
+ ##
709
+ # This method is called from the billing account side to retract the
710
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} from the
711
+ # given project back to the billing account.
712
+ #
713
+ # @overload retract_license_config(request, options = nil)
714
+ # Pass arguments to `retract_license_config` via a request object, either of type
715
+ # {::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigRequest} or an equivalent Hash.
716
+ #
717
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigRequest, ::Hash]
718
+ # A request object representing the call parameters. Required. To specify no
719
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
720
+ # @param options [::Gapic::CallOptions, ::Hash]
721
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
722
+ #
723
+ # @overload retract_license_config(billing_account_license_config: nil, license_config: nil, full_retract: nil, license_count: nil)
724
+ # Pass arguments to `retract_license_config` via keyword arguments. Note that at
725
+ # least one keyword argument is required. To specify no parameters, or to keep all
726
+ # the default parameter values, pass an empty Hash as a request object (see above).
727
+ #
728
+ # @param billing_account_license_config [::String]
729
+ # Required. Full resource name of [BillingAccountLicenseConfig][].
730
+ #
731
+ # Format:
732
+ # `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
733
+ # @param license_config [::String]
734
+ # Required. Full resource name of
735
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}.
736
+ #
737
+ # Format:
738
+ # `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
739
+ # @param full_retract [::Boolean]
740
+ # Optional. If set to true, retract the entire license config. Otherwise,
741
+ # retract the specified license count.
742
+ # @param license_count [::Integer]
743
+ # Optional. The number of licenses to retract. Only used when full_retract is
744
+ # false.
745
+ #
746
+ # @yield [response, operation] Access the result along with the RPC operation
747
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigResponse]
748
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
749
+ #
750
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigResponse]
751
+ #
752
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
753
+ #
754
+ # @example Basic example
755
+ # require "google/cloud/discovery_engine/v1beta"
756
+ #
757
+ # # Create a client object. The client can be reused for multiple calls.
758
+ # client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new
759
+ #
760
+ # # Create a request. To set request fields, pass in keyword arguments.
761
+ # request = Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigRequest.new
762
+ #
763
+ # # Call the retract_license_config method.
764
+ # result = client.retract_license_config request
765
+ #
766
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigResponse.
767
+ # p result
768
+ #
769
+ def retract_license_config request, options = nil
770
+ raise ::ArgumentError, "request must be provided" if request.nil?
771
+
772
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigRequest
773
+
774
+ # Converts hash and nil to an options object
775
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
776
+
777
+ # Customize the options with defaults
778
+ metadata = @config.rpcs.retract_license_config.metadata.to_h
779
+
780
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
781
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
782
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
783
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
784
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
785
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
786
+
787
+ header_params = {}
788
+ if request.billing_account_license_config
789
+ header_params["billing_account_license_config"] = request.billing_account_license_config
790
+ end
791
+
792
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
793
+ metadata[:"x-goog-request-params"] ||= request_params_header
794
+
795
+ options.apply_defaults timeout: @config.rpcs.retract_license_config.timeout,
796
+ metadata: metadata,
797
+ retry_policy: @config.rpcs.retract_license_config.retry_policy
798
+
799
+ options.apply_defaults timeout: @config.timeout,
800
+ metadata: @config.metadata,
801
+ retry_policy: @config.retry_policy
802
+
803
+ @license_config_service_stub.call_rpc :retract_license_config, request, options: options do |response, operation|
804
+ yield response, operation if block_given?
805
+ end
806
+ rescue ::GRPC::BadStatus => e
807
+ raise ::Google::Cloud::Error.from_error(e)
808
+ end
809
+
810
+ ##
811
+ # Configuration class for the LicenseConfigService API.
812
+ #
813
+ # This class represents the configuration for LicenseConfigService,
814
+ # providing control over timeouts, retry behavior, logging, transport
815
+ # parameters, and other low-level controls. Certain parameters can also be
816
+ # applied individually to specific RPCs. See
817
+ # {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client::Configuration::Rpcs}
818
+ # for a list of RPCs that can be configured independently.
819
+ #
820
+ # Configuration can be applied globally to all clients, or to a single client
821
+ # on construction.
822
+ #
823
+ # @example
824
+ #
825
+ # # Modify the global config, setting the timeout for
826
+ # # create_license_config to 20 seconds,
827
+ # # and all remaining timeouts to 10 seconds.
828
+ # ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.configure do |config|
829
+ # config.timeout = 10.0
830
+ # config.rpcs.create_license_config.timeout = 20.0
831
+ # end
832
+ #
833
+ # # Apply the above configuration only to a new client.
834
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new do |config|
835
+ # config.timeout = 10.0
836
+ # config.rpcs.create_license_config.timeout = 20.0
837
+ # end
838
+ #
839
+ # @!attribute [rw] endpoint
840
+ # A custom service endpoint, as a hostname or hostname:port. The default is
841
+ # nil, indicating to use the default endpoint in the current universe domain.
842
+ # @return [::String,nil]
843
+ # @!attribute [rw] credentials
844
+ # Credentials to send with calls. You may provide any of the following types:
845
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
846
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
847
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
848
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
849
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
850
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
851
+ # * (`nil`) indicating no credentials
852
+ #
853
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
854
+ # is deprecated. Providing an unvalidated credential configuration to
855
+ # Google APIs can compromise the security of your systems and data.
856
+ #
857
+ # @example
858
+ #
859
+ # # The recommended way to provide credentials is to use the `make_creds` method
860
+ # # on the appropriate credentials class for your environment.
861
+ #
862
+ # require "googleauth"
863
+ #
864
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
865
+ # json_key_io: ::File.open("/path/to/keyfile.json")
866
+ # )
867
+ #
868
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Client.new do |config|
869
+ # config.credentials = credentials
870
+ # end
871
+ #
872
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
873
+ # external source for authentication to Google Cloud, you must validate it before
874
+ # providing it to a Google API client library. Providing an unvalidated credential
875
+ # configuration to Google APIs can compromise the security of your systems and data.
876
+ # For more information, refer to [Validate credential configurations from external
877
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
878
+ # @return [::Object]
879
+ # @!attribute [rw] scope
880
+ # The OAuth scopes
881
+ # @return [::Array<::String>]
882
+ # @!attribute [rw] lib_name
883
+ # The library name as recorded in instrumentation and logging
884
+ # @return [::String]
885
+ # @!attribute [rw] lib_version
886
+ # The library version as recorded in instrumentation and logging
887
+ # @return [::String]
888
+ # @!attribute [rw] channel_args
889
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
890
+ # `GRPC::Core::Channel` object is provided as the credential.
891
+ # @return [::Hash]
892
+ # @!attribute [rw] interceptors
893
+ # An array of interceptors that are run before calls are executed.
894
+ # @return [::Array<::GRPC::ClientInterceptor>]
895
+ # @!attribute [rw] timeout
896
+ # The call timeout in seconds.
897
+ # @return [::Numeric]
898
+ # @!attribute [rw] metadata
899
+ # Additional gRPC headers to be sent with the call.
900
+ # @return [::Hash{::Symbol=>::String}]
901
+ # @!attribute [rw] retry_policy
902
+ # The retry policy. The value is a hash with the following keys:
903
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
904
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
905
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
906
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
907
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
908
+ # trigger a retry.
909
+ # @return [::Hash]
910
+ # @!attribute [rw] quota_project
911
+ # A separate project against which to charge quota.
912
+ # @return [::String]
913
+ # @!attribute [rw] universe_domain
914
+ # The universe domain within which to make requests. This determines the
915
+ # default endpoint URL. The default value of nil uses the environment
916
+ # universe (usually the default "googleapis.com" universe).
917
+ # @return [::String,nil]
918
+ # @!attribute [rw] logger
919
+ # A custom logger to use for request/response debug logging, or the value
920
+ # `:default` (the default) to construct a default logger, or `nil` to
921
+ # explicitly disable logging.
922
+ # @return [::Logger,:default,nil]
923
+ #
924
+ class Configuration
925
+ extend ::Gapic::Config
926
+
927
+ # @private
928
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
929
+ DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
930
+
931
+ config_attr :endpoint, nil, ::String, nil
932
+ config_attr :credentials, nil do |value|
933
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
934
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
935
+ allowed.any? { |klass| klass === value }
936
+ end
937
+ config_attr :scope, nil, ::String, ::Array, nil
938
+ config_attr :lib_name, nil, ::String, nil
939
+ config_attr :lib_version, nil, ::String, nil
940
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
941
+ config_attr :interceptors, nil, ::Array, nil
942
+ config_attr :timeout, nil, ::Numeric, nil
943
+ config_attr :metadata, nil, ::Hash, nil
944
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
945
+ config_attr :quota_project, nil, ::String, nil
946
+ config_attr :universe_domain, nil, ::String, nil
947
+ config_attr :logger, :default, ::Logger, nil, :default
948
+
949
+ # @private
950
+ def initialize parent_config = nil
951
+ @parent_config = parent_config unless parent_config.nil?
952
+
953
+ yield self if block_given?
954
+ end
955
+
956
+ ##
957
+ # Configurations for individual RPCs
958
+ # @return [Rpcs]
959
+ #
960
+ def rpcs
961
+ @rpcs ||= begin
962
+ parent_rpcs = nil
963
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
964
+ Rpcs.new parent_rpcs
965
+ end
966
+ end
967
+
968
+ ##
969
+ # Configuration for the channel pool
970
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
971
+ #
972
+ def channel_pool
973
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
974
+ end
975
+
976
+ ##
977
+ # Configuration RPC class for the LicenseConfigService API.
978
+ #
979
+ # Includes fields providing the configuration for each RPC in this service.
980
+ # Each configuration object is of type `Gapic::Config::Method` and includes
981
+ # the following configuration fields:
982
+ #
983
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
984
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
985
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
986
+ # include the following keys:
987
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
988
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
989
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
990
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
991
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
992
+ # trigger a retry.
993
+ #
994
+ class Rpcs
995
+ ##
996
+ # RPC-specific configuration for `create_license_config`
997
+ # @return [::Gapic::Config::Method]
998
+ #
999
+ attr_reader :create_license_config
1000
+ ##
1001
+ # RPC-specific configuration for `update_license_config`
1002
+ # @return [::Gapic::Config::Method]
1003
+ #
1004
+ attr_reader :update_license_config
1005
+ ##
1006
+ # RPC-specific configuration for `get_license_config`
1007
+ # @return [::Gapic::Config::Method]
1008
+ #
1009
+ attr_reader :get_license_config
1010
+ ##
1011
+ # RPC-specific configuration for `list_license_configs`
1012
+ # @return [::Gapic::Config::Method]
1013
+ #
1014
+ attr_reader :list_license_configs
1015
+ ##
1016
+ # RPC-specific configuration for `distribute_license_config`
1017
+ # @return [::Gapic::Config::Method]
1018
+ #
1019
+ attr_reader :distribute_license_config
1020
+ ##
1021
+ # RPC-specific configuration for `retract_license_config`
1022
+ # @return [::Gapic::Config::Method]
1023
+ #
1024
+ attr_reader :retract_license_config
1025
+
1026
+ # @private
1027
+ def initialize parent_rpcs = nil
1028
+ create_license_config_config = parent_rpcs.create_license_config if parent_rpcs.respond_to? :create_license_config
1029
+ @create_license_config = ::Gapic::Config::Method.new create_license_config_config
1030
+ update_license_config_config = parent_rpcs.update_license_config if parent_rpcs.respond_to? :update_license_config
1031
+ @update_license_config = ::Gapic::Config::Method.new update_license_config_config
1032
+ get_license_config_config = parent_rpcs.get_license_config if parent_rpcs.respond_to? :get_license_config
1033
+ @get_license_config = ::Gapic::Config::Method.new get_license_config_config
1034
+ list_license_configs_config = parent_rpcs.list_license_configs if parent_rpcs.respond_to? :list_license_configs
1035
+ @list_license_configs = ::Gapic::Config::Method.new list_license_configs_config
1036
+ distribute_license_config_config = parent_rpcs.distribute_license_config if parent_rpcs.respond_to? :distribute_license_config
1037
+ @distribute_license_config = ::Gapic::Config::Method.new distribute_license_config_config
1038
+ retract_license_config_config = parent_rpcs.retract_license_config if parent_rpcs.respond_to? :retract_license_config
1039
+ @retract_license_config = ::Gapic::Config::Method.new retract_license_config_config
1040
+
1041
+ yield self if block_given?
1042
+ end
1043
+ end
1044
+ end
1045
+ end
1046
+ end
1047
+ end
1048
+ end
1049
+ end
1050
+ end