@google-ads/admanager 0.4.1 → 0.5.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 (276) hide show
  1. package/README.md +68 -0
  2. package/build/protos/google/ads/admanager/v1/ad_break_service.proto +1 -1
  3. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +44 -0
  4. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +62 -0
  5. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +237 -0
  6. package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +7 -7
  7. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +6 -6
  8. package/build/protos/google/ads/admanager/v1/application_messages.proto +47 -0
  9. package/build/protos/google/ads/admanager/v1/application_service.proto +129 -0
  10. package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +49 -0
  11. package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +129 -0
  12. package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +3 -3
  13. package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +45 -0
  14. package/build/protos/google/ads/admanager/v1/browser_language_service.proto +129 -0
  15. package/build/protos/google/ads/admanager/v1/browser_messages.proto +51 -0
  16. package/build/protos/google/ads/admanager/v1/browser_service.proto +128 -0
  17. package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +41 -0
  18. package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +50 -0
  19. package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +129 -0
  20. package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +44 -0
  21. package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +61 -0
  22. package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +130 -0
  23. package/build/protos/google/ads/admanager/v1/company_messages.proto +14 -12
  24. package/build/protos/google/ads/admanager/v1/company_service.proto +3 -3
  25. package/build/protos/google/ads/admanager/v1/contact_enums.proto +57 -0
  26. package/build/protos/google/ads/admanager/v1/contact_messages.proto +45 -2
  27. package/build/protos/google/ads/admanager/v1/contact_service.proto +244 -0
  28. package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +53 -0
  29. package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +129 -0
  30. package/build/protos/google/ads/admanager/v1/content_label_messages.proto +45 -0
  31. package/build/protos/google/ads/admanager/v1/content_label_service.proto +129 -0
  32. package/build/protos/google/ads/admanager/v1/content_messages.proto +45 -0
  33. package/build/protos/google/ads/admanager/v1/content_service.proto +128 -0
  34. package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +63 -0
  35. package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +253 -0
  36. package/build/protos/google/ads/admanager/v1/creative_template_service.proto +130 -0
  37. package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +47 -0
  38. package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +5 -2
  39. package/build/protos/google/ads/admanager/v1/custom_field_service.proto +185 -3
  40. package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +7 -6
  41. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +1 -1
  42. package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +9 -9
  43. package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +1 -1
  44. package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +45 -0
  45. package/build/protos/google/ads/admanager/v1/device_capability_service.proto +130 -0
  46. package/build/protos/google/ads/admanager/v1/device_category_service.proto +2 -2
  47. package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +46 -0
  48. package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +131 -0
  49. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +1 -1
  50. package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +47 -0
  51. package/build/protos/google/ads/admanager/v1/geo_target_service.proto +3 -3
  52. package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +48 -0
  53. package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +129 -0
  54. package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +54 -0
  55. package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +129 -0
  56. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +55 -0
  57. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +133 -0
  58. package/build/protos/google/ads/admanager/v1/operating_system_service.proto +2 -2
  59. package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +2 -2
  60. package/build/protos/google/ads/admanager/v1/order_messages.proto +7 -8
  61. package/build/protos/google/ads/admanager/v1/order_service.proto +3 -3
  62. package/build/protos/google/ads/admanager/v1/placement_service.proto +220 -3
  63. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +2 -2
  64. package/build/protos/google/ads/admanager/v1/private_auction_service.proto +2 -2
  65. package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +1 -1
  66. package/build/protos/google/ads/admanager/v1/report_definition.proto +12478 -0
  67. package/build/protos/google/ads/admanager/v1/report_messages.proto +118 -3410
  68. package/build/protos/google/ads/admanager/v1/report_service.proto +10 -8
  69. package/build/protos/google/ads/admanager/v1/report_value.proto +73 -0
  70. package/build/protos/google/ads/admanager/v1/role_service.proto +3 -2
  71. package/build/protos/google/ads/admanager/v1/site_enums.proto +72 -0
  72. package/build/protos/google/ads/admanager/v1/site_messages.proto +77 -0
  73. package/build/protos/google/ads/admanager/v1/site_service.proto +295 -0
  74. package/build/protos/google/ads/admanager/v1/targeting.proto +311 -0
  75. package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +1 -1
  76. package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +3 -0
  77. package/build/protos/google/ads/admanager/v1/team_enums.proto +62 -0
  78. package/build/protos/google/ads/admanager/v1/team_messages.proto +30 -0
  79. package/build/protos/google/ads/admanager/v1/team_service.proto +303 -0
  80. package/build/protos/google/ads/admanager/v1/web_property.proto +54 -0
  81. package/build/protos/protos.d.ts +30764 -11410
  82. package/build/protos/protos.js +93644 -43318
  83. package/build/protos/protos.json +9909 -3734
  84. package/build/src/index.d.ts +58 -1
  85. package/build/src/index.js +40 -2
  86. package/build/src/index.js.map +1 -1
  87. package/build/src/v1/ad_break_service_client.d.ts +441 -0
  88. package/build/src/v1/ad_break_service_client.js +624 -0
  89. package/build/src/v1/ad_break_service_client.js.map +1 -1
  90. package/build/src/v1/ad_break_service_proto_list.json +49 -1
  91. package/build/src/v1/ad_review_center_ad_service_client.d.ts +1607 -0
  92. package/build/src/v1/ad_review_center_ad_service_client.js +2291 -0
  93. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -0
  94. package/build/src/v1/ad_review_center_ad_service_client_config.json +38 -0
  95. package/build/src/v1/ad_review_center_ad_service_proto_list.json +122 -0
  96. package/build/src/v1/ad_unit_service_client.d.ts +453 -12
  97. package/build/src/v1/ad_unit_service_client.js +632 -8
  98. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  99. package/build/src/v1/ad_unit_service_proto_list.json +49 -1
  100. package/build/src/v1/application_service_client.d.ts +1345 -0
  101. package/build/src/v1/application_service_client.js +1993 -0
  102. package/build/src/v1/application_service_client.js.map +1 -0
  103. package/build/src/v1/application_service_client_config.json +34 -0
  104. package/build/src/v1/application_service_proto_list.json +122 -0
  105. package/build/src/v1/audience_segment_service_client.d.ts +1345 -0
  106. package/build/src/v1/audience_segment_service_client.js +1993 -0
  107. package/build/src/v1/audience_segment_service_client.js.map +1 -0
  108. package/build/src/v1/audience_segment_service_client_config.json +34 -0
  109. package/build/src/v1/audience_segment_service_proto_list.json +122 -0
  110. package/build/src/v1/bandwidth_group_service_client.d.ts +447 -6
  111. package/build/src/v1/bandwidth_group_service_client.js +628 -4
  112. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  113. package/build/src/v1/bandwidth_group_service_proto_list.json +49 -1
  114. package/build/src/v1/browser_language_service_client.d.ts +1345 -0
  115. package/build/src/v1/browser_language_service_client.js +1993 -0
  116. package/build/src/v1/browser_language_service_client.js.map +1 -0
  117. package/build/src/v1/browser_language_service_client_config.json +34 -0
  118. package/build/src/v1/browser_language_service_proto_list.json +122 -0
  119. package/build/src/v1/browser_service_client.d.ts +1345 -0
  120. package/build/src/v1/browser_service_client.js +1993 -0
  121. package/build/src/v1/browser_service_client.js.map +1 -0
  122. package/build/src/v1/browser_service_client_config.json +34 -0
  123. package/build/src/v1/browser_service_proto_list.json +122 -0
  124. package/build/src/v1/cms_metadata_key_service_client.d.ts +1345 -0
  125. package/build/src/v1/cms_metadata_key_service_client.js +1993 -0
  126. package/build/src/v1/cms_metadata_key_service_client.js.map +1 -0
  127. package/build/src/v1/cms_metadata_key_service_client_config.json +34 -0
  128. package/build/src/v1/cms_metadata_key_service_proto_list.json +122 -0
  129. package/build/src/v1/cms_metadata_value_service_client.d.ts +1345 -0
  130. package/build/src/v1/cms_metadata_value_service_client.js +1993 -0
  131. package/build/src/v1/cms_metadata_value_service_client.js.map +1 -0
  132. package/build/src/v1/cms_metadata_value_service_client_config.json +34 -0
  133. package/build/src/v1/cms_metadata_value_service_proto_list.json +122 -0
  134. package/build/src/v1/company_service_client.d.ts +447 -6
  135. package/build/src/v1/company_service_client.js +628 -4
  136. package/build/src/v1/company_service_client.js.map +1 -1
  137. package/build/src/v1/company_service_proto_list.json +49 -1
  138. package/build/src/v1/contact_service_client.d.ts +1456 -0
  139. package/build/src/v1/contact_service_client.js +2137 -0
  140. package/build/src/v1/contact_service_client.js.map +1 -0
  141. package/build/src/v1/contact_service_client_config.json +50 -0
  142. package/build/src/v1/contact_service_proto_list.json +122 -0
  143. package/build/src/v1/content_bundle_service_client.d.ts +1345 -0
  144. package/build/src/v1/content_bundle_service_client.js +1993 -0
  145. package/build/src/v1/content_bundle_service_client.js.map +1 -0
  146. package/build/src/v1/content_bundle_service_client_config.json +34 -0
  147. package/build/src/v1/content_bundle_service_proto_list.json +122 -0
  148. package/build/src/v1/content_label_service_client.d.ts +1345 -0
  149. package/build/src/v1/content_label_service_client.js +1993 -0
  150. package/build/src/v1/content_label_service_client.js.map +1 -0
  151. package/build/src/v1/content_label_service_client_config.json +34 -0
  152. package/build/src/v1/content_label_service_proto_list.json +122 -0
  153. package/build/src/v1/content_service_client.d.ts +1345 -0
  154. package/build/src/v1/content_service_client.js +1993 -0
  155. package/build/src/v1/content_service_client.js.map +1 -0
  156. package/build/src/v1/content_service_client_config.json +34 -0
  157. package/build/src/v1/content_service_proto_list.json +122 -0
  158. package/build/src/v1/creative_template_service_client.d.ts +1345 -0
  159. package/build/src/v1/creative_template_service_client.js +1993 -0
  160. package/build/src/v1/creative_template_service_client.js.map +1 -0
  161. package/build/src/v1/creative_template_service_client_config.json +34 -0
  162. package/build/src/v1/creative_template_service_proto_list.json +122 -0
  163. package/build/src/v1/custom_field_service_client.d.ts +610 -6
  164. package/build/src/v1/custom_field_service_client.js +845 -5
  165. package/build/src/v1/custom_field_service_client.js.map +1 -1
  166. package/build/src/v1/custom_field_service_client_config.json +24 -0
  167. package/build/src/v1/custom_field_service_proto_list.json +49 -1
  168. package/build/src/v1/custom_targeting_key_service_client.d.ts +441 -0
  169. package/build/src/v1/custom_targeting_key_service_client.js +624 -0
  170. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  171. package/build/src/v1/custom_targeting_key_service_proto_list.json +49 -1
  172. package/build/src/v1/custom_targeting_value_service_client.d.ts +441 -0
  173. package/build/src/v1/custom_targeting_value_service_client.js +624 -0
  174. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  175. package/build/src/v1/custom_targeting_value_service_proto_list.json +49 -1
  176. package/build/src/v1/device_capability_service_client.d.ts +1345 -0
  177. package/build/src/v1/device_capability_service_client.js +1993 -0
  178. package/build/src/v1/device_capability_service_client.js.map +1 -0
  179. package/build/src/v1/device_capability_service_client_config.json +34 -0
  180. package/build/src/v1/device_capability_service_proto_list.json +122 -0
  181. package/build/src/v1/device_category_service_client.d.ts +444 -3
  182. package/build/src/v1/device_category_service_client.js +626 -2
  183. package/build/src/v1/device_category_service_client.js.map +1 -1
  184. package/build/src/v1/device_category_service_proto_list.json +49 -1
  185. package/build/src/v1/device_manufacturer_service_client.d.ts +1346 -0
  186. package/build/src/v1/device_manufacturer_service_client.js +1993 -0
  187. package/build/src/v1/device_manufacturer_service_client.js.map +1 -0
  188. package/build/src/v1/device_manufacturer_service_client_config.json +34 -0
  189. package/build/src/v1/device_manufacturer_service_proto_list.json +122 -0
  190. package/build/src/v1/entity_signals_mapping_service_client.d.ts +441 -0
  191. package/build/src/v1/entity_signals_mapping_service_client.js +624 -0
  192. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  193. package/build/src/v1/entity_signals_mapping_service_proto_list.json +49 -1
  194. package/build/src/v1/gapic_metadata.json +1026 -4
  195. package/build/src/v1/geo_target_service_client.d.ts +447 -6
  196. package/build/src/v1/geo_target_service_client.js +628 -4
  197. package/build/src/v1/geo_target_service_client.js.map +1 -1
  198. package/build/src/v1/geo_target_service_proto_list.json +49 -1
  199. package/build/src/v1/index.d.ts +19 -0
  200. package/build/src/v1/index.js +39 -1
  201. package/build/src/v1/index.js.map +1 -1
  202. package/build/src/v1/mobile_carrier_service_client.d.ts +1345 -0
  203. package/build/src/v1/mobile_carrier_service_client.js +1993 -0
  204. package/build/src/v1/mobile_carrier_service_client.js.map +1 -0
  205. package/build/src/v1/mobile_carrier_service_client_config.json +34 -0
  206. package/build/src/v1/mobile_carrier_service_proto_list.json +122 -0
  207. package/build/src/v1/mobile_device_service_client.d.ts +1345 -0
  208. package/build/src/v1/mobile_device_service_client.js +1993 -0
  209. package/build/src/v1/mobile_device_service_client.js.map +1 -0
  210. package/build/src/v1/mobile_device_service_client_config.json +34 -0
  211. package/build/src/v1/mobile_device_service_proto_list.json +122 -0
  212. package/build/src/v1/mobile_device_submodel_service_client.d.ts +1352 -0
  213. package/build/src/v1/mobile_device_submodel_service_client.js +1997 -0
  214. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -0
  215. package/build/src/v1/mobile_device_submodel_service_client_config.json +34 -0
  216. package/build/src/v1/mobile_device_submodel_service_proto_list.json +122 -0
  217. package/build/src/v1/network_service_client.d.ts +441 -0
  218. package/build/src/v1/network_service_client.js +624 -0
  219. package/build/src/v1/network_service_client.js.map +1 -1
  220. package/build/src/v1/network_service_proto_list.json +49 -1
  221. package/build/src/v1/operating_system_service_client.d.ts +444 -3
  222. package/build/src/v1/operating_system_service_client.js +626 -2
  223. package/build/src/v1/operating_system_service_client.js.map +1 -1
  224. package/build/src/v1/operating_system_service_proto_list.json +49 -1
  225. package/build/src/v1/operating_system_version_service_client.d.ts +444 -3
  226. package/build/src/v1/operating_system_version_service_client.js +626 -2
  227. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  228. package/build/src/v1/operating_system_version_service_proto_list.json +49 -1
  229. package/build/src/v1/order_service_client.d.ts +447 -6
  230. package/build/src/v1/order_service_client.js +628 -4
  231. package/build/src/v1/order_service_client.js.map +1 -1
  232. package/build/src/v1/order_service_proto_list.json +49 -1
  233. package/build/src/v1/placement_service_client.d.ts +638 -6
  234. package/build/src/v1/placement_service_client.js +937 -61
  235. package/build/src/v1/placement_service_client.js.map +1 -1
  236. package/build/src/v1/placement_service_client_config.json +28 -0
  237. package/build/src/v1/placement_service_proto_list.json +49 -1
  238. package/build/src/v1/private_auction_deal_service_client.d.ts +444 -3
  239. package/build/src/v1/private_auction_deal_service_client.js +626 -2
  240. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  241. package/build/src/v1/private_auction_deal_service_proto_list.json +49 -1
  242. package/build/src/v1/private_auction_service_client.d.ts +444 -3
  243. package/build/src/v1/private_auction_service_client.js +626 -2
  244. package/build/src/v1/private_auction_service_client.js.map +1 -1
  245. package/build/src/v1/private_auction_service_proto_list.json +49 -1
  246. package/build/src/v1/programmatic_buyer_service_client.d.ts +441 -0
  247. package/build/src/v1/programmatic_buyer_service_client.js +624 -0
  248. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  249. package/build/src/v1/programmatic_buyer_service_proto_list.json +49 -1
  250. package/build/src/v1/report_service_client.d.ts +461 -17
  251. package/build/src/v1/report_service_client.js +634 -8
  252. package/build/src/v1/report_service_client.js.map +1 -1
  253. package/build/src/v1/report_service_proto_list.json +49 -1
  254. package/build/src/v1/role_service_client.d.ts +447 -3
  255. package/build/src/v1/role_service_client.js +628 -2
  256. package/build/src/v1/role_service_client.js.map +1 -1
  257. package/build/src/v1/role_service_proto_list.json +49 -1
  258. package/build/src/v1/site_service_client.d.ts +1506 -0
  259. package/build/src/v1/site_service_client.js +2209 -0
  260. package/build/src/v1/site_service_client.js.map +1 -0
  261. package/build/src/v1/site_service_client_config.json +58 -0
  262. package/build/src/v1/site_service_proto_list.json +122 -0
  263. package/build/src/v1/taxonomy_category_service_client.d.ts +441 -0
  264. package/build/src/v1/taxonomy_category_service_client.js +624 -0
  265. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  266. package/build/src/v1/taxonomy_category_service_proto_list.json +49 -1
  267. package/build/src/v1/team_service_client.d.ts +1508 -0
  268. package/build/src/v1/team_service_client.js +2209 -0
  269. package/build/src/v1/team_service_client.js.map +1 -0
  270. package/build/src/v1/team_service_client_config.json +58 -0
  271. package/build/src/v1/team_service_proto_list.json +122 -0
  272. package/build/src/v1/user_service_client.d.ts +441 -0
  273. package/build/src/v1/user_service_client.js +624 -0
  274. package/build/src/v1/user_service_client.js.map +1 -1
  275. package/build/src/v1/user_service_proto_list.json +49 -1
  276. package/package.json +1 -1
@@ -0,0 +1,2291 @@
1
+ "use strict";
2
+ // Copyright 2025 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.AdReviewCenterAdServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ const google_gax_1 = require("google-gax");
23
+ /**
24
+ * Client JSON configuration object, loaded from
25
+ * `src/v1/ad_review_center_ad_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./ad_review_center_ad_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling AdReviewCenterAd objects.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class AdReviewCenterAdServiceClient {
36
+ _terminated = false;
37
+ _opts;
38
+ _providedCustomServicePath;
39
+ _gaxModule;
40
+ _gaxGrpc;
41
+ _protos;
42
+ _defaults;
43
+ _universeDomain;
44
+ _servicePath;
45
+ _log = google_gax_1.loggingUtils.log('admanager');
46
+ auth;
47
+ descriptors = {
48
+ page: {},
49
+ stream: {},
50
+ longrunning: {},
51
+ batching: {},
52
+ };
53
+ warn;
54
+ innerApiCalls;
55
+ pathTemplates;
56
+ operationsClient;
57
+ adReviewCenterAdServiceStub;
58
+ /**
59
+ * Construct an instance of AdReviewCenterAdServiceClient.
60
+ *
61
+ * @param {object} [options] - The configuration object.
62
+ * The options accepted by the constructor are described in detail
63
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
64
+ * The common options are:
65
+ * @param {object} [options.credentials] - Credentials object.
66
+ * @param {string} [options.credentials.client_email]
67
+ * @param {string} [options.credentials.private_key]
68
+ * @param {string} [options.email] - Account email address. Required when
69
+ * using a .pem or .p12 keyFilename.
70
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
71
+ * .p12 key downloaded from the Google Developers Console. If you provide
72
+ * a path to a JSON file, the projectId option below is not necessary.
73
+ * NOTE: .pem and .p12 require you to specify options.email as well.
74
+ * @param {number} [options.port] - The port on which to connect to
75
+ * the remote host.
76
+ * @param {string} [options.projectId] - The project ID from the Google
77
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
78
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
79
+ * app is running in an environment which supports
80
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
81
+ * your project ID will be detected automatically.
82
+ * @param {string} [options.apiEndpoint] - The domain name of the
83
+ * API remote host.
84
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
85
+ * Follows the structure of {@link gapicConfig}.
86
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
87
+ * For more information, please check the
88
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
89
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
90
+ * need to avoid loading the default gRPC version and want to use the fallback
91
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
92
+ * ```
93
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
94
+ * const client = new AdReviewCenterAdServiceClient({fallback: true}, gax);
95
+ * ```
96
+ */
97
+ constructor(opts, gaxInstance) {
98
+ // Ensure that options include all the required fields.
99
+ const staticMembers = this.constructor;
100
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
101
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
102
+ }
103
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
104
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
105
+ this._servicePath = 'admanager.' + this._universeDomain;
106
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
107
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
108
+ const port = opts?.port || staticMembers.port;
109
+ const clientConfig = opts?.clientConfig ?? {};
110
+ // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute).
111
+ if (!opts) {
112
+ opts = { fallback: true };
113
+ }
114
+ else {
115
+ opts.fallback = opts.fallback ?? true;
116
+ }
117
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
118
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
119
+ // Request numeric enum values if REST transport is used.
120
+ opts.numericEnums = true;
121
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
122
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
123
+ opts['scopes'] = staticMembers.scopes;
124
+ }
125
+ // Load google-gax module synchronously if needed
126
+ if (!gaxInstance) {
127
+ gaxInstance = require('google-gax');
128
+ }
129
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
130
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
131
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
132
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
133
+ // Save options to use in initialize() method.
134
+ this._opts = opts;
135
+ // Save the auth object to the client, for use by other methods.
136
+ this.auth = this._gaxGrpc.auth;
137
+ // Set useJWTAccessWithScope on the auth object.
138
+ this.auth.useJWTAccessWithScope = true;
139
+ // Set defaultServicePath on the auth object.
140
+ this.auth.defaultServicePath = this._servicePath;
141
+ // Set the default scopes in auth client if needed.
142
+ if (servicePath === this._servicePath) {
143
+ this.auth.defaultScopes = staticMembers.scopes;
144
+ }
145
+ // Determine the client header string.
146
+ const clientHeader = [
147
+ `gax/${this._gaxModule.version}`,
148
+ `gapic/${version}`,
149
+ ];
150
+ if (typeof process === 'object' && 'versions' in process) {
151
+ clientHeader.push(`gl-node/${process.versions.node}`);
152
+ }
153
+ else {
154
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
155
+ }
156
+ if (!opts.fallback) {
157
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
158
+ }
159
+ else {
160
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
161
+ }
162
+ if (opts.libName && opts.libVersion) {
163
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
164
+ }
165
+ // Load the applicable protos.
166
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
167
+ // This API contains "path templates"; forward-slash-separated
168
+ // identifiers to uniquely identify resources within the API.
169
+ // Create useful helper objects for these.
170
+ this.pathTemplates = {
171
+ adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
172
+ adReviewCenterAdPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}'),
173
+ adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
174
+ applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
175
+ audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
176
+ bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
177
+ browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
178
+ browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
179
+ cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
180
+ cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
181
+ companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
182
+ contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
183
+ contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
184
+ contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
185
+ contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
186
+ creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
187
+ customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
188
+ customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
189
+ customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
190
+ deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
191
+ deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
192
+ deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
193
+ entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
194
+ geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
195
+ labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
196
+ liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
197
+ mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
198
+ mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
199
+ mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
200
+ networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
201
+ operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
202
+ operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
203
+ orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
204
+ placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
205
+ privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
206
+ privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
207
+ programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
208
+ reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
209
+ rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
210
+ sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
211
+ taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
212
+ teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
213
+ userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
214
+ webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
215
+ };
216
+ // Some of the methods on this service return "paged" results,
217
+ // (e.g. 50 results at a time, with tokens to get subsequent
218
+ // pages). Denote the keys used for pagination and results.
219
+ this.descriptors.page = {
220
+ searchAdReviewCenterAds: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'adReviewCenterAds')
221
+ };
222
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
223
+ // This API contains "long-running operations", which return a
224
+ // an Operation object that allows for tracking of the operation,
225
+ // rather than holding a request open.
226
+ const lroOptions = {
227
+ auth: this.auth,
228
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
229
+ };
230
+ if (opts.fallback) {
231
+ lroOptions.protoJson = protoFilesRoot;
232
+ lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=networks/*/operations/reports/runs/*}', }];
233
+ }
234
+ this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
235
+ const batchAllowAdReviewCenterAdsResponse = protoFilesRoot.lookup('.google.ads.admanager.v1.BatchAllowAdReviewCenterAdsResponse');
236
+ const batchAllowAdReviewCenterAdsMetadata = protoFilesRoot.lookup('.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata');
237
+ const batchBlockAdReviewCenterAdsResponse = protoFilesRoot.lookup('.google.ads.admanager.v1.BatchBlockAdReviewCenterAdsResponse');
238
+ const batchBlockAdReviewCenterAdsMetadata = protoFilesRoot.lookup('.google.ads.admanager.v1.BatchAdReviewCenterAdsOperationMetadata');
239
+ this.descriptors.longrunning = {
240
+ batchAllowAdReviewCenterAds: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchAllowAdReviewCenterAdsResponse.decode.bind(batchAllowAdReviewCenterAdsResponse), batchAllowAdReviewCenterAdsMetadata.decode.bind(batchAllowAdReviewCenterAdsMetadata)),
241
+ batchBlockAdReviewCenterAds: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchBlockAdReviewCenterAdsResponse.decode.bind(batchBlockAdReviewCenterAdsResponse), batchBlockAdReviewCenterAdsMetadata.decode.bind(batchBlockAdReviewCenterAdsMetadata))
242
+ };
243
+ // Put together the default options sent with requests.
244
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.AdReviewCenterAdService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
245
+ // Set up a dictionary of "inner API calls"; the core implementation
246
+ // of calling the API is handled in `google-gax`, with this code
247
+ // merely providing the destination and request information.
248
+ this.innerApiCalls = {};
249
+ // Add a warn function to the client constructor so it can be easily tested.
250
+ this.warn = this._gaxModule.warn;
251
+ }
252
+ /**
253
+ * Initialize the client.
254
+ * Performs asynchronous operations (such as authentication) and prepares the client.
255
+ * This function will be called automatically when any class method is called for the
256
+ * first time, but if you need to initialize it before calling an actual method,
257
+ * feel free to call initialize() directly.
258
+ *
259
+ * You can await on this method if you want to make sure the client is initialized.
260
+ *
261
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
262
+ */
263
+ initialize() {
264
+ // If the client stub promise is already initialized, return immediately.
265
+ if (this.adReviewCenterAdServiceStub) {
266
+ return this.adReviewCenterAdServiceStub;
267
+ }
268
+ // Put together the "service stub" for
269
+ // google.ads.admanager.v1.AdReviewCenterAdService.
270
+ this.adReviewCenterAdServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
271
+ this._protos.lookupService('google.ads.admanager.v1.AdReviewCenterAdService') :
272
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
273
+ this._protos.google.ads.admanager.v1.AdReviewCenterAdService, this._opts, this._providedCustomServicePath);
274
+ // Iterate over each of the methods that the service provides
275
+ // and create an API call method for each.
276
+ const adReviewCenterAdServiceStubMethods = ['searchAdReviewCenterAds', 'batchAllowAdReviewCenterAds', 'batchBlockAdReviewCenterAds'];
277
+ for (const methodName of adReviewCenterAdServiceStubMethods) {
278
+ const callPromise = this.adReviewCenterAdServiceStub.then(stub => (...args) => {
279
+ if (this._terminated) {
280
+ return Promise.reject('The client has already been closed.');
281
+ }
282
+ const func = stub[methodName];
283
+ return func.apply(stub, args);
284
+ }, (err) => () => {
285
+ throw err;
286
+ });
287
+ const descriptor = this.descriptors.page[methodName] ||
288
+ this.descriptors.longrunning[methodName] ||
289
+ undefined;
290
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
291
+ this.innerApiCalls[methodName] = apiCall;
292
+ }
293
+ return this.adReviewCenterAdServiceStub;
294
+ }
295
+ /**
296
+ * The DNS address for this API service.
297
+ * @deprecated Use the apiEndpoint method of the client instance.
298
+ * @returns {string} The DNS address for this service.
299
+ */
300
+ static get servicePath() {
301
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
302
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
303
+ }
304
+ return 'admanager.googleapis.com';
305
+ }
306
+ /**
307
+ * The DNS address for this API service - same as servicePath.
308
+ * @deprecated Use the apiEndpoint method of the client instance.
309
+ * @returns {string} The DNS address for this service.
310
+ */
311
+ static get apiEndpoint() {
312
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
313
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
314
+ }
315
+ return 'admanager.googleapis.com';
316
+ }
317
+ /**
318
+ * The DNS address for this API service.
319
+ * @returns {string} The DNS address for this service.
320
+ */
321
+ get apiEndpoint() {
322
+ return this._servicePath;
323
+ }
324
+ get universeDomain() {
325
+ return this._universeDomain;
326
+ }
327
+ /**
328
+ * The port for this API service.
329
+ * @returns {number} The default port for this service.
330
+ */
331
+ static get port() {
332
+ return 443;
333
+ }
334
+ /**
335
+ * The scopes needed to make gRPC calls for every method defined
336
+ * in this service.
337
+ * @returns {string[]} List of default scopes.
338
+ */
339
+ static get scopes() {
340
+ return [
341
+ 'https://www.googleapis.com/auth/admanager'
342
+ ];
343
+ }
344
+ /**
345
+ * Return the project ID used by this class.
346
+ * @returns {Promise} A promise that resolves to string containing the project ID.
347
+ */
348
+ getProjectId(callback) {
349
+ if (callback) {
350
+ this.auth.getProjectId(callback);
351
+ return;
352
+ }
353
+ return this.auth.getProjectId();
354
+ }
355
+ batchAllowAdReviewCenterAds(request, optionsOrCallback, callback) {
356
+ request = request || {};
357
+ let options;
358
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
359
+ callback = optionsOrCallback;
360
+ options = {};
361
+ }
362
+ else {
363
+ options = optionsOrCallback;
364
+ }
365
+ options = options || {};
366
+ options.otherArgs = options.otherArgs || {};
367
+ options.otherArgs.headers = options.otherArgs.headers || {};
368
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
369
+ 'parent': request.parent ?? '',
370
+ });
371
+ this.initialize().catch(err => { throw err; });
372
+ const wrappedCallback = callback
373
+ ? (error, response, rawResponse, _) => {
374
+ this._log.info('batchAllowAdReviewCenterAds response %j', rawResponse);
375
+ callback(error, response, rawResponse, _); // We verified callback above.
376
+ }
377
+ : undefined;
378
+ this._log.info('batchAllowAdReviewCenterAds request %j', request);
379
+ return this.innerApiCalls.batchAllowAdReviewCenterAds(request, options, wrappedCallback)
380
+ ?.then(([response, rawResponse, _]) => {
381
+ this._log.info('batchAllowAdReviewCenterAds response %j', rawResponse);
382
+ return [response, rawResponse, _];
383
+ });
384
+ }
385
+ /**
386
+ * Check the status of the long running operation returned by `batchAllowAdReviewCenterAds()`.
387
+ * @param {String} name
388
+ * The operation name that will be passed.
389
+ * @returns {Promise} - The promise which resolves to an object.
390
+ * The decoded operation object has result and metadata field to get information from.
391
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
392
+ * for more details and examples.
393
+ * @example <caption>include:samples/generated/v1/ad_review_center_ad_service.batch_allow_ad_review_center_ads.js</caption>
394
+ * region_tag:admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_async
395
+ */
396
+ async checkBatchAllowAdReviewCenterAdsProgress(name) {
397
+ this._log.info('batchAllowAdReviewCenterAds long-running');
398
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
399
+ const [operation] = await this.operationsClient.getOperation(request);
400
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.batchAllowAdReviewCenterAds, this._gaxModule.createDefaultBackoffSettings());
401
+ return decodeOperation;
402
+ }
403
+ batchBlockAdReviewCenterAds(request, optionsOrCallback, callback) {
404
+ request = request || {};
405
+ let options;
406
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
407
+ callback = optionsOrCallback;
408
+ options = {};
409
+ }
410
+ else {
411
+ options = optionsOrCallback;
412
+ }
413
+ options = options || {};
414
+ options.otherArgs = options.otherArgs || {};
415
+ options.otherArgs.headers = options.otherArgs.headers || {};
416
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
417
+ 'parent': request.parent ?? '',
418
+ });
419
+ this.initialize().catch(err => { throw err; });
420
+ const wrappedCallback = callback
421
+ ? (error, response, rawResponse, _) => {
422
+ this._log.info('batchBlockAdReviewCenterAds response %j', rawResponse);
423
+ callback(error, response, rawResponse, _); // We verified callback above.
424
+ }
425
+ : undefined;
426
+ this._log.info('batchBlockAdReviewCenterAds request %j', request);
427
+ return this.innerApiCalls.batchBlockAdReviewCenterAds(request, options, wrappedCallback)
428
+ ?.then(([response, rawResponse, _]) => {
429
+ this._log.info('batchBlockAdReviewCenterAds response %j', rawResponse);
430
+ return [response, rawResponse, _];
431
+ });
432
+ }
433
+ /**
434
+ * Check the status of the long running operation returned by `batchBlockAdReviewCenterAds()`.
435
+ * @param {String} name
436
+ * The operation name that will be passed.
437
+ * @returns {Promise} - The promise which resolves to an object.
438
+ * The decoded operation object has result and metadata field to get information from.
439
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
440
+ * for more details and examples.
441
+ * @example <caption>include:samples/generated/v1/ad_review_center_ad_service.batch_block_ad_review_center_ads.js</caption>
442
+ * region_tag:admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_async
443
+ */
444
+ async checkBatchBlockAdReviewCenterAdsProgress(name) {
445
+ this._log.info('batchBlockAdReviewCenterAds long-running');
446
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
447
+ const [operation] = await this.operationsClient.getOperation(request);
448
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.batchBlockAdReviewCenterAds, this._gaxModule.createDefaultBackoffSettings());
449
+ return decodeOperation;
450
+ }
451
+ searchAdReviewCenterAds(request, optionsOrCallback, callback) {
452
+ request = request || {};
453
+ let options;
454
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
455
+ callback = optionsOrCallback;
456
+ options = {};
457
+ }
458
+ else {
459
+ options = optionsOrCallback;
460
+ }
461
+ options = options || {};
462
+ options.otherArgs = options.otherArgs || {};
463
+ options.otherArgs.headers = options.otherArgs.headers || {};
464
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
465
+ 'parent': request.parent ?? '',
466
+ });
467
+ this.initialize().catch(err => { throw err; });
468
+ const wrappedCallback = callback
469
+ ? (error, values, nextPageRequest, rawResponse) => {
470
+ this._log.info('searchAdReviewCenterAds values %j', values);
471
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
472
+ }
473
+ : undefined;
474
+ this._log.info('searchAdReviewCenterAds request %j', request);
475
+ return this.innerApiCalls
476
+ .searchAdReviewCenterAds(request, options, wrappedCallback)
477
+ ?.then(([response, input, output]) => {
478
+ this._log.info('searchAdReviewCenterAds values %j', response);
479
+ return [response, input, output];
480
+ });
481
+ }
482
+ /**
483
+ * Equivalent to `searchAdReviewCenterAds`, but returns a NodeJS Stream object.
484
+ * @param {Object} request
485
+ * The request object that will be sent.
486
+ * @param {string} request.parent
487
+ * Required. The parent, which owns this collection of AdReviewCenterAds.
488
+ * Format: networks/{network_code}/webProperties/{web_property_code}
489
+ *
490
+ * Since a network can only have a single web property of each
491
+ * `ExchangeSyndicationProduct`, you can use the
492
+ * `ExchangeSyndicationProduct` as an alias for the web property code:
493
+ *
494
+ * `networks/{network_code}/webProperties/display`
495
+ *
496
+ * `networks/{network_code}/webProperties/videoAndAudio`
497
+ *
498
+ * `networks/{network_code}/webProperties/mobileApp`
499
+ *
500
+ * `networks/{network_code}/webProperties/games`
501
+ * @param {number} [request.pageSize]
502
+ * Optional. The maximum number of AdReviewCenterAds to return. The service
503
+ * may return fewer than this value. If unspecified, at most 50
504
+ * AdReviewCenterAds will be returned. The maximum value is 1000; values
505
+ * greater than 1000 will be coerced to 1000.
506
+ * @param {string} [request.pageToken]
507
+ * Optional. The page token to fetch the next page of AdReviewCenterAds. This
508
+ * is the value returned from a previous Search request, or empty.
509
+ * @param {google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus} request.status
510
+ * Required. Only return ads with the given status.
511
+ * @param {string[]} [request.adReviewCenterAdId]
512
+ * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
513
+ * @param {google.type.Interval} [request.dateTimeRange]
514
+ * Optional. If provided, only return ads that served within the given date
515
+ * range (inclusive). The date range must be within the last 30 days. If not
516
+ * provided, the date range will be the last 30 days.
517
+ * @param {string[]} [request.searchText]
518
+ * Optional. If provided, restrict the search to AdReviewCenterAds associated
519
+ * with the text (including any text on the ad or in the destination URL). If
520
+ * more than one value is provided, the search will combine them in a logical
521
+ * AND. For example, ['car', 'blue'] will match ads that contain both "car"
522
+ * and "blue", but not an ad that only contains "car".
523
+ * @param {number[]} [request.buyerAccountId]
524
+ * Optional. If provided, restrict the search to creatives belonging to one of
525
+ * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
526
+ * buyer account IDs can be found via the ProgrammaticBuyerService.
527
+ * @param {object} [options]
528
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
529
+ * @returns {Stream}
530
+ * An object stream which emits an object representing {@link protos.google.ads.admanager.v1.AdReviewCenterAd|AdReviewCenterAd} on 'data' event.
531
+ * The client library will perform auto-pagination by default: it will call the API as many
532
+ * times as needed. Note that it can affect your quota.
533
+ * We recommend using `searchAdReviewCenterAdsAsync()`
534
+ * method described below for async iteration which you can stop as needed.
535
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
536
+ * for more details and examples.
537
+ */
538
+ searchAdReviewCenterAdsStream(request, options) {
539
+ request = request || {};
540
+ options = options || {};
541
+ options.otherArgs = options.otherArgs || {};
542
+ options.otherArgs.headers = options.otherArgs.headers || {};
543
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
544
+ 'parent': request.parent ?? '',
545
+ });
546
+ const defaultCallSettings = this._defaults['searchAdReviewCenterAds'];
547
+ const callSettings = defaultCallSettings.merge(options);
548
+ this.initialize().catch(err => { throw err; });
549
+ this._log.info('searchAdReviewCenterAds stream %j', request);
550
+ return this.descriptors.page.searchAdReviewCenterAds.createStream(this.innerApiCalls.searchAdReviewCenterAds, request, callSettings);
551
+ }
552
+ /**
553
+ * Equivalent to `searchAdReviewCenterAds`, but returns an iterable object.
554
+ *
555
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
556
+ * @param {Object} request
557
+ * The request object that will be sent.
558
+ * @param {string} request.parent
559
+ * Required. The parent, which owns this collection of AdReviewCenterAds.
560
+ * Format: networks/{network_code}/webProperties/{web_property_code}
561
+ *
562
+ * Since a network can only have a single web property of each
563
+ * `ExchangeSyndicationProduct`, you can use the
564
+ * `ExchangeSyndicationProduct` as an alias for the web property code:
565
+ *
566
+ * `networks/{network_code}/webProperties/display`
567
+ *
568
+ * `networks/{network_code}/webProperties/videoAndAudio`
569
+ *
570
+ * `networks/{network_code}/webProperties/mobileApp`
571
+ *
572
+ * `networks/{network_code}/webProperties/games`
573
+ * @param {number} [request.pageSize]
574
+ * Optional. The maximum number of AdReviewCenterAds to return. The service
575
+ * may return fewer than this value. If unspecified, at most 50
576
+ * AdReviewCenterAds will be returned. The maximum value is 1000; values
577
+ * greater than 1000 will be coerced to 1000.
578
+ * @param {string} [request.pageToken]
579
+ * Optional. The page token to fetch the next page of AdReviewCenterAds. This
580
+ * is the value returned from a previous Search request, or empty.
581
+ * @param {google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus} request.status
582
+ * Required. Only return ads with the given status.
583
+ * @param {string[]} [request.adReviewCenterAdId]
584
+ * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
585
+ * @param {google.type.Interval} [request.dateTimeRange]
586
+ * Optional. If provided, only return ads that served within the given date
587
+ * range (inclusive). The date range must be within the last 30 days. If not
588
+ * provided, the date range will be the last 30 days.
589
+ * @param {string[]} [request.searchText]
590
+ * Optional. If provided, restrict the search to AdReviewCenterAds associated
591
+ * with the text (including any text on the ad or in the destination URL). If
592
+ * more than one value is provided, the search will combine them in a logical
593
+ * AND. For example, ['car', 'blue'] will match ads that contain both "car"
594
+ * and "blue", but not an ad that only contains "car".
595
+ * @param {number[]} [request.buyerAccountId]
596
+ * Optional. If provided, restrict the search to creatives belonging to one of
597
+ * the given Adx buyer account IDs. Only applicable to RTB creatives. Adx
598
+ * buyer account IDs can be found via the ProgrammaticBuyerService.
599
+ * @param {object} [options]
600
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
601
+ * @returns {Object}
602
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
603
+ * When you iterate the returned iterable, each element will be an object representing
604
+ * {@link protos.google.ads.admanager.v1.AdReviewCenterAd|AdReviewCenterAd}. The API will be called under the hood as needed, once per the page,
605
+ * so you can stop the iteration when you don't need more results.
606
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
607
+ * for more details and examples.
608
+ * @example <caption>include:samples/generated/v1/ad_review_center_ad_service.search_ad_review_center_ads.js</caption>
609
+ * region_tag:admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_async
610
+ */
611
+ searchAdReviewCenterAdsAsync(request, options) {
612
+ request = request || {};
613
+ options = options || {};
614
+ options.otherArgs = options.otherArgs || {};
615
+ options.otherArgs.headers = options.otherArgs.headers || {};
616
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
617
+ 'parent': request.parent ?? '',
618
+ });
619
+ const defaultCallSettings = this._defaults['searchAdReviewCenterAds'];
620
+ const callSettings = defaultCallSettings.merge(options);
621
+ this.initialize().catch(err => { throw err; });
622
+ this._log.info('searchAdReviewCenterAds iterate %j', request);
623
+ return this.descriptors.page.searchAdReviewCenterAds.asyncIterate(this.innerApiCalls['searchAdReviewCenterAds'], request, callSettings);
624
+ }
625
+ /**
626
+ * Gets the latest state of a long-running operation. Clients can use this
627
+ * method to poll the operation result at intervals as recommended by the API
628
+ * service.
629
+ *
630
+ * @param {Object} request - The request object that will be sent.
631
+ * @param {string} request.name - The name of the operation resource.
632
+ * @param {Object=} options
633
+ * Optional parameters. You can override the default settings for this call,
634
+ * e.g, timeout, retries, paginations, etc. See {@link
635
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
636
+ * for the details.
637
+ * @param {function(?Error, ?Object)=} callback
638
+ * The function which will be called with the result of the API call.
639
+ *
640
+ * The second parameter to the callback is an object representing
641
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
642
+ * @return {Promise} - The promise which resolves to an array.
643
+ * The first element of the array is an object representing
644
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
645
+ * The promise has a method named "cancel" which cancels the ongoing API call.
646
+ *
647
+ * @example
648
+ * ```
649
+ * const client = longrunning.operationsClient();
650
+ * const name = '';
651
+ * const [response] = await client.getOperation({name});
652
+ * // doThingsWith(response)
653
+ * ```
654
+ */
655
+ getOperation(request, optionsOrCallback, callback) {
656
+ let options;
657
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
658
+ callback = optionsOrCallback;
659
+ options = {};
660
+ }
661
+ else {
662
+ options = optionsOrCallback;
663
+ }
664
+ options = options || {};
665
+ options.otherArgs = options.otherArgs || {};
666
+ options.otherArgs.headers = options.otherArgs.headers || {};
667
+ options.otherArgs.headers['x-goog-request-params'] =
668
+ this._gaxModule.routingHeader.fromParams({
669
+ name: request.name ?? '',
670
+ });
671
+ return this.operationsClient.getOperation(request, options, callback);
672
+ }
673
+ /**
674
+ * Lists operations that match the specified filter in the request. If the
675
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
676
+ *
677
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
678
+ *
679
+ * @param {Object} request - The request object that will be sent.
680
+ * @param {string} request.name - The name of the operation collection.
681
+ * @param {string} request.filter - The standard list filter.
682
+ * @param {number=} request.pageSize -
683
+ * The maximum number of resources contained in the underlying API
684
+ * response. If page streaming is performed per-resource, this
685
+ * parameter does not affect the return value. If page streaming is
686
+ * performed per-page, this determines the maximum number of
687
+ * resources in a page.
688
+ * @param {Object=} options
689
+ * Optional parameters. You can override the default settings for this call,
690
+ * e.g, timeout, retries, paginations, etc. See {@link
691
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
692
+ * details.
693
+ * @returns {Object}
694
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
695
+ *
696
+ * @example
697
+ * ```
698
+ * const client = longrunning.operationsClient();
699
+ * for await (const response of client.listOperationsAsync(request));
700
+ * // doThingsWith(response)
701
+ * ```
702
+ */
703
+ listOperationsAsync(request, options) {
704
+ options = options || {};
705
+ options.otherArgs = options.otherArgs || {};
706
+ options.otherArgs.headers = options.otherArgs.headers || {};
707
+ options.otherArgs.headers['x-goog-request-params'] =
708
+ this._gaxModule.routingHeader.fromParams({
709
+ name: request.name ?? '',
710
+ });
711
+ return this.operationsClient.listOperationsAsync(request, options);
712
+ }
713
+ /**
714
+ * Starts asynchronous cancellation on a long-running operation. The server
715
+ * makes a best effort to cancel the operation, but success is not
716
+ * guaranteed. If the server doesn't support this method, it returns
717
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
718
+ * {@link Operations.GetOperation} or
719
+ * other methods to check whether the cancellation succeeded or whether the
720
+ * operation completed despite cancellation. On successful cancellation,
721
+ * the operation is not deleted; instead, it becomes an operation with
722
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
723
+ * 1, corresponding to `Code.CANCELLED`.
724
+ *
725
+ * @param {Object} request - The request object that will be sent.
726
+ * @param {string} request.name - The name of the operation resource to be cancelled.
727
+ * @param {Object=} options
728
+ * Optional parameters. You can override the default settings for this call,
729
+ * e.g, timeout, retries, paginations, etc. See {@link
730
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
731
+ * details.
732
+ * @param {function(?Error)=} callback
733
+ * The function which will be called with the result of the API call.
734
+ * @return {Promise} - The promise which resolves when API call finishes.
735
+ * The promise has a method named "cancel" which cancels the ongoing API
736
+ * call.
737
+ *
738
+ * @example
739
+ * ```
740
+ * const client = longrunning.operationsClient();
741
+ * await client.cancelOperation({name: ''});
742
+ * ```
743
+ */
744
+ cancelOperation(request, optionsOrCallback, callback) {
745
+ let options;
746
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
747
+ callback = optionsOrCallback;
748
+ options = {};
749
+ }
750
+ else {
751
+ options = optionsOrCallback;
752
+ }
753
+ options = options || {};
754
+ options.otherArgs = options.otherArgs || {};
755
+ options.otherArgs.headers = options.otherArgs.headers || {};
756
+ options.otherArgs.headers['x-goog-request-params'] =
757
+ this._gaxModule.routingHeader.fromParams({
758
+ name: request.name ?? '',
759
+ });
760
+ return this.operationsClient.cancelOperation(request, options, callback);
761
+ }
762
+ /**
763
+ * Deletes a long-running operation. This method indicates that the client is
764
+ * no longer interested in the operation result. It does not cancel the
765
+ * operation. If the server doesn't support this method, it returns
766
+ * `google.rpc.Code.UNIMPLEMENTED`.
767
+ *
768
+ * @param {Object} request - The request object that will be sent.
769
+ * @param {string} request.name - The name of the operation resource to be deleted.
770
+ * @param {Object=} options
771
+ * Optional parameters. You can override the default settings for this call,
772
+ * e.g, timeout, retries, paginations, etc. See {@link
773
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
774
+ * for the details.
775
+ * @param {function(?Error)=} callback
776
+ * The function which will be called with the result of the API call.
777
+ * @return {Promise} - The promise which resolves when API call finishes.
778
+ * The promise has a method named "cancel" which cancels the ongoing API
779
+ * call.
780
+ *
781
+ * @example
782
+ * ```
783
+ * const client = longrunning.operationsClient();
784
+ * await client.deleteOperation({name: ''});
785
+ * ```
786
+ */
787
+ deleteOperation(request, optionsOrCallback, callback) {
788
+ let options;
789
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
790
+ callback = optionsOrCallback;
791
+ options = {};
792
+ }
793
+ else {
794
+ options = optionsOrCallback;
795
+ }
796
+ options = options || {};
797
+ options.otherArgs = options.otherArgs || {};
798
+ options.otherArgs.headers = options.otherArgs.headers || {};
799
+ options.otherArgs.headers['x-goog-request-params'] =
800
+ this._gaxModule.routingHeader.fromParams({
801
+ name: request.name ?? '',
802
+ });
803
+ return this.operationsClient.deleteOperation(request, options, callback);
804
+ }
805
+ // --------------------
806
+ // -- Path templates --
807
+ // --------------------
808
+ /**
809
+ * Return a fully-qualified adBreak resource name string.
810
+ *
811
+ * @param {string} network_code
812
+ * @param {string} asset_key
813
+ * @param {string} ad_break
814
+ * @returns {string} Resource name string.
815
+ */
816
+ adBreakPath(networkCode, assetKey, adBreak) {
817
+ return this.pathTemplates.adBreakPathTemplate.render({
818
+ network_code: networkCode,
819
+ asset_key: assetKey,
820
+ ad_break: adBreak,
821
+ });
822
+ }
823
+ /**
824
+ * Parse the network_code from AdBreak resource.
825
+ *
826
+ * @param {string} adBreakName
827
+ * A fully-qualified path representing AdBreak resource.
828
+ * @returns {string} A string representing the network_code.
829
+ */
830
+ matchNetworkCodeFromAdBreakName(adBreakName) {
831
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
832
+ }
833
+ /**
834
+ * Parse the asset_key from AdBreak resource.
835
+ *
836
+ * @param {string} adBreakName
837
+ * A fully-qualified path representing AdBreak resource.
838
+ * @returns {string} A string representing the asset_key.
839
+ */
840
+ matchAssetKeyFromAdBreakName(adBreakName) {
841
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
842
+ }
843
+ /**
844
+ * Parse the ad_break from AdBreak resource.
845
+ *
846
+ * @param {string} adBreakName
847
+ * A fully-qualified path representing AdBreak resource.
848
+ * @returns {string} A string representing the ad_break.
849
+ */
850
+ matchAdBreakFromAdBreakName(adBreakName) {
851
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
852
+ }
853
+ /**
854
+ * Return a fully-qualified adReviewCenterAd resource name string.
855
+ *
856
+ * @param {string} network_code
857
+ * @param {string} web_property_code
858
+ * @param {string} ad_review_center_ad
859
+ * @returns {string} Resource name string.
860
+ */
861
+ adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
862
+ return this.pathTemplates.adReviewCenterAdPathTemplate.render({
863
+ network_code: networkCode,
864
+ web_property_code: webPropertyCode,
865
+ ad_review_center_ad: adReviewCenterAd,
866
+ });
867
+ }
868
+ /**
869
+ * Parse the network_code from AdReviewCenterAd resource.
870
+ *
871
+ * @param {string} adReviewCenterAdName
872
+ * A fully-qualified path representing AdReviewCenterAd resource.
873
+ * @returns {string} A string representing the network_code.
874
+ */
875
+ matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
876
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
877
+ }
878
+ /**
879
+ * Parse the web_property_code from AdReviewCenterAd resource.
880
+ *
881
+ * @param {string} adReviewCenterAdName
882
+ * A fully-qualified path representing AdReviewCenterAd resource.
883
+ * @returns {string} A string representing the web_property_code.
884
+ */
885
+ matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
886
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
887
+ }
888
+ /**
889
+ * Parse the ad_review_center_ad from AdReviewCenterAd resource.
890
+ *
891
+ * @param {string} adReviewCenterAdName
892
+ * A fully-qualified path representing AdReviewCenterAd resource.
893
+ * @returns {string} A string representing the ad_review_center_ad.
894
+ */
895
+ matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
896
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
897
+ }
898
+ /**
899
+ * Return a fully-qualified adUnit resource name string.
900
+ *
901
+ * @param {string} network_code
902
+ * @param {string} ad_unit
903
+ * @returns {string} Resource name string.
904
+ */
905
+ adUnitPath(networkCode, adUnit) {
906
+ return this.pathTemplates.adUnitPathTemplate.render({
907
+ network_code: networkCode,
908
+ ad_unit: adUnit,
909
+ });
910
+ }
911
+ /**
912
+ * Parse the network_code from AdUnit resource.
913
+ *
914
+ * @param {string} adUnitName
915
+ * A fully-qualified path representing AdUnit resource.
916
+ * @returns {string} A string representing the network_code.
917
+ */
918
+ matchNetworkCodeFromAdUnitName(adUnitName) {
919
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
920
+ }
921
+ /**
922
+ * Parse the ad_unit from AdUnit resource.
923
+ *
924
+ * @param {string} adUnitName
925
+ * A fully-qualified path representing AdUnit resource.
926
+ * @returns {string} A string representing the ad_unit.
927
+ */
928
+ matchAdUnitFromAdUnitName(adUnitName) {
929
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
930
+ }
931
+ /**
932
+ * Return a fully-qualified application resource name string.
933
+ *
934
+ * @param {string} network_code
935
+ * @param {string} application
936
+ * @returns {string} Resource name string.
937
+ */
938
+ applicationPath(networkCode, application) {
939
+ return this.pathTemplates.applicationPathTemplate.render({
940
+ network_code: networkCode,
941
+ application: application,
942
+ });
943
+ }
944
+ /**
945
+ * Parse the network_code from Application resource.
946
+ *
947
+ * @param {string} applicationName
948
+ * A fully-qualified path representing Application resource.
949
+ * @returns {string} A string representing the network_code.
950
+ */
951
+ matchNetworkCodeFromApplicationName(applicationName) {
952
+ return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
953
+ }
954
+ /**
955
+ * Parse the application from Application resource.
956
+ *
957
+ * @param {string} applicationName
958
+ * A fully-qualified path representing Application resource.
959
+ * @returns {string} A string representing the application.
960
+ */
961
+ matchApplicationFromApplicationName(applicationName) {
962
+ return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
963
+ }
964
+ /**
965
+ * Return a fully-qualified audienceSegment resource name string.
966
+ *
967
+ * @param {string} network_code
968
+ * @param {string} audience_segment
969
+ * @returns {string} Resource name string.
970
+ */
971
+ audienceSegmentPath(networkCode, audienceSegment) {
972
+ return this.pathTemplates.audienceSegmentPathTemplate.render({
973
+ network_code: networkCode,
974
+ audience_segment: audienceSegment,
975
+ });
976
+ }
977
+ /**
978
+ * Parse the network_code from AudienceSegment resource.
979
+ *
980
+ * @param {string} audienceSegmentName
981
+ * A fully-qualified path representing AudienceSegment resource.
982
+ * @returns {string} A string representing the network_code.
983
+ */
984
+ matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
985
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
986
+ }
987
+ /**
988
+ * Parse the audience_segment from AudienceSegment resource.
989
+ *
990
+ * @param {string} audienceSegmentName
991
+ * A fully-qualified path representing AudienceSegment resource.
992
+ * @returns {string} A string representing the audience_segment.
993
+ */
994
+ matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
995
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
996
+ }
997
+ /**
998
+ * Return a fully-qualified bandwidthGroup resource name string.
999
+ *
1000
+ * @param {string} network_code
1001
+ * @param {string} bandwidth_group
1002
+ * @returns {string} Resource name string.
1003
+ */
1004
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
1005
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
1006
+ network_code: networkCode,
1007
+ bandwidth_group: bandwidthGroup,
1008
+ });
1009
+ }
1010
+ /**
1011
+ * Parse the network_code from BandwidthGroup resource.
1012
+ *
1013
+ * @param {string} bandwidthGroupName
1014
+ * A fully-qualified path representing BandwidthGroup resource.
1015
+ * @returns {string} A string representing the network_code.
1016
+ */
1017
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
1018
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
1019
+ }
1020
+ /**
1021
+ * Parse the bandwidth_group from BandwidthGroup resource.
1022
+ *
1023
+ * @param {string} bandwidthGroupName
1024
+ * A fully-qualified path representing BandwidthGroup resource.
1025
+ * @returns {string} A string representing the bandwidth_group.
1026
+ */
1027
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
1028
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
1029
+ }
1030
+ /**
1031
+ * Return a fully-qualified browser resource name string.
1032
+ *
1033
+ * @param {string} network_code
1034
+ * @param {string} browser
1035
+ * @returns {string} Resource name string.
1036
+ */
1037
+ browserPath(networkCode, browser) {
1038
+ return this.pathTemplates.browserPathTemplate.render({
1039
+ network_code: networkCode,
1040
+ browser: browser,
1041
+ });
1042
+ }
1043
+ /**
1044
+ * Parse the network_code from Browser resource.
1045
+ *
1046
+ * @param {string} browserName
1047
+ * A fully-qualified path representing Browser resource.
1048
+ * @returns {string} A string representing the network_code.
1049
+ */
1050
+ matchNetworkCodeFromBrowserName(browserName) {
1051
+ return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
1052
+ }
1053
+ /**
1054
+ * Parse the browser from Browser resource.
1055
+ *
1056
+ * @param {string} browserName
1057
+ * A fully-qualified path representing Browser resource.
1058
+ * @returns {string} A string representing the browser.
1059
+ */
1060
+ matchBrowserFromBrowserName(browserName) {
1061
+ return this.pathTemplates.browserPathTemplate.match(browserName).browser;
1062
+ }
1063
+ /**
1064
+ * Return a fully-qualified browserLanguage resource name string.
1065
+ *
1066
+ * @param {string} network_code
1067
+ * @param {string} browser_language
1068
+ * @returns {string} Resource name string.
1069
+ */
1070
+ browserLanguagePath(networkCode, browserLanguage) {
1071
+ return this.pathTemplates.browserLanguagePathTemplate.render({
1072
+ network_code: networkCode,
1073
+ browser_language: browserLanguage,
1074
+ });
1075
+ }
1076
+ /**
1077
+ * Parse the network_code from BrowserLanguage resource.
1078
+ *
1079
+ * @param {string} browserLanguageName
1080
+ * A fully-qualified path representing BrowserLanguage resource.
1081
+ * @returns {string} A string representing the network_code.
1082
+ */
1083
+ matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
1084
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
1085
+ }
1086
+ /**
1087
+ * Parse the browser_language from BrowserLanguage resource.
1088
+ *
1089
+ * @param {string} browserLanguageName
1090
+ * A fully-qualified path representing BrowserLanguage resource.
1091
+ * @returns {string} A string representing the browser_language.
1092
+ */
1093
+ matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
1094
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
1095
+ }
1096
+ /**
1097
+ * Return a fully-qualified cmsMetadataKey resource name string.
1098
+ *
1099
+ * @param {string} network_code
1100
+ * @param {string} cms_metadata_key
1101
+ * @returns {string} Resource name string.
1102
+ */
1103
+ cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
1104
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
1105
+ network_code: networkCode,
1106
+ cms_metadata_key: cmsMetadataKey,
1107
+ });
1108
+ }
1109
+ /**
1110
+ * Parse the network_code from CmsMetadataKey resource.
1111
+ *
1112
+ * @param {string} cmsMetadataKeyName
1113
+ * A fully-qualified path representing CmsMetadataKey resource.
1114
+ * @returns {string} A string representing the network_code.
1115
+ */
1116
+ matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
1117
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
1118
+ }
1119
+ /**
1120
+ * Parse the cms_metadata_key from CmsMetadataKey resource.
1121
+ *
1122
+ * @param {string} cmsMetadataKeyName
1123
+ * A fully-qualified path representing CmsMetadataKey resource.
1124
+ * @returns {string} A string representing the cms_metadata_key.
1125
+ */
1126
+ matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
1127
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
1128
+ }
1129
+ /**
1130
+ * Return a fully-qualified cmsMetadataValue resource name string.
1131
+ *
1132
+ * @param {string} network_code
1133
+ * @param {string} cms_metadata_value
1134
+ * @returns {string} Resource name string.
1135
+ */
1136
+ cmsMetadataValuePath(networkCode, cmsMetadataValue) {
1137
+ return this.pathTemplates.cmsMetadataValuePathTemplate.render({
1138
+ network_code: networkCode,
1139
+ cms_metadata_value: cmsMetadataValue,
1140
+ });
1141
+ }
1142
+ /**
1143
+ * Parse the network_code from CmsMetadataValue resource.
1144
+ *
1145
+ * @param {string} cmsMetadataValueName
1146
+ * A fully-qualified path representing CmsMetadataValue resource.
1147
+ * @returns {string} A string representing the network_code.
1148
+ */
1149
+ matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
1150
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
1151
+ }
1152
+ /**
1153
+ * Parse the cms_metadata_value from CmsMetadataValue resource.
1154
+ *
1155
+ * @param {string} cmsMetadataValueName
1156
+ * A fully-qualified path representing CmsMetadataValue resource.
1157
+ * @returns {string} A string representing the cms_metadata_value.
1158
+ */
1159
+ matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
1160
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
1161
+ }
1162
+ /**
1163
+ * Return a fully-qualified company resource name string.
1164
+ *
1165
+ * @param {string} network_code
1166
+ * @param {string} company
1167
+ * @returns {string} Resource name string.
1168
+ */
1169
+ companyPath(networkCode, company) {
1170
+ return this.pathTemplates.companyPathTemplate.render({
1171
+ network_code: networkCode,
1172
+ company: company,
1173
+ });
1174
+ }
1175
+ /**
1176
+ * Parse the network_code from Company resource.
1177
+ *
1178
+ * @param {string} companyName
1179
+ * A fully-qualified path representing Company resource.
1180
+ * @returns {string} A string representing the network_code.
1181
+ */
1182
+ matchNetworkCodeFromCompanyName(companyName) {
1183
+ return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
1184
+ }
1185
+ /**
1186
+ * Parse the company from Company resource.
1187
+ *
1188
+ * @param {string} companyName
1189
+ * A fully-qualified path representing Company resource.
1190
+ * @returns {string} A string representing the company.
1191
+ */
1192
+ matchCompanyFromCompanyName(companyName) {
1193
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
1194
+ }
1195
+ /**
1196
+ * Return a fully-qualified contact resource name string.
1197
+ *
1198
+ * @param {string} network_code
1199
+ * @param {string} contact
1200
+ * @returns {string} Resource name string.
1201
+ */
1202
+ contactPath(networkCode, contact) {
1203
+ return this.pathTemplates.contactPathTemplate.render({
1204
+ network_code: networkCode,
1205
+ contact: contact,
1206
+ });
1207
+ }
1208
+ /**
1209
+ * Parse the network_code from Contact resource.
1210
+ *
1211
+ * @param {string} contactName
1212
+ * A fully-qualified path representing Contact resource.
1213
+ * @returns {string} A string representing the network_code.
1214
+ */
1215
+ matchNetworkCodeFromContactName(contactName) {
1216
+ return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
1217
+ }
1218
+ /**
1219
+ * Parse the contact from Contact resource.
1220
+ *
1221
+ * @param {string} contactName
1222
+ * A fully-qualified path representing Contact resource.
1223
+ * @returns {string} A string representing the contact.
1224
+ */
1225
+ matchContactFromContactName(contactName) {
1226
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
1227
+ }
1228
+ /**
1229
+ * Return a fully-qualified content resource name string.
1230
+ *
1231
+ * @param {string} network_code
1232
+ * @param {string} content
1233
+ * @returns {string} Resource name string.
1234
+ */
1235
+ contentPath(networkCode, content) {
1236
+ return this.pathTemplates.contentPathTemplate.render({
1237
+ network_code: networkCode,
1238
+ content: content,
1239
+ });
1240
+ }
1241
+ /**
1242
+ * Parse the network_code from Content resource.
1243
+ *
1244
+ * @param {string} contentName
1245
+ * A fully-qualified path representing Content resource.
1246
+ * @returns {string} A string representing the network_code.
1247
+ */
1248
+ matchNetworkCodeFromContentName(contentName) {
1249
+ return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
1250
+ }
1251
+ /**
1252
+ * Parse the content from Content resource.
1253
+ *
1254
+ * @param {string} contentName
1255
+ * A fully-qualified path representing Content resource.
1256
+ * @returns {string} A string representing the content.
1257
+ */
1258
+ matchContentFromContentName(contentName) {
1259
+ return this.pathTemplates.contentPathTemplate.match(contentName).content;
1260
+ }
1261
+ /**
1262
+ * Return a fully-qualified contentBundle resource name string.
1263
+ *
1264
+ * @param {string} network_code
1265
+ * @param {string} content_bundle
1266
+ * @returns {string} Resource name string.
1267
+ */
1268
+ contentBundlePath(networkCode, contentBundle) {
1269
+ return this.pathTemplates.contentBundlePathTemplate.render({
1270
+ network_code: networkCode,
1271
+ content_bundle: contentBundle,
1272
+ });
1273
+ }
1274
+ /**
1275
+ * Parse the network_code from ContentBundle resource.
1276
+ *
1277
+ * @param {string} contentBundleName
1278
+ * A fully-qualified path representing ContentBundle resource.
1279
+ * @returns {string} A string representing the network_code.
1280
+ */
1281
+ matchNetworkCodeFromContentBundleName(contentBundleName) {
1282
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
1283
+ }
1284
+ /**
1285
+ * Parse the content_bundle from ContentBundle resource.
1286
+ *
1287
+ * @param {string} contentBundleName
1288
+ * A fully-qualified path representing ContentBundle resource.
1289
+ * @returns {string} A string representing the content_bundle.
1290
+ */
1291
+ matchContentBundleFromContentBundleName(contentBundleName) {
1292
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
1293
+ }
1294
+ /**
1295
+ * Return a fully-qualified contentLabel resource name string.
1296
+ *
1297
+ * @param {string} network_code
1298
+ * @param {string} content_label
1299
+ * @returns {string} Resource name string.
1300
+ */
1301
+ contentLabelPath(networkCode, contentLabel) {
1302
+ return this.pathTemplates.contentLabelPathTemplate.render({
1303
+ network_code: networkCode,
1304
+ content_label: contentLabel,
1305
+ });
1306
+ }
1307
+ /**
1308
+ * Parse the network_code from ContentLabel resource.
1309
+ *
1310
+ * @param {string} contentLabelName
1311
+ * A fully-qualified path representing ContentLabel resource.
1312
+ * @returns {string} A string representing the network_code.
1313
+ */
1314
+ matchNetworkCodeFromContentLabelName(contentLabelName) {
1315
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
1316
+ }
1317
+ /**
1318
+ * Parse the content_label from ContentLabel resource.
1319
+ *
1320
+ * @param {string} contentLabelName
1321
+ * A fully-qualified path representing ContentLabel resource.
1322
+ * @returns {string} A string representing the content_label.
1323
+ */
1324
+ matchContentLabelFromContentLabelName(contentLabelName) {
1325
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
1326
+ }
1327
+ /**
1328
+ * Return a fully-qualified creativeTemplate resource name string.
1329
+ *
1330
+ * @param {string} network_code
1331
+ * @param {string} creative_template
1332
+ * @returns {string} Resource name string.
1333
+ */
1334
+ creativeTemplatePath(networkCode, creativeTemplate) {
1335
+ return this.pathTemplates.creativeTemplatePathTemplate.render({
1336
+ network_code: networkCode,
1337
+ creative_template: creativeTemplate,
1338
+ });
1339
+ }
1340
+ /**
1341
+ * Parse the network_code from CreativeTemplate resource.
1342
+ *
1343
+ * @param {string} creativeTemplateName
1344
+ * A fully-qualified path representing CreativeTemplate resource.
1345
+ * @returns {string} A string representing the network_code.
1346
+ */
1347
+ matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
1348
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
1349
+ }
1350
+ /**
1351
+ * Parse the creative_template from CreativeTemplate resource.
1352
+ *
1353
+ * @param {string} creativeTemplateName
1354
+ * A fully-qualified path representing CreativeTemplate resource.
1355
+ * @returns {string} A string representing the creative_template.
1356
+ */
1357
+ matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
1358
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
1359
+ }
1360
+ /**
1361
+ * Return a fully-qualified customField resource name string.
1362
+ *
1363
+ * @param {string} network_code
1364
+ * @param {string} custom_field
1365
+ * @returns {string} Resource name string.
1366
+ */
1367
+ customFieldPath(networkCode, customField) {
1368
+ return this.pathTemplates.customFieldPathTemplate.render({
1369
+ network_code: networkCode,
1370
+ custom_field: customField,
1371
+ });
1372
+ }
1373
+ /**
1374
+ * Parse the network_code from CustomField resource.
1375
+ *
1376
+ * @param {string} customFieldName
1377
+ * A fully-qualified path representing CustomField resource.
1378
+ * @returns {string} A string representing the network_code.
1379
+ */
1380
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
1381
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
1382
+ }
1383
+ /**
1384
+ * Parse the custom_field from CustomField resource.
1385
+ *
1386
+ * @param {string} customFieldName
1387
+ * A fully-qualified path representing CustomField resource.
1388
+ * @returns {string} A string representing the custom_field.
1389
+ */
1390
+ matchCustomFieldFromCustomFieldName(customFieldName) {
1391
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
1392
+ }
1393
+ /**
1394
+ * Return a fully-qualified customTargetingKey resource name string.
1395
+ *
1396
+ * @param {string} network_code
1397
+ * @param {string} custom_targeting_key
1398
+ * @returns {string} Resource name string.
1399
+ */
1400
+ customTargetingKeyPath(networkCode, customTargetingKey) {
1401
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
1402
+ network_code: networkCode,
1403
+ custom_targeting_key: customTargetingKey,
1404
+ });
1405
+ }
1406
+ /**
1407
+ * Parse the network_code from CustomTargetingKey resource.
1408
+ *
1409
+ * @param {string} customTargetingKeyName
1410
+ * A fully-qualified path representing CustomTargetingKey resource.
1411
+ * @returns {string} A string representing the network_code.
1412
+ */
1413
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
1414
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
1415
+ }
1416
+ /**
1417
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
1418
+ *
1419
+ * @param {string} customTargetingKeyName
1420
+ * A fully-qualified path representing CustomTargetingKey resource.
1421
+ * @returns {string} A string representing the custom_targeting_key.
1422
+ */
1423
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
1424
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
1425
+ }
1426
+ /**
1427
+ * Return a fully-qualified customTargetingValue resource name string.
1428
+ *
1429
+ * @param {string} network_code
1430
+ * @param {string} custom_targeting_value
1431
+ * @returns {string} Resource name string.
1432
+ */
1433
+ customTargetingValuePath(networkCode, customTargetingValue) {
1434
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
1435
+ network_code: networkCode,
1436
+ custom_targeting_value: customTargetingValue,
1437
+ });
1438
+ }
1439
+ /**
1440
+ * Parse the network_code from CustomTargetingValue resource.
1441
+ *
1442
+ * @param {string} customTargetingValueName
1443
+ * A fully-qualified path representing CustomTargetingValue resource.
1444
+ * @returns {string} A string representing the network_code.
1445
+ */
1446
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
1447
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
1448
+ }
1449
+ /**
1450
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
1451
+ *
1452
+ * @param {string} customTargetingValueName
1453
+ * A fully-qualified path representing CustomTargetingValue resource.
1454
+ * @returns {string} A string representing the custom_targeting_value.
1455
+ */
1456
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
1457
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
1458
+ }
1459
+ /**
1460
+ * Return a fully-qualified deviceCapability resource name string.
1461
+ *
1462
+ * @param {string} network_code
1463
+ * @param {string} device_capability
1464
+ * @returns {string} Resource name string.
1465
+ */
1466
+ deviceCapabilityPath(networkCode, deviceCapability) {
1467
+ return this.pathTemplates.deviceCapabilityPathTemplate.render({
1468
+ network_code: networkCode,
1469
+ device_capability: deviceCapability,
1470
+ });
1471
+ }
1472
+ /**
1473
+ * Parse the network_code from DeviceCapability resource.
1474
+ *
1475
+ * @param {string} deviceCapabilityName
1476
+ * A fully-qualified path representing DeviceCapability resource.
1477
+ * @returns {string} A string representing the network_code.
1478
+ */
1479
+ matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
1480
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
1481
+ }
1482
+ /**
1483
+ * Parse the device_capability from DeviceCapability resource.
1484
+ *
1485
+ * @param {string} deviceCapabilityName
1486
+ * A fully-qualified path representing DeviceCapability resource.
1487
+ * @returns {string} A string representing the device_capability.
1488
+ */
1489
+ matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
1490
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
1491
+ }
1492
+ /**
1493
+ * Return a fully-qualified deviceCategory resource name string.
1494
+ *
1495
+ * @param {string} network_code
1496
+ * @param {string} device_category
1497
+ * @returns {string} Resource name string.
1498
+ */
1499
+ deviceCategoryPath(networkCode, deviceCategory) {
1500
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
1501
+ network_code: networkCode,
1502
+ device_category: deviceCategory,
1503
+ });
1504
+ }
1505
+ /**
1506
+ * Parse the network_code from DeviceCategory resource.
1507
+ *
1508
+ * @param {string} deviceCategoryName
1509
+ * A fully-qualified path representing DeviceCategory resource.
1510
+ * @returns {string} A string representing the network_code.
1511
+ */
1512
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
1513
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
1514
+ }
1515
+ /**
1516
+ * Parse the device_category from DeviceCategory resource.
1517
+ *
1518
+ * @param {string} deviceCategoryName
1519
+ * A fully-qualified path representing DeviceCategory resource.
1520
+ * @returns {string} A string representing the device_category.
1521
+ */
1522
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
1523
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
1524
+ }
1525
+ /**
1526
+ * Return a fully-qualified deviceManufacturer resource name string.
1527
+ *
1528
+ * @param {string} network_code
1529
+ * @param {string} device_manufacturer
1530
+ * @returns {string} Resource name string.
1531
+ */
1532
+ deviceManufacturerPath(networkCode, deviceManufacturer) {
1533
+ return this.pathTemplates.deviceManufacturerPathTemplate.render({
1534
+ network_code: networkCode,
1535
+ device_manufacturer: deviceManufacturer,
1536
+ });
1537
+ }
1538
+ /**
1539
+ * Parse the network_code from DeviceManufacturer resource.
1540
+ *
1541
+ * @param {string} deviceManufacturerName
1542
+ * A fully-qualified path representing DeviceManufacturer resource.
1543
+ * @returns {string} A string representing the network_code.
1544
+ */
1545
+ matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
1546
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
1547
+ }
1548
+ /**
1549
+ * Parse the device_manufacturer from DeviceManufacturer resource.
1550
+ *
1551
+ * @param {string} deviceManufacturerName
1552
+ * A fully-qualified path representing DeviceManufacturer resource.
1553
+ * @returns {string} A string representing the device_manufacturer.
1554
+ */
1555
+ matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
1556
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
1557
+ }
1558
+ /**
1559
+ * Return a fully-qualified entitySignalsMapping resource name string.
1560
+ *
1561
+ * @param {string} network_code
1562
+ * @param {string} entity_signals_mapping
1563
+ * @returns {string} Resource name string.
1564
+ */
1565
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
1566
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
1567
+ network_code: networkCode,
1568
+ entity_signals_mapping: entitySignalsMapping,
1569
+ });
1570
+ }
1571
+ /**
1572
+ * Parse the network_code from EntitySignalsMapping resource.
1573
+ *
1574
+ * @param {string} entitySignalsMappingName
1575
+ * A fully-qualified path representing EntitySignalsMapping resource.
1576
+ * @returns {string} A string representing the network_code.
1577
+ */
1578
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
1579
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
1580
+ }
1581
+ /**
1582
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
1583
+ *
1584
+ * @param {string} entitySignalsMappingName
1585
+ * A fully-qualified path representing EntitySignalsMapping resource.
1586
+ * @returns {string} A string representing the entity_signals_mapping.
1587
+ */
1588
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
1589
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
1590
+ }
1591
+ /**
1592
+ * Return a fully-qualified geoTarget resource name string.
1593
+ *
1594
+ * @param {string} network_code
1595
+ * @param {string} geo_target
1596
+ * @returns {string} Resource name string.
1597
+ */
1598
+ geoTargetPath(networkCode, geoTarget) {
1599
+ return this.pathTemplates.geoTargetPathTemplate.render({
1600
+ network_code: networkCode,
1601
+ geo_target: geoTarget,
1602
+ });
1603
+ }
1604
+ /**
1605
+ * Parse the network_code from GeoTarget resource.
1606
+ *
1607
+ * @param {string} geoTargetName
1608
+ * A fully-qualified path representing GeoTarget resource.
1609
+ * @returns {string} A string representing the network_code.
1610
+ */
1611
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
1612
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
1613
+ }
1614
+ /**
1615
+ * Parse the geo_target from GeoTarget resource.
1616
+ *
1617
+ * @param {string} geoTargetName
1618
+ * A fully-qualified path representing GeoTarget resource.
1619
+ * @returns {string} A string representing the geo_target.
1620
+ */
1621
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
1622
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
1623
+ }
1624
+ /**
1625
+ * Return a fully-qualified label resource name string.
1626
+ *
1627
+ * @param {string} network_code
1628
+ * @param {string} label
1629
+ * @returns {string} Resource name string.
1630
+ */
1631
+ labelPath(networkCode, label) {
1632
+ return this.pathTemplates.labelPathTemplate.render({
1633
+ network_code: networkCode,
1634
+ label: label,
1635
+ });
1636
+ }
1637
+ /**
1638
+ * Parse the network_code from Label resource.
1639
+ *
1640
+ * @param {string} labelName
1641
+ * A fully-qualified path representing Label resource.
1642
+ * @returns {string} A string representing the network_code.
1643
+ */
1644
+ matchNetworkCodeFromLabelName(labelName) {
1645
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
1646
+ }
1647
+ /**
1648
+ * Parse the label from Label resource.
1649
+ *
1650
+ * @param {string} labelName
1651
+ * A fully-qualified path representing Label resource.
1652
+ * @returns {string} A string representing the label.
1653
+ */
1654
+ matchLabelFromLabelName(labelName) {
1655
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
1656
+ }
1657
+ /**
1658
+ * Return a fully-qualified liveStreamEvent resource name string.
1659
+ *
1660
+ * @param {string} network_code
1661
+ * @param {string} live_stream_event
1662
+ * @returns {string} Resource name string.
1663
+ */
1664
+ liveStreamEventPath(networkCode, liveStreamEvent) {
1665
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
1666
+ network_code: networkCode,
1667
+ live_stream_event: liveStreamEvent,
1668
+ });
1669
+ }
1670
+ /**
1671
+ * Parse the network_code from LiveStreamEvent resource.
1672
+ *
1673
+ * @param {string} liveStreamEventName
1674
+ * A fully-qualified path representing LiveStreamEvent resource.
1675
+ * @returns {string} A string representing the network_code.
1676
+ */
1677
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
1678
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
1679
+ }
1680
+ /**
1681
+ * Parse the live_stream_event from LiveStreamEvent resource.
1682
+ *
1683
+ * @param {string} liveStreamEventName
1684
+ * A fully-qualified path representing LiveStreamEvent resource.
1685
+ * @returns {string} A string representing the live_stream_event.
1686
+ */
1687
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
1688
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
1689
+ }
1690
+ /**
1691
+ * Return a fully-qualified mobileCarrier resource name string.
1692
+ *
1693
+ * @param {string} network_code
1694
+ * @param {string} mobile_carrier
1695
+ * @returns {string} Resource name string.
1696
+ */
1697
+ mobileCarrierPath(networkCode, mobileCarrier) {
1698
+ return this.pathTemplates.mobileCarrierPathTemplate.render({
1699
+ network_code: networkCode,
1700
+ mobile_carrier: mobileCarrier,
1701
+ });
1702
+ }
1703
+ /**
1704
+ * Parse the network_code from MobileCarrier resource.
1705
+ *
1706
+ * @param {string} mobileCarrierName
1707
+ * A fully-qualified path representing MobileCarrier resource.
1708
+ * @returns {string} A string representing the network_code.
1709
+ */
1710
+ matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1711
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
1712
+ }
1713
+ /**
1714
+ * Parse the mobile_carrier from MobileCarrier resource.
1715
+ *
1716
+ * @param {string} mobileCarrierName
1717
+ * A fully-qualified path representing MobileCarrier resource.
1718
+ * @returns {string} A string representing the mobile_carrier.
1719
+ */
1720
+ matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1721
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
1722
+ }
1723
+ /**
1724
+ * Return a fully-qualified mobileDevice resource name string.
1725
+ *
1726
+ * @param {string} network_code
1727
+ * @param {string} mobile_device
1728
+ * @returns {string} Resource name string.
1729
+ */
1730
+ mobileDevicePath(networkCode, mobileDevice) {
1731
+ return this.pathTemplates.mobileDevicePathTemplate.render({
1732
+ network_code: networkCode,
1733
+ mobile_device: mobileDevice,
1734
+ });
1735
+ }
1736
+ /**
1737
+ * Parse the network_code from MobileDevice resource.
1738
+ *
1739
+ * @param {string} mobileDeviceName
1740
+ * A fully-qualified path representing MobileDevice resource.
1741
+ * @returns {string} A string representing the network_code.
1742
+ */
1743
+ matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1744
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
1745
+ }
1746
+ /**
1747
+ * Parse the mobile_device from MobileDevice resource.
1748
+ *
1749
+ * @param {string} mobileDeviceName
1750
+ * A fully-qualified path representing MobileDevice resource.
1751
+ * @returns {string} A string representing the mobile_device.
1752
+ */
1753
+ matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1754
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
1755
+ }
1756
+ /**
1757
+ * Return a fully-qualified mobileDeviceSubmodel resource name string.
1758
+ *
1759
+ * @param {string} network_code
1760
+ * @param {string} mobile_device_submodel
1761
+ * @returns {string} Resource name string.
1762
+ */
1763
+ mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
1764
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
1765
+ network_code: networkCode,
1766
+ mobile_device_submodel: mobileDeviceSubmodel,
1767
+ });
1768
+ }
1769
+ /**
1770
+ * Parse the network_code from MobileDeviceSubmodel resource.
1771
+ *
1772
+ * @param {string} mobileDeviceSubmodelName
1773
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1774
+ * @returns {string} A string representing the network_code.
1775
+ */
1776
+ matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1777
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
1778
+ }
1779
+ /**
1780
+ * Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
1781
+ *
1782
+ * @param {string} mobileDeviceSubmodelName
1783
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1784
+ * @returns {string} A string representing the mobile_device_submodel.
1785
+ */
1786
+ matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1787
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
1788
+ }
1789
+ /**
1790
+ * Return a fully-qualified network resource name string.
1791
+ *
1792
+ * @param {string} network_code
1793
+ * @returns {string} Resource name string.
1794
+ */
1795
+ networkPath(networkCode) {
1796
+ return this.pathTemplates.networkPathTemplate.render({
1797
+ network_code: networkCode,
1798
+ });
1799
+ }
1800
+ /**
1801
+ * Parse the network_code from Network resource.
1802
+ *
1803
+ * @param {string} networkName
1804
+ * A fully-qualified path representing Network resource.
1805
+ * @returns {string} A string representing the network_code.
1806
+ */
1807
+ matchNetworkCodeFromNetworkName(networkName) {
1808
+ return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
1809
+ }
1810
+ /**
1811
+ * Return a fully-qualified operatingSystem resource name string.
1812
+ *
1813
+ * @param {string} network_code
1814
+ * @param {string} operating_system
1815
+ * @returns {string} Resource name string.
1816
+ */
1817
+ operatingSystemPath(networkCode, operatingSystem) {
1818
+ return this.pathTemplates.operatingSystemPathTemplate.render({
1819
+ network_code: networkCode,
1820
+ operating_system: operatingSystem,
1821
+ });
1822
+ }
1823
+ /**
1824
+ * Parse the network_code from OperatingSystem resource.
1825
+ *
1826
+ * @param {string} operatingSystemName
1827
+ * A fully-qualified path representing OperatingSystem resource.
1828
+ * @returns {string} A string representing the network_code.
1829
+ */
1830
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
1831
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
1832
+ }
1833
+ /**
1834
+ * Parse the operating_system from OperatingSystem resource.
1835
+ *
1836
+ * @param {string} operatingSystemName
1837
+ * A fully-qualified path representing OperatingSystem resource.
1838
+ * @returns {string} A string representing the operating_system.
1839
+ */
1840
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
1841
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
1842
+ }
1843
+ /**
1844
+ * Return a fully-qualified operatingSystemVersion resource name string.
1845
+ *
1846
+ * @param {string} network_code
1847
+ * @param {string} operating_system_version
1848
+ * @returns {string} Resource name string.
1849
+ */
1850
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
1851
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
1852
+ network_code: networkCode,
1853
+ operating_system_version: operatingSystemVersion,
1854
+ });
1855
+ }
1856
+ /**
1857
+ * Parse the network_code from OperatingSystemVersion resource.
1858
+ *
1859
+ * @param {string} operatingSystemVersionName
1860
+ * A fully-qualified path representing OperatingSystemVersion resource.
1861
+ * @returns {string} A string representing the network_code.
1862
+ */
1863
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
1864
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
1865
+ }
1866
+ /**
1867
+ * Parse the operating_system_version from OperatingSystemVersion resource.
1868
+ *
1869
+ * @param {string} operatingSystemVersionName
1870
+ * A fully-qualified path representing OperatingSystemVersion resource.
1871
+ * @returns {string} A string representing the operating_system_version.
1872
+ */
1873
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
1874
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
1875
+ }
1876
+ /**
1877
+ * Return a fully-qualified order resource name string.
1878
+ *
1879
+ * @param {string} network_code
1880
+ * @param {string} order
1881
+ * @returns {string} Resource name string.
1882
+ */
1883
+ orderPath(networkCode, order) {
1884
+ return this.pathTemplates.orderPathTemplate.render({
1885
+ network_code: networkCode,
1886
+ order: order,
1887
+ });
1888
+ }
1889
+ /**
1890
+ * Parse the network_code from Order resource.
1891
+ *
1892
+ * @param {string} orderName
1893
+ * A fully-qualified path representing Order resource.
1894
+ * @returns {string} A string representing the network_code.
1895
+ */
1896
+ matchNetworkCodeFromOrderName(orderName) {
1897
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
1898
+ }
1899
+ /**
1900
+ * Parse the order from Order resource.
1901
+ *
1902
+ * @param {string} orderName
1903
+ * A fully-qualified path representing Order resource.
1904
+ * @returns {string} A string representing the order.
1905
+ */
1906
+ matchOrderFromOrderName(orderName) {
1907
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
1908
+ }
1909
+ /**
1910
+ * Return a fully-qualified placement resource name string.
1911
+ *
1912
+ * @param {string} network_code
1913
+ * @param {string} placement
1914
+ * @returns {string} Resource name string.
1915
+ */
1916
+ placementPath(networkCode, placement) {
1917
+ return this.pathTemplates.placementPathTemplate.render({
1918
+ network_code: networkCode,
1919
+ placement: placement,
1920
+ });
1921
+ }
1922
+ /**
1923
+ * Parse the network_code from Placement resource.
1924
+ *
1925
+ * @param {string} placementName
1926
+ * A fully-qualified path representing Placement resource.
1927
+ * @returns {string} A string representing the network_code.
1928
+ */
1929
+ matchNetworkCodeFromPlacementName(placementName) {
1930
+ return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
1931
+ }
1932
+ /**
1933
+ * Parse the placement from Placement resource.
1934
+ *
1935
+ * @param {string} placementName
1936
+ * A fully-qualified path representing Placement resource.
1937
+ * @returns {string} A string representing the placement.
1938
+ */
1939
+ matchPlacementFromPlacementName(placementName) {
1940
+ return this.pathTemplates.placementPathTemplate.match(placementName).placement;
1941
+ }
1942
+ /**
1943
+ * Return a fully-qualified privateAuction resource name string.
1944
+ *
1945
+ * @param {string} network_code
1946
+ * @param {string} private_auction
1947
+ * @returns {string} Resource name string.
1948
+ */
1949
+ privateAuctionPath(networkCode, privateAuction) {
1950
+ return this.pathTemplates.privateAuctionPathTemplate.render({
1951
+ network_code: networkCode,
1952
+ private_auction: privateAuction,
1953
+ });
1954
+ }
1955
+ /**
1956
+ * Parse the network_code from PrivateAuction resource.
1957
+ *
1958
+ * @param {string} privateAuctionName
1959
+ * A fully-qualified path representing PrivateAuction resource.
1960
+ * @returns {string} A string representing the network_code.
1961
+ */
1962
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
1963
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
1964
+ }
1965
+ /**
1966
+ * Parse the private_auction from PrivateAuction resource.
1967
+ *
1968
+ * @param {string} privateAuctionName
1969
+ * A fully-qualified path representing PrivateAuction resource.
1970
+ * @returns {string} A string representing the private_auction.
1971
+ */
1972
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
1973
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
1974
+ }
1975
+ /**
1976
+ * Return a fully-qualified privateAuctionDeal resource name string.
1977
+ *
1978
+ * @param {string} network_code
1979
+ * @param {string} private_auction_deal
1980
+ * @returns {string} Resource name string.
1981
+ */
1982
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
1983
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
1984
+ network_code: networkCode,
1985
+ private_auction_deal: privateAuctionDeal,
1986
+ });
1987
+ }
1988
+ /**
1989
+ * Parse the network_code from PrivateAuctionDeal resource.
1990
+ *
1991
+ * @param {string} privateAuctionDealName
1992
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1993
+ * @returns {string} A string representing the network_code.
1994
+ */
1995
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
1996
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
1997
+ }
1998
+ /**
1999
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
2000
+ *
2001
+ * @param {string} privateAuctionDealName
2002
+ * A fully-qualified path representing PrivateAuctionDeal resource.
2003
+ * @returns {string} A string representing the private_auction_deal.
2004
+ */
2005
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
2006
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
2007
+ }
2008
+ /**
2009
+ * Return a fully-qualified programmaticBuyer resource name string.
2010
+ *
2011
+ * @param {string} network_code
2012
+ * @param {string} programmatic_buyer
2013
+ * @returns {string} Resource name string.
2014
+ */
2015
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
2016
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
2017
+ network_code: networkCode,
2018
+ programmatic_buyer: programmaticBuyer,
2019
+ });
2020
+ }
2021
+ /**
2022
+ * Parse the network_code from ProgrammaticBuyer resource.
2023
+ *
2024
+ * @param {string} programmaticBuyerName
2025
+ * A fully-qualified path representing ProgrammaticBuyer resource.
2026
+ * @returns {string} A string representing the network_code.
2027
+ */
2028
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
2029
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
2030
+ }
2031
+ /**
2032
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
2033
+ *
2034
+ * @param {string} programmaticBuyerName
2035
+ * A fully-qualified path representing ProgrammaticBuyer resource.
2036
+ * @returns {string} A string representing the programmatic_buyer.
2037
+ */
2038
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
2039
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
2040
+ }
2041
+ /**
2042
+ * Return a fully-qualified report resource name string.
2043
+ *
2044
+ * @param {string} network_code
2045
+ * @param {string} report
2046
+ * @returns {string} Resource name string.
2047
+ */
2048
+ reportPath(networkCode, report) {
2049
+ return this.pathTemplates.reportPathTemplate.render({
2050
+ network_code: networkCode,
2051
+ report: report,
2052
+ });
2053
+ }
2054
+ /**
2055
+ * Parse the network_code from Report resource.
2056
+ *
2057
+ * @param {string} reportName
2058
+ * A fully-qualified path representing Report resource.
2059
+ * @returns {string} A string representing the network_code.
2060
+ */
2061
+ matchNetworkCodeFromReportName(reportName) {
2062
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
2063
+ }
2064
+ /**
2065
+ * Parse the report from Report resource.
2066
+ *
2067
+ * @param {string} reportName
2068
+ * A fully-qualified path representing Report resource.
2069
+ * @returns {string} A string representing the report.
2070
+ */
2071
+ matchReportFromReportName(reportName) {
2072
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
2073
+ }
2074
+ /**
2075
+ * Return a fully-qualified role resource name string.
2076
+ *
2077
+ * @param {string} network_code
2078
+ * @param {string} role
2079
+ * @returns {string} Resource name string.
2080
+ */
2081
+ rolePath(networkCode, role) {
2082
+ return this.pathTemplates.rolePathTemplate.render({
2083
+ network_code: networkCode,
2084
+ role: role,
2085
+ });
2086
+ }
2087
+ /**
2088
+ * Parse the network_code from Role resource.
2089
+ *
2090
+ * @param {string} roleName
2091
+ * A fully-qualified path representing Role resource.
2092
+ * @returns {string} A string representing the network_code.
2093
+ */
2094
+ matchNetworkCodeFromRoleName(roleName) {
2095
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
2096
+ }
2097
+ /**
2098
+ * Parse the role from Role resource.
2099
+ *
2100
+ * @param {string} roleName
2101
+ * A fully-qualified path representing Role resource.
2102
+ * @returns {string} A string representing the role.
2103
+ */
2104
+ matchRoleFromRoleName(roleName) {
2105
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
2106
+ }
2107
+ /**
2108
+ * Return a fully-qualified site resource name string.
2109
+ *
2110
+ * @param {string} network_code
2111
+ * @param {string} site
2112
+ * @returns {string} Resource name string.
2113
+ */
2114
+ sitePath(networkCode, site) {
2115
+ return this.pathTemplates.sitePathTemplate.render({
2116
+ network_code: networkCode,
2117
+ site: site,
2118
+ });
2119
+ }
2120
+ /**
2121
+ * Parse the network_code from Site resource.
2122
+ *
2123
+ * @param {string} siteName
2124
+ * A fully-qualified path representing Site resource.
2125
+ * @returns {string} A string representing the network_code.
2126
+ */
2127
+ matchNetworkCodeFromSiteName(siteName) {
2128
+ return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
2129
+ }
2130
+ /**
2131
+ * Parse the site from Site resource.
2132
+ *
2133
+ * @param {string} siteName
2134
+ * A fully-qualified path representing Site resource.
2135
+ * @returns {string} A string representing the site.
2136
+ */
2137
+ matchSiteFromSiteName(siteName) {
2138
+ return this.pathTemplates.sitePathTemplate.match(siteName).site;
2139
+ }
2140
+ /**
2141
+ * Return a fully-qualified taxonomyCategory resource name string.
2142
+ *
2143
+ * @param {string} network_code
2144
+ * @param {string} taxonomy_category
2145
+ * @returns {string} Resource name string.
2146
+ */
2147
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
2148
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
2149
+ network_code: networkCode,
2150
+ taxonomy_category: taxonomyCategory,
2151
+ });
2152
+ }
2153
+ /**
2154
+ * Parse the network_code from TaxonomyCategory resource.
2155
+ *
2156
+ * @param {string} taxonomyCategoryName
2157
+ * A fully-qualified path representing TaxonomyCategory resource.
2158
+ * @returns {string} A string representing the network_code.
2159
+ */
2160
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
2161
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
2162
+ }
2163
+ /**
2164
+ * Parse the taxonomy_category from TaxonomyCategory resource.
2165
+ *
2166
+ * @param {string} taxonomyCategoryName
2167
+ * A fully-qualified path representing TaxonomyCategory resource.
2168
+ * @returns {string} A string representing the taxonomy_category.
2169
+ */
2170
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
2171
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
2172
+ }
2173
+ /**
2174
+ * Return a fully-qualified team resource name string.
2175
+ *
2176
+ * @param {string} network_code
2177
+ * @param {string} team
2178
+ * @returns {string} Resource name string.
2179
+ */
2180
+ teamPath(networkCode, team) {
2181
+ return this.pathTemplates.teamPathTemplate.render({
2182
+ network_code: networkCode,
2183
+ team: team,
2184
+ });
2185
+ }
2186
+ /**
2187
+ * Parse the network_code from Team resource.
2188
+ *
2189
+ * @param {string} teamName
2190
+ * A fully-qualified path representing Team resource.
2191
+ * @returns {string} A string representing the network_code.
2192
+ */
2193
+ matchNetworkCodeFromTeamName(teamName) {
2194
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
2195
+ }
2196
+ /**
2197
+ * Parse the team from Team resource.
2198
+ *
2199
+ * @param {string} teamName
2200
+ * A fully-qualified path representing Team resource.
2201
+ * @returns {string} A string representing the team.
2202
+ */
2203
+ matchTeamFromTeamName(teamName) {
2204
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
2205
+ }
2206
+ /**
2207
+ * Return a fully-qualified user resource name string.
2208
+ *
2209
+ * @param {string} network_code
2210
+ * @param {string} user
2211
+ * @returns {string} Resource name string.
2212
+ */
2213
+ userPath(networkCode, user) {
2214
+ return this.pathTemplates.userPathTemplate.render({
2215
+ network_code: networkCode,
2216
+ user: user,
2217
+ });
2218
+ }
2219
+ /**
2220
+ * Parse the network_code from User resource.
2221
+ *
2222
+ * @param {string} userName
2223
+ * A fully-qualified path representing User resource.
2224
+ * @returns {string} A string representing the network_code.
2225
+ */
2226
+ matchNetworkCodeFromUserName(userName) {
2227
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
2228
+ }
2229
+ /**
2230
+ * Parse the user from User resource.
2231
+ *
2232
+ * @param {string} userName
2233
+ * A fully-qualified path representing User resource.
2234
+ * @returns {string} A string representing the user.
2235
+ */
2236
+ matchUserFromUserName(userName) {
2237
+ return this.pathTemplates.userPathTemplate.match(userName).user;
2238
+ }
2239
+ /**
2240
+ * Return a fully-qualified webProperty resource name string.
2241
+ *
2242
+ * @param {string} network_code
2243
+ * @param {string} web_property
2244
+ * @returns {string} Resource name string.
2245
+ */
2246
+ webPropertyPath(networkCode, webProperty) {
2247
+ return this.pathTemplates.webPropertyPathTemplate.render({
2248
+ network_code: networkCode,
2249
+ web_property: webProperty,
2250
+ });
2251
+ }
2252
+ /**
2253
+ * Parse the network_code from WebProperty resource.
2254
+ *
2255
+ * @param {string} webPropertyName
2256
+ * A fully-qualified path representing WebProperty resource.
2257
+ * @returns {string} A string representing the network_code.
2258
+ */
2259
+ matchNetworkCodeFromWebPropertyName(webPropertyName) {
2260
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
2261
+ }
2262
+ /**
2263
+ * Parse the web_property from WebProperty resource.
2264
+ *
2265
+ * @param {string} webPropertyName
2266
+ * A fully-qualified path representing WebProperty resource.
2267
+ * @returns {string} A string representing the web_property.
2268
+ */
2269
+ matchWebPropertyFromWebPropertyName(webPropertyName) {
2270
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
2271
+ }
2272
+ /**
2273
+ * Terminate the gRPC channel and close the client.
2274
+ *
2275
+ * The client will no longer be usable and all future behavior is undefined.
2276
+ * @returns {Promise} A promise that resolves when the client is closed.
2277
+ */
2278
+ close() {
2279
+ if (this.adReviewCenterAdServiceStub && !this._terminated) {
2280
+ return this.adReviewCenterAdServiceStub.then(stub => {
2281
+ this._log.info('ending gRPC channel');
2282
+ this._terminated = true;
2283
+ stub.close();
2284
+ void this.operationsClient.close();
2285
+ });
2286
+ }
2287
+ return Promise.resolve();
2288
+ }
2289
+ }
2290
+ exports.AdReviewCenterAdServiceClient = AdReviewCenterAdServiceClient;
2291
+ //# sourceMappingURL=ad_review_center_ad_service_client.js.map