google-shopping-merchant-accounts-v1 0.a → 0.1.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 (251) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/shopping/merchant/accounts/v1/accessright_pb.rb +44 -0
  6. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/client.rb +497 -0
  7. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/credentials.rb +49 -0
  8. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/paths.rb +49 -0
  9. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest/client.rb +464 -0
  10. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest/service_stub.rb +144 -0
  11. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest.rb +54 -0
  12. data/lib/google/shopping/merchant/accounts/v1/account_issue_service.rb +57 -0
  13. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/client.rb +671 -0
  14. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/credentials.rb +49 -0
  15. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/paths.rb +66 -0
  16. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest/client.rb +624 -0
  17. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest/service_stub.rb +267 -0
  18. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest.rb +54 -0
  19. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service.rb +57 -0
  20. data/lib/google/shopping/merchant/accounts/v1/account_services_service/client.rb +856 -0
  21. data/lib/google/shopping/merchant/accounts/v1/account_services_service/credentials.rb +49 -0
  22. data/lib/google/shopping/merchant/accounts/v1/account_services_service/paths.rb +66 -0
  23. data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest/client.rb +795 -0
  24. data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest/service_stub.rb +391 -0
  25. data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest.rb +54 -0
  26. data/lib/google/shopping/merchant/accounts/v1/account_services_service.rb +57 -0
  27. data/lib/google/shopping/merchant/accounts/v1/accountissue_pb.rb +55 -0
  28. data/lib/google/shopping/merchant/accounts/v1/accountissue_services_pb.rb +54 -0
  29. data/lib/google/shopping/merchant/accounts/v1/accountrelationships_pb.rb +55 -0
  30. data/lib/google/shopping/merchant/accounts/v1/accountrelationships_services_pb.rb +52 -0
  31. data/lib/google/shopping/merchant/accounts/v1/accounts_pb.rb +68 -0
  32. data/lib/google/shopping/merchant/accounts/v1/accounts_service/client.rb +987 -0
  33. data/lib/google/shopping/merchant/accounts/v1/accounts_service/credentials.rb +49 -0
  34. data/lib/google/shopping/merchant/accounts/v1/accounts_service/paths.rb +66 -0
  35. data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest/client.rb +935 -0
  36. data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest/service_stub.rb +447 -0
  37. data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest.rb +54 -0
  38. data/lib/google/shopping/merchant/accounts/v1/accounts_service.rb +57 -0
  39. data/lib/google/shopping/merchant/accounts/v1/accounts_services_pb.rb +74 -0
  40. data/lib/google/shopping/merchant/accounts/v1/accountservices_pb.rb +65 -0
  41. data/lib/google/shopping/merchant/accounts/v1/accountservices_services_pb.rb +56 -0
  42. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/client.rb +560 -0
  43. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/credentials.rb +49 -0
  44. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/paths.rb +49 -0
  45. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest/client.rb +520 -0
  46. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest/service_stub.rb +206 -0
  47. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest.rb +55 -0
  48. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service.rb +58 -0
  49. data/lib/google/shopping/merchant/accounts/v1/autofeedsettings_pb.rb +53 -0
  50. data/lib/google/shopping/merchant/accounts/v1/autofeedsettings_services_pb.rb +50 -0
  51. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/client.rb +570 -0
  52. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/credentials.rb +49 -0
  53. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/paths.rb +49 -0
  54. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest/client.rb +530 -0
  55. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest/service_stub.rb +206 -0
  56. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest.rb +56 -0
  57. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service.rb +59 -0
  58. data/lib/google/shopping/merchant/accounts/v1/automaticimprovements_pb.rb +58 -0
  59. data/lib/google/shopping/merchant/accounts/v1/automaticimprovements_services_pb.rb +51 -0
  60. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/client.rb +572 -0
  61. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/credentials.rb +49 -0
  62. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/paths.rb +49 -0
  63. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest/client.rb +532 -0
  64. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest/service_stub.rb +206 -0
  65. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest.rb +55 -0
  66. data/lib/google/shopping/merchant/accounts/v1/business_identity_service.rb +58 -0
  67. data/lib/google/shopping/merchant/accounts/v1/business_info_service/client.rb +568 -0
  68. data/lib/google/shopping/merchant/accounts/v1/business_info_service/credentials.rb +49 -0
  69. data/lib/google/shopping/merchant/accounts/v1/business_info_service/paths.rb +49 -0
  70. data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest/client.rb +528 -0
  71. data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest/service_stub.rb +206 -0
  72. data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest.rb +54 -0
  73. data/lib/google/shopping/merchant/accounts/v1/business_info_service.rb +57 -0
  74. data/lib/google/shopping/merchant/accounts/v1/businessidentity_pb.rb +56 -0
  75. data/lib/google/shopping/merchant/accounts/v1/businessidentity_services_pb.rb +51 -0
  76. data/lib/google/shopping/merchant/accounts/v1/businessinfo_pb.rb +60 -0
  77. data/lib/google/shopping/merchant/accounts/v1/businessinfo_services_pb.rb +50 -0
  78. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/client.rb +757 -0
  79. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/credentials.rb +49 -0
  80. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/paths.rb +69 -0
  81. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest/client.rb +703 -0
  82. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest/service_stub.rb +329 -0
  83. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest.rb +55 -0
  84. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service.rb +58 -0
  85. data/lib/google/shopping/merchant/accounts/v1/checkoutsettings_pb.rb +60 -0
  86. data/lib/google/shopping/merchant/accounts/v1/checkoutsettings_services_pb.rb +56 -0
  87. data/lib/google/shopping/merchant/accounts/v1/customerservice_pb.rb +48 -0
  88. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/client.rb +665 -0
  89. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/credentials.rb +49 -0
  90. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/paths.rb +49 -0
  91. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/client.rb +618 -0
  92. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/service_stub.rb +268 -0
  93. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest.rb +54 -0
  94. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service.rb +57 -0
  95. data/lib/google/shopping/merchant/accounts/v1/developerregistration_pb.rb +53 -0
  96. data/lib/google/shopping/merchant/accounts/v1/developerregistration_services_pb.rb +56 -0
  97. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/client.rb +579 -0
  98. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/credentials.rb +49 -0
  99. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/paths.rb +52 -0
  100. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest/client.rb +539 -0
  101. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest/service_stub.rb +206 -0
  102. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest.rb +54 -0
  103. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service.rb +57 -0
  104. data/lib/google/shopping/merchant/accounts/v1/emailpreferences_pb.rb +54 -0
  105. data/lib/google/shopping/merchant/accounts/v1/emailpreferences_services_pb.rb +64 -0
  106. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/client.rb +585 -0
  107. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/credentials.rb +49 -0
  108. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/paths.rb +49 -0
  109. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest/client.rb +545 -0
  110. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest/service_stub.rb +206 -0
  111. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest.rb +57 -0
  112. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service.rb +60 -0
  113. data/lib/google/shopping/merchant/accounts/v1/gbpaccounts_pb.rb +56 -0
  114. data/lib/google/shopping/merchant/accounts/v1/gbpaccounts_services_pb.rb +56 -0
  115. data/lib/google/shopping/merchant/accounts/v1/homepage_pb.rb +55 -0
  116. data/lib/google/shopping/merchant/accounts/v1/homepage_service/client.rb +774 -0
  117. data/lib/google/shopping/merchant/accounts/v1/homepage_service/credentials.rb +49 -0
  118. data/lib/google/shopping/merchant/accounts/v1/homepage_service/paths.rb +49 -0
  119. data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest/client.rb +720 -0
  120. data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest/service_stub.rb +330 -0
  121. data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest.rb +54 -0
  122. data/lib/google/shopping/merchant/accounts/v1/homepage_service.rb +57 -0
  123. data/lib/google/shopping/merchant/accounts/v1/homepage_services_pb.rb +73 -0
  124. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/client.rb +584 -0
  125. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/credentials.rb +49 -0
  126. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/paths.rb +71 -0
  127. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest/client.rb +544 -0
  128. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest/service_stub.rb +206 -0
  129. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest.rb +56 -0
  130. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service.rb +59 -0
  131. data/lib/google/shopping/merchant/accounts/v1/lfpproviders_pb.rb +55 -0
  132. data/lib/google/shopping/merchant/accounts/v1/lfpproviders_services_pb.rb +51 -0
  133. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/client.rb +875 -0
  134. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/credentials.rb +49 -0
  135. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/paths.rb +66 -0
  136. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest/client.rb +814 -0
  137. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest/service_stub.rb +391 -0
  138. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest.rb +57 -0
  139. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service.rb +60 -0
  140. data/lib/google/shopping/merchant/accounts/v1/omnichannelsettings_pb.rb +68 -0
  141. data/lib/google/shopping/merchant/accounts/v1/omnichannelsettings_services_pb.rb +58 -0
  142. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_pb.rb +68 -0
  143. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/client.rb +771 -0
  144. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/credentials.rb +49 -0
  145. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/paths.rb +66 -0
  146. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest/client.rb +717 -0
  147. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest/service_stub.rb +328 -0
  148. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest.rb +58 -0
  149. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service.rb +61 -0
  150. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_services_pb.rb +57 -0
  151. data/lib/google/shopping/merchant/accounts/v1/phoneverificationstate_pb.rb +44 -0
  152. data/lib/google/shopping/merchant/accounts/v1/programs_pb.rb +56 -0
  153. data/lib/google/shopping/merchant/accounts/v1/programs_service/client.rb +770 -0
  154. data/lib/google/shopping/merchant/accounts/v1/programs_service/credentials.rb +49 -0
  155. data/lib/google/shopping/merchant/accounts/v1/programs_service/paths.rb +66 -0
  156. data/lib/google/shopping/merchant/accounts/v1/programs_service/rest/client.rb +716 -0
  157. data/lib/google/shopping/merchant/accounts/v1/programs_service/rest/service_stub.rb +329 -0
  158. data/lib/google/shopping/merchant/accounts/v1/programs_service/rest.rb +64 -0
  159. data/lib/google/shopping/merchant/accounts/v1/programs_service.rb +67 -0
  160. data/lib/google/shopping/merchant/accounts/v1/programs_services_pb.rb +63 -0
  161. data/lib/google/shopping/merchant/accounts/v1/regions_pb.rb +63 -0
  162. data/lib/google/shopping/merchant/accounts/v1/regions_service/client.rb +869 -0
  163. data/lib/google/shopping/merchant/accounts/v1/regions_service/credentials.rb +49 -0
  164. data/lib/google/shopping/merchant/accounts/v1/regions_service/paths.rb +66 -0
  165. data/lib/google/shopping/merchant/accounts/v1/regions_service/rest/client.rb +808 -0
  166. data/lib/google/shopping/merchant/accounts/v1/regions_service/rest/service_stub.rb +390 -0
  167. data/lib/google/shopping/merchant/accounts/v1/regions_service/rest.rb +58 -0
  168. data/lib/google/shopping/merchant/accounts/v1/regions_service.rb +61 -0
  169. data/lib/google/shopping/merchant/accounts/v1/regions_services_pb.rb +62 -0
  170. data/lib/google/shopping/merchant/accounts/v1/rest.rb +60 -0
  171. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/client.rb +564 -0
  172. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/credentials.rb +49 -0
  173. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/paths.rb +63 -0
  174. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest/client.rb +524 -0
  175. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest/service_stub.rb +206 -0
  176. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest.rb +55 -0
  177. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service.rb +58 -0
  178. data/lib/google/shopping/merchant/accounts/v1/shippingsettings_pb.rb +83 -0
  179. data/lib/google/shopping/merchant/accounts/v1/shippingsettings_services_pb.rb +51 -0
  180. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/client.rb +563 -0
  181. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/credentials.rb +49 -0
  182. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/paths.rb +66 -0
  183. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest/client.rb +523 -0
  184. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest/service_stub.rb +205 -0
  185. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest.rb +54 -0
  186. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service.rb +57 -0
  187. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/client.rb +654 -0
  188. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/credentials.rb +49 -0
  189. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/paths.rb +63 -0
  190. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest/client.rb +615 -0
  191. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest/service_stub.rb +264 -0
  192. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest.rb +54 -0
  193. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service.rb +57 -0
  194. data/lib/google/shopping/merchant/accounts/v1/termsofservice_pb.rb +56 -0
  195. data/lib/google/shopping/merchant/accounts/v1/termsofservice_services_pb.rb +52 -0
  196. data/lib/google/shopping/merchant/accounts/v1/termsofserviceagreementstate_pb.rb +56 -0
  197. data/lib/google/shopping/merchant/accounts/v1/termsofserviceagreementstate_services_pb.rb +53 -0
  198. data/lib/google/shopping/merchant/accounts/v1/termsofservicekind_pb.rb +44 -0
  199. data/lib/google/shopping/merchant/accounts/v1/user_pb.rb +60 -0
  200. data/lib/google/shopping/merchant/accounts/v1/user_service/client.rb +879 -0
  201. data/lib/google/shopping/merchant/accounts/v1/user_service/credentials.rb +49 -0
  202. data/lib/google/shopping/merchant/accounts/v1/user_service/paths.rb +66 -0
  203. data/lib/google/shopping/merchant/accounts/v1/user_service/rest/client.rb +818 -0
  204. data/lib/google/shopping/merchant/accounts/v1/user_service/rest/service_stub.rb +390 -0
  205. data/lib/google/shopping/merchant/accounts/v1/user_service/rest.rb +54 -0
  206. data/lib/google/shopping/merchant/accounts/v1/user_service.rb +57 -0
  207. data/lib/google/shopping/merchant/accounts/v1/user_services_pb.rb +60 -0
  208. data/lib/google/shopping/merchant/accounts/v1/version.rb +7 -2
  209. data/lib/google/shopping/merchant/accounts/v1.rb +68 -0
  210. data/lib/google-shopping-merchant-accounts-v1.rb +21 -0
  211. data/proto_docs/README.md +4 -0
  212. data/proto_docs/google/api/client.rb +473 -0
  213. data/proto_docs/google/api/field_behavior.rb +85 -0
  214. data/proto_docs/google/api/launch_stage.rb +71 -0
  215. data/proto_docs/google/api/resource.rb +227 -0
  216. data/proto_docs/google/protobuf/duration.rb +98 -0
  217. data/proto_docs/google/protobuf/empty.rb +34 -0
  218. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  219. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  220. data/proto_docs/google/shopping/merchant/accounts/v1/accessright.rb +51 -0
  221. data/proto_docs/google/shopping/merchant/accounts/v1/accountissue.rb +144 -0
  222. data/proto_docs/google/shopping/merchant/accounts/v1/accountrelationships.rb +124 -0
  223. data/proto_docs/google/shopping/merchant/accounts/v1/accounts.rb +250 -0
  224. data/proto_docs/google/shopping/merchant/accounts/v1/accountservices.rb +288 -0
  225. data/proto_docs/google/shopping/merchant/accounts/v1/autofeedsettings.rb +75 -0
  226. data/proto_docs/google/shopping/merchant/accounts/v1/automaticimprovements.rb +235 -0
  227. data/proto_docs/google/shopping/merchant/accounts/v1/businessidentity.rb +140 -0
  228. data/proto_docs/google/shopping/merchant/accounts/v1/businessinfo.rb +91 -0
  229. data/proto_docs/google/shopping/merchant/accounts/v1/checkoutsettings.rb +187 -0
  230. data/proto_docs/google/shopping/merchant/accounts/v1/customerservice.rb +43 -0
  231. data/proto_docs/google/shopping/merchant/accounts/v1/developerregistration.rb +82 -0
  232. data/proto_docs/google/shopping/merchant/accounts/v1/emailpreferences.rb +87 -0
  233. data/proto_docs/google/shopping/merchant/accounts/v1/gbpaccounts.rb +123 -0
  234. data/proto_docs/google/shopping/merchant/accounts/v1/homepage.rb +106 -0
  235. data/proto_docs/google/shopping/merchant/accounts/v1/lfpproviders.rb +108 -0
  236. data/proto_docs/google/shopping/merchant/accounts/v1/omnichannelsettings.rb +336 -0
  237. data/proto_docs/google/shopping/merchant/accounts/v1/online_return_policy.rb +317 -0
  238. data/proto_docs/google/shopping/merchant/accounts/v1/phoneverificationstate.rb +40 -0
  239. data/proto_docs/google/shopping/merchant/accounts/v1/programs.rb +170 -0
  240. data/proto_docs/google/shopping/merchant/accounts/v1/regions.rb +195 -0
  241. data/proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb +757 -0
  242. data/proto_docs/google/shopping/merchant/accounts/v1/termsofservice.rb +118 -0
  243. data/proto_docs/google/shopping/merchant/accounts/v1/termsofserviceagreementstate.rb +136 -0
  244. data/proto_docs/google/shopping/merchant/accounts/v1/termsofservicekind.rb +37 -0
  245. data/proto_docs/google/shopping/merchant/accounts/v1/user.rb +164 -0
  246. data/proto_docs/google/shopping/type/types.rb +210 -0
  247. data/proto_docs/google/type/date.rb +53 -0
  248. data/proto_docs/google/type/datetime.rb +103 -0
  249. data/proto_docs/google/type/phone_number.rb +116 -0
  250. data/proto_docs/google/type/postal_address.rb +135 -0
  251. metadata +309 -9
@@ -0,0 +1,572 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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/shopping/merchant/accounts/v1/businessidentity_pb"
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module Accounts
26
+ module V1
27
+ module BusinessIdentityService
28
+ ##
29
+ # Client for the BusinessIdentityService service.
30
+ #
31
+ # Service to support [business
32
+ # identity](https://support.google.com/merchants/answer/12564247) API.
33
+ #
34
+ class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
38
+ # @private
39
+ DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
40
+
41
+ include Paths
42
+
43
+ # @private
44
+ attr_reader :business_identity_service_stub
45
+
46
+ ##
47
+ # Configure the BusinessIdentityService Client class.
48
+ #
49
+ # See {::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all BusinessIdentityService clients
55
+ # ::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
58
+ #
59
+ # @yield [config] Configure the Client client.
60
+ # @yieldparam config [Client::Configuration]
61
+ #
62
+ # @return [Client::Configuration]
63
+ #
64
+ def self.configure
65
+ @configure ||= begin
66
+ namespace = ["Google", "Shopping", "Merchant", "Accounts", "V1"]
67
+ parent_config = while namespace.any?
68
+ parent_name = namespace.join "::"
69
+ parent_const = const_get parent_name
70
+ break parent_const.configure if parent_const.respond_to? :configure
71
+ namespace.pop
72
+ end
73
+ default_config = Client::Configuration.new parent_config
74
+
75
+ default_config.timeout = 60.0
76
+ default_config.retry_policy = {
77
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
78
+ }
79
+
80
+ default_config
81
+ end
82
+ yield @configure if block_given?
83
+ @configure
84
+ end
85
+
86
+ ##
87
+ # Configure the BusinessIdentityService Client instance.
88
+ #
89
+ # The configuration is set to the derived mode, meaning that values can be changed,
90
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
91
+ # should be made on {Client.configure}.
92
+ #
93
+ # See {::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client::Configuration}
94
+ # for a description of the configuration fields.
95
+ #
96
+ # @yield [config] Configure the Client client.
97
+ # @yieldparam config [Client::Configuration]
98
+ #
99
+ # @return [Client::Configuration]
100
+ #
101
+ def configure
102
+ yield @config if block_given?
103
+ @config
104
+ end
105
+
106
+ ##
107
+ # The effective universe domain
108
+ #
109
+ # @return [String]
110
+ #
111
+ def universe_domain
112
+ @business_identity_service_stub.universe_domain
113
+ end
114
+
115
+ ##
116
+ # Create a new BusinessIdentityService client object.
117
+ #
118
+ # @example
119
+ #
120
+ # # Create a client using the default configuration
121
+ # client = ::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client.new
122
+ #
123
+ # # Create a client using a custom configuration
124
+ # client = ::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client.new do |config|
125
+ # config.timeout = 10.0
126
+ # end
127
+ #
128
+ # @yield [config] Configure the BusinessIdentityService client.
129
+ # @yieldparam config [Client::Configuration]
130
+ #
131
+ def initialize
132
+ # These require statements are intentionally placed here to initialize
133
+ # the gRPC module only when it's required.
134
+ # See https://github.com/googleapis/toolkit/issues/446
135
+ require "gapic/grpc"
136
+ require "google/shopping/merchant/accounts/v1/businessidentity_services_pb"
137
+
138
+ # Create the configuration object
139
+ @config = Configuration.new Client.configure
140
+
141
+ # Yield the configuration if needed
142
+ yield @config if block_given?
143
+
144
+ # Create credentials
145
+ credentials = @config.credentials
146
+ # Use self-signed JWT if the endpoint is unchanged from default,
147
+ # but only if the default endpoint does not have a region prefix.
148
+ enable_self_signed_jwt = @config.endpoint.nil? ||
149
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
150
+ !@config.endpoint.split(".").first.include?("-"))
151
+ credentials ||= Credentials.default scope: @config.scope,
152
+ enable_self_signed_jwt: enable_self_signed_jwt
153
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
154
+ credentials = Credentials.new credentials, scope: @config.scope
155
+ end
156
+ @quota_project_id = @config.quota_project
157
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
158
+
159
+ @business_identity_service_stub = ::Gapic::ServiceStub.new(
160
+ ::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Stub,
161
+ credentials: credentials,
162
+ endpoint: @config.endpoint,
163
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
164
+ universe_domain: @config.universe_domain,
165
+ channel_args: @config.channel_args,
166
+ interceptors: @config.interceptors,
167
+ channel_pool_config: @config.channel_pool,
168
+ logger: @config.logger
169
+ )
170
+
171
+ @business_identity_service_stub.stub_logger&.info do |entry|
172
+ entry.set_system_name
173
+ entry.set_service
174
+ entry.message = "Created client for #{entry.service}"
175
+ entry.set_credentials_fields credentials
176
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
177
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
178
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
179
+ end
180
+ end
181
+
182
+ ##
183
+ # The logger used for request/response debug logging.
184
+ #
185
+ # @return [Logger]
186
+ #
187
+ def logger
188
+ @business_identity_service_stub.logger
189
+ end
190
+
191
+ # Service calls
192
+
193
+ ##
194
+ # Retrieves the business identity of an account.
195
+ #
196
+ # @overload get_business_identity(request, options = nil)
197
+ # Pass arguments to `get_business_identity` via a request object, either of type
198
+ # {::Google::Shopping::Merchant::Accounts::V1::GetBusinessIdentityRequest} or an equivalent Hash.
199
+ #
200
+ # @param request [::Google::Shopping::Merchant::Accounts::V1::GetBusinessIdentityRequest, ::Hash]
201
+ # A request object representing the call parameters. Required. To specify no
202
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
203
+ # @param options [::Gapic::CallOptions, ::Hash]
204
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
205
+ #
206
+ # @overload get_business_identity(name: nil)
207
+ # Pass arguments to `get_business_identity` via keyword arguments. Note that at
208
+ # least one keyword argument is required. To specify no parameters, or to keep all
209
+ # the default parameter values, pass an empty Hash as a request object (see above).
210
+ #
211
+ # @param name [::String]
212
+ # Required. The resource name of the business identity.
213
+ # Format: `accounts/{account}/businessIdentity`. For example,
214
+ # `accounts/123456/businessIdentity`.
215
+ #
216
+ # @yield [response, operation] Access the result along with the RPC operation
217
+ # @yieldparam response [::Google::Shopping::Merchant::Accounts::V1::BusinessIdentity]
218
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
219
+ #
220
+ # @return [::Google::Shopping::Merchant::Accounts::V1::BusinessIdentity]
221
+ #
222
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
223
+ #
224
+ # @example Basic example
225
+ # require "google/shopping/merchant/accounts/v1"
226
+ #
227
+ # # Create a client object. The client can be reused for multiple calls.
228
+ # client = Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client.new
229
+ #
230
+ # # Create a request. To set request fields, pass in keyword arguments.
231
+ # request = Google::Shopping::Merchant::Accounts::V1::GetBusinessIdentityRequest.new
232
+ #
233
+ # # Call the get_business_identity method.
234
+ # result = client.get_business_identity request
235
+ #
236
+ # # The returned object is of type Google::Shopping::Merchant::Accounts::V1::BusinessIdentity.
237
+ # p result
238
+ #
239
+ def get_business_identity request, options = nil
240
+ raise ::ArgumentError, "request must be provided" if request.nil?
241
+
242
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1::GetBusinessIdentityRequest
243
+
244
+ # Converts hash and nil to an options object
245
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
246
+
247
+ # Customize the options with defaults
248
+ metadata = @config.rpcs.get_business_identity.metadata.to_h
249
+
250
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
251
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
252
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
253
+ gapic_version: ::Google::Shopping::Merchant::Accounts::V1::VERSION
254
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
255
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
256
+
257
+ header_params = {}
258
+ if request.name
259
+ header_params["name"] = request.name
260
+ end
261
+
262
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
263
+ metadata[:"x-goog-request-params"] ||= request_params_header
264
+
265
+ options.apply_defaults timeout: @config.rpcs.get_business_identity.timeout,
266
+ metadata: metadata,
267
+ retry_policy: @config.rpcs.get_business_identity.retry_policy
268
+
269
+ options.apply_defaults timeout: @config.timeout,
270
+ metadata: @config.metadata,
271
+ retry_policy: @config.retry_policy
272
+
273
+ @business_identity_service_stub.call_rpc :get_business_identity, request, options: options do |response, operation|
274
+ yield response, operation if block_given?
275
+ end
276
+ rescue ::GRPC::BadStatus => e
277
+ raise ::Google::Cloud::Error.from_error(e)
278
+ end
279
+
280
+ ##
281
+ # Updates the business identity of an account. Executing this method requires
282
+ # admin access.
283
+ #
284
+ # @overload update_business_identity(request, options = nil)
285
+ # Pass arguments to `update_business_identity` via a request object, either of type
286
+ # {::Google::Shopping::Merchant::Accounts::V1::UpdateBusinessIdentityRequest} or an equivalent Hash.
287
+ #
288
+ # @param request [::Google::Shopping::Merchant::Accounts::V1::UpdateBusinessIdentityRequest, ::Hash]
289
+ # A request object representing the call parameters. Required. To specify no
290
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
291
+ # @param options [::Gapic::CallOptions, ::Hash]
292
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
293
+ #
294
+ # @overload update_business_identity(business_identity: nil, update_mask: nil)
295
+ # Pass arguments to `update_business_identity` via keyword arguments. Note that at
296
+ # least one keyword argument is required. To specify no parameters, or to keep all
297
+ # the default parameter values, pass an empty Hash as a request object (see above).
298
+ #
299
+ # @param business_identity [::Google::Shopping::Merchant::Accounts::V1::BusinessIdentity, ::Hash]
300
+ # Required. The new version of the business identity.
301
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
302
+ # Optional. List of fields being updated.
303
+ #
304
+ # The following fields are supported (in both `snake_case` and
305
+ # `lowerCamelCase`):
306
+ #
307
+ # - `black_owned`
308
+ # - `latino_owned`
309
+ # - `promotions_consent`
310
+ # - `small_business`
311
+ # - `veteran_owned`
312
+ # - `women_owned`
313
+ #
314
+ # @yield [response, operation] Access the result along with the RPC operation
315
+ # @yieldparam response [::Google::Shopping::Merchant::Accounts::V1::BusinessIdentity]
316
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
317
+ #
318
+ # @return [::Google::Shopping::Merchant::Accounts::V1::BusinessIdentity]
319
+ #
320
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
321
+ #
322
+ # @example Basic example
323
+ # require "google/shopping/merchant/accounts/v1"
324
+ #
325
+ # # Create a client object. The client can be reused for multiple calls.
326
+ # client = Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client.new
327
+ #
328
+ # # Create a request. To set request fields, pass in keyword arguments.
329
+ # request = Google::Shopping::Merchant::Accounts::V1::UpdateBusinessIdentityRequest.new
330
+ #
331
+ # # Call the update_business_identity method.
332
+ # result = client.update_business_identity request
333
+ #
334
+ # # The returned object is of type Google::Shopping::Merchant::Accounts::V1::BusinessIdentity.
335
+ # p result
336
+ #
337
+ def update_business_identity request, options = nil
338
+ raise ::ArgumentError, "request must be provided" if request.nil?
339
+
340
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1::UpdateBusinessIdentityRequest
341
+
342
+ # Converts hash and nil to an options object
343
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
344
+
345
+ # Customize the options with defaults
346
+ metadata = @config.rpcs.update_business_identity.metadata.to_h
347
+
348
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
349
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
351
+ gapic_version: ::Google::Shopping::Merchant::Accounts::V1::VERSION
352
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
+
355
+ header_params = {}
356
+ if request.business_identity&.name
357
+ header_params["business_identity.name"] = request.business_identity.name
358
+ end
359
+
360
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
361
+ metadata[:"x-goog-request-params"] ||= request_params_header
362
+
363
+ options.apply_defaults timeout: @config.rpcs.update_business_identity.timeout,
364
+ metadata: metadata,
365
+ retry_policy: @config.rpcs.update_business_identity.retry_policy
366
+
367
+ options.apply_defaults timeout: @config.timeout,
368
+ metadata: @config.metadata,
369
+ retry_policy: @config.retry_policy
370
+
371
+ @business_identity_service_stub.call_rpc :update_business_identity, request, options: options do |response, operation|
372
+ yield response, operation if block_given?
373
+ end
374
+ rescue ::GRPC::BadStatus => e
375
+ raise ::Google::Cloud::Error.from_error(e)
376
+ end
377
+
378
+ ##
379
+ # Configuration class for the BusinessIdentityService API.
380
+ #
381
+ # This class represents the configuration for BusinessIdentityService,
382
+ # providing control over timeouts, retry behavior, logging, transport
383
+ # parameters, and other low-level controls. Certain parameters can also be
384
+ # applied individually to specific RPCs. See
385
+ # {::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client::Configuration::Rpcs}
386
+ # for a list of RPCs that can be configured independently.
387
+ #
388
+ # Configuration can be applied globally to all clients, or to a single client
389
+ # on construction.
390
+ #
391
+ # @example
392
+ #
393
+ # # Modify the global config, setting the timeout for
394
+ # # get_business_identity to 20 seconds,
395
+ # # and all remaining timeouts to 10 seconds.
396
+ # ::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client.configure do |config|
397
+ # config.timeout = 10.0
398
+ # config.rpcs.get_business_identity.timeout = 20.0
399
+ # end
400
+ #
401
+ # # Apply the above configuration only to a new client.
402
+ # client = ::Google::Shopping::Merchant::Accounts::V1::BusinessIdentityService::Client.new do |config|
403
+ # config.timeout = 10.0
404
+ # config.rpcs.get_business_identity.timeout = 20.0
405
+ # end
406
+ #
407
+ # @!attribute [rw] endpoint
408
+ # A custom service endpoint, as a hostname or hostname:port. The default is
409
+ # nil, indicating to use the default endpoint in the current universe domain.
410
+ # @return [::String,nil]
411
+ # @!attribute [rw] credentials
412
+ # Credentials to send with calls. You may provide any of the following types:
413
+ # * (`String`) The path to a service account key file in JSON format
414
+ # * (`Hash`) A service account key as a Hash
415
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
416
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
417
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
418
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
419
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
420
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
421
+ # * (`nil`) indicating no credentials
422
+ #
423
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
424
+ # external source for authentication to Google Cloud, you must validate it before
425
+ # providing it to a Google API client library. Providing an unvalidated credential
426
+ # configuration to Google APIs can compromise the security of your systems and data.
427
+ # For more information, refer to [Validate credential configurations from external
428
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
429
+ # @return [::Object]
430
+ # @!attribute [rw] scope
431
+ # The OAuth scopes
432
+ # @return [::Array<::String>]
433
+ # @!attribute [rw] lib_name
434
+ # The library name as recorded in instrumentation and logging
435
+ # @return [::String]
436
+ # @!attribute [rw] lib_version
437
+ # The library version as recorded in instrumentation and logging
438
+ # @return [::String]
439
+ # @!attribute [rw] channel_args
440
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
441
+ # `GRPC::Core::Channel` object is provided as the credential.
442
+ # @return [::Hash]
443
+ # @!attribute [rw] interceptors
444
+ # An array of interceptors that are run before calls are executed.
445
+ # @return [::Array<::GRPC::ClientInterceptor>]
446
+ # @!attribute [rw] timeout
447
+ # The call timeout in seconds.
448
+ # @return [::Numeric]
449
+ # @!attribute [rw] metadata
450
+ # Additional gRPC headers to be sent with the call.
451
+ # @return [::Hash{::Symbol=>::String}]
452
+ # @!attribute [rw] retry_policy
453
+ # The retry policy. The value is a hash with the following keys:
454
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
455
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
456
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
457
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
458
+ # trigger a retry.
459
+ # @return [::Hash]
460
+ # @!attribute [rw] quota_project
461
+ # A separate project against which to charge quota.
462
+ # @return [::String]
463
+ # @!attribute [rw] universe_domain
464
+ # The universe domain within which to make requests. This determines the
465
+ # default endpoint URL. The default value of nil uses the environment
466
+ # universe (usually the default "googleapis.com" universe).
467
+ # @return [::String,nil]
468
+ # @!attribute [rw] logger
469
+ # A custom logger to use for request/response debug logging, or the value
470
+ # `:default` (the default) to construct a default logger, or `nil` to
471
+ # explicitly disable logging.
472
+ # @return [::Logger,:default,nil]
473
+ #
474
+ class Configuration
475
+ extend ::Gapic::Config
476
+
477
+ # @private
478
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
479
+ DEFAULT_ENDPOINT = "merchantapi.googleapis.com"
480
+
481
+ config_attr :endpoint, nil, ::String, nil
482
+ config_attr :credentials, nil do |value|
483
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
484
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
485
+ allowed.any? { |klass| klass === value }
486
+ end
487
+ config_attr :scope, nil, ::String, ::Array, nil
488
+ config_attr :lib_name, nil, ::String, nil
489
+ config_attr :lib_version, nil, ::String, nil
490
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
491
+ config_attr :interceptors, nil, ::Array, nil
492
+ config_attr :timeout, nil, ::Numeric, nil
493
+ config_attr :metadata, nil, ::Hash, nil
494
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
495
+ config_attr :quota_project, nil, ::String, nil
496
+ config_attr :universe_domain, nil, ::String, nil
497
+ config_attr :logger, :default, ::Logger, nil, :default
498
+
499
+ # @private
500
+ def initialize parent_config = nil
501
+ @parent_config = parent_config unless parent_config.nil?
502
+
503
+ yield self if block_given?
504
+ end
505
+
506
+ ##
507
+ # Configurations for individual RPCs
508
+ # @return [Rpcs]
509
+ #
510
+ def rpcs
511
+ @rpcs ||= begin
512
+ parent_rpcs = nil
513
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
514
+ Rpcs.new parent_rpcs
515
+ end
516
+ end
517
+
518
+ ##
519
+ # Configuration for the channel pool
520
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
521
+ #
522
+ def channel_pool
523
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
524
+ end
525
+
526
+ ##
527
+ # Configuration RPC class for the BusinessIdentityService API.
528
+ #
529
+ # Includes fields providing the configuration for each RPC in this service.
530
+ # Each configuration object is of type `Gapic::Config::Method` and includes
531
+ # the following configuration fields:
532
+ #
533
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
534
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
535
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
536
+ # include the following keys:
537
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
538
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
539
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
540
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
541
+ # trigger a retry.
542
+ #
543
+ class Rpcs
544
+ ##
545
+ # RPC-specific configuration for `get_business_identity`
546
+ # @return [::Gapic::Config::Method]
547
+ #
548
+ attr_reader :get_business_identity
549
+ ##
550
+ # RPC-specific configuration for `update_business_identity`
551
+ # @return [::Gapic::Config::Method]
552
+ #
553
+ attr_reader :update_business_identity
554
+
555
+ # @private
556
+ def initialize parent_rpcs = nil
557
+ get_business_identity_config = parent_rpcs.get_business_identity if parent_rpcs.respond_to? :get_business_identity
558
+ @get_business_identity = ::Gapic::Config::Method.new get_business_identity_config
559
+ update_business_identity_config = parent_rpcs.update_business_identity if parent_rpcs.respond_to? :update_business_identity
560
+ @update_business_identity = ::Gapic::Config::Method.new update_business_identity_config
561
+
562
+ yield self if block_given?
563
+ end
564
+ end
565
+ end
566
+ end
567
+ end
568
+ end
569
+ end
570
+ end
571
+ end
572
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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 "googleauth"
20
+
21
+ module Google
22
+ module Shopping
23
+ module Merchant
24
+ module Accounts
25
+ module V1
26
+ module BusinessIdentityService
27
+ # Credentials for the BusinessIdentityService API.
28
+ class Credentials < ::Google::Auth::Credentials
29
+ self.scope = [
30
+ "https://www.googleapis.com/auth/content"
31
+ ]
32
+ self.env_vars = [
33
+ "GOOGLE_CLOUD_CREDENTIALS",
34
+ "GOOGLE_CLOUD_KEYFILE",
35
+ "GCLOUD_KEYFILE",
36
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
37
+ "GOOGLE_CLOUD_KEYFILE_JSON",
38
+ "GCLOUD_KEYFILE_JSON"
39
+ ]
40
+ self.paths = [
41
+ "~/.config/google_cloud/application_default_credentials.json"
42
+ ]
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module Accounts
24
+ module V1
25
+ module BusinessIdentityService
26
+ # Path helper methods for the BusinessIdentityService API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified BusinessIdentity resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `accounts/{account}/businessIdentity`
34
+ #
35
+ # @param account [String]
36
+ #
37
+ # @return [::String]
38
+ def business_identity_path account:
39
+ "accounts/#{account}/businessIdentity"
40
+ end
41
+
42
+ extend self
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end