google-ads-ad_manager-v1 2.2.0 → 2.3.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 (298) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/credentials.rb +47 -0
  4. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/paths.rb +69 -0
  5. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/rest/client.rb +711 -0
  6. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/rest/operations.rb +925 -0
  7. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/rest/service_stub.rb +266 -0
  8. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service/rest.rb +53 -0
  9. data/lib/google/ads/ad_manager/v1/ad_review_center_ad_service.rb +48 -0
  10. data/lib/google/ads/ad_manager/v1/ad_unit_service/rest/client.rb +4 -4
  11. data/lib/google/ads/ad_manager/v1/application_service/credentials.rb +47 -0
  12. data/lib/google/ads/ad_manager/v1/application_service/paths.rb +64 -0
  13. data/lib/google/ads/ad_manager/v1/application_service/rest/client.rb +538 -0
  14. data/lib/google/ads/ad_manager/v1/application_service/rest/service_stub.rb +203 -0
  15. data/lib/google/ads/ad_manager/v1/application_service/rest.rb +52 -0
  16. data/lib/google/ads/ad_manager/v1/application_service.rb +48 -0
  17. data/lib/google/ads/ad_manager/v1/audience_segment_service/credentials.rb +47 -0
  18. data/lib/google/ads/ad_manager/v1/audience_segment_service/paths.rb +64 -0
  19. data/lib/google/ads/ad_manager/v1/audience_segment_service/rest/client.rb +538 -0
  20. data/lib/google/ads/ad_manager/v1/audience_segment_service/rest/service_stub.rb +203 -0
  21. data/lib/google/ads/ad_manager/v1/audience_segment_service/rest.rb +52 -0
  22. data/lib/google/ads/ad_manager/v1/audience_segment_service.rb +48 -0
  23. data/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/client.rb +2 -2
  24. data/lib/google/ads/ad_manager/v1/browser_language_service/credentials.rb +47 -0
  25. data/lib/google/ads/ad_manager/v1/browser_language_service/paths.rb +64 -0
  26. data/lib/google/ads/ad_manager/v1/browser_language_service/rest/client.rb +538 -0
  27. data/lib/google/ads/ad_manager/v1/browser_language_service/rest/service_stub.rb +203 -0
  28. data/lib/google/ads/ad_manager/v1/browser_language_service/rest.rb +52 -0
  29. data/lib/google/ads/ad_manager/v1/browser_language_service.rb +48 -0
  30. data/lib/google/ads/ad_manager/v1/browser_service/credentials.rb +47 -0
  31. data/lib/google/ads/ad_manager/v1/browser_service/paths.rb +64 -0
  32. data/lib/google/ads/ad_manager/v1/browser_service/rest/client.rb +538 -0
  33. data/lib/google/ads/ad_manager/v1/browser_service/rest/service_stub.rb +203 -0
  34. data/lib/google/ads/ad_manager/v1/browser_service/rest.rb +52 -0
  35. data/lib/google/ads/ad_manager/v1/browser_service.rb +48 -0
  36. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/credentials.rb +47 -0
  37. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/paths.rb +64 -0
  38. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest/client.rb +538 -0
  39. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest/service_stub.rb +203 -0
  40. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service/rest.rb +52 -0
  41. data/lib/google/ads/ad_manager/v1/cms_metadata_key_service.rb +48 -0
  42. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/credentials.rb +47 -0
  43. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/paths.rb +64 -0
  44. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest/client.rb +538 -0
  45. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest/service_stub.rb +203 -0
  46. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service/rest.rb +52 -0
  47. data/lib/google/ads/ad_manager/v1/cms_metadata_value_service.rb +48 -0
  48. data/lib/google/ads/ad_manager/v1/company_service/rest/client.rb +2 -2
  49. data/lib/google/ads/ad_manager/v1/contact_service/credentials.rb +47 -0
  50. data/lib/google/ads/ad_manager/v1/contact_service/paths.rb +81 -0
  51. data/lib/google/ads/ad_manager/v1/contact_service/rest/client.rb +897 -0
  52. data/lib/google/ads/ad_manager/v1/contact_service/rest/service_stub.rb +451 -0
  53. data/lib/google/ads/ad_manager/v1/contact_service/rest.rb +52 -0
  54. data/lib/google/ads/ad_manager/v1/contact_service.rb +48 -0
  55. data/lib/google/ads/ad_manager/v1/content_bundle_service/credentials.rb +47 -0
  56. data/lib/google/ads/ad_manager/v1/content_bundle_service/paths.rb +64 -0
  57. data/lib/google/ads/ad_manager/v1/content_bundle_service/rest/client.rb +538 -0
  58. data/lib/google/ads/ad_manager/v1/content_bundle_service/rest/service_stub.rb +203 -0
  59. data/lib/google/ads/ad_manager/v1/content_bundle_service/rest.rb +52 -0
  60. data/lib/google/ads/ad_manager/v1/content_bundle_service.rb +48 -0
  61. data/lib/google/ads/ad_manager/v1/content_label_service/credentials.rb +47 -0
  62. data/lib/google/ads/ad_manager/v1/content_label_service/paths.rb +64 -0
  63. data/lib/google/ads/ad_manager/v1/content_label_service/rest/client.rb +538 -0
  64. data/lib/google/ads/ad_manager/v1/content_label_service/rest/service_stub.rb +203 -0
  65. data/lib/google/ads/ad_manager/v1/content_label_service/rest.rb +52 -0
  66. data/lib/google/ads/ad_manager/v1/content_label_service.rb +48 -0
  67. data/lib/google/ads/ad_manager/v1/content_service/credentials.rb +47 -0
  68. data/lib/google/ads/ad_manager/v1/content_service/paths.rb +64 -0
  69. data/lib/google/ads/ad_manager/v1/content_service/rest/client.rb +538 -0
  70. data/lib/google/ads/ad_manager/v1/content_service/rest/service_stub.rb +203 -0
  71. data/lib/google/ads/ad_manager/v1/content_service/rest.rb +52 -0
  72. data/lib/google/ads/ad_manager/v1/content_service.rb +48 -0
  73. data/lib/google/ads/ad_manager/v1/creative_template_service/credentials.rb +47 -0
  74. data/lib/google/ads/ad_manager/v1/creative_template_service/paths.rb +64 -0
  75. data/lib/google/ads/ad_manager/v1/creative_template_service/rest/client.rb +538 -0
  76. data/lib/google/ads/ad_manager/v1/creative_template_service/rest/service_stub.rb +203 -0
  77. data/lib/google/ads/ad_manager/v1/creative_template_service/rest.rb +52 -0
  78. data/lib/google/ads/ad_manager/v1/creative_template_service.rb +48 -0
  79. data/lib/google/ads/ad_manager/v1/custom_field_service/rest/client.rb +537 -2
  80. data/lib/google/ads/ad_manager/v1/custom_field_service/rest/service_stub.rb +372 -0
  81. data/lib/google/ads/ad_manager/v1/device_capability_service/credentials.rb +47 -0
  82. data/lib/google/ads/ad_manager/v1/device_capability_service/paths.rb +64 -0
  83. data/lib/google/ads/ad_manager/v1/device_capability_service/rest/client.rb +538 -0
  84. data/lib/google/ads/ad_manager/v1/device_capability_service/rest/service_stub.rb +203 -0
  85. data/lib/google/ads/ad_manager/v1/device_capability_service/rest.rb +52 -0
  86. data/lib/google/ads/ad_manager/v1/device_capability_service.rb +48 -0
  87. data/lib/google/ads/ad_manager/v1/device_category_service/rest/client.rb +1 -1
  88. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/credentials.rb +47 -0
  89. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/paths.rb +64 -0
  90. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest/client.rb +539 -0
  91. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest/service_stub.rb +203 -0
  92. data/lib/google/ads/ad_manager/v1/device_manufacturer_service/rest.rb +52 -0
  93. data/lib/google/ads/ad_manager/v1/device_manufacturer_service.rb +48 -0
  94. data/lib/google/ads/ad_manager/v1/geo_target_service/rest/client.rb +2 -2
  95. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/credentials.rb +47 -0
  96. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/paths.rb +64 -0
  97. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest/client.rb +538 -0
  98. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest/service_stub.rb +203 -0
  99. data/lib/google/ads/ad_manager/v1/mobile_carrier_service/rest.rb +52 -0
  100. data/lib/google/ads/ad_manager/v1/mobile_carrier_service.rb +48 -0
  101. data/lib/google/ads/ad_manager/v1/mobile_device_service/credentials.rb +47 -0
  102. data/lib/google/ads/ad_manager/v1/mobile_device_service/paths.rb +64 -0
  103. data/lib/google/ads/ad_manager/v1/mobile_device_service/rest/client.rb +538 -0
  104. data/lib/google/ads/ad_manager/v1/mobile_device_service/rest/service_stub.rb +203 -0
  105. data/lib/google/ads/ad_manager/v1/mobile_device_service/rest.rb +52 -0
  106. data/lib/google/ads/ad_manager/v1/mobile_device_service.rb +48 -0
  107. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/credentials.rb +47 -0
  108. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/paths.rb +64 -0
  109. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest/client.rb +541 -0
  110. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest/service_stub.rb +203 -0
  111. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service/rest.rb +52 -0
  112. data/lib/google/ads/ad_manager/v1/mobile_device_submodel_service.rb +48 -0
  113. data/lib/google/ads/ad_manager/v1/operating_system_service/rest/client.rb +1 -1
  114. data/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/client.rb +1 -1
  115. data/lib/google/ads/ad_manager/v1/order_service/rest/client.rb +2 -2
  116. data/lib/google/ads/ad_manager/v1/placement_service/paths.rb +17 -0
  117. data/lib/google/ads/ad_manager/v1/placement_service/rest/client.rb +627 -2
  118. data/lib/google/ads/ad_manager/v1/placement_service/rest/service_stub.rb +434 -0
  119. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb +204 -0
  120. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/client.rb +1 -1
  121. data/lib/google/ads/ad_manager/v1/private_auction_service/rest/client.rb +1 -1
  122. data/lib/google/ads/ad_manager/v1/report_service/rest/client.rb +8 -7
  123. data/lib/google/ads/ad_manager/v1/rest.rb +19 -0
  124. data/lib/google/ads/ad_manager/v1/role_service/rest/client.rb +2 -1
  125. data/lib/google/ads/ad_manager/v1/site_service/credentials.rb +47 -0
  126. data/lib/google/ads/ad_manager/v1/site_service/paths.rb +64 -0
  127. data/lib/google/ads/ad_manager/v1/site_service/rest/client.rb +1071 -0
  128. data/lib/google/ads/ad_manager/v1/site_service/rest/service_stub.rb +575 -0
  129. data/lib/google/ads/ad_manager/v1/site_service/rest.rb +52 -0
  130. data/lib/google/ads/ad_manager/v1/site_service.rb +48 -0
  131. data/lib/google/ads/ad_manager/v1/team_service/credentials.rb +47 -0
  132. data/lib/google/ads/ad_manager/v1/team_service/paths.rb +64 -0
  133. data/lib/google/ads/ad_manager/v1/team_service/rest/client.rb +1073 -0
  134. data/lib/google/ads/ad_manager/v1/team_service/rest/service_stub.rb +575 -0
  135. data/lib/google/ads/ad_manager/v1/team_service/rest.rb +52 -0
  136. data/lib/google/ads/ad_manager/v1/team_service.rb +48 -0
  137. data/lib/google/ads/ad_manager/v1/version.rb +1 -1
  138. data/lib/google/ads/ad_manager/v1.rb +19 -0
  139. data/lib/google/ads/admanager/v1/ad_review_center_ad_enums_pb.rb +43 -0
  140. data/lib/google/ads/admanager/v1/ad_review_center_ad_messages_pb.rb +47 -0
  141. data/lib/google/ads/admanager/v1/ad_review_center_ad_service_pb.rb +61 -0
  142. data/lib/google/ads/admanager/v1/ad_review_center_ad_service_services_pb.rb +55 -0
  143. data/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb +1 -1
  144. data/lib/google/ads/admanager/v1/application_messages_pb.rb +45 -0
  145. data/lib/google/ads/admanager/v1/application_service_pb.rb +51 -0
  146. data/lib/google/ads/admanager/v1/application_service_services_pb.rb +47 -0
  147. data/lib/google/ads/admanager/v1/audience_segment_messages_pb.rb +45 -0
  148. data/lib/google/ads/admanager/v1/audience_segment_service_pb.rb +51 -0
  149. data/lib/google/ads/admanager/v1/audience_segment_service_services_pb.rb +47 -0
  150. data/lib/google/ads/admanager/v1/browser_language_messages_pb.rb +45 -0
  151. data/lib/google/ads/admanager/v1/browser_language_service_pb.rb +51 -0
  152. data/lib/google/ads/admanager/v1/browser_language_service_services_pb.rb +47 -0
  153. data/lib/google/ads/admanager/v1/browser_messages_pb.rb +45 -0
  154. data/lib/google/ads/admanager/v1/browser_service_pb.rb +51 -0
  155. data/lib/google/ads/admanager/v1/browser_service_services_pb.rb +47 -0
  156. data/lib/google/ads/admanager/v1/cms_metadata_key_enums_pb.rb +43 -0
  157. data/lib/google/ads/admanager/v1/cms_metadata_key_messages_pb.rb +46 -0
  158. data/lib/google/ads/admanager/v1/cms_metadata_key_service_pb.rb +51 -0
  159. data/lib/google/ads/admanager/v1/cms_metadata_key_service_services_pb.rb +47 -0
  160. data/lib/google/ads/admanager/v1/cms_metadata_value_enums_pb.rb +43 -0
  161. data/lib/google/ads/admanager/v1/cms_metadata_value_messages_pb.rb +46 -0
  162. data/lib/google/ads/admanager/v1/cms_metadata_value_service_pb.rb +51 -0
  163. data/lib/google/ads/admanager/v1/cms_metadata_value_service_services_pb.rb +47 -0
  164. data/lib/google/ads/admanager/v1/company_messages_pb.rb +1 -1
  165. data/lib/google/ads/admanager/v1/contact_enums_pb.rb +43 -0
  166. data/lib/google/ads/admanager/v1/contact_messages_pb.rb +2 -1
  167. data/lib/google/ads/admanager/v1/contact_service_pb.rb +59 -0
  168. data/lib/google/ads/admanager/v1/contact_service_services_pb.rb +55 -0
  169. data/lib/google/ads/admanager/v1/content_bundle_messages_pb.rb +45 -0
  170. data/lib/google/ads/admanager/v1/content_bundle_service_pb.rb +51 -0
  171. data/lib/google/ads/admanager/v1/content_bundle_service_services_pb.rb +47 -0
  172. data/lib/google/ads/admanager/v1/content_label_messages_pb.rb +45 -0
  173. data/lib/google/ads/admanager/v1/content_label_service_pb.rb +51 -0
  174. data/lib/google/ads/admanager/v1/content_label_service_services_pb.rb +47 -0
  175. data/lib/google/ads/admanager/v1/content_messages_pb.rb +45 -0
  176. data/lib/google/ads/admanager/v1/content_service_pb.rb +51 -0
  177. data/lib/google/ads/admanager/v1/content_service_services_pb.rb +47 -0
  178. data/lib/google/ads/admanager/v1/creative_template_enums_pb.rb +45 -0
  179. data/lib/google/ads/admanager/v1/creative_template_messages_pb.rb +55 -0
  180. data/lib/google/ads/admanager/v1/creative_template_service_pb.rb +51 -0
  181. data/lib/google/ads/admanager/v1/creative_template_service_services_pb.rb +47 -0
  182. data/lib/google/ads/admanager/v1/creative_template_variable_url_type_enum_pb.rb +43 -0
  183. data/lib/google/ads/admanager/v1/custom_field_messages_pb.rb +1 -1
  184. data/lib/google/ads/admanager/v1/custom_field_service_pb.rb +13 -1
  185. data/lib/google/ads/admanager/v1/custom_field_service_services_pb.rb +12 -0
  186. data/lib/google/ads/admanager/v1/custom_targeting_key_messages_pb.rb +1 -1
  187. data/lib/google/ads/admanager/v1/custom_targeting_value_messages_pb.rb +1 -1
  188. data/lib/google/ads/admanager/v1/device_capability_messages_pb.rb +45 -0
  189. data/lib/google/ads/admanager/v1/device_capability_service_pb.rb +51 -0
  190. data/lib/google/ads/admanager/v1/device_capability_service_services_pb.rb +47 -0
  191. data/lib/google/ads/admanager/v1/device_manufacturer_messages_pb.rb +45 -0
  192. data/lib/google/ads/admanager/v1/device_manufacturer_service_pb.rb +51 -0
  193. data/lib/google/ads/admanager/v1/device_manufacturer_service_services_pb.rb +47 -0
  194. data/lib/google/ads/admanager/v1/exchange_syndication_product_enum_pb.rb +43 -0
  195. data/lib/google/ads/admanager/v1/mobile_carrier_messages_pb.rb +45 -0
  196. data/lib/google/ads/admanager/v1/mobile_carrier_service_pb.rb +51 -0
  197. data/lib/google/ads/admanager/v1/mobile_carrier_service_services_pb.rb +47 -0
  198. data/lib/google/ads/admanager/v1/mobile_device_messages_pb.rb +45 -0
  199. data/lib/google/ads/admanager/v1/mobile_device_service_pb.rb +51 -0
  200. data/lib/google/ads/admanager/v1/mobile_device_service_services_pb.rb +47 -0
  201. data/lib/google/ads/admanager/v1/mobile_device_submodel_messages_pb.rb +45 -0
  202. data/lib/google/ads/admanager/v1/mobile_device_submodel_service_pb.rb +51 -0
  203. data/lib/google/ads/admanager/v1/mobile_device_submodel_service_services_pb.rb +47 -0
  204. data/lib/google/ads/admanager/v1/placement_service_pb.rb +15 -1
  205. data/lib/google/ads/admanager/v1/placement_service_services_pb.rb +14 -0
  206. data/lib/google/ads/admanager/v1/report_definition_pb.rb +65 -0
  207. data/lib/google/ads/admanager/v1/report_messages_pb.rb +12 -29
  208. data/lib/google/ads/admanager/v1/report_service_pb.rb +3 -1
  209. data/lib/google/ads/admanager/v1/report_service_services_pb.rb +1 -1
  210. data/lib/google/ads/admanager/v1/report_value_pb.rb +45 -0
  211. data/lib/google/ads/admanager/v1/site_enums_pb.rb +45 -0
  212. data/lib/google/ads/admanager/v1/site_messages_pb.rb +49 -0
  213. data/lib/google/ads/admanager/v1/site_service_pb.rb +63 -0
  214. data/lib/google/ads/admanager/v1/site_service_services_pb.rb +59 -0
  215. data/lib/google/ads/admanager/v1/targeting_pb.rb +11 -1
  216. data/lib/google/ads/admanager/v1/taxonomy_type_enum_pb.rb +1 -1
  217. data/lib/google/ads/admanager/v1/team_enums_pb.rb +45 -0
  218. data/lib/google/ads/admanager/v1/team_messages_pb.rb +2 -1
  219. data/lib/google/ads/admanager/v1/team_service_pb.rb +63 -0
  220. data/lib/google/ads/admanager/v1/team_service_services_pb.rb +59 -0
  221. data/lib/google/ads/admanager/v1/web_property_pb.rb +46 -0
  222. data/proto_docs/google/ads/admanager/v1/ad_break_service.rb +1 -1
  223. data/proto_docs/google/ads/admanager/v1/ad_review_center_ad_enums.rb +48 -0
  224. data/proto_docs/google/ads/admanager/v1/ad_review_center_ad_messages.rb +53 -0
  225. data/proto_docs/google/ads/admanager/v1/ad_review_center_ad_service.rb +180 -0
  226. data/proto_docs/google/ads/admanager/v1/ad_unit_service.rb +6 -6
  227. data/proto_docs/google/ads/admanager/v1/application_messages.rb +41 -0
  228. data/proto_docs/google/ads/admanager/v1/application_service.rb +99 -0
  229. data/proto_docs/google/ads/admanager/v1/audience_segment_messages.rb +43 -0
  230. data/proto_docs/google/ads/admanager/v1/audience_segment_service.rb +99 -0
  231. data/proto_docs/google/ads/admanager/v1/bandwidth_group_service.rb +3 -3
  232. data/proto_docs/google/ads/admanager/v1/browser_language_messages.rb +39 -0
  233. data/proto_docs/google/ads/admanager/v1/browser_language_service.rb +99 -0
  234. data/proto_docs/google/ads/admanager/v1/browser_messages.rb +45 -0
  235. data/proto_docs/google/ads/admanager/v1/browser_service.rb +99 -0
  236. data/proto_docs/google/ads/admanager/v1/cms_metadata_key_enums.rb +45 -0
  237. data/proto_docs/google/ads/admanager/v1/cms_metadata_key_messages.rb +42 -0
  238. data/proto_docs/google/ads/admanager/v1/cms_metadata_key_service.rb +99 -0
  239. data/proto_docs/google/ads/admanager/v1/cms_metadata_value_enums.rb +48 -0
  240. data/proto_docs/google/ads/admanager/v1/cms_metadata_value_messages.rb +47 -0
  241. data/proto_docs/google/ads/admanager/v1/cms_metadata_value_service.rb +99 -0
  242. data/proto_docs/google/ads/admanager/v1/company_service.rb +3 -3
  243. data/proto_docs/google/ads/admanager/v1/contact_enums.rb +61 -0
  244. data/proto_docs/google/ads/admanager/v1/contact_messages.rb +38 -2
  245. data/proto_docs/google/ads/admanager/v1/contact_service.rb +176 -0
  246. data/proto_docs/google/ads/admanager/v1/content_bundle_messages.rb +47 -0
  247. data/proto_docs/google/ads/admanager/v1/content_bundle_service.rb +99 -0
  248. data/proto_docs/google/ads/admanager/v1/content_label_messages.rb +39 -0
  249. data/proto_docs/google/ads/admanager/v1/content_label_service.rb +99 -0
  250. data/proto_docs/google/ads/admanager/v1/content_messages.rb +39 -0
  251. data/proto_docs/google/ads/admanager/v1/content_service.rb +99 -0
  252. data/proto_docs/google/ads/admanager/v1/creative_template_enums.rb +70 -0
  253. data/proto_docs/google/ads/admanager/v1/creative_template_messages.rb +257 -0
  254. data/proto_docs/google/ads/admanager/v1/creative_template_service.rb +99 -0
  255. data/proto_docs/google/ads/admanager/v1/creative_template_variable_url_type_enum.rb +51 -0
  256. data/proto_docs/google/ads/admanager/v1/custom_field_messages.rb +2 -2
  257. data/proto_docs/google/ads/admanager/v1/custom_field_service.rb +118 -3
  258. data/proto_docs/google/ads/admanager/v1/custom_targeting_key_service.rb +1 -1
  259. data/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb +1 -1
  260. data/proto_docs/google/ads/admanager/v1/device_capability_messages.rb +39 -0
  261. data/proto_docs/google/ads/admanager/v1/device_capability_service.rb +99 -0
  262. data/proto_docs/google/ads/admanager/v1/device_category_service.rb +2 -2
  263. data/proto_docs/google/ads/admanager/v1/device_manufacturer_messages.rb +40 -0
  264. data/proto_docs/google/ads/admanager/v1/device_manufacturer_service.rb +100 -0
  265. data/proto_docs/google/ads/admanager/v1/entity_signals_mapping_service.rb +1 -1
  266. data/proto_docs/google/ads/admanager/v1/exchange_syndication_product_enum.rb +51 -0
  267. data/proto_docs/google/ads/admanager/v1/geo_target_service.rb +3 -3
  268. data/proto_docs/google/ads/admanager/v1/mobile_carrier_messages.rb +42 -0
  269. data/proto_docs/google/ads/admanager/v1/mobile_carrier_service.rb +99 -0
  270. data/proto_docs/google/ads/admanager/v1/mobile_device_messages.rb +43 -0
  271. data/proto_docs/google/ads/admanager/v1/mobile_device_service.rb +99 -0
  272. data/proto_docs/google/ads/admanager/v1/mobile_device_submodel_messages.rb +44 -0
  273. data/proto_docs/google/ads/admanager/v1/mobile_device_submodel_service.rb +102 -0
  274. data/proto_docs/google/ads/admanager/v1/operating_system_service.rb +2 -2
  275. data/proto_docs/google/ads/admanager/v1/operating_system_version_service.rb +2 -2
  276. data/proto_docs/google/ads/admanager/v1/order_messages.rb +7 -8
  277. data/proto_docs/google/ads/admanager/v1/order_service.rb +3 -3
  278. data/proto_docs/google/ads/admanager/v1/placement_service.rb +139 -3
  279. data/proto_docs/google/ads/admanager/v1/private_auction_deal_service.rb +2 -2
  280. data/proto_docs/google/ads/admanager/v1/private_auction_service.rb +2 -2
  281. data/proto_docs/google/ads/admanager/v1/programmatic_buyer_service.rb +1 -1
  282. data/proto_docs/google/ads/admanager/v1/report_definition.rb +12498 -0
  283. data/proto_docs/google/ads/admanager/v1/report_messages.rb +139 -3479
  284. data/proto_docs/google/ads/admanager/v1/report_service.rb +8 -7
  285. data/proto_docs/google/ads/admanager/v1/report_value.rb +99 -0
  286. data/proto_docs/google/ads/admanager/v1/role_service.rb +3 -2
  287. data/proto_docs/google/ads/admanager/v1/site_enums.rb +79 -0
  288. data/proto_docs/google/ads/admanager/v1/site_messages.rb +67 -0
  289. data/proto_docs/google/ads/admanager/v1/site_service.rb +211 -0
  290. data/proto_docs/google/ads/admanager/v1/targeting.rb +217 -0
  291. data/proto_docs/google/ads/admanager/v1/taxonomy_category_service.rb +1 -1
  292. data/proto_docs/google/ads/admanager/v1/taxonomy_type_enum.rb +3 -0
  293. data/proto_docs/google/ads/admanager/v1/team_enums.rb +69 -0
  294. data/proto_docs/google/ads/admanager/v1/team_messages.rb +25 -0
  295. data/proto_docs/google/ads/admanager/v1/team_service.rb +213 -0
  296. data/proto_docs/google/ads/admanager/v1/web_property.rb +46 -0
  297. data/proto_docs/google/type/interval.rb +45 -0
  298. metadata +236 -4
@@ -0,0 +1,1071 @@
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/ads/admanager/v1/site_service_pb"
21
+ require "google/ads/ad_manager/v1/site_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Ads
25
+ module AdManager
26
+ module V1
27
+ module SiteService
28
+ module Rest
29
+ ##
30
+ # REST client for the SiteService service.
31
+ #
32
+ # Provides methods for handling `Site` objects.
33
+ #
34
+ class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
38
+ # @private
39
+ DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$"
40
+
41
+ include Paths
42
+
43
+ # @private
44
+ attr_reader :site_service_stub
45
+
46
+ ##
47
+ # Configure the SiteService Client class.
48
+ #
49
+ # See {::Google::Ads::AdManager::V1::SiteService::Rest::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all SiteService clients
55
+ # ::Google::Ads::AdManager::V1::SiteService::Rest::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", "Ads", "AdManager", "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
76
+ end
77
+ yield @configure if block_given?
78
+ @configure
79
+ end
80
+
81
+ ##
82
+ # Configure the SiteService Client instance.
83
+ #
84
+ # The configuration is set to the derived mode, meaning that values can be changed,
85
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
86
+ # should be made on {Client.configure}.
87
+ #
88
+ # See {::Google::Ads::AdManager::V1::SiteService::Rest::Client::Configuration}
89
+ # for a description of the configuration fields.
90
+ #
91
+ # @yield [config] Configure the Client client.
92
+ # @yieldparam config [Client::Configuration]
93
+ #
94
+ # @return [Client::Configuration]
95
+ #
96
+ def configure
97
+ yield @config if block_given?
98
+ @config
99
+ end
100
+
101
+ ##
102
+ # The effective universe domain
103
+ #
104
+ # @return [String]
105
+ #
106
+ def universe_domain
107
+ @site_service_stub.universe_domain
108
+ end
109
+
110
+ ##
111
+ # Create a new SiteService REST client object.
112
+ #
113
+ # @example
114
+ #
115
+ # # Create a client using the default configuration
116
+ # client = ::Google::Ads::AdManager::V1::SiteService::Rest::Client.new
117
+ #
118
+ # # Create a client using a custom configuration
119
+ # client = ::Google::Ads::AdManager::V1::SiteService::Rest::Client.new do |config|
120
+ # config.timeout = 10.0
121
+ # end
122
+ #
123
+ # @yield [config] Configure the SiteService client.
124
+ # @yieldparam config [Client::Configuration]
125
+ #
126
+ def initialize
127
+ # Create the configuration object
128
+ @config = Configuration.new Client.configure
129
+
130
+ # Yield the configuration if needed
131
+ yield @config if block_given?
132
+
133
+ # Create credentials
134
+ credentials = @config.credentials
135
+ # Use self-signed JWT if the endpoint is unchanged from default,
136
+ # but only if the default endpoint does not have a region prefix.
137
+ enable_self_signed_jwt = @config.endpoint.nil? ||
138
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
+ !@config.endpoint.split(".").first.include?("-"))
140
+ credentials ||= Credentials.default scope: @config.scope,
141
+ enable_self_signed_jwt: enable_self_signed_jwt
142
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
143
+ credentials = Credentials.new credentials, scope: @config.scope
144
+ end
145
+
146
+ @quota_project_id = @config.quota_project
147
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
148
+
149
+ @site_service_stub = ::Google::Ads::AdManager::V1::SiteService::Rest::ServiceStub.new(
150
+ endpoint: @config.endpoint,
151
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
152
+ universe_domain: @config.universe_domain,
153
+ credentials: credentials,
154
+ logger: @config.logger
155
+ )
156
+
157
+ @site_service_stub.logger(stub: true)&.info do |entry|
158
+ entry.set_system_name
159
+ entry.set_service
160
+ entry.message = "Created client for #{entry.service}"
161
+ entry.set_credentials_fields credentials
162
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
163
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
164
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
165
+ end
166
+ end
167
+
168
+ ##
169
+ # The logger used for request/response debug logging.
170
+ #
171
+ # @return [Logger]
172
+ #
173
+ def logger
174
+ @site_service_stub.logger
175
+ end
176
+
177
+ # Service calls
178
+
179
+ ##
180
+ # API to retrieve a `Site` object.
181
+ #
182
+ # @overload get_site(request, options = nil)
183
+ # Pass arguments to `get_site` via a request object, either of type
184
+ # {::Google::Ads::AdManager::V1::GetSiteRequest} or an equivalent Hash.
185
+ #
186
+ # @param request [::Google::Ads::AdManager::V1::GetSiteRequest, ::Hash]
187
+ # A request object representing the call parameters. Required. To specify no
188
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
189
+ # @param options [::Gapic::CallOptions, ::Hash]
190
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
191
+ #
192
+ # @overload get_site(name: nil)
193
+ # Pass arguments to `get_site` via keyword arguments. Note that at
194
+ # least one keyword argument is required. To specify no parameters, or to keep all
195
+ # the default parameter values, pass an empty Hash as a request object (see above).
196
+ #
197
+ # @param name [::String]
198
+ # Required. The resource name of the Site.
199
+ # Format: `networks/{network_code}/sites/{site_id}`
200
+ # @yield [result, operation] Access the result along with the TransportOperation object
201
+ # @yieldparam result [::Google::Ads::AdManager::V1::Site]
202
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
203
+ #
204
+ # @return [::Google::Ads::AdManager::V1::Site]
205
+ #
206
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
207
+ #
208
+ # @example Basic example
209
+ # require "google/ads/ad_manager/v1"
210
+ #
211
+ # # Create a client object. The client can be reused for multiple calls.
212
+ # client = Google::Ads::AdManager::V1::SiteService::Rest::Client.new
213
+ #
214
+ # # Create a request. To set request fields, pass in keyword arguments.
215
+ # request = Google::Ads::AdManager::V1::GetSiteRequest.new
216
+ #
217
+ # # Call the get_site method.
218
+ # result = client.get_site request
219
+ #
220
+ # # The returned object is of type Google::Ads::AdManager::V1::Site.
221
+ # p result
222
+ #
223
+ def get_site request, options = nil
224
+ raise ::ArgumentError, "request must be provided" if request.nil?
225
+
226
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetSiteRequest
227
+
228
+ # Converts hash and nil to an options object
229
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
230
+
231
+ # Customize the options with defaults
232
+ call_metadata = @config.rpcs.get_site.metadata.to_h
233
+
234
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
235
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
236
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
237
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
238
+ transports_version_send: [:rest]
239
+
240
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
241
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
242
+
243
+ options.apply_defaults timeout: @config.rpcs.get_site.timeout,
244
+ metadata: call_metadata,
245
+ retry_policy: @config.rpcs.get_site.retry_policy
246
+
247
+ options.apply_defaults timeout: @config.timeout,
248
+ metadata: @config.metadata,
249
+ retry_policy: @config.retry_policy
250
+
251
+ @site_service_stub.get_site request, options do |result, operation|
252
+ yield result, operation if block_given?
253
+ end
254
+ rescue ::Gapic::Rest::Error => e
255
+ raise ::Google::Cloud::Error.from_error(e)
256
+ end
257
+
258
+ ##
259
+ # API to retrieve a list of `Site` objects.
260
+ #
261
+ # @overload list_sites(request, options = nil)
262
+ # Pass arguments to `list_sites` via a request object, either of type
263
+ # {::Google::Ads::AdManager::V1::ListSitesRequest} or an equivalent Hash.
264
+ #
265
+ # @param request [::Google::Ads::AdManager::V1::ListSitesRequest, ::Hash]
266
+ # A request object representing the call parameters. Required. To specify no
267
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
268
+ # @param options [::Gapic::CallOptions, ::Hash]
269
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
270
+ #
271
+ # @overload list_sites(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil)
272
+ # Pass arguments to `list_sites` via keyword arguments. Note that at
273
+ # least one keyword argument is required. To specify no parameters, or to keep all
274
+ # the default parameter values, pass an empty Hash as a request object (see above).
275
+ #
276
+ # @param parent [::String]
277
+ # Required. The parent, which owns this collection of Sites.
278
+ # Format: `networks/{network_code}`
279
+ # @param page_size [::Integer]
280
+ # Optional. The maximum number of `Sites` to return. The service may return
281
+ # fewer than this value. If unspecified, at most 50 `Sites` will be returned.
282
+ # The maximum value is 1000; values greater than 1000 will be coerced to
283
+ # 1000.
284
+ # @param page_token [::String]
285
+ # Optional. A page token, received from a previous `ListSites` call.
286
+ # Provide this to retrieve the subsequent page.
287
+ #
288
+ # When paginating, all other parameters provided to `ListSites` must match
289
+ # the call that provided the page token.
290
+ # @param filter [::String]
291
+ # Optional. Expression to filter the response.
292
+ # See syntax details at
293
+ # https://developers.google.com/ad-manager/api/beta/filters
294
+ # @param order_by [::String]
295
+ # Optional. Expression to specify sorting order.
296
+ # See syntax details at
297
+ # https://developers.google.com/ad-manager/api/beta/filters#order
298
+ # @param skip [::Integer]
299
+ # Optional. Number of individual resources to skip while paginating.
300
+ # @yield [result, operation] Access the result along with the TransportOperation object
301
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::Site>]
302
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
303
+ #
304
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::Site>]
305
+ #
306
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
307
+ #
308
+ # @example Basic example
309
+ # require "google/ads/ad_manager/v1"
310
+ #
311
+ # # Create a client object. The client can be reused for multiple calls.
312
+ # client = Google::Ads::AdManager::V1::SiteService::Rest::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Ads::AdManager::V1::ListSitesRequest.new
316
+ #
317
+ # # Call the list_sites method.
318
+ # result = client.list_sites request
319
+ #
320
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
321
+ # # over elements, and API calls will be issued to fetch pages as needed.
322
+ # result.each do |item|
323
+ # # Each element is of type ::Google::Ads::AdManager::V1::Site.
324
+ # p item
325
+ # end
326
+ #
327
+ def list_sites request, options = nil
328
+ raise ::ArgumentError, "request must be provided" if request.nil?
329
+
330
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListSitesRequest
331
+
332
+ # Converts hash and nil to an options object
333
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
334
+
335
+ # Customize the options with defaults
336
+ call_metadata = @config.rpcs.list_sites.metadata.to_h
337
+
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
339
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
341
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
342
+ transports_version_send: [:rest]
343
+
344
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
+
347
+ options.apply_defaults timeout: @config.rpcs.list_sites.timeout,
348
+ metadata: call_metadata,
349
+ retry_policy: @config.rpcs.list_sites.retry_policy
350
+
351
+ options.apply_defaults timeout: @config.timeout,
352
+ metadata: @config.metadata,
353
+ retry_policy: @config.retry_policy
354
+
355
+ @site_service_stub.list_sites request, options do |result, operation|
356
+ result = ::Gapic::Rest::PagedEnumerable.new @site_service_stub, :list_sites, "sites", request, result, options
357
+ yield result, operation if block_given?
358
+ throw :response, result
359
+ end
360
+ rescue ::Gapic::Rest::Error => e
361
+ raise ::Google::Cloud::Error.from_error(e)
362
+ end
363
+
364
+ ##
365
+ # API to create a `Site` object.
366
+ #
367
+ # @overload create_site(request, options = nil)
368
+ # Pass arguments to `create_site` via a request object, either of type
369
+ # {::Google::Ads::AdManager::V1::CreateSiteRequest} or an equivalent Hash.
370
+ #
371
+ # @param request [::Google::Ads::AdManager::V1::CreateSiteRequest, ::Hash]
372
+ # A request object representing the call parameters. Required. To specify no
373
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
374
+ # @param options [::Gapic::CallOptions, ::Hash]
375
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
376
+ #
377
+ # @overload create_site(parent: nil, site: nil)
378
+ # Pass arguments to `create_site` via keyword arguments. Note that at
379
+ # least one keyword argument is required. To specify no parameters, or to keep all
380
+ # the default parameter values, pass an empty Hash as a request object (see above).
381
+ #
382
+ # @param parent [::String]
383
+ # Required. The parent resource where this `Site` will be created.
384
+ # Format: `networks/{network_code}`
385
+ # @param site [::Google::Ads::AdManager::V1::Site, ::Hash]
386
+ # Required. The `Site` to create.
387
+ # @yield [result, operation] Access the result along with the TransportOperation object
388
+ # @yieldparam result [::Google::Ads::AdManager::V1::Site]
389
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
390
+ #
391
+ # @return [::Google::Ads::AdManager::V1::Site]
392
+ #
393
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
394
+ #
395
+ # @example Basic example
396
+ # require "google/ads/ad_manager/v1"
397
+ #
398
+ # # Create a client object. The client can be reused for multiple calls.
399
+ # client = Google::Ads::AdManager::V1::SiteService::Rest::Client.new
400
+ #
401
+ # # Create a request. To set request fields, pass in keyword arguments.
402
+ # request = Google::Ads::AdManager::V1::CreateSiteRequest.new
403
+ #
404
+ # # Call the create_site method.
405
+ # result = client.create_site request
406
+ #
407
+ # # The returned object is of type Google::Ads::AdManager::V1::Site.
408
+ # p result
409
+ #
410
+ def create_site request, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request.nil?
412
+
413
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreateSiteRequest
414
+
415
+ # Converts hash and nil to an options object
416
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
417
+
418
+ # Customize the options with defaults
419
+ call_metadata = @config.rpcs.create_site.metadata.to_h
420
+
421
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
422
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
423
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
424
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
425
+ transports_version_send: [:rest]
426
+
427
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
428
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
+
430
+ options.apply_defaults timeout: @config.rpcs.create_site.timeout,
431
+ metadata: call_metadata,
432
+ retry_policy: @config.rpcs.create_site.retry_policy
433
+
434
+ options.apply_defaults timeout: @config.timeout,
435
+ metadata: @config.metadata,
436
+ retry_policy: @config.retry_policy
437
+
438
+ @site_service_stub.create_site request, options do |result, operation|
439
+ yield result, operation if block_given?
440
+ end
441
+ rescue ::Gapic::Rest::Error => e
442
+ raise ::Google::Cloud::Error.from_error(e)
443
+ end
444
+
445
+ ##
446
+ # API to batch create `Site` objects.
447
+ #
448
+ # @overload batch_create_sites(request, options = nil)
449
+ # Pass arguments to `batch_create_sites` via a request object, either of type
450
+ # {::Google::Ads::AdManager::V1::BatchCreateSitesRequest} or an equivalent Hash.
451
+ #
452
+ # @param request [::Google::Ads::AdManager::V1::BatchCreateSitesRequest, ::Hash]
453
+ # A request object representing the call parameters. Required. To specify no
454
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
455
+ # @param options [::Gapic::CallOptions, ::Hash]
456
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
457
+ #
458
+ # @overload batch_create_sites(parent: nil, requests: nil)
459
+ # Pass arguments to `batch_create_sites` via keyword arguments. Note that at
460
+ # least one keyword argument is required. To specify no parameters, or to keep all
461
+ # the default parameter values, pass an empty Hash as a request object (see above).
462
+ #
463
+ # @param parent [::String]
464
+ # Required. The parent resource where `Sites` will be created.
465
+ # Format: `networks/{network_code}`
466
+ # The parent field in the CreateSiteRequest must match this
467
+ # field.
468
+ # @param requests [::Array<::Google::Ads::AdManager::V1::CreateSiteRequest, ::Hash>]
469
+ # Required. The `Site` objects to create.
470
+ # A maximum of 100 objects can be created in a batch.
471
+ # @yield [result, operation] Access the result along with the TransportOperation object
472
+ # @yieldparam result [::Google::Ads::AdManager::V1::BatchCreateSitesResponse]
473
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
474
+ #
475
+ # @return [::Google::Ads::AdManager::V1::BatchCreateSitesResponse]
476
+ #
477
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
478
+ #
479
+ # @example Basic example
480
+ # require "google/ads/ad_manager/v1"
481
+ #
482
+ # # Create a client object. The client can be reused for multiple calls.
483
+ # client = Google::Ads::AdManager::V1::SiteService::Rest::Client.new
484
+ #
485
+ # # Create a request. To set request fields, pass in keyword arguments.
486
+ # request = Google::Ads::AdManager::V1::BatchCreateSitesRequest.new
487
+ #
488
+ # # Call the batch_create_sites method.
489
+ # result = client.batch_create_sites request
490
+ #
491
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateSitesResponse.
492
+ # p result
493
+ #
494
+ def batch_create_sites request, options = nil
495
+ raise ::ArgumentError, "request must be provided" if request.nil?
496
+
497
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchCreateSitesRequest
498
+
499
+ # Converts hash and nil to an options object
500
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
501
+
502
+ # Customize the options with defaults
503
+ call_metadata = @config.rpcs.batch_create_sites.metadata.to_h
504
+
505
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
506
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
507
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
508
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
509
+ transports_version_send: [:rest]
510
+
511
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
512
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
+
514
+ options.apply_defaults timeout: @config.rpcs.batch_create_sites.timeout,
515
+ metadata: call_metadata,
516
+ retry_policy: @config.rpcs.batch_create_sites.retry_policy
517
+
518
+ options.apply_defaults timeout: @config.timeout,
519
+ metadata: @config.metadata,
520
+ retry_policy: @config.retry_policy
521
+
522
+ @site_service_stub.batch_create_sites request, options do |result, operation|
523
+ yield result, operation if block_given?
524
+ end
525
+ rescue ::Gapic::Rest::Error => e
526
+ raise ::Google::Cloud::Error.from_error(e)
527
+ end
528
+
529
+ ##
530
+ # API to update a `Site` object.
531
+ #
532
+ # @overload update_site(request, options = nil)
533
+ # Pass arguments to `update_site` via a request object, either of type
534
+ # {::Google::Ads::AdManager::V1::UpdateSiteRequest} or an equivalent Hash.
535
+ #
536
+ # @param request [::Google::Ads::AdManager::V1::UpdateSiteRequest, ::Hash]
537
+ # A request object representing the call parameters. Required. To specify no
538
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
539
+ # @param options [::Gapic::CallOptions, ::Hash]
540
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
541
+ #
542
+ # @overload update_site(site: nil, update_mask: nil)
543
+ # Pass arguments to `update_site` via keyword arguments. Note that at
544
+ # least one keyword argument is required. To specify no parameters, or to keep all
545
+ # the default parameter values, pass an empty Hash as a request object (see above).
546
+ #
547
+ # @param site [::Google::Ads::AdManager::V1::Site, ::Hash]
548
+ # Required. The `Site` to update.
549
+ #
550
+ # The `Site`'s `name` is used to identify the `Site` to update.
551
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
552
+ # Required. The list of fields to update.
553
+ # @yield [result, operation] Access the result along with the TransportOperation object
554
+ # @yieldparam result [::Google::Ads::AdManager::V1::Site]
555
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
556
+ #
557
+ # @return [::Google::Ads::AdManager::V1::Site]
558
+ #
559
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
560
+ #
561
+ # @example Basic example
562
+ # require "google/ads/ad_manager/v1"
563
+ #
564
+ # # Create a client object. The client can be reused for multiple calls.
565
+ # client = Google::Ads::AdManager::V1::SiteService::Rest::Client.new
566
+ #
567
+ # # Create a request. To set request fields, pass in keyword arguments.
568
+ # request = Google::Ads::AdManager::V1::UpdateSiteRequest.new
569
+ #
570
+ # # Call the update_site method.
571
+ # result = client.update_site request
572
+ #
573
+ # # The returned object is of type Google::Ads::AdManager::V1::Site.
574
+ # p result
575
+ #
576
+ def update_site request, options = nil
577
+ raise ::ArgumentError, "request must be provided" if request.nil?
578
+
579
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdateSiteRequest
580
+
581
+ # Converts hash and nil to an options object
582
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
583
+
584
+ # Customize the options with defaults
585
+ call_metadata = @config.rpcs.update_site.metadata.to_h
586
+
587
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
588
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
589
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
590
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
591
+ transports_version_send: [:rest]
592
+
593
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
594
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
595
+
596
+ options.apply_defaults timeout: @config.rpcs.update_site.timeout,
597
+ metadata: call_metadata,
598
+ retry_policy: @config.rpcs.update_site.retry_policy
599
+
600
+ options.apply_defaults timeout: @config.timeout,
601
+ metadata: @config.metadata,
602
+ retry_policy: @config.retry_policy
603
+
604
+ @site_service_stub.update_site request, options do |result, operation|
605
+ yield result, operation if block_given?
606
+ end
607
+ rescue ::Gapic::Rest::Error => e
608
+ raise ::Google::Cloud::Error.from_error(e)
609
+ end
610
+
611
+ ##
612
+ # API to batch update `Site` objects.
613
+ #
614
+ # @overload batch_update_sites(request, options = nil)
615
+ # Pass arguments to `batch_update_sites` via a request object, either of type
616
+ # {::Google::Ads::AdManager::V1::BatchUpdateSitesRequest} or an equivalent Hash.
617
+ #
618
+ # @param request [::Google::Ads::AdManager::V1::BatchUpdateSitesRequest, ::Hash]
619
+ # A request object representing the call parameters. Required. To specify no
620
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
621
+ # @param options [::Gapic::CallOptions, ::Hash]
622
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
623
+ #
624
+ # @overload batch_update_sites(parent: nil, requests: nil)
625
+ # Pass arguments to `batch_update_sites` via keyword arguments. Note that at
626
+ # least one keyword argument is required. To specify no parameters, or to keep all
627
+ # the default parameter values, pass an empty Hash as a request object (see above).
628
+ #
629
+ # @param parent [::String]
630
+ # Required. The parent resource where `Sites` will be updated.
631
+ # Format: `networks/{network_code}`
632
+ # The parent field in the UpdateSiteRequest must match this
633
+ # field.
634
+ # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateSiteRequest, ::Hash>]
635
+ # Required. The `Site` objects to update.
636
+ # A maximum of 100 objects can be updated in a batch.
637
+ # @yield [result, operation] Access the result along with the TransportOperation object
638
+ # @yieldparam result [::Google::Ads::AdManager::V1::BatchUpdateSitesResponse]
639
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
640
+ #
641
+ # @return [::Google::Ads::AdManager::V1::BatchUpdateSitesResponse]
642
+ #
643
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
644
+ #
645
+ # @example Basic example
646
+ # require "google/ads/ad_manager/v1"
647
+ #
648
+ # # Create a client object. The client can be reused for multiple calls.
649
+ # client = Google::Ads::AdManager::V1::SiteService::Rest::Client.new
650
+ #
651
+ # # Create a request. To set request fields, pass in keyword arguments.
652
+ # request = Google::Ads::AdManager::V1::BatchUpdateSitesRequest.new
653
+ #
654
+ # # Call the batch_update_sites method.
655
+ # result = client.batch_update_sites request
656
+ #
657
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateSitesResponse.
658
+ # p result
659
+ #
660
+ def batch_update_sites request, options = nil
661
+ raise ::ArgumentError, "request must be provided" if request.nil?
662
+
663
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchUpdateSitesRequest
664
+
665
+ # Converts hash and nil to an options object
666
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
667
+
668
+ # Customize the options with defaults
669
+ call_metadata = @config.rpcs.batch_update_sites.metadata.to_h
670
+
671
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
672
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
673
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
674
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
675
+ transports_version_send: [:rest]
676
+
677
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
678
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
679
+
680
+ options.apply_defaults timeout: @config.rpcs.batch_update_sites.timeout,
681
+ metadata: call_metadata,
682
+ retry_policy: @config.rpcs.batch_update_sites.retry_policy
683
+
684
+ options.apply_defaults timeout: @config.timeout,
685
+ metadata: @config.metadata,
686
+ retry_policy: @config.retry_policy
687
+
688
+ @site_service_stub.batch_update_sites request, options do |result, operation|
689
+ yield result, operation if block_given?
690
+ end
691
+ rescue ::Gapic::Rest::Error => e
692
+ raise ::Google::Cloud::Error.from_error(e)
693
+ end
694
+
695
+ ##
696
+ # Deactivates a list of `Site` objects.
697
+ #
698
+ # @overload batch_deactivate_sites(request, options = nil)
699
+ # Pass arguments to `batch_deactivate_sites` via a request object, either of type
700
+ # {::Google::Ads::AdManager::V1::BatchDeactivateSitesRequest} or an equivalent Hash.
701
+ #
702
+ # @param request [::Google::Ads::AdManager::V1::BatchDeactivateSitesRequest, ::Hash]
703
+ # A request object representing the call parameters. Required. To specify no
704
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
705
+ # @param options [::Gapic::CallOptions, ::Hash]
706
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
707
+ #
708
+ # @overload batch_deactivate_sites(parent: nil, names: nil)
709
+ # Pass arguments to `batch_deactivate_sites` via keyword arguments. Note that at
710
+ # least one keyword argument is required. To specify no parameters, or to keep all
711
+ # the default parameter values, pass an empty Hash as a request object (see above).
712
+ #
713
+ # @param parent [::String]
714
+ # Required. Format: `networks/{network_code}`
715
+ # @param names [::Array<::String>]
716
+ # Required. The resource names of the `Site` objects to deactivate.
717
+ # @yield [result, operation] Access the result along with the TransportOperation object
718
+ # @yieldparam result [::Google::Ads::AdManager::V1::BatchDeactivateSitesResponse]
719
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
720
+ #
721
+ # @return [::Google::Ads::AdManager::V1::BatchDeactivateSitesResponse]
722
+ #
723
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
724
+ #
725
+ # @example Basic example
726
+ # require "google/ads/ad_manager/v1"
727
+ #
728
+ # # Create a client object. The client can be reused for multiple calls.
729
+ # client = Google::Ads::AdManager::V1::SiteService::Rest::Client.new
730
+ #
731
+ # # Create a request. To set request fields, pass in keyword arguments.
732
+ # request = Google::Ads::AdManager::V1::BatchDeactivateSitesRequest.new
733
+ #
734
+ # # Call the batch_deactivate_sites method.
735
+ # result = client.batch_deactivate_sites request
736
+ #
737
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchDeactivateSitesResponse.
738
+ # p result
739
+ #
740
+ def batch_deactivate_sites request, options = nil
741
+ raise ::ArgumentError, "request must be provided" if request.nil?
742
+
743
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchDeactivateSitesRequest
744
+
745
+ # Converts hash and nil to an options object
746
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
747
+
748
+ # Customize the options with defaults
749
+ call_metadata = @config.rpcs.batch_deactivate_sites.metadata.to_h
750
+
751
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
752
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
753
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
754
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
755
+ transports_version_send: [:rest]
756
+
757
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
758
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
759
+
760
+ options.apply_defaults timeout: @config.rpcs.batch_deactivate_sites.timeout,
761
+ metadata: call_metadata,
762
+ retry_policy: @config.rpcs.batch_deactivate_sites.retry_policy
763
+
764
+ options.apply_defaults timeout: @config.timeout,
765
+ metadata: @config.metadata,
766
+ retry_policy: @config.retry_policy
767
+
768
+ @site_service_stub.batch_deactivate_sites request, options do |result, operation|
769
+ yield result, operation if block_given?
770
+ end
771
+ rescue ::Gapic::Rest::Error => e
772
+ raise ::Google::Cloud::Error.from_error(e)
773
+ end
774
+
775
+ ##
776
+ # Submits a list of `Site` objects for approval.
777
+ #
778
+ # @overload batch_submit_sites_for_approval(request, options = nil)
779
+ # Pass arguments to `batch_submit_sites_for_approval` via a request object, either of type
780
+ # {::Google::Ads::AdManager::V1::BatchSubmitSitesForApprovalRequest} or an equivalent Hash.
781
+ #
782
+ # @param request [::Google::Ads::AdManager::V1::BatchSubmitSitesForApprovalRequest, ::Hash]
783
+ # A request object representing the call parameters. Required. To specify no
784
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
785
+ # @param options [::Gapic::CallOptions, ::Hash]
786
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
787
+ #
788
+ # @overload batch_submit_sites_for_approval(parent: nil, names: nil)
789
+ # Pass arguments to `batch_submit_sites_for_approval` via keyword arguments. Note that at
790
+ # least one keyword argument is required. To specify no parameters, or to keep all
791
+ # the default parameter values, pass an empty Hash as a request object (see above).
792
+ #
793
+ # @param parent [::String]
794
+ # Required. Format: `networks/{network_code}`
795
+ # @param names [::Array<::String>]
796
+ # Required. The resource names of the `Site` objects to submit for approval.
797
+ # @yield [result, operation] Access the result along with the TransportOperation object
798
+ # @yieldparam result [::Google::Ads::AdManager::V1::BatchSubmitSitesForApprovalResponse]
799
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
800
+ #
801
+ # @return [::Google::Ads::AdManager::V1::BatchSubmitSitesForApprovalResponse]
802
+ #
803
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
804
+ #
805
+ # @example Basic example
806
+ # require "google/ads/ad_manager/v1"
807
+ #
808
+ # # Create a client object. The client can be reused for multiple calls.
809
+ # client = Google::Ads::AdManager::V1::SiteService::Rest::Client.new
810
+ #
811
+ # # Create a request. To set request fields, pass in keyword arguments.
812
+ # request = Google::Ads::AdManager::V1::BatchSubmitSitesForApprovalRequest.new
813
+ #
814
+ # # Call the batch_submit_sites_for_approval method.
815
+ # result = client.batch_submit_sites_for_approval request
816
+ #
817
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchSubmitSitesForApprovalResponse.
818
+ # p result
819
+ #
820
+ def batch_submit_sites_for_approval request, options = nil
821
+ raise ::ArgumentError, "request must be provided" if request.nil?
822
+
823
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchSubmitSitesForApprovalRequest
824
+
825
+ # Converts hash and nil to an options object
826
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
827
+
828
+ # Customize the options with defaults
829
+ call_metadata = @config.rpcs.batch_submit_sites_for_approval.metadata.to_h
830
+
831
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
832
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
833
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
834
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
835
+ transports_version_send: [:rest]
836
+
837
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
838
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
839
+
840
+ options.apply_defaults timeout: @config.rpcs.batch_submit_sites_for_approval.timeout,
841
+ metadata: call_metadata,
842
+ retry_policy: @config.rpcs.batch_submit_sites_for_approval.retry_policy
843
+
844
+ options.apply_defaults timeout: @config.timeout,
845
+ metadata: @config.metadata,
846
+ retry_policy: @config.retry_policy
847
+
848
+ @site_service_stub.batch_submit_sites_for_approval request, options do |result, operation|
849
+ yield result, operation if block_given?
850
+ end
851
+ rescue ::Gapic::Rest::Error => e
852
+ raise ::Google::Cloud::Error.from_error(e)
853
+ end
854
+
855
+ ##
856
+ # Configuration class for the SiteService REST API.
857
+ #
858
+ # This class represents the configuration for SiteService REST,
859
+ # providing control over timeouts, retry behavior, logging, transport
860
+ # parameters, and other low-level controls. Certain parameters can also be
861
+ # applied individually to specific RPCs. See
862
+ # {::Google::Ads::AdManager::V1::SiteService::Rest::Client::Configuration::Rpcs}
863
+ # for a list of RPCs that can be configured independently.
864
+ #
865
+ # Configuration can be applied globally to all clients, or to a single client
866
+ # on construction.
867
+ #
868
+ # @example
869
+ #
870
+ # # Modify the global config, setting the timeout for
871
+ # # get_site to 20 seconds,
872
+ # # and all remaining timeouts to 10 seconds.
873
+ # ::Google::Ads::AdManager::V1::SiteService::Rest::Client.configure do |config|
874
+ # config.timeout = 10.0
875
+ # config.rpcs.get_site.timeout = 20.0
876
+ # end
877
+ #
878
+ # # Apply the above configuration only to a new client.
879
+ # client = ::Google::Ads::AdManager::V1::SiteService::Rest::Client.new do |config|
880
+ # config.timeout = 10.0
881
+ # config.rpcs.get_site.timeout = 20.0
882
+ # end
883
+ #
884
+ # @!attribute [rw] endpoint
885
+ # A custom service endpoint, as a hostname or hostname:port. The default is
886
+ # nil, indicating to use the default endpoint in the current universe domain.
887
+ # @return [::String,nil]
888
+ # @!attribute [rw] credentials
889
+ # Credentials to send with calls. You may provide any of the following types:
890
+ # * (`String`) The path to a service account key file in JSON format
891
+ # * (`Hash`) A service account key as a Hash
892
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
893
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
894
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
895
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
896
+ # * (`nil`) indicating no credentials
897
+ #
898
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
899
+ # external source for authentication to Google Cloud, you must validate it before
900
+ # providing it to a Google API client library. Providing an unvalidated credential
901
+ # configuration to Google APIs can compromise the security of your systems and data.
902
+ # For more information, refer to [Validate credential configurations from external
903
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
904
+ # @return [::Object]
905
+ # @!attribute [rw] scope
906
+ # The OAuth scopes
907
+ # @return [::Array<::String>]
908
+ # @!attribute [rw] lib_name
909
+ # The library name as recorded in instrumentation and logging
910
+ # @return [::String]
911
+ # @!attribute [rw] lib_version
912
+ # The library version as recorded in instrumentation and logging
913
+ # @return [::String]
914
+ # @!attribute [rw] timeout
915
+ # The call timeout in seconds.
916
+ # @return [::Numeric]
917
+ # @!attribute [rw] metadata
918
+ # Additional headers to be sent with the call.
919
+ # @return [::Hash{::Symbol=>::String}]
920
+ # @!attribute [rw] retry_policy
921
+ # The retry policy. The value is a hash with the following keys:
922
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
923
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
924
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
925
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
926
+ # trigger a retry.
927
+ # @return [::Hash]
928
+ # @!attribute [rw] quota_project
929
+ # A separate project against which to charge quota.
930
+ # @return [::String]
931
+ # @!attribute [rw] universe_domain
932
+ # The universe domain within which to make requests. This determines the
933
+ # default endpoint URL. The default value of nil uses the environment
934
+ # universe (usually the default "googleapis.com" universe).
935
+ # @return [::String,nil]
936
+ # @!attribute [rw] logger
937
+ # A custom logger to use for request/response debug logging, or the value
938
+ # `:default` (the default) to construct a default logger, or `nil` to
939
+ # explicitly disable logging.
940
+ # @return [::Logger,:default,nil]
941
+ #
942
+ class Configuration
943
+ extend ::Gapic::Config
944
+
945
+ # @private
946
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
947
+ DEFAULT_ENDPOINT = "admanager.googleapis.com"
948
+
949
+ config_attr :endpoint, nil, ::String, nil
950
+ config_attr :credentials, nil do |value|
951
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
952
+ allowed.any? { |klass| klass === value }
953
+ end
954
+ config_attr :scope, nil, ::String, ::Array, nil
955
+ config_attr :lib_name, nil, ::String, nil
956
+ config_attr :lib_version, nil, ::String, nil
957
+ config_attr :timeout, nil, ::Numeric, nil
958
+ config_attr :metadata, nil, ::Hash, nil
959
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
960
+ config_attr :quota_project, nil, ::String, nil
961
+ config_attr :universe_domain, nil, ::String, nil
962
+ config_attr :logger, :default, ::Logger, nil, :default
963
+
964
+ # @private
965
+ def initialize parent_config = nil
966
+ @parent_config = parent_config unless parent_config.nil?
967
+
968
+ yield self if block_given?
969
+ end
970
+
971
+ ##
972
+ # Configurations for individual RPCs
973
+ # @return [Rpcs]
974
+ #
975
+ def rpcs
976
+ @rpcs ||= begin
977
+ parent_rpcs = nil
978
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
979
+ Rpcs.new parent_rpcs
980
+ end
981
+ end
982
+
983
+ ##
984
+ # Configuration RPC class for the SiteService API.
985
+ #
986
+ # Includes fields providing the configuration for each RPC in this service.
987
+ # Each configuration object is of type `Gapic::Config::Method` and includes
988
+ # the following configuration fields:
989
+ #
990
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
991
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
992
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
993
+ # include the following keys:
994
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
995
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
996
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
997
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
998
+ # trigger a retry.
999
+ #
1000
+ class Rpcs
1001
+ ##
1002
+ # RPC-specific configuration for `get_site`
1003
+ # @return [::Gapic::Config::Method]
1004
+ #
1005
+ attr_reader :get_site
1006
+ ##
1007
+ # RPC-specific configuration for `list_sites`
1008
+ # @return [::Gapic::Config::Method]
1009
+ #
1010
+ attr_reader :list_sites
1011
+ ##
1012
+ # RPC-specific configuration for `create_site`
1013
+ # @return [::Gapic::Config::Method]
1014
+ #
1015
+ attr_reader :create_site
1016
+ ##
1017
+ # RPC-specific configuration for `batch_create_sites`
1018
+ # @return [::Gapic::Config::Method]
1019
+ #
1020
+ attr_reader :batch_create_sites
1021
+ ##
1022
+ # RPC-specific configuration for `update_site`
1023
+ # @return [::Gapic::Config::Method]
1024
+ #
1025
+ attr_reader :update_site
1026
+ ##
1027
+ # RPC-specific configuration for `batch_update_sites`
1028
+ # @return [::Gapic::Config::Method]
1029
+ #
1030
+ attr_reader :batch_update_sites
1031
+ ##
1032
+ # RPC-specific configuration for `batch_deactivate_sites`
1033
+ # @return [::Gapic::Config::Method]
1034
+ #
1035
+ attr_reader :batch_deactivate_sites
1036
+ ##
1037
+ # RPC-specific configuration for `batch_submit_sites_for_approval`
1038
+ # @return [::Gapic::Config::Method]
1039
+ #
1040
+ attr_reader :batch_submit_sites_for_approval
1041
+
1042
+ # @private
1043
+ def initialize parent_rpcs = nil
1044
+ get_site_config = parent_rpcs.get_site if parent_rpcs.respond_to? :get_site
1045
+ @get_site = ::Gapic::Config::Method.new get_site_config
1046
+ list_sites_config = parent_rpcs.list_sites if parent_rpcs.respond_to? :list_sites
1047
+ @list_sites = ::Gapic::Config::Method.new list_sites_config
1048
+ create_site_config = parent_rpcs.create_site if parent_rpcs.respond_to? :create_site
1049
+ @create_site = ::Gapic::Config::Method.new create_site_config
1050
+ batch_create_sites_config = parent_rpcs.batch_create_sites if parent_rpcs.respond_to? :batch_create_sites
1051
+ @batch_create_sites = ::Gapic::Config::Method.new batch_create_sites_config
1052
+ update_site_config = parent_rpcs.update_site if parent_rpcs.respond_to? :update_site
1053
+ @update_site = ::Gapic::Config::Method.new update_site_config
1054
+ batch_update_sites_config = parent_rpcs.batch_update_sites if parent_rpcs.respond_to? :batch_update_sites
1055
+ @batch_update_sites = ::Gapic::Config::Method.new batch_update_sites_config
1056
+ batch_deactivate_sites_config = parent_rpcs.batch_deactivate_sites if parent_rpcs.respond_to? :batch_deactivate_sites
1057
+ @batch_deactivate_sites = ::Gapic::Config::Method.new batch_deactivate_sites_config
1058
+ batch_submit_sites_for_approval_config = parent_rpcs.batch_submit_sites_for_approval if parent_rpcs.respond_to? :batch_submit_sites_for_approval
1059
+ @batch_submit_sites_for_approval = ::Gapic::Config::Method.new batch_submit_sites_for_approval_config
1060
+
1061
+ yield self if block_given?
1062
+ end
1063
+ end
1064
+ end
1065
+ end
1066
+ end
1067
+ end
1068
+ end
1069
+ end
1070
+ end
1071
+ end