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,1073 @@
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/team_service_pb"
21
+ require "google/ads/ad_manager/v1/team_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Ads
25
+ module AdManager
26
+ module V1
27
+ module TeamService
28
+ module Rest
29
+ ##
30
+ # REST client for the TeamService service.
31
+ #
32
+ # Provides methods for handling `Team` 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 :team_service_stub
45
+
46
+ ##
47
+ # Configure the TeamService Client class.
48
+ #
49
+ # See {::Google::Ads::AdManager::V1::TeamService::Rest::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all TeamService clients
55
+ # ::Google::Ads::AdManager::V1::TeamService::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 TeamService 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::TeamService::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
+ @team_service_stub.universe_domain
108
+ end
109
+
110
+ ##
111
+ # Create a new TeamService REST client object.
112
+ #
113
+ # @example
114
+ #
115
+ # # Create a client using the default configuration
116
+ # client = ::Google::Ads::AdManager::V1::TeamService::Rest::Client.new
117
+ #
118
+ # # Create a client using a custom configuration
119
+ # client = ::Google::Ads::AdManager::V1::TeamService::Rest::Client.new do |config|
120
+ # config.timeout = 10.0
121
+ # end
122
+ #
123
+ # @yield [config] Configure the TeamService 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
+ @team_service_stub = ::Google::Ads::AdManager::V1::TeamService::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
+ @team_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
+ @team_service_stub.logger
175
+ end
176
+
177
+ # Service calls
178
+
179
+ ##
180
+ # API to retrieve a `Team` object.
181
+ #
182
+ # @overload get_team(request, options = nil)
183
+ # Pass arguments to `get_team` via a request object, either of type
184
+ # {::Google::Ads::AdManager::V1::GetTeamRequest} or an equivalent Hash.
185
+ #
186
+ # @param request [::Google::Ads::AdManager::V1::GetTeamRequest, ::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_team(name: nil)
193
+ # Pass arguments to `get_team` 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 Team.
199
+ # Format: `networks/{network_code}/teams/{team_id}`
200
+ # @yield [result, operation] Access the result along with the TransportOperation object
201
+ # @yieldparam result [::Google::Ads::AdManager::V1::Team]
202
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
203
+ #
204
+ # @return [::Google::Ads::AdManager::V1::Team]
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::TeamService::Rest::Client.new
213
+ #
214
+ # # Create a request. To set request fields, pass in keyword arguments.
215
+ # request = Google::Ads::AdManager::V1::GetTeamRequest.new
216
+ #
217
+ # # Call the get_team method.
218
+ # result = client.get_team request
219
+ #
220
+ # # The returned object is of type Google::Ads::AdManager::V1::Team.
221
+ # p result
222
+ #
223
+ def get_team 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::GetTeamRequest
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_team.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_team.timeout,
244
+ metadata: call_metadata,
245
+ retry_policy: @config.rpcs.get_team.retry_policy
246
+
247
+ options.apply_defaults timeout: @config.timeout,
248
+ metadata: @config.metadata,
249
+ retry_policy: @config.retry_policy
250
+
251
+ @team_service_stub.get_team 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 `Team` objects.
260
+ #
261
+ # @overload list_teams(request, options = nil)
262
+ # Pass arguments to `list_teams` via a request object, either of type
263
+ # {::Google::Ads::AdManager::V1::ListTeamsRequest} or an equivalent Hash.
264
+ #
265
+ # @param request [::Google::Ads::AdManager::V1::ListTeamsRequest, ::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_teams(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil)
272
+ # Pass arguments to `list_teams` 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 Teams.
278
+ # Format: `networks/{network_code}`
279
+ # @param page_size [::Integer]
280
+ # Optional. The maximum number of `Teams` to return. The service may return
281
+ # fewer than this value. If unspecified, at most 50 `Teams` 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 `ListTeams` call.
286
+ # Provide this to retrieve the subsequent page.
287
+ #
288
+ # When paginating, all other parameters provided to `ListTeams` 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::Team>]
302
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
303
+ #
304
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::Team>]
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::TeamService::Rest::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Ads::AdManager::V1::ListTeamsRequest.new
316
+ #
317
+ # # Call the list_teams method.
318
+ # result = client.list_teams 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::Team.
324
+ # p item
325
+ # end
326
+ #
327
+ def list_teams 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::ListTeamsRequest
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_teams.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_teams.timeout,
348
+ metadata: call_metadata,
349
+ retry_policy: @config.rpcs.list_teams.retry_policy
350
+
351
+ options.apply_defaults timeout: @config.timeout,
352
+ metadata: @config.metadata,
353
+ retry_policy: @config.retry_policy
354
+
355
+ @team_service_stub.list_teams request, options do |result, operation|
356
+ result = ::Gapic::Rest::PagedEnumerable.new @team_service_stub, :list_teams, "teams", 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 `Team` object.
366
+ #
367
+ # @overload create_team(request, options = nil)
368
+ # Pass arguments to `create_team` via a request object, either of type
369
+ # {::Google::Ads::AdManager::V1::CreateTeamRequest} or an equivalent Hash.
370
+ #
371
+ # @param request [::Google::Ads::AdManager::V1::CreateTeamRequest, ::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_team(parent: nil, team: nil)
378
+ # Pass arguments to `create_team` 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 `Team` will be created.
384
+ # Format: `networks/{network_code}`
385
+ # @param team [::Google::Ads::AdManager::V1::Team, ::Hash]
386
+ # Required. The `Team` to create.
387
+ # @yield [result, operation] Access the result along with the TransportOperation object
388
+ # @yieldparam result [::Google::Ads::AdManager::V1::Team]
389
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
390
+ #
391
+ # @return [::Google::Ads::AdManager::V1::Team]
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::TeamService::Rest::Client.new
400
+ #
401
+ # # Create a request. To set request fields, pass in keyword arguments.
402
+ # request = Google::Ads::AdManager::V1::CreateTeamRequest.new
403
+ #
404
+ # # Call the create_team method.
405
+ # result = client.create_team request
406
+ #
407
+ # # The returned object is of type Google::Ads::AdManager::V1::Team.
408
+ # p result
409
+ #
410
+ def create_team 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::CreateTeamRequest
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_team.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_team.timeout,
431
+ metadata: call_metadata,
432
+ retry_policy: @config.rpcs.create_team.retry_policy
433
+
434
+ options.apply_defaults timeout: @config.timeout,
435
+ metadata: @config.metadata,
436
+ retry_policy: @config.retry_policy
437
+
438
+ @team_service_stub.create_team 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 `Team` objects.
447
+ #
448
+ # @overload batch_create_teams(request, options = nil)
449
+ # Pass arguments to `batch_create_teams` via a request object, either of type
450
+ # {::Google::Ads::AdManager::V1::BatchCreateTeamsRequest} or an equivalent Hash.
451
+ #
452
+ # @param request [::Google::Ads::AdManager::V1::BatchCreateTeamsRequest, ::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_teams(parent: nil, requests: nil)
459
+ # Pass arguments to `batch_create_teams` 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 `Teams` will be created.
465
+ # Format: `networks/{network_code}`
466
+ # The parent field in the CreateTeamRequest must match this
467
+ # field.
468
+ # @param requests [::Array<::Google::Ads::AdManager::V1::CreateTeamRequest, ::Hash>]
469
+ # Required. The `Team` 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::BatchCreateTeamsResponse]
473
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
474
+ #
475
+ # @return [::Google::Ads::AdManager::V1::BatchCreateTeamsResponse]
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::TeamService::Rest::Client.new
484
+ #
485
+ # # Create a request. To set request fields, pass in keyword arguments.
486
+ # request = Google::Ads::AdManager::V1::BatchCreateTeamsRequest.new
487
+ #
488
+ # # Call the batch_create_teams method.
489
+ # result = client.batch_create_teams request
490
+ #
491
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchCreateTeamsResponse.
492
+ # p result
493
+ #
494
+ def batch_create_teams 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::BatchCreateTeamsRequest
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_teams.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_teams.timeout,
515
+ metadata: call_metadata,
516
+ retry_policy: @config.rpcs.batch_create_teams.retry_policy
517
+
518
+ options.apply_defaults timeout: @config.timeout,
519
+ metadata: @config.metadata,
520
+ retry_policy: @config.retry_policy
521
+
522
+ @team_service_stub.batch_create_teams 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 `Team` object.
531
+ #
532
+ # @overload update_team(request, options = nil)
533
+ # Pass arguments to `update_team` via a request object, either of type
534
+ # {::Google::Ads::AdManager::V1::UpdateTeamRequest} or an equivalent Hash.
535
+ #
536
+ # @param request [::Google::Ads::AdManager::V1::UpdateTeamRequest, ::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_team(team: nil, update_mask: nil)
543
+ # Pass arguments to `update_team` 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 team [::Google::Ads::AdManager::V1::Team, ::Hash]
548
+ # Required. The `Team` to update.
549
+ #
550
+ # The `Team`'s `name` is used to identify the `Team` 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::Team]
555
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
556
+ #
557
+ # @return [::Google::Ads::AdManager::V1::Team]
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::TeamService::Rest::Client.new
566
+ #
567
+ # # Create a request. To set request fields, pass in keyword arguments.
568
+ # request = Google::Ads::AdManager::V1::UpdateTeamRequest.new
569
+ #
570
+ # # Call the update_team method.
571
+ # result = client.update_team request
572
+ #
573
+ # # The returned object is of type Google::Ads::AdManager::V1::Team.
574
+ # p result
575
+ #
576
+ def update_team 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::UpdateTeamRequest
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_team.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_team.timeout,
597
+ metadata: call_metadata,
598
+ retry_policy: @config.rpcs.update_team.retry_policy
599
+
600
+ options.apply_defaults timeout: @config.timeout,
601
+ metadata: @config.metadata,
602
+ retry_policy: @config.retry_policy
603
+
604
+ @team_service_stub.update_team 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 `Team` objects.
613
+ #
614
+ # @overload batch_update_teams(request, options = nil)
615
+ # Pass arguments to `batch_update_teams` via a request object, either of type
616
+ # {::Google::Ads::AdManager::V1::BatchUpdateTeamsRequest} or an equivalent Hash.
617
+ #
618
+ # @param request [::Google::Ads::AdManager::V1::BatchUpdateTeamsRequest, ::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_teams(parent: nil, requests: nil)
625
+ # Pass arguments to `batch_update_teams` 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 `Teams` will be updated.
631
+ # Format: `networks/{network_code}`
632
+ # The parent field in the UpdateTeamRequest must match this
633
+ # field.
634
+ # @param requests [::Array<::Google::Ads::AdManager::V1::UpdateTeamRequest, ::Hash>]
635
+ # Required. The `Team` 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::BatchUpdateTeamsResponse]
639
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
640
+ #
641
+ # @return [::Google::Ads::AdManager::V1::BatchUpdateTeamsResponse]
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::TeamService::Rest::Client.new
650
+ #
651
+ # # Create a request. To set request fields, pass in keyword arguments.
652
+ # request = Google::Ads::AdManager::V1::BatchUpdateTeamsRequest.new
653
+ #
654
+ # # Call the batch_update_teams method.
655
+ # result = client.batch_update_teams request
656
+ #
657
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchUpdateTeamsResponse.
658
+ # p result
659
+ #
660
+ def batch_update_teams 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::BatchUpdateTeamsRequest
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_teams.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_teams.timeout,
681
+ metadata: call_metadata,
682
+ retry_policy: @config.rpcs.batch_update_teams.retry_policy
683
+
684
+ options.apply_defaults timeout: @config.timeout,
685
+ metadata: @config.metadata,
686
+ retry_policy: @config.retry_policy
687
+
688
+ @team_service_stub.batch_update_teams 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
+ # API to batch activate `Team` objects.
697
+ #
698
+ # @overload batch_activate_teams(request, options = nil)
699
+ # Pass arguments to `batch_activate_teams` via a request object, either of type
700
+ # {::Google::Ads::AdManager::V1::BatchActivateTeamsRequest} or an equivalent Hash.
701
+ #
702
+ # @param request [::Google::Ads::AdManager::V1::BatchActivateTeamsRequest, ::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_activate_teams(parent: nil, names: nil)
709
+ # Pass arguments to `batch_activate_teams` 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 `Team`s to activate.
717
+ # Format: `networks/{network_code}/teams/{team_id}`
718
+ # @yield [result, operation] Access the result along with the TransportOperation object
719
+ # @yieldparam result [::Google::Ads::AdManager::V1::BatchActivateTeamsResponse]
720
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
721
+ #
722
+ # @return [::Google::Ads::AdManager::V1::BatchActivateTeamsResponse]
723
+ #
724
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
725
+ #
726
+ # @example Basic example
727
+ # require "google/ads/ad_manager/v1"
728
+ #
729
+ # # Create a client object. The client can be reused for multiple calls.
730
+ # client = Google::Ads::AdManager::V1::TeamService::Rest::Client.new
731
+ #
732
+ # # Create a request. To set request fields, pass in keyword arguments.
733
+ # request = Google::Ads::AdManager::V1::BatchActivateTeamsRequest.new
734
+ #
735
+ # # Call the batch_activate_teams method.
736
+ # result = client.batch_activate_teams request
737
+ #
738
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchActivateTeamsResponse.
739
+ # p result
740
+ #
741
+ def batch_activate_teams request, options = nil
742
+ raise ::ArgumentError, "request must be provided" if request.nil?
743
+
744
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchActivateTeamsRequest
745
+
746
+ # Converts hash and nil to an options object
747
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
748
+
749
+ # Customize the options with defaults
750
+ call_metadata = @config.rpcs.batch_activate_teams.metadata.to_h
751
+
752
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
753
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
754
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
755
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
756
+ transports_version_send: [:rest]
757
+
758
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
759
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
760
+
761
+ options.apply_defaults timeout: @config.rpcs.batch_activate_teams.timeout,
762
+ metadata: call_metadata,
763
+ retry_policy: @config.rpcs.batch_activate_teams.retry_policy
764
+
765
+ options.apply_defaults timeout: @config.timeout,
766
+ metadata: @config.metadata,
767
+ retry_policy: @config.retry_policy
768
+
769
+ @team_service_stub.batch_activate_teams request, options do |result, operation|
770
+ yield result, operation if block_given?
771
+ end
772
+ rescue ::Gapic::Rest::Error => e
773
+ raise ::Google::Cloud::Error.from_error(e)
774
+ end
775
+
776
+ ##
777
+ # API to batch deactivate `Team` objects.
778
+ #
779
+ # @overload batch_deactivate_teams(request, options = nil)
780
+ # Pass arguments to `batch_deactivate_teams` via a request object, either of type
781
+ # {::Google::Ads::AdManager::V1::BatchDeactivateTeamsRequest} or an equivalent Hash.
782
+ #
783
+ # @param request [::Google::Ads::AdManager::V1::BatchDeactivateTeamsRequest, ::Hash]
784
+ # A request object representing the call parameters. Required. To specify no
785
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
786
+ # @param options [::Gapic::CallOptions, ::Hash]
787
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
788
+ #
789
+ # @overload batch_deactivate_teams(parent: nil, names: nil)
790
+ # Pass arguments to `batch_deactivate_teams` via keyword arguments. Note that at
791
+ # least one keyword argument is required. To specify no parameters, or to keep all
792
+ # the default parameter values, pass an empty Hash as a request object (see above).
793
+ #
794
+ # @param parent [::String]
795
+ # Required. Format: `networks/{network_code}`
796
+ # @param names [::Array<::String>]
797
+ # Required. The resource names of the `Team`s to deactivate.
798
+ # Format: `networks/{network_code}/teams/{team_id}`
799
+ # @yield [result, operation] Access the result along with the TransportOperation object
800
+ # @yieldparam result [::Google::Ads::AdManager::V1::BatchDeactivateTeamsResponse]
801
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
802
+ #
803
+ # @return [::Google::Ads::AdManager::V1::BatchDeactivateTeamsResponse]
804
+ #
805
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
806
+ #
807
+ # @example Basic example
808
+ # require "google/ads/ad_manager/v1"
809
+ #
810
+ # # Create a client object. The client can be reused for multiple calls.
811
+ # client = Google::Ads::AdManager::V1::TeamService::Rest::Client.new
812
+ #
813
+ # # Create a request. To set request fields, pass in keyword arguments.
814
+ # request = Google::Ads::AdManager::V1::BatchDeactivateTeamsRequest.new
815
+ #
816
+ # # Call the batch_deactivate_teams method.
817
+ # result = client.batch_deactivate_teams request
818
+ #
819
+ # # The returned object is of type Google::Ads::AdManager::V1::BatchDeactivateTeamsResponse.
820
+ # p result
821
+ #
822
+ def batch_deactivate_teams request, options = nil
823
+ raise ::ArgumentError, "request must be provided" if request.nil?
824
+
825
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::BatchDeactivateTeamsRequest
826
+
827
+ # Converts hash and nil to an options object
828
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
829
+
830
+ # Customize the options with defaults
831
+ call_metadata = @config.rpcs.batch_deactivate_teams.metadata.to_h
832
+
833
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
834
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
835
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
836
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
837
+ transports_version_send: [:rest]
838
+
839
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
840
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
841
+
842
+ options.apply_defaults timeout: @config.rpcs.batch_deactivate_teams.timeout,
843
+ metadata: call_metadata,
844
+ retry_policy: @config.rpcs.batch_deactivate_teams.retry_policy
845
+
846
+ options.apply_defaults timeout: @config.timeout,
847
+ metadata: @config.metadata,
848
+ retry_policy: @config.retry_policy
849
+
850
+ @team_service_stub.batch_deactivate_teams request, options do |result, operation|
851
+ yield result, operation if block_given?
852
+ end
853
+ rescue ::Gapic::Rest::Error => e
854
+ raise ::Google::Cloud::Error.from_error(e)
855
+ end
856
+
857
+ ##
858
+ # Configuration class for the TeamService REST API.
859
+ #
860
+ # This class represents the configuration for TeamService REST,
861
+ # providing control over timeouts, retry behavior, logging, transport
862
+ # parameters, and other low-level controls. Certain parameters can also be
863
+ # applied individually to specific RPCs. See
864
+ # {::Google::Ads::AdManager::V1::TeamService::Rest::Client::Configuration::Rpcs}
865
+ # for a list of RPCs that can be configured independently.
866
+ #
867
+ # Configuration can be applied globally to all clients, or to a single client
868
+ # on construction.
869
+ #
870
+ # @example
871
+ #
872
+ # # Modify the global config, setting the timeout for
873
+ # # get_team to 20 seconds,
874
+ # # and all remaining timeouts to 10 seconds.
875
+ # ::Google::Ads::AdManager::V1::TeamService::Rest::Client.configure do |config|
876
+ # config.timeout = 10.0
877
+ # config.rpcs.get_team.timeout = 20.0
878
+ # end
879
+ #
880
+ # # Apply the above configuration only to a new client.
881
+ # client = ::Google::Ads::AdManager::V1::TeamService::Rest::Client.new do |config|
882
+ # config.timeout = 10.0
883
+ # config.rpcs.get_team.timeout = 20.0
884
+ # end
885
+ #
886
+ # @!attribute [rw] endpoint
887
+ # A custom service endpoint, as a hostname or hostname:port. The default is
888
+ # nil, indicating to use the default endpoint in the current universe domain.
889
+ # @return [::String,nil]
890
+ # @!attribute [rw] credentials
891
+ # Credentials to send with calls. You may provide any of the following types:
892
+ # * (`String`) The path to a service account key file in JSON format
893
+ # * (`Hash`) A service account key as a Hash
894
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
895
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
896
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
897
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
898
+ # * (`nil`) indicating no credentials
899
+ #
900
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
901
+ # external source for authentication to Google Cloud, you must validate it before
902
+ # providing it to a Google API client library. Providing an unvalidated credential
903
+ # configuration to Google APIs can compromise the security of your systems and data.
904
+ # For more information, refer to [Validate credential configurations from external
905
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
906
+ # @return [::Object]
907
+ # @!attribute [rw] scope
908
+ # The OAuth scopes
909
+ # @return [::Array<::String>]
910
+ # @!attribute [rw] lib_name
911
+ # The library name as recorded in instrumentation and logging
912
+ # @return [::String]
913
+ # @!attribute [rw] lib_version
914
+ # The library version as recorded in instrumentation and logging
915
+ # @return [::String]
916
+ # @!attribute [rw] timeout
917
+ # The call timeout in seconds.
918
+ # @return [::Numeric]
919
+ # @!attribute [rw] metadata
920
+ # Additional headers to be sent with the call.
921
+ # @return [::Hash{::Symbol=>::String}]
922
+ # @!attribute [rw] retry_policy
923
+ # The retry policy. The value is a hash with the following keys:
924
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
925
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
926
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
927
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
928
+ # trigger a retry.
929
+ # @return [::Hash]
930
+ # @!attribute [rw] quota_project
931
+ # A separate project against which to charge quota.
932
+ # @return [::String]
933
+ # @!attribute [rw] universe_domain
934
+ # The universe domain within which to make requests. This determines the
935
+ # default endpoint URL. The default value of nil uses the environment
936
+ # universe (usually the default "googleapis.com" universe).
937
+ # @return [::String,nil]
938
+ # @!attribute [rw] logger
939
+ # A custom logger to use for request/response debug logging, or the value
940
+ # `:default` (the default) to construct a default logger, or `nil` to
941
+ # explicitly disable logging.
942
+ # @return [::Logger,:default,nil]
943
+ #
944
+ class Configuration
945
+ extend ::Gapic::Config
946
+
947
+ # @private
948
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
949
+ DEFAULT_ENDPOINT = "admanager.googleapis.com"
950
+
951
+ config_attr :endpoint, nil, ::String, nil
952
+ config_attr :credentials, nil do |value|
953
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
954
+ allowed.any? { |klass| klass === value }
955
+ end
956
+ config_attr :scope, nil, ::String, ::Array, nil
957
+ config_attr :lib_name, nil, ::String, nil
958
+ config_attr :lib_version, nil, ::String, nil
959
+ config_attr :timeout, nil, ::Numeric, nil
960
+ config_attr :metadata, nil, ::Hash, nil
961
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
962
+ config_attr :quota_project, nil, ::String, nil
963
+ config_attr :universe_domain, nil, ::String, nil
964
+ config_attr :logger, :default, ::Logger, nil, :default
965
+
966
+ # @private
967
+ def initialize parent_config = nil
968
+ @parent_config = parent_config unless parent_config.nil?
969
+
970
+ yield self if block_given?
971
+ end
972
+
973
+ ##
974
+ # Configurations for individual RPCs
975
+ # @return [Rpcs]
976
+ #
977
+ def rpcs
978
+ @rpcs ||= begin
979
+ parent_rpcs = nil
980
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
981
+ Rpcs.new parent_rpcs
982
+ end
983
+ end
984
+
985
+ ##
986
+ # Configuration RPC class for the TeamService API.
987
+ #
988
+ # Includes fields providing the configuration for each RPC in this service.
989
+ # Each configuration object is of type `Gapic::Config::Method` and includes
990
+ # the following configuration fields:
991
+ #
992
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
993
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
994
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
995
+ # include the following keys:
996
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
997
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
998
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
999
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1000
+ # trigger a retry.
1001
+ #
1002
+ class Rpcs
1003
+ ##
1004
+ # RPC-specific configuration for `get_team`
1005
+ # @return [::Gapic::Config::Method]
1006
+ #
1007
+ attr_reader :get_team
1008
+ ##
1009
+ # RPC-specific configuration for `list_teams`
1010
+ # @return [::Gapic::Config::Method]
1011
+ #
1012
+ attr_reader :list_teams
1013
+ ##
1014
+ # RPC-specific configuration for `create_team`
1015
+ # @return [::Gapic::Config::Method]
1016
+ #
1017
+ attr_reader :create_team
1018
+ ##
1019
+ # RPC-specific configuration for `batch_create_teams`
1020
+ # @return [::Gapic::Config::Method]
1021
+ #
1022
+ attr_reader :batch_create_teams
1023
+ ##
1024
+ # RPC-specific configuration for `update_team`
1025
+ # @return [::Gapic::Config::Method]
1026
+ #
1027
+ attr_reader :update_team
1028
+ ##
1029
+ # RPC-specific configuration for `batch_update_teams`
1030
+ # @return [::Gapic::Config::Method]
1031
+ #
1032
+ attr_reader :batch_update_teams
1033
+ ##
1034
+ # RPC-specific configuration for `batch_activate_teams`
1035
+ # @return [::Gapic::Config::Method]
1036
+ #
1037
+ attr_reader :batch_activate_teams
1038
+ ##
1039
+ # RPC-specific configuration for `batch_deactivate_teams`
1040
+ # @return [::Gapic::Config::Method]
1041
+ #
1042
+ attr_reader :batch_deactivate_teams
1043
+
1044
+ # @private
1045
+ def initialize parent_rpcs = nil
1046
+ get_team_config = parent_rpcs.get_team if parent_rpcs.respond_to? :get_team
1047
+ @get_team = ::Gapic::Config::Method.new get_team_config
1048
+ list_teams_config = parent_rpcs.list_teams if parent_rpcs.respond_to? :list_teams
1049
+ @list_teams = ::Gapic::Config::Method.new list_teams_config
1050
+ create_team_config = parent_rpcs.create_team if parent_rpcs.respond_to? :create_team
1051
+ @create_team = ::Gapic::Config::Method.new create_team_config
1052
+ batch_create_teams_config = parent_rpcs.batch_create_teams if parent_rpcs.respond_to? :batch_create_teams
1053
+ @batch_create_teams = ::Gapic::Config::Method.new batch_create_teams_config
1054
+ update_team_config = parent_rpcs.update_team if parent_rpcs.respond_to? :update_team
1055
+ @update_team = ::Gapic::Config::Method.new update_team_config
1056
+ batch_update_teams_config = parent_rpcs.batch_update_teams if parent_rpcs.respond_to? :batch_update_teams
1057
+ @batch_update_teams = ::Gapic::Config::Method.new batch_update_teams_config
1058
+ batch_activate_teams_config = parent_rpcs.batch_activate_teams if parent_rpcs.respond_to? :batch_activate_teams
1059
+ @batch_activate_teams = ::Gapic::Config::Method.new batch_activate_teams_config
1060
+ batch_deactivate_teams_config = parent_rpcs.batch_deactivate_teams if parent_rpcs.respond_to? :batch_deactivate_teams
1061
+ @batch_deactivate_teams = ::Gapic::Config::Method.new batch_deactivate_teams_config
1062
+
1063
+ yield self if block_given?
1064
+ end
1065
+ end
1066
+ end
1067
+ end
1068
+ end
1069
+ end
1070
+ end
1071
+ end
1072
+ end
1073
+ end