@google-ads/admanager 0.4.1 → 0.5.1

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