@google-ads/admanager 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/build/protos/google/ads/admanager/v1/ad_break_optimization_type_enum.proto +43 -0
  2. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +2 -2
  3. package/build/protos/google/ads/admanager/v1/ad_rule_fill_order_direction_enum.proto +45 -0
  4. package/build/protos/google/ads/admanager/v1/ad_spot_fill_type_enum.proto +46 -0
  5. package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +61 -0
  6. package/build/protos/google/ads/admanager/v1/break_template_messages.proto +99 -0
  7. package/build/protos/google/ads/admanager/v1/break_template_service.proto +256 -0
  8. package/build/protos/google/ads/admanager/v1/dai_session_enums.proto +449 -0
  9. package/build/protos/google/ads/admanager/v1/dai_session_messages.proto +595 -0
  10. package/build/protos/google/ads/admanager/v1/dai_session_service.proto +65 -0
  11. package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +16 -0
  12. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +2 -0
  13. package/build/protos/google/ads/admanager/v1/report_definition.proto +35 -2
  14. package/build/protos/google/ads/admanager/v1/report_delivery.proto +4 -3
  15. package/build/protos/google/ads/admanager/v1/report_visibility_enum.proto +2 -1
  16. package/build/protos/protos.d.ts +20573 -14542
  17. package/build/protos/protos.js +1 -1
  18. package/build/protos/protos.json +2087 -61
  19. package/build/src/index.d.ts +7 -1
  20. package/build/src/index.js +7 -3
  21. package/build/src/index.js.map +1 -1
  22. package/build/src/v1/ad_break_service_client.d.ts +48 -0
  23. package/build/src/v1/ad_break_service_client.js +72 -0
  24. package/build/src/v1/ad_break_service_client.js.map +1 -1
  25. package/build/src/v1/ad_break_service_proto_list.json +8 -0
  26. package/build/src/v1/ad_review_center_ad_service_client.d.ts +48 -0
  27. package/build/src/v1/ad_review_center_ad_service_client.js +72 -0
  28. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
  29. package/build/src/v1/ad_review_center_ad_service_proto_list.json +8 -0
  30. package/build/src/v1/ad_rule_service_client.d.ts +48 -0
  31. package/build/src/v1/ad_rule_service_client.js +72 -0
  32. package/build/src/v1/ad_rule_service_client.js.map +1 -1
  33. package/build/src/v1/ad_rule_service_proto_list.json +8 -0
  34. package/build/src/v1/ad_spot_service_client.d.ts +48 -0
  35. package/build/src/v1/ad_spot_service_client.js +72 -0
  36. package/build/src/v1/ad_spot_service_client.js.map +1 -1
  37. package/build/src/v1/ad_spot_service_proto_list.json +8 -0
  38. package/build/src/v1/ad_unit_service_client.d.ts +48 -0
  39. package/build/src/v1/ad_unit_service_client.js +72 -0
  40. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  41. package/build/src/v1/ad_unit_service_proto_list.json +8 -0
  42. package/build/src/v1/application_service_client.d.ts +48 -0
  43. package/build/src/v1/application_service_client.js +72 -0
  44. package/build/src/v1/application_service_client.js.map +1 -1
  45. package/build/src/v1/application_service_proto_list.json +8 -0
  46. package/build/src/v1/audience_segment_service_client.d.ts +104 -0
  47. package/build/src/v1/audience_segment_service_client.js +160 -0
  48. package/build/src/v1/audience_segment_service_client.js.map +1 -1
  49. package/build/src/v1/audience_segment_service_client_config.json +8 -0
  50. package/build/src/v1/audience_segment_service_proto_list.json +8 -0
  51. package/build/src/v1/bandwidth_group_service_client.d.ts +48 -0
  52. package/build/src/v1/bandwidth_group_service_client.js +72 -0
  53. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  54. package/build/src/v1/bandwidth_group_service_proto_list.json +8 -0
  55. package/build/src/v1/break_template_service_client.d.ts +2027 -0
  56. package/build/src/v1/break_template_service_client.js +3026 -0
  57. package/build/src/v1/break_template_service_client.js.map +1 -0
  58. package/build/src/v1/break_template_service_client_config.json +50 -0
  59. package/build/src/v1/break_template_service_proto_list.json +233 -0
  60. package/build/src/v1/browser_language_service_client.d.ts +48 -0
  61. package/build/src/v1/browser_language_service_client.js +72 -0
  62. package/build/src/v1/browser_language_service_client.js.map +1 -1
  63. package/build/src/v1/browser_language_service_proto_list.json +8 -0
  64. package/build/src/v1/browser_service_client.d.ts +48 -0
  65. package/build/src/v1/browser_service_client.js +72 -0
  66. package/build/src/v1/browser_service_client.js.map +1 -1
  67. package/build/src/v1/browser_service_proto_list.json +8 -0
  68. package/build/src/v1/cdn_config_service_client.d.ts +48 -0
  69. package/build/src/v1/cdn_config_service_client.js +72 -0
  70. package/build/src/v1/cdn_config_service_client.js.map +1 -1
  71. package/build/src/v1/cdn_config_service_proto_list.json +8 -0
  72. package/build/src/v1/child_publisher_service_client.d.ts +48 -0
  73. package/build/src/v1/child_publisher_service_client.js +72 -0
  74. package/build/src/v1/child_publisher_service_client.js.map +1 -1
  75. package/build/src/v1/child_publisher_service_proto_list.json +8 -0
  76. package/build/src/v1/cms_metadata_key_service_client.d.ts +48 -0
  77. package/build/src/v1/cms_metadata_key_service_client.js +72 -0
  78. package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
  79. package/build/src/v1/cms_metadata_key_service_proto_list.json +8 -0
  80. package/build/src/v1/cms_metadata_value_service_client.d.ts +48 -0
  81. package/build/src/v1/cms_metadata_value_service_client.js +72 -0
  82. package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
  83. package/build/src/v1/cms_metadata_value_service_proto_list.json +8 -0
  84. package/build/src/v1/company_service_client.d.ts +48 -0
  85. package/build/src/v1/company_service_client.js +72 -0
  86. package/build/src/v1/company_service_client.js.map +1 -1
  87. package/build/src/v1/company_service_proto_list.json +8 -0
  88. package/build/src/v1/contact_service_client.d.ts +48 -0
  89. package/build/src/v1/contact_service_client.js +72 -0
  90. package/build/src/v1/contact_service_client.js.map +1 -1
  91. package/build/src/v1/contact_service_proto_list.json +8 -0
  92. package/build/src/v1/content_bundle_service_client.d.ts +48 -0
  93. package/build/src/v1/content_bundle_service_client.js +72 -0
  94. package/build/src/v1/content_bundle_service_client.js.map +1 -1
  95. package/build/src/v1/content_bundle_service_proto_list.json +8 -0
  96. package/build/src/v1/content_label_service_client.d.ts +48 -0
  97. package/build/src/v1/content_label_service_client.js +72 -0
  98. package/build/src/v1/content_label_service_client.js.map +1 -1
  99. package/build/src/v1/content_label_service_proto_list.json +8 -0
  100. package/build/src/v1/content_service_client.d.ts +48 -0
  101. package/build/src/v1/content_service_client.js +72 -0
  102. package/build/src/v1/content_service_client.js.map +1 -1
  103. package/build/src/v1/content_service_proto_list.json +8 -0
  104. package/build/src/v1/creative_set_service_client.d.ts +48 -0
  105. package/build/src/v1/creative_set_service_client.js +72 -0
  106. package/build/src/v1/creative_set_service_client.js.map +1 -1
  107. package/build/src/v1/creative_set_service_proto_list.json +8 -0
  108. package/build/src/v1/creative_template_service_client.d.ts +48 -0
  109. package/build/src/v1/creative_template_service_client.js +72 -0
  110. package/build/src/v1/creative_template_service_client.js.map +1 -1
  111. package/build/src/v1/creative_template_service_proto_list.json +8 -0
  112. package/build/src/v1/creative_wrapper_service_client.d.ts +48 -0
  113. package/build/src/v1/creative_wrapper_service_client.js +72 -0
  114. package/build/src/v1/creative_wrapper_service_client.js.map +1 -1
  115. package/build/src/v1/creative_wrapper_service_proto_list.json +8 -0
  116. package/build/src/v1/custom_field_service_client.d.ts +48 -0
  117. package/build/src/v1/custom_field_service_client.js +72 -0
  118. package/build/src/v1/custom_field_service_client.js.map +1 -1
  119. package/build/src/v1/custom_field_service_proto_list.json +8 -0
  120. package/build/src/v1/custom_targeting_key_service_client.d.ts +48 -0
  121. package/build/src/v1/custom_targeting_key_service_client.js +72 -0
  122. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  123. package/build/src/v1/custom_targeting_key_service_proto_list.json +8 -0
  124. package/build/src/v1/custom_targeting_value_service_client.d.ts +48 -0
  125. package/build/src/v1/custom_targeting_value_service_client.js +72 -0
  126. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  127. package/build/src/v1/custom_targeting_value_service_proto_list.json +8 -0
  128. package/build/src/v1/dai_authentication_key_service_client.d.ts +48 -0
  129. package/build/src/v1/dai_authentication_key_service_client.js +72 -0
  130. package/build/src/v1/dai_authentication_key_service_client.js.map +1 -1
  131. package/build/src/v1/dai_authentication_key_service_proto_list.json +8 -0
  132. package/build/src/v1/dai_encoding_profile_service_client.d.ts +48 -0
  133. package/build/src/v1/dai_encoding_profile_service_client.js +72 -0
  134. package/build/src/v1/dai_encoding_profile_service_client.js.map +1 -1
  135. package/build/src/v1/dai_encoding_profile_service_proto_list.json +8 -0
  136. package/build/src/v1/dai_session_service_client.d.ts +1762 -0
  137. package/build/src/v1/dai_session_service_client.js +2674 -0
  138. package/build/src/v1/dai_session_service_client.js.map +1 -0
  139. package/build/src/v1/dai_session_service_client_config.json +30 -0
  140. package/build/src/v1/dai_session_service_proto_list.json +233 -0
  141. package/build/src/v1/device_capability_service_client.d.ts +48 -0
  142. package/build/src/v1/device_capability_service_client.js +72 -0
  143. package/build/src/v1/device_capability_service_client.js.map +1 -1
  144. package/build/src/v1/device_capability_service_proto_list.json +8 -0
  145. package/build/src/v1/device_category_service_client.d.ts +48 -0
  146. package/build/src/v1/device_category_service_client.js +72 -0
  147. package/build/src/v1/device_category_service_client.js.map +1 -1
  148. package/build/src/v1/device_category_service_proto_list.json +8 -0
  149. package/build/src/v1/device_manufacturer_service_client.d.ts +48 -0
  150. package/build/src/v1/device_manufacturer_service_client.js +72 -0
  151. package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
  152. package/build/src/v1/device_manufacturer_service_proto_list.json +8 -0
  153. package/build/src/v1/entity_signals_mapping_service_client.d.ts +48 -0
  154. package/build/src/v1/entity_signals_mapping_service_client.js +72 -0
  155. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  156. package/build/src/v1/entity_signals_mapping_service_proto_list.json +8 -0
  157. package/build/src/v1/gapic_metadata.json +122 -0
  158. package/build/src/v1/geo_target_service_client.d.ts +48 -0
  159. package/build/src/v1/geo_target_service_client.js +72 -0
  160. package/build/src/v1/geo_target_service_client.js.map +1 -1
  161. package/build/src/v1/geo_target_service_proto_list.json +8 -0
  162. package/build/src/v1/index.d.ts +2 -0
  163. package/build/src/v1/index.js +6 -2
  164. package/build/src/v1/index.js.map +1 -1
  165. package/build/src/v1/label_service_client.d.ts +48 -0
  166. package/build/src/v1/label_service_client.js +72 -0
  167. package/build/src/v1/label_service_client.js.map +1 -1
  168. package/build/src/v1/label_service_proto_list.json +8 -0
  169. package/build/src/v1/line_item_service_client.d.ts +48 -0
  170. package/build/src/v1/line_item_service_client.js +72 -0
  171. package/build/src/v1/line_item_service_client.js.map +1 -1
  172. package/build/src/v1/line_item_service_proto_list.json +8 -0
  173. package/build/src/v1/linked_device_service_client.d.ts +48 -0
  174. package/build/src/v1/linked_device_service_client.js +72 -0
  175. package/build/src/v1/linked_device_service_client.js.map +1 -1
  176. package/build/src/v1/linked_device_service_proto_list.json +8 -0
  177. package/build/src/v1/live_stream_service_client.d.ts +48 -0
  178. package/build/src/v1/live_stream_service_client.js +72 -0
  179. package/build/src/v1/live_stream_service_client.js.map +1 -1
  180. package/build/src/v1/live_stream_service_proto_list.json +8 -0
  181. package/build/src/v1/mcm_earnings_service_client.d.ts +48 -0
  182. package/build/src/v1/mcm_earnings_service_client.js +72 -0
  183. package/build/src/v1/mcm_earnings_service_client.js.map +1 -1
  184. package/build/src/v1/mcm_earnings_service_proto_list.json +8 -0
  185. package/build/src/v1/mobile_carrier_service_client.d.ts +48 -0
  186. package/build/src/v1/mobile_carrier_service_client.js +72 -0
  187. package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
  188. package/build/src/v1/mobile_carrier_service_proto_list.json +8 -0
  189. package/build/src/v1/mobile_device_service_client.d.ts +48 -0
  190. package/build/src/v1/mobile_device_service_client.js +72 -0
  191. package/build/src/v1/mobile_device_service_client.js.map +1 -1
  192. package/build/src/v1/mobile_device_service_proto_list.json +8 -0
  193. package/build/src/v1/mobile_device_submodel_service_client.d.ts +48 -0
  194. package/build/src/v1/mobile_device_submodel_service_client.js +72 -0
  195. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
  196. package/build/src/v1/mobile_device_submodel_service_proto_list.json +8 -0
  197. package/build/src/v1/native_style_service_client.d.ts +48 -0
  198. package/build/src/v1/native_style_service_client.js +72 -0
  199. package/build/src/v1/native_style_service_client.js.map +1 -1
  200. package/build/src/v1/native_style_service_proto_list.json +8 -0
  201. package/build/src/v1/network_service_client.d.ts +48 -0
  202. package/build/src/v1/network_service_client.js +72 -0
  203. package/build/src/v1/network_service_client.js.map +1 -1
  204. package/build/src/v1/network_service_proto_list.json +8 -0
  205. package/build/src/v1/operating_system_service_client.d.ts +48 -0
  206. package/build/src/v1/operating_system_service_client.js +72 -0
  207. package/build/src/v1/operating_system_service_client.js.map +1 -1
  208. package/build/src/v1/operating_system_service_proto_list.json +8 -0
  209. package/build/src/v1/operating_system_version_service_client.d.ts +48 -0
  210. package/build/src/v1/operating_system_version_service_client.js +72 -0
  211. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  212. package/build/src/v1/operating_system_version_service_proto_list.json +8 -0
  213. package/build/src/v1/order_service_client.d.ts +48 -0
  214. package/build/src/v1/order_service_client.js +72 -0
  215. package/build/src/v1/order_service_client.js.map +1 -1
  216. package/build/src/v1/order_service_proto_list.json +8 -0
  217. package/build/src/v1/partner_service_client.d.ts +48 -0
  218. package/build/src/v1/partner_service_client.js +72 -0
  219. package/build/src/v1/partner_service_client.js.map +1 -1
  220. package/build/src/v1/partner_service_proto_list.json +8 -0
  221. package/build/src/v1/placement_service_client.d.ts +48 -0
  222. package/build/src/v1/placement_service_client.js +72 -0
  223. package/build/src/v1/placement_service_client.js.map +1 -1
  224. package/build/src/v1/placement_service_proto_list.json +8 -0
  225. package/build/src/v1/private_auction_deal_service_client.d.ts +54 -0
  226. package/build/src/v1/private_auction_deal_service_client.js +76 -0
  227. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  228. package/build/src/v1/private_auction_deal_service_proto_list.json +8 -0
  229. package/build/src/v1/private_auction_service_client.d.ts +48 -0
  230. package/build/src/v1/private_auction_service_client.js +72 -0
  231. package/build/src/v1/private_auction_service_client.js.map +1 -1
  232. package/build/src/v1/private_auction_service_proto_list.json +8 -0
  233. package/build/src/v1/programmatic_buyer_service_client.d.ts +48 -0
  234. package/build/src/v1/programmatic_buyer_service_client.js +72 -0
  235. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  236. package/build/src/v1/programmatic_buyer_service_proto_list.json +8 -0
  237. package/build/src/v1/report_service_client.d.ts +48 -0
  238. package/build/src/v1/report_service_client.js +72 -0
  239. package/build/src/v1/report_service_client.js.map +1 -1
  240. package/build/src/v1/report_service_proto_list.json +8 -0
  241. package/build/src/v1/rich_media_ads_company_service_client.d.ts +48 -0
  242. package/build/src/v1/rich_media_ads_company_service_client.js +72 -0
  243. package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -1
  244. package/build/src/v1/rich_media_ads_company_service_proto_list.json +8 -0
  245. package/build/src/v1/role_service_client.d.ts +48 -0
  246. package/build/src/v1/role_service_client.js +72 -0
  247. package/build/src/v1/role_service_client.js.map +1 -1
  248. package/build/src/v1/role_service_proto_list.json +8 -0
  249. package/build/src/v1/site_service_client.d.ts +48 -0
  250. package/build/src/v1/site_service_client.js +72 -0
  251. package/build/src/v1/site_service_client.js.map +1 -1
  252. package/build/src/v1/site_service_proto_list.json +8 -0
  253. package/build/src/v1/slate_service_client.d.ts +48 -0
  254. package/build/src/v1/slate_service_client.js +72 -0
  255. package/build/src/v1/slate_service_client.js.map +1 -1
  256. package/build/src/v1/slate_service_proto_list.json +8 -0
  257. package/build/src/v1/suggested_ad_unit_service_client.d.ts +48 -0
  258. package/build/src/v1/suggested_ad_unit_service_client.js +72 -0
  259. package/build/src/v1/suggested_ad_unit_service_client.js.map +1 -1
  260. package/build/src/v1/suggested_ad_unit_service_proto_list.json +8 -0
  261. package/build/src/v1/targeting_preset_service_client.d.ts +48 -0
  262. package/build/src/v1/targeting_preset_service_client.js +72 -0
  263. package/build/src/v1/targeting_preset_service_client.js.map +1 -1
  264. package/build/src/v1/targeting_preset_service_proto_list.json +8 -0
  265. package/build/src/v1/taxonomy_category_service_client.d.ts +48 -0
  266. package/build/src/v1/taxonomy_category_service_client.js +72 -0
  267. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  268. package/build/src/v1/taxonomy_category_service_proto_list.json +8 -0
  269. package/build/src/v1/team_service_client.d.ts +48 -0
  270. package/build/src/v1/team_service_client.js +72 -0
  271. package/build/src/v1/team_service_client.js.map +1 -1
  272. package/build/src/v1/team_service_proto_list.json +8 -0
  273. package/build/src/v1/third_party_company_service_client.d.ts +48 -0
  274. package/build/src/v1/third_party_company_service_client.js +72 -0
  275. package/build/src/v1/third_party_company_service_client.js.map +1 -1
  276. package/build/src/v1/third_party_company_service_proto_list.json +8 -0
  277. package/build/src/v1/user_service_client.d.ts +48 -0
  278. package/build/src/v1/user_service_client.js +72 -0
  279. package/build/src/v1/user_service_client.js.map +1 -1
  280. package/build/src/v1/user_service_proto_list.json +8 -0
  281. package/build/src/v1/viewability_provider_service_client.d.ts +48 -0
  282. package/build/src/v1/viewability_provider_service_client.js +72 -0
  283. package/build/src/v1/viewability_provider_service_client.js.map +1 -1
  284. package/build/src/v1/viewability_provider_service_proto_list.json +8 -0
  285. package/package.json +1 -1
@@ -0,0 +1,3026 @@
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.BreakTemplateServiceClient = 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/break_template_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./break_template_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling `BreakTemplate` objects.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class BreakTemplateServiceClient {
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
+ breakTemplateServiceStub;
57
+ /**
58
+ * Construct an instance of BreakTemplateServiceClient.
59
+ *
60
+ * @param {object} [options] - The configuration object.
61
+ * The options accepted by the constructor are described in detail
62
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
63
+ * The common options are:
64
+ * @param {object} [options.credentials] - Credentials object.
65
+ * @param {string} [options.credentials.client_email]
66
+ * @param {string} [options.credentials.private_key]
67
+ * @param {string} [options.email] - Account email address. Required when
68
+ * using a .pem or .p12 keyFilename.
69
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
70
+ * .p12 key downloaded from the Google Developers Console. If you provide
71
+ * a path to a JSON file, the projectId option below is not necessary.
72
+ * NOTE: .pem and .p12 require you to specify options.email as well.
73
+ * @param {number} [options.port] - The port on which to connect to
74
+ * the remote host.
75
+ * @param {string} [options.projectId] - The project ID from the Google
76
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
77
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
78
+ * app is running in an environment which supports
79
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
80
+ * your project ID will be detected automatically.
81
+ * @param {string} [options.apiEndpoint] - The domain name of the
82
+ * API remote host.
83
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
84
+ * Follows the structure of {@link gapicConfig}.
85
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
86
+ * For more information, please check the
87
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
88
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
89
+ * need to avoid loading the default gRPC version and want to use the fallback
90
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
91
+ * ```
92
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
93
+ * const client = new BreakTemplateServiceClient({fallback: true}, gax);
94
+ * ```
95
+ */
96
+ constructor(opts, gaxInstance) {
97
+ // Ensure that options include all the required fields.
98
+ const staticMembers = this.constructor;
99
+ if (opts?.universe_domain &&
100
+ opts?.universeDomain &&
101
+ opts?.universe_domain !== opts?.universeDomain) {
102
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
103
+ }
104
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
105
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
106
+ : undefined;
107
+ this._universeDomain =
108
+ opts?.universeDomain ??
109
+ opts?.universe_domain ??
110
+ universeDomainEnvVar ??
111
+ 'googleapis.com';
112
+ this._servicePath = 'admanager.' + this._universeDomain;
113
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
114
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
115
+ const port = opts?.port || staticMembers.port;
116
+ const clientConfig = opts?.clientConfig ?? {};
117
+ // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute).
118
+ if (!opts) {
119
+ opts = { fallback: true };
120
+ }
121
+ else {
122
+ opts.fallback = opts.fallback ?? true;
123
+ }
124
+ const fallback = opts?.fallback ??
125
+ (typeof window !== 'undefined' && typeof window?.fetch === 'function');
126
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
127
+ // Request numeric enum values if REST transport is used.
128
+ opts.numericEnums = true;
129
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
130
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
131
+ opts['scopes'] = staticMembers.scopes;
132
+ }
133
+ // Load google-gax module synchronously if needed
134
+ if (!gaxInstance) {
135
+ gaxInstance = require('google-gax');
136
+ }
137
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
138
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
139
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
140
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
141
+ // Save options to use in initialize() method.
142
+ this._opts = opts;
143
+ // Save the auth object to the client, for use by other methods.
144
+ this.auth = this._gaxGrpc.auth;
145
+ // Set useJWTAccessWithScope on the auth object.
146
+ this.auth.useJWTAccessWithScope = true;
147
+ // Set defaultServicePath on the auth object.
148
+ this.auth.defaultServicePath = this._servicePath;
149
+ // Set the default scopes in auth client if needed.
150
+ if (servicePath === this._servicePath) {
151
+ this.auth.defaultScopes = staticMembers.scopes;
152
+ }
153
+ // Determine the client header string.
154
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
155
+ if (typeof process === 'object' && 'versions' in process) {
156
+ clientHeader.push(`gl-node/${process.versions.node}`);
157
+ }
158
+ else {
159
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
160
+ }
161
+ if (!opts.fallback) {
162
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
163
+ }
164
+ else {
165
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
166
+ }
167
+ if (opts.libName && opts.libVersion) {
168
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
169
+ }
170
+ // Load the applicable protos.
171
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
172
+ // This API contains "path templates"; forward-slash-separated
173
+ // identifiers to uniquely identify resources within the API.
174
+ // Create useful helper objects for these.
175
+ this.pathTemplates = {
176
+ adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
177
+ adReviewCenterAdPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}'),
178
+ adRulePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adRules/{ad_rule}'),
179
+ adSpotPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adSpots/{ad_spot}'),
180
+ adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
181
+ applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
182
+ audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
183
+ bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
184
+ breakTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/breakTemplates/{break_template}'),
185
+ browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
186
+ browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
187
+ cdnConfigPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cdnConfigs/{cdn_config}'),
188
+ childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
189
+ cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
190
+ cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
191
+ companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
192
+ contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
193
+ contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
194
+ contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
195
+ contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
196
+ creativePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creatives/{creative}'),
197
+ creativeSetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeSets/{creative_set}'),
198
+ creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
199
+ creativeWrapperPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeWrappers/{creative_wrapper}'),
200
+ customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
201
+ customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
202
+ customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
203
+ daiAuthenticationKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}'),
204
+ daiEncodingProfilePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}'),
205
+ daiSessionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiSessions/{dai_session}'),
206
+ defaultThirdPartyDataDeclarationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/defaultThirdPartyDataDeclaration'),
207
+ deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
208
+ deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
209
+ deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
210
+ entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
211
+ geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
212
+ labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
213
+ lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
214
+ linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
215
+ liveStreamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreams/{live_stream}'),
216
+ liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
217
+ mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
218
+ mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
219
+ mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
220
+ nativeStylePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/nativeStyles/{native_style}'),
221
+ networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
222
+ operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
223
+ operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
224
+ orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
225
+ partnerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/partners/{partner}'),
226
+ placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
227
+ privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
228
+ privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
229
+ programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
230
+ reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
231
+ richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
232
+ rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
233
+ sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
234
+ slatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/slates/{slate}'),
235
+ suggestedAdUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/suggestedAdUnits/{suggested_ad_unit}'),
236
+ targetingPresetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/targetingPresets/{targeting_preset}'),
237
+ taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
238
+ teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
239
+ thirdPartyCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/thirdPartyCompanies/{third_party_company}'),
240
+ userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
241
+ viewabilityProviderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/viewabilityProviders/{viewability_provider}'),
242
+ webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
243
+ };
244
+ // Some of the methods on this service return "paged" results,
245
+ // (e.g. 50 results at a time, with tokens to get subsequent
246
+ // pages). Denote the keys used for pagination and results.
247
+ this.descriptors.page = {
248
+ listBreakTemplates: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'breakTemplates'),
249
+ };
250
+ // Put together the default options sent with requests.
251
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.BreakTemplateService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
252
+ // Set up a dictionary of "inner API calls"; the core implementation
253
+ // of calling the API is handled in `google-gax`, with this code
254
+ // merely providing the destination and request information.
255
+ this.innerApiCalls = {};
256
+ // Add a warn function to the client constructor so it can be easily tested.
257
+ this.warn = this._gaxModule.warn;
258
+ }
259
+ /**
260
+ * Initialize the client.
261
+ * Performs asynchronous operations (such as authentication) and prepares the client.
262
+ * This function will be called automatically when any class method is called for the
263
+ * first time, but if you need to initialize it before calling an actual method,
264
+ * feel free to call initialize() directly.
265
+ *
266
+ * You can await on this method if you want to make sure the client is initialized.
267
+ *
268
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
269
+ */
270
+ initialize() {
271
+ // If the client stub promise is already initialized, return immediately.
272
+ if (this.breakTemplateServiceStub) {
273
+ return this.breakTemplateServiceStub;
274
+ }
275
+ // Put together the "service stub" for
276
+ // google.ads.admanager.v1.BreakTemplateService.
277
+ this.breakTemplateServiceStub = this._gaxGrpc.createStub(this._opts.fallback
278
+ ? this._protos.lookupService('google.ads.admanager.v1.BreakTemplateService')
279
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
280
+ this._protos.google.ads.admanager.v1.BreakTemplateService, this._opts, this._providedCustomServicePath);
281
+ // Iterate over each of the methods that the service provides
282
+ // and create an API call method for each.
283
+ const breakTemplateServiceStubMethods = [
284
+ 'getBreakTemplate',
285
+ 'listBreakTemplates',
286
+ 'createBreakTemplate',
287
+ 'batchCreateBreakTemplates',
288
+ 'updateBreakTemplate',
289
+ 'batchUpdateBreakTemplates',
290
+ ];
291
+ for (const methodName of breakTemplateServiceStubMethods) {
292
+ const callPromise = this.breakTemplateServiceStub.then(stub => (...args) => {
293
+ if (this._terminated) {
294
+ return Promise.reject('The client has already been closed.');
295
+ }
296
+ const func = stub[methodName];
297
+ return func.apply(stub, args);
298
+ }, (err) => () => {
299
+ throw err;
300
+ });
301
+ const descriptor = this.descriptors.page[methodName] || undefined;
302
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
303
+ this.innerApiCalls[methodName] = apiCall;
304
+ }
305
+ return this.breakTemplateServiceStub;
306
+ }
307
+ /**
308
+ * The DNS address for this API service.
309
+ * @deprecated Use the apiEndpoint method of the client instance.
310
+ * @returns {string} The DNS address for this service.
311
+ */
312
+ static get servicePath() {
313
+ if (typeof process === 'object' &&
314
+ typeof process.emitWarning === 'function') {
315
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
316
+ }
317
+ return 'admanager.googleapis.com';
318
+ }
319
+ /**
320
+ * The DNS address for this API service - same as servicePath.
321
+ * @deprecated Use the apiEndpoint method of the client instance.
322
+ * @returns {string} The DNS address for this service.
323
+ */
324
+ static get apiEndpoint() {
325
+ if (typeof process === 'object' &&
326
+ typeof process.emitWarning === 'function') {
327
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
328
+ }
329
+ return 'admanager.googleapis.com';
330
+ }
331
+ /**
332
+ * The DNS address for this API service.
333
+ * @returns {string} The DNS address for this service.
334
+ */
335
+ get apiEndpoint() {
336
+ return this._servicePath;
337
+ }
338
+ get universeDomain() {
339
+ return this._universeDomain;
340
+ }
341
+ /**
342
+ * The port for this API service.
343
+ * @returns {number} The default port for this service.
344
+ */
345
+ static get port() {
346
+ return 443;
347
+ }
348
+ /**
349
+ * The scopes needed to make gRPC calls for every method defined
350
+ * in this service.
351
+ * @returns {string[]} List of default scopes.
352
+ */
353
+ static get scopes() {
354
+ return [
355
+ 'https://www.googleapis.com/auth/admanager',
356
+ 'https://www.googleapis.com/auth/admanager.readonly',
357
+ ];
358
+ }
359
+ /**
360
+ * Return the project ID used by this class.
361
+ * @returns {Promise} A promise that resolves to string containing the project ID.
362
+ */
363
+ getProjectId(callback) {
364
+ if (callback) {
365
+ this.auth.getProjectId(callback);
366
+ return;
367
+ }
368
+ return this.auth.getProjectId();
369
+ }
370
+ getBreakTemplate(request, optionsOrCallback, callback) {
371
+ request = request || {};
372
+ let options;
373
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
374
+ callback = optionsOrCallback;
375
+ options = {};
376
+ }
377
+ else {
378
+ options = optionsOrCallback;
379
+ }
380
+ options = options || {};
381
+ options.otherArgs = options.otherArgs || {};
382
+ options.otherArgs.headers = options.otherArgs.headers || {};
383
+ options.otherArgs.headers['x-goog-request-params'] =
384
+ this._gaxModule.routingHeader.fromParams({
385
+ name: request.name ?? '',
386
+ });
387
+ this.initialize().catch(err => {
388
+ throw err;
389
+ });
390
+ this._log.info('getBreakTemplate request %j', request);
391
+ const wrappedCallback = callback
392
+ ? (error, response, options, rawResponse) => {
393
+ this._log.info('getBreakTemplate response %j', response);
394
+ callback(error, response, options, rawResponse); // We verified callback above.
395
+ }
396
+ : undefined;
397
+ return this.innerApiCalls
398
+ .getBreakTemplate(request, options, wrappedCallback)
399
+ ?.then(([response, options, rawResponse]) => {
400
+ this._log.info('getBreakTemplate response %j', response);
401
+ return [response, options, rawResponse];
402
+ })
403
+ .catch((error) => {
404
+ if (error &&
405
+ 'statusDetails' in error &&
406
+ error.statusDetails instanceof Array) {
407
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
408
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
409
+ }
410
+ throw error;
411
+ });
412
+ }
413
+ createBreakTemplate(request, optionsOrCallback, callback) {
414
+ request = request || {};
415
+ let options;
416
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
417
+ callback = optionsOrCallback;
418
+ options = {};
419
+ }
420
+ else {
421
+ options = optionsOrCallback;
422
+ }
423
+ options = options || {};
424
+ options.otherArgs = options.otherArgs || {};
425
+ options.otherArgs.headers = options.otherArgs.headers || {};
426
+ options.otherArgs.headers['x-goog-request-params'] =
427
+ this._gaxModule.routingHeader.fromParams({
428
+ parent: request.parent ?? '',
429
+ });
430
+ this.initialize().catch(err => {
431
+ throw err;
432
+ });
433
+ this._log.info('createBreakTemplate request %j', request);
434
+ const wrappedCallback = callback
435
+ ? (error, response, options, rawResponse) => {
436
+ this._log.info('createBreakTemplate response %j', response);
437
+ callback(error, response, options, rawResponse); // We verified callback above.
438
+ }
439
+ : undefined;
440
+ return this.innerApiCalls
441
+ .createBreakTemplate(request, options, wrappedCallback)
442
+ ?.then(([response, options, rawResponse]) => {
443
+ this._log.info('createBreakTemplate response %j', response);
444
+ return [response, options, rawResponse];
445
+ })
446
+ .catch((error) => {
447
+ if (error &&
448
+ 'statusDetails' in error &&
449
+ error.statusDetails instanceof Array) {
450
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
451
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
452
+ }
453
+ throw error;
454
+ });
455
+ }
456
+ batchCreateBreakTemplates(request, optionsOrCallback, callback) {
457
+ request = request || {};
458
+ let options;
459
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
460
+ callback = optionsOrCallback;
461
+ options = {};
462
+ }
463
+ else {
464
+ options = optionsOrCallback;
465
+ }
466
+ options = options || {};
467
+ options.otherArgs = options.otherArgs || {};
468
+ options.otherArgs.headers = options.otherArgs.headers || {};
469
+ options.otherArgs.headers['x-goog-request-params'] =
470
+ this._gaxModule.routingHeader.fromParams({
471
+ parent: request.parent ?? '',
472
+ });
473
+ this.initialize().catch(err => {
474
+ throw err;
475
+ });
476
+ this._log.info('batchCreateBreakTemplates request %j', request);
477
+ const wrappedCallback = callback
478
+ ? (error, response, options, rawResponse) => {
479
+ this._log.info('batchCreateBreakTemplates response %j', response);
480
+ callback(error, response, options, rawResponse); // We verified callback above.
481
+ }
482
+ : undefined;
483
+ return this.innerApiCalls
484
+ .batchCreateBreakTemplates(request, options, wrappedCallback)
485
+ ?.then(([response, options, rawResponse]) => {
486
+ this._log.info('batchCreateBreakTemplates response %j', response);
487
+ return [response, options, rawResponse];
488
+ })
489
+ .catch((error) => {
490
+ if (error &&
491
+ 'statusDetails' in error &&
492
+ error.statusDetails instanceof Array) {
493
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
494
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
495
+ }
496
+ throw error;
497
+ });
498
+ }
499
+ updateBreakTemplate(request, optionsOrCallback, callback) {
500
+ request = request || {};
501
+ let options;
502
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
503
+ callback = optionsOrCallback;
504
+ options = {};
505
+ }
506
+ else {
507
+ options = optionsOrCallback;
508
+ }
509
+ options = options || {};
510
+ options.otherArgs = options.otherArgs || {};
511
+ options.otherArgs.headers = options.otherArgs.headers || {};
512
+ options.otherArgs.headers['x-goog-request-params'] =
513
+ this._gaxModule.routingHeader.fromParams({
514
+ 'break_template.name': request.breakTemplate.name ?? '',
515
+ });
516
+ this.initialize().catch(err => {
517
+ throw err;
518
+ });
519
+ this._log.info('updateBreakTemplate request %j', request);
520
+ const wrappedCallback = callback
521
+ ? (error, response, options, rawResponse) => {
522
+ this._log.info('updateBreakTemplate response %j', response);
523
+ callback(error, response, options, rawResponse); // We verified callback above.
524
+ }
525
+ : undefined;
526
+ return this.innerApiCalls
527
+ .updateBreakTemplate(request, options, wrappedCallback)
528
+ ?.then(([response, options, rawResponse]) => {
529
+ this._log.info('updateBreakTemplate response %j', response);
530
+ return [response, options, rawResponse];
531
+ })
532
+ .catch((error) => {
533
+ if (error &&
534
+ 'statusDetails' in error &&
535
+ error.statusDetails instanceof Array) {
536
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
537
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
538
+ }
539
+ throw error;
540
+ });
541
+ }
542
+ batchUpdateBreakTemplates(request, optionsOrCallback, callback) {
543
+ request = request || {};
544
+ let options;
545
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
546
+ callback = optionsOrCallback;
547
+ options = {};
548
+ }
549
+ else {
550
+ options = optionsOrCallback;
551
+ }
552
+ options = options || {};
553
+ options.otherArgs = options.otherArgs || {};
554
+ options.otherArgs.headers = options.otherArgs.headers || {};
555
+ options.otherArgs.headers['x-goog-request-params'] =
556
+ this._gaxModule.routingHeader.fromParams({
557
+ parent: request.parent ?? '',
558
+ });
559
+ this.initialize().catch(err => {
560
+ throw err;
561
+ });
562
+ this._log.info('batchUpdateBreakTemplates request %j', request);
563
+ const wrappedCallback = callback
564
+ ? (error, response, options, rawResponse) => {
565
+ this._log.info('batchUpdateBreakTemplates response %j', response);
566
+ callback(error, response, options, rawResponse); // We verified callback above.
567
+ }
568
+ : undefined;
569
+ return this.innerApiCalls
570
+ .batchUpdateBreakTemplates(request, options, wrappedCallback)
571
+ ?.then(([response, options, rawResponse]) => {
572
+ this._log.info('batchUpdateBreakTemplates response %j', response);
573
+ return [response, options, rawResponse];
574
+ })
575
+ .catch((error) => {
576
+ if (error &&
577
+ 'statusDetails' in error &&
578
+ error.statusDetails instanceof Array) {
579
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
580
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
581
+ }
582
+ throw error;
583
+ });
584
+ }
585
+ listBreakTemplates(request, optionsOrCallback, callback) {
586
+ request = request || {};
587
+ let options;
588
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
589
+ callback = optionsOrCallback;
590
+ options = {};
591
+ }
592
+ else {
593
+ options = optionsOrCallback;
594
+ }
595
+ options = options || {};
596
+ options.otherArgs = options.otherArgs || {};
597
+ options.otherArgs.headers = options.otherArgs.headers || {};
598
+ options.otherArgs.headers['x-goog-request-params'] =
599
+ this._gaxModule.routingHeader.fromParams({
600
+ parent: request.parent ?? '',
601
+ });
602
+ this.initialize().catch(err => {
603
+ throw err;
604
+ });
605
+ const wrappedCallback = callback
606
+ ? (error, values, nextPageRequest, rawResponse) => {
607
+ this._log.info('listBreakTemplates values %j', values);
608
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
609
+ }
610
+ : undefined;
611
+ this._log.info('listBreakTemplates request %j', request);
612
+ return this.innerApiCalls
613
+ .listBreakTemplates(request, options, wrappedCallback)
614
+ ?.then(([response, input, output]) => {
615
+ this._log.info('listBreakTemplates values %j', response);
616
+ return [response, input, output];
617
+ });
618
+ }
619
+ /**
620
+ * Equivalent to `listBreakTemplates`, but returns a NodeJS Stream object.
621
+ * @param {Object} request
622
+ * The request object that will be sent.
623
+ * @param {string} request.parent
624
+ * Required. The parent, which owns this collection of `BreakTemplates`.
625
+ * Format: `networks/{network_code}`
626
+ * @param {number} [request.pageSize]
627
+ * Optional. The maximum number of `BreakTemplates` to return. The service may
628
+ * return fewer than this value. If unspecified, at most 50 `BreakTemplates`
629
+ * will be returned. The maximum value is 1000; values above 1000 will be
630
+ * coerced to 1000.
631
+ * @param {string} [request.pageToken]
632
+ * Optional. A page token, received from a previous `ListBreakTemplates` call.
633
+ * Provide this to retrieve the subsequent page.
634
+ *
635
+ * When paginating, all other parameters provided to `ListBreakTemplates` must
636
+ * match the call that provided the page token.
637
+ * @param {string} [request.filter]
638
+ * Optional. Expression to filter the response.
639
+ * See syntax details at
640
+ * https://developers.google.com/ad-manager/api/beta/filters
641
+ *
642
+ * **Filterable fields:**
643
+ *
644
+ * * `adBreakOptimizationType`
645
+ * * `adTagName`
646
+ * * `customTemplate`
647
+ * * `displayName`
648
+ * * `fillOrderDirectionType`
649
+ * * `name`
650
+ * @param {string} [request.orderBy]
651
+ * Optional. Expression to specify sorting order.
652
+ * See syntax details at
653
+ * https://developers.google.com/ad-manager/api/beta/filters#order
654
+ * @param {number} [request.skip]
655
+ * Optional. Number of individual resources to skip while paginating.
656
+ * @param {object} [options]
657
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
658
+ * @returns {Stream}
659
+ * An object stream which emits an object representing {@link protos.google.ads.admanager.v1.BreakTemplate|BreakTemplate} on 'data' event.
660
+ * The client library will perform auto-pagination by default: it will call the API as many
661
+ * times as needed. Note that it can affect your quota.
662
+ * We recommend using `listBreakTemplatesAsync()`
663
+ * method described below for async iteration which you can stop as needed.
664
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
665
+ * for more details and examples.
666
+ */
667
+ listBreakTemplatesStream(request, options) {
668
+ request = request || {};
669
+ options = options || {};
670
+ options.otherArgs = options.otherArgs || {};
671
+ options.otherArgs.headers = options.otherArgs.headers || {};
672
+ options.otherArgs.headers['x-goog-request-params'] =
673
+ this._gaxModule.routingHeader.fromParams({
674
+ parent: request.parent ?? '',
675
+ });
676
+ const defaultCallSettings = this._defaults['listBreakTemplates'];
677
+ const callSettings = defaultCallSettings.merge(options);
678
+ this.initialize().catch(err => {
679
+ throw err;
680
+ });
681
+ this._log.info('listBreakTemplates stream %j', request);
682
+ return this.descriptors.page.listBreakTemplates.createStream(this.innerApiCalls.listBreakTemplates, request, callSettings);
683
+ }
684
+ /**
685
+ * Equivalent to `listBreakTemplates`, but returns an iterable object.
686
+ *
687
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
688
+ * @param {Object} request
689
+ * The request object that will be sent.
690
+ * @param {string} request.parent
691
+ * Required. The parent, which owns this collection of `BreakTemplates`.
692
+ * Format: `networks/{network_code}`
693
+ * @param {number} [request.pageSize]
694
+ * Optional. The maximum number of `BreakTemplates` to return. The service may
695
+ * return fewer than this value. If unspecified, at most 50 `BreakTemplates`
696
+ * will be returned. The maximum value is 1000; values above 1000 will be
697
+ * coerced to 1000.
698
+ * @param {string} [request.pageToken]
699
+ * Optional. A page token, received from a previous `ListBreakTemplates` call.
700
+ * Provide this to retrieve the subsequent page.
701
+ *
702
+ * When paginating, all other parameters provided to `ListBreakTemplates` must
703
+ * match the call that provided the page token.
704
+ * @param {string} [request.filter]
705
+ * Optional. Expression to filter the response.
706
+ * See syntax details at
707
+ * https://developers.google.com/ad-manager/api/beta/filters
708
+ *
709
+ * **Filterable fields:**
710
+ *
711
+ * * `adBreakOptimizationType`
712
+ * * `adTagName`
713
+ * * `customTemplate`
714
+ * * `displayName`
715
+ * * `fillOrderDirectionType`
716
+ * * `name`
717
+ * @param {string} [request.orderBy]
718
+ * Optional. Expression to specify sorting order.
719
+ * See syntax details at
720
+ * https://developers.google.com/ad-manager/api/beta/filters#order
721
+ * @param {number} [request.skip]
722
+ * Optional. Number of individual resources to skip while paginating.
723
+ * @param {object} [options]
724
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
725
+ * @returns {Object}
726
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
727
+ * When you iterate the returned iterable, each element will be an object representing
728
+ * {@link protos.google.ads.admanager.v1.BreakTemplate|BreakTemplate}. The API will be called under the hood as needed, once per the page,
729
+ * so you can stop the iteration when you don't need more results.
730
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
731
+ * for more details and examples.
732
+ * @example <caption>include:samples/generated/v1/break_template_service.list_break_templates.js</caption>
733
+ * region_tag:admanager_v1_generated_BreakTemplateService_ListBreakTemplates_async
734
+ */
735
+ listBreakTemplatesAsync(request, options) {
736
+ request = request || {};
737
+ options = options || {};
738
+ options.otherArgs = options.otherArgs || {};
739
+ options.otherArgs.headers = options.otherArgs.headers || {};
740
+ options.otherArgs.headers['x-goog-request-params'] =
741
+ this._gaxModule.routingHeader.fromParams({
742
+ parent: request.parent ?? '',
743
+ });
744
+ const defaultCallSettings = this._defaults['listBreakTemplates'];
745
+ const callSettings = defaultCallSettings.merge(options);
746
+ this.initialize().catch(err => {
747
+ throw err;
748
+ });
749
+ this._log.info('listBreakTemplates iterate %j', request);
750
+ return this.descriptors.page.listBreakTemplates.asyncIterate(this.innerApiCalls['listBreakTemplates'], request, callSettings);
751
+ }
752
+ // --------------------
753
+ // -- Path templates --
754
+ // --------------------
755
+ /**
756
+ * Return a fully-qualified adBreak resource name string.
757
+ *
758
+ * @param {string} network_code
759
+ * @param {string} asset_key
760
+ * @param {string} ad_break
761
+ * @returns {string} Resource name string.
762
+ */
763
+ adBreakPath(networkCode, assetKey, adBreak) {
764
+ return this.pathTemplates.adBreakPathTemplate.render({
765
+ network_code: networkCode,
766
+ asset_key: assetKey,
767
+ ad_break: adBreak,
768
+ });
769
+ }
770
+ /**
771
+ * Parse the network_code from AdBreak resource.
772
+ *
773
+ * @param {string} adBreakName
774
+ * A fully-qualified path representing AdBreak resource.
775
+ * @returns {string} A string representing the network_code.
776
+ */
777
+ matchNetworkCodeFromAdBreakName(adBreakName) {
778
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
779
+ .network_code;
780
+ }
781
+ /**
782
+ * Parse the asset_key from AdBreak resource.
783
+ *
784
+ * @param {string} adBreakName
785
+ * A fully-qualified path representing AdBreak resource.
786
+ * @returns {string} A string representing the asset_key.
787
+ */
788
+ matchAssetKeyFromAdBreakName(adBreakName) {
789
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
790
+ }
791
+ /**
792
+ * Parse the ad_break from AdBreak resource.
793
+ *
794
+ * @param {string} adBreakName
795
+ * A fully-qualified path representing AdBreak resource.
796
+ * @returns {string} A string representing the ad_break.
797
+ */
798
+ matchAdBreakFromAdBreakName(adBreakName) {
799
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
800
+ }
801
+ /**
802
+ * Return a fully-qualified adReviewCenterAd resource name string.
803
+ *
804
+ * @param {string} network_code
805
+ * @param {string} web_property_code
806
+ * @param {string} ad_review_center_ad
807
+ * @returns {string} Resource name string.
808
+ */
809
+ adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
810
+ return this.pathTemplates.adReviewCenterAdPathTemplate.render({
811
+ network_code: networkCode,
812
+ web_property_code: webPropertyCode,
813
+ ad_review_center_ad: adReviewCenterAd,
814
+ });
815
+ }
816
+ /**
817
+ * Parse the network_code from AdReviewCenterAd resource.
818
+ *
819
+ * @param {string} adReviewCenterAdName
820
+ * A fully-qualified path representing AdReviewCenterAd resource.
821
+ * @returns {string} A string representing the network_code.
822
+ */
823
+ matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
824
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
825
+ }
826
+ /**
827
+ * Parse the web_property_code from AdReviewCenterAd resource.
828
+ *
829
+ * @param {string} adReviewCenterAdName
830
+ * A fully-qualified path representing AdReviewCenterAd resource.
831
+ * @returns {string} A string representing the web_property_code.
832
+ */
833
+ matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
834
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
835
+ }
836
+ /**
837
+ * Parse the ad_review_center_ad from AdReviewCenterAd resource.
838
+ *
839
+ * @param {string} adReviewCenterAdName
840
+ * A fully-qualified path representing AdReviewCenterAd resource.
841
+ * @returns {string} A string representing the ad_review_center_ad.
842
+ */
843
+ matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
844
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
845
+ }
846
+ /**
847
+ * Return a fully-qualified adRule resource name string.
848
+ *
849
+ * @param {string} network_code
850
+ * @param {string} ad_rule
851
+ * @returns {string} Resource name string.
852
+ */
853
+ adRulePath(networkCode, adRule) {
854
+ return this.pathTemplates.adRulePathTemplate.render({
855
+ network_code: networkCode,
856
+ ad_rule: adRule,
857
+ });
858
+ }
859
+ /**
860
+ * Parse the network_code from AdRule resource.
861
+ *
862
+ * @param {string} adRuleName
863
+ * A fully-qualified path representing AdRule resource.
864
+ * @returns {string} A string representing the network_code.
865
+ */
866
+ matchNetworkCodeFromAdRuleName(adRuleName) {
867
+ return this.pathTemplates.adRulePathTemplate.match(adRuleName).network_code;
868
+ }
869
+ /**
870
+ * Parse the ad_rule from AdRule resource.
871
+ *
872
+ * @param {string} adRuleName
873
+ * A fully-qualified path representing AdRule resource.
874
+ * @returns {string} A string representing the ad_rule.
875
+ */
876
+ matchAdRuleFromAdRuleName(adRuleName) {
877
+ return this.pathTemplates.adRulePathTemplate.match(adRuleName).ad_rule;
878
+ }
879
+ /**
880
+ * Return a fully-qualified adSpot resource name string.
881
+ *
882
+ * @param {string} network_code
883
+ * @param {string} ad_spot
884
+ * @returns {string} Resource name string.
885
+ */
886
+ adSpotPath(networkCode, adSpot) {
887
+ return this.pathTemplates.adSpotPathTemplate.render({
888
+ network_code: networkCode,
889
+ ad_spot: adSpot,
890
+ });
891
+ }
892
+ /**
893
+ * Parse the network_code from AdSpot resource.
894
+ *
895
+ * @param {string} adSpotName
896
+ * A fully-qualified path representing AdSpot resource.
897
+ * @returns {string} A string representing the network_code.
898
+ */
899
+ matchNetworkCodeFromAdSpotName(adSpotName) {
900
+ return this.pathTemplates.adSpotPathTemplate.match(adSpotName).network_code;
901
+ }
902
+ /**
903
+ * Parse the ad_spot from AdSpot resource.
904
+ *
905
+ * @param {string} adSpotName
906
+ * A fully-qualified path representing AdSpot resource.
907
+ * @returns {string} A string representing the ad_spot.
908
+ */
909
+ matchAdSpotFromAdSpotName(adSpotName) {
910
+ return this.pathTemplates.adSpotPathTemplate.match(adSpotName).ad_spot;
911
+ }
912
+ /**
913
+ * Return a fully-qualified adUnit resource name string.
914
+ *
915
+ * @param {string} network_code
916
+ * @param {string} ad_unit
917
+ * @returns {string} Resource name string.
918
+ */
919
+ adUnitPath(networkCode, adUnit) {
920
+ return this.pathTemplates.adUnitPathTemplate.render({
921
+ network_code: networkCode,
922
+ ad_unit: adUnit,
923
+ });
924
+ }
925
+ /**
926
+ * Parse the network_code from AdUnit resource.
927
+ *
928
+ * @param {string} adUnitName
929
+ * A fully-qualified path representing AdUnit resource.
930
+ * @returns {string} A string representing the network_code.
931
+ */
932
+ matchNetworkCodeFromAdUnitName(adUnitName) {
933
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
934
+ }
935
+ /**
936
+ * Parse the ad_unit from AdUnit resource.
937
+ *
938
+ * @param {string} adUnitName
939
+ * A fully-qualified path representing AdUnit resource.
940
+ * @returns {string} A string representing the ad_unit.
941
+ */
942
+ matchAdUnitFromAdUnitName(adUnitName) {
943
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
944
+ }
945
+ /**
946
+ * Return a fully-qualified application resource name string.
947
+ *
948
+ * @param {string} network_code
949
+ * @param {string} application
950
+ * @returns {string} Resource name string.
951
+ */
952
+ applicationPath(networkCode, application) {
953
+ return this.pathTemplates.applicationPathTemplate.render({
954
+ network_code: networkCode,
955
+ application: application,
956
+ });
957
+ }
958
+ /**
959
+ * Parse the network_code from Application resource.
960
+ *
961
+ * @param {string} applicationName
962
+ * A fully-qualified path representing Application resource.
963
+ * @returns {string} A string representing the network_code.
964
+ */
965
+ matchNetworkCodeFromApplicationName(applicationName) {
966
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
967
+ .network_code;
968
+ }
969
+ /**
970
+ * Parse the application from Application resource.
971
+ *
972
+ * @param {string} applicationName
973
+ * A fully-qualified path representing Application resource.
974
+ * @returns {string} A string representing the application.
975
+ */
976
+ matchApplicationFromApplicationName(applicationName) {
977
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
978
+ .application;
979
+ }
980
+ /**
981
+ * Return a fully-qualified audienceSegment resource name string.
982
+ *
983
+ * @param {string} network_code
984
+ * @param {string} audience_segment
985
+ * @returns {string} Resource name string.
986
+ */
987
+ audienceSegmentPath(networkCode, audienceSegment) {
988
+ return this.pathTemplates.audienceSegmentPathTemplate.render({
989
+ network_code: networkCode,
990
+ audience_segment: audienceSegment,
991
+ });
992
+ }
993
+ /**
994
+ * Parse the network_code from AudienceSegment resource.
995
+ *
996
+ * @param {string} audienceSegmentName
997
+ * A fully-qualified path representing AudienceSegment resource.
998
+ * @returns {string} A string representing the network_code.
999
+ */
1000
+ matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
1001
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
1002
+ }
1003
+ /**
1004
+ * Parse the audience_segment from AudienceSegment resource.
1005
+ *
1006
+ * @param {string} audienceSegmentName
1007
+ * A fully-qualified path representing AudienceSegment resource.
1008
+ * @returns {string} A string representing the audience_segment.
1009
+ */
1010
+ matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
1011
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
1012
+ }
1013
+ /**
1014
+ * Return a fully-qualified bandwidthGroup resource name string.
1015
+ *
1016
+ * @param {string} network_code
1017
+ * @param {string} bandwidth_group
1018
+ * @returns {string} Resource name string.
1019
+ */
1020
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
1021
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
1022
+ network_code: networkCode,
1023
+ bandwidth_group: bandwidthGroup,
1024
+ });
1025
+ }
1026
+ /**
1027
+ * Parse the network_code from BandwidthGroup resource.
1028
+ *
1029
+ * @param {string} bandwidthGroupName
1030
+ * A fully-qualified path representing BandwidthGroup resource.
1031
+ * @returns {string} A string representing the network_code.
1032
+ */
1033
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
1034
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
1035
+ }
1036
+ /**
1037
+ * Parse the bandwidth_group from BandwidthGroup resource.
1038
+ *
1039
+ * @param {string} bandwidthGroupName
1040
+ * A fully-qualified path representing BandwidthGroup resource.
1041
+ * @returns {string} A string representing the bandwidth_group.
1042
+ */
1043
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
1044
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
1045
+ }
1046
+ /**
1047
+ * Return a fully-qualified breakTemplate resource name string.
1048
+ *
1049
+ * @param {string} network_code
1050
+ * @param {string} break_template
1051
+ * @returns {string} Resource name string.
1052
+ */
1053
+ breakTemplatePath(networkCode, breakTemplate) {
1054
+ return this.pathTemplates.breakTemplatePathTemplate.render({
1055
+ network_code: networkCode,
1056
+ break_template: breakTemplate,
1057
+ });
1058
+ }
1059
+ /**
1060
+ * Parse the network_code from BreakTemplate resource.
1061
+ *
1062
+ * @param {string} breakTemplateName
1063
+ * A fully-qualified path representing BreakTemplate resource.
1064
+ * @returns {string} A string representing the network_code.
1065
+ */
1066
+ matchNetworkCodeFromBreakTemplateName(breakTemplateName) {
1067
+ return this.pathTemplates.breakTemplatePathTemplate.match(breakTemplateName)
1068
+ .network_code;
1069
+ }
1070
+ /**
1071
+ * Parse the break_template from BreakTemplate resource.
1072
+ *
1073
+ * @param {string} breakTemplateName
1074
+ * A fully-qualified path representing BreakTemplate resource.
1075
+ * @returns {string} A string representing the break_template.
1076
+ */
1077
+ matchBreakTemplateFromBreakTemplateName(breakTemplateName) {
1078
+ return this.pathTemplates.breakTemplatePathTemplate.match(breakTemplateName)
1079
+ .break_template;
1080
+ }
1081
+ /**
1082
+ * Return a fully-qualified browser resource name string.
1083
+ *
1084
+ * @param {string} network_code
1085
+ * @param {string} browser
1086
+ * @returns {string} Resource name string.
1087
+ */
1088
+ browserPath(networkCode, browser) {
1089
+ return this.pathTemplates.browserPathTemplate.render({
1090
+ network_code: networkCode,
1091
+ browser: browser,
1092
+ });
1093
+ }
1094
+ /**
1095
+ * Parse the network_code from Browser resource.
1096
+ *
1097
+ * @param {string} browserName
1098
+ * A fully-qualified path representing Browser resource.
1099
+ * @returns {string} A string representing the network_code.
1100
+ */
1101
+ matchNetworkCodeFromBrowserName(browserName) {
1102
+ return this.pathTemplates.browserPathTemplate.match(browserName)
1103
+ .network_code;
1104
+ }
1105
+ /**
1106
+ * Parse the browser from Browser resource.
1107
+ *
1108
+ * @param {string} browserName
1109
+ * A fully-qualified path representing Browser resource.
1110
+ * @returns {string} A string representing the browser.
1111
+ */
1112
+ matchBrowserFromBrowserName(browserName) {
1113
+ return this.pathTemplates.browserPathTemplate.match(browserName).browser;
1114
+ }
1115
+ /**
1116
+ * Return a fully-qualified browserLanguage resource name string.
1117
+ *
1118
+ * @param {string} network_code
1119
+ * @param {string} browser_language
1120
+ * @returns {string} Resource name string.
1121
+ */
1122
+ browserLanguagePath(networkCode, browserLanguage) {
1123
+ return this.pathTemplates.browserLanguagePathTemplate.render({
1124
+ network_code: networkCode,
1125
+ browser_language: browserLanguage,
1126
+ });
1127
+ }
1128
+ /**
1129
+ * Parse the network_code from BrowserLanguage resource.
1130
+ *
1131
+ * @param {string} browserLanguageName
1132
+ * A fully-qualified path representing BrowserLanguage resource.
1133
+ * @returns {string} A string representing the network_code.
1134
+ */
1135
+ matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
1136
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
1137
+ }
1138
+ /**
1139
+ * Parse the browser_language from BrowserLanguage resource.
1140
+ *
1141
+ * @param {string} browserLanguageName
1142
+ * A fully-qualified path representing BrowserLanguage resource.
1143
+ * @returns {string} A string representing the browser_language.
1144
+ */
1145
+ matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
1146
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
1147
+ }
1148
+ /**
1149
+ * Return a fully-qualified cdnConfig resource name string.
1150
+ *
1151
+ * @param {string} network_code
1152
+ * @param {string} cdn_config
1153
+ * @returns {string} Resource name string.
1154
+ */
1155
+ cdnConfigPath(networkCode, cdnConfig) {
1156
+ return this.pathTemplates.cdnConfigPathTemplate.render({
1157
+ network_code: networkCode,
1158
+ cdn_config: cdnConfig,
1159
+ });
1160
+ }
1161
+ /**
1162
+ * Parse the network_code from CdnConfig resource.
1163
+ *
1164
+ * @param {string} cdnConfigName
1165
+ * A fully-qualified path representing CdnConfig resource.
1166
+ * @returns {string} A string representing the network_code.
1167
+ */
1168
+ matchNetworkCodeFromCdnConfigName(cdnConfigName) {
1169
+ return this.pathTemplates.cdnConfigPathTemplate.match(cdnConfigName)
1170
+ .network_code;
1171
+ }
1172
+ /**
1173
+ * Parse the cdn_config from CdnConfig resource.
1174
+ *
1175
+ * @param {string} cdnConfigName
1176
+ * A fully-qualified path representing CdnConfig resource.
1177
+ * @returns {string} A string representing the cdn_config.
1178
+ */
1179
+ matchCdnConfigFromCdnConfigName(cdnConfigName) {
1180
+ return this.pathTemplates.cdnConfigPathTemplate.match(cdnConfigName)
1181
+ .cdn_config;
1182
+ }
1183
+ /**
1184
+ * Return a fully-qualified childPublisher resource name string.
1185
+ *
1186
+ * @param {string} network_code
1187
+ * @param {string} child_publisher
1188
+ * @returns {string} Resource name string.
1189
+ */
1190
+ childPublisherPath(networkCode, childPublisher) {
1191
+ return this.pathTemplates.childPublisherPathTemplate.render({
1192
+ network_code: networkCode,
1193
+ child_publisher: childPublisher,
1194
+ });
1195
+ }
1196
+ /**
1197
+ * Parse the network_code from ChildPublisher resource.
1198
+ *
1199
+ * @param {string} childPublisherName
1200
+ * A fully-qualified path representing ChildPublisher resource.
1201
+ * @returns {string} A string representing the network_code.
1202
+ */
1203
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
1204
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
1205
+ }
1206
+ /**
1207
+ * Parse the child_publisher from ChildPublisher resource.
1208
+ *
1209
+ * @param {string} childPublisherName
1210
+ * A fully-qualified path representing ChildPublisher resource.
1211
+ * @returns {string} A string representing the child_publisher.
1212
+ */
1213
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
1214
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
1215
+ }
1216
+ /**
1217
+ * Return a fully-qualified cmsMetadataKey resource name string.
1218
+ *
1219
+ * @param {string} network_code
1220
+ * @param {string} cms_metadata_key
1221
+ * @returns {string} Resource name string.
1222
+ */
1223
+ cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
1224
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
1225
+ network_code: networkCode,
1226
+ cms_metadata_key: cmsMetadataKey,
1227
+ });
1228
+ }
1229
+ /**
1230
+ * Parse the network_code from CmsMetadataKey resource.
1231
+ *
1232
+ * @param {string} cmsMetadataKeyName
1233
+ * A fully-qualified path representing CmsMetadataKey resource.
1234
+ * @returns {string} A string representing the network_code.
1235
+ */
1236
+ matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
1237
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
1238
+ }
1239
+ /**
1240
+ * Parse the cms_metadata_key from CmsMetadataKey resource.
1241
+ *
1242
+ * @param {string} cmsMetadataKeyName
1243
+ * A fully-qualified path representing CmsMetadataKey resource.
1244
+ * @returns {string} A string representing the cms_metadata_key.
1245
+ */
1246
+ matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
1247
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
1248
+ }
1249
+ /**
1250
+ * Return a fully-qualified cmsMetadataValue resource name string.
1251
+ *
1252
+ * @param {string} network_code
1253
+ * @param {string} cms_metadata_value
1254
+ * @returns {string} Resource name string.
1255
+ */
1256
+ cmsMetadataValuePath(networkCode, cmsMetadataValue) {
1257
+ return this.pathTemplates.cmsMetadataValuePathTemplate.render({
1258
+ network_code: networkCode,
1259
+ cms_metadata_value: cmsMetadataValue,
1260
+ });
1261
+ }
1262
+ /**
1263
+ * Parse the network_code from CmsMetadataValue resource.
1264
+ *
1265
+ * @param {string} cmsMetadataValueName
1266
+ * A fully-qualified path representing CmsMetadataValue resource.
1267
+ * @returns {string} A string representing the network_code.
1268
+ */
1269
+ matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
1270
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
1271
+ }
1272
+ /**
1273
+ * Parse the cms_metadata_value from CmsMetadataValue resource.
1274
+ *
1275
+ * @param {string} cmsMetadataValueName
1276
+ * A fully-qualified path representing CmsMetadataValue resource.
1277
+ * @returns {string} A string representing the cms_metadata_value.
1278
+ */
1279
+ matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
1280
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
1281
+ }
1282
+ /**
1283
+ * Return a fully-qualified company resource name string.
1284
+ *
1285
+ * @param {string} network_code
1286
+ * @param {string} company
1287
+ * @returns {string} Resource name string.
1288
+ */
1289
+ companyPath(networkCode, company) {
1290
+ return this.pathTemplates.companyPathTemplate.render({
1291
+ network_code: networkCode,
1292
+ company: company,
1293
+ });
1294
+ }
1295
+ /**
1296
+ * Parse the network_code from Company resource.
1297
+ *
1298
+ * @param {string} companyName
1299
+ * A fully-qualified path representing Company resource.
1300
+ * @returns {string} A string representing the network_code.
1301
+ */
1302
+ matchNetworkCodeFromCompanyName(companyName) {
1303
+ return this.pathTemplates.companyPathTemplate.match(companyName)
1304
+ .network_code;
1305
+ }
1306
+ /**
1307
+ * Parse the company from Company resource.
1308
+ *
1309
+ * @param {string} companyName
1310
+ * A fully-qualified path representing Company resource.
1311
+ * @returns {string} A string representing the company.
1312
+ */
1313
+ matchCompanyFromCompanyName(companyName) {
1314
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
1315
+ }
1316
+ /**
1317
+ * Return a fully-qualified contact resource name string.
1318
+ *
1319
+ * @param {string} network_code
1320
+ * @param {string} contact
1321
+ * @returns {string} Resource name string.
1322
+ */
1323
+ contactPath(networkCode, contact) {
1324
+ return this.pathTemplates.contactPathTemplate.render({
1325
+ network_code: networkCode,
1326
+ contact: contact,
1327
+ });
1328
+ }
1329
+ /**
1330
+ * Parse the network_code from Contact resource.
1331
+ *
1332
+ * @param {string} contactName
1333
+ * A fully-qualified path representing Contact resource.
1334
+ * @returns {string} A string representing the network_code.
1335
+ */
1336
+ matchNetworkCodeFromContactName(contactName) {
1337
+ return this.pathTemplates.contactPathTemplate.match(contactName)
1338
+ .network_code;
1339
+ }
1340
+ /**
1341
+ * Parse the contact from Contact resource.
1342
+ *
1343
+ * @param {string} contactName
1344
+ * A fully-qualified path representing Contact resource.
1345
+ * @returns {string} A string representing the contact.
1346
+ */
1347
+ matchContactFromContactName(contactName) {
1348
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
1349
+ }
1350
+ /**
1351
+ * Return a fully-qualified content resource name string.
1352
+ *
1353
+ * @param {string} network_code
1354
+ * @param {string} content
1355
+ * @returns {string} Resource name string.
1356
+ */
1357
+ contentPath(networkCode, content) {
1358
+ return this.pathTemplates.contentPathTemplate.render({
1359
+ network_code: networkCode,
1360
+ content: content,
1361
+ });
1362
+ }
1363
+ /**
1364
+ * Parse the network_code from Content resource.
1365
+ *
1366
+ * @param {string} contentName
1367
+ * A fully-qualified path representing Content resource.
1368
+ * @returns {string} A string representing the network_code.
1369
+ */
1370
+ matchNetworkCodeFromContentName(contentName) {
1371
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1372
+ .network_code;
1373
+ }
1374
+ /**
1375
+ * Parse the content from Content resource.
1376
+ *
1377
+ * @param {string} contentName
1378
+ * A fully-qualified path representing Content resource.
1379
+ * @returns {string} A string representing the content.
1380
+ */
1381
+ matchContentFromContentName(contentName) {
1382
+ return this.pathTemplates.contentPathTemplate.match(contentName).content;
1383
+ }
1384
+ /**
1385
+ * Return a fully-qualified contentBundle resource name string.
1386
+ *
1387
+ * @param {string} network_code
1388
+ * @param {string} content_bundle
1389
+ * @returns {string} Resource name string.
1390
+ */
1391
+ contentBundlePath(networkCode, contentBundle) {
1392
+ return this.pathTemplates.contentBundlePathTemplate.render({
1393
+ network_code: networkCode,
1394
+ content_bundle: contentBundle,
1395
+ });
1396
+ }
1397
+ /**
1398
+ * Parse the network_code from ContentBundle resource.
1399
+ *
1400
+ * @param {string} contentBundleName
1401
+ * A fully-qualified path representing ContentBundle resource.
1402
+ * @returns {string} A string representing the network_code.
1403
+ */
1404
+ matchNetworkCodeFromContentBundleName(contentBundleName) {
1405
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1406
+ .network_code;
1407
+ }
1408
+ /**
1409
+ * Parse the content_bundle from ContentBundle resource.
1410
+ *
1411
+ * @param {string} contentBundleName
1412
+ * A fully-qualified path representing ContentBundle resource.
1413
+ * @returns {string} A string representing the content_bundle.
1414
+ */
1415
+ matchContentBundleFromContentBundleName(contentBundleName) {
1416
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1417
+ .content_bundle;
1418
+ }
1419
+ /**
1420
+ * Return a fully-qualified contentLabel resource name string.
1421
+ *
1422
+ * @param {string} network_code
1423
+ * @param {string} content_label
1424
+ * @returns {string} Resource name string.
1425
+ */
1426
+ contentLabelPath(networkCode, contentLabel) {
1427
+ return this.pathTemplates.contentLabelPathTemplate.render({
1428
+ network_code: networkCode,
1429
+ content_label: contentLabel,
1430
+ });
1431
+ }
1432
+ /**
1433
+ * Parse the network_code from ContentLabel resource.
1434
+ *
1435
+ * @param {string} contentLabelName
1436
+ * A fully-qualified path representing ContentLabel resource.
1437
+ * @returns {string} A string representing the network_code.
1438
+ */
1439
+ matchNetworkCodeFromContentLabelName(contentLabelName) {
1440
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1441
+ .network_code;
1442
+ }
1443
+ /**
1444
+ * Parse the content_label from ContentLabel resource.
1445
+ *
1446
+ * @param {string} contentLabelName
1447
+ * A fully-qualified path representing ContentLabel resource.
1448
+ * @returns {string} A string representing the content_label.
1449
+ */
1450
+ matchContentLabelFromContentLabelName(contentLabelName) {
1451
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1452
+ .content_label;
1453
+ }
1454
+ /**
1455
+ * Return a fully-qualified creative resource name string.
1456
+ *
1457
+ * @param {string} network_code
1458
+ * @param {string} creative
1459
+ * @returns {string} Resource name string.
1460
+ */
1461
+ creativePath(networkCode, creative) {
1462
+ return this.pathTemplates.creativePathTemplate.render({
1463
+ network_code: networkCode,
1464
+ creative: creative,
1465
+ });
1466
+ }
1467
+ /**
1468
+ * Parse the network_code from Creative resource.
1469
+ *
1470
+ * @param {string} creativeName
1471
+ * A fully-qualified path representing Creative resource.
1472
+ * @returns {string} A string representing the network_code.
1473
+ */
1474
+ matchNetworkCodeFromCreativeName(creativeName) {
1475
+ return this.pathTemplates.creativePathTemplate.match(creativeName)
1476
+ .network_code;
1477
+ }
1478
+ /**
1479
+ * Parse the creative from Creative resource.
1480
+ *
1481
+ * @param {string} creativeName
1482
+ * A fully-qualified path representing Creative resource.
1483
+ * @returns {string} A string representing the creative.
1484
+ */
1485
+ matchCreativeFromCreativeName(creativeName) {
1486
+ return this.pathTemplates.creativePathTemplate.match(creativeName).creative;
1487
+ }
1488
+ /**
1489
+ * Return a fully-qualified creativeSet resource name string.
1490
+ *
1491
+ * @param {string} network_code
1492
+ * @param {string} creative_set
1493
+ * @returns {string} Resource name string.
1494
+ */
1495
+ creativeSetPath(networkCode, creativeSet) {
1496
+ return this.pathTemplates.creativeSetPathTemplate.render({
1497
+ network_code: networkCode,
1498
+ creative_set: creativeSet,
1499
+ });
1500
+ }
1501
+ /**
1502
+ * Parse the network_code from CreativeSet resource.
1503
+ *
1504
+ * @param {string} creativeSetName
1505
+ * A fully-qualified path representing CreativeSet resource.
1506
+ * @returns {string} A string representing the network_code.
1507
+ */
1508
+ matchNetworkCodeFromCreativeSetName(creativeSetName) {
1509
+ return this.pathTemplates.creativeSetPathTemplate.match(creativeSetName)
1510
+ .network_code;
1511
+ }
1512
+ /**
1513
+ * Parse the creative_set from CreativeSet resource.
1514
+ *
1515
+ * @param {string} creativeSetName
1516
+ * A fully-qualified path representing CreativeSet resource.
1517
+ * @returns {string} A string representing the creative_set.
1518
+ */
1519
+ matchCreativeSetFromCreativeSetName(creativeSetName) {
1520
+ return this.pathTemplates.creativeSetPathTemplate.match(creativeSetName)
1521
+ .creative_set;
1522
+ }
1523
+ /**
1524
+ * Return a fully-qualified creativeTemplate resource name string.
1525
+ *
1526
+ * @param {string} network_code
1527
+ * @param {string} creative_template
1528
+ * @returns {string} Resource name string.
1529
+ */
1530
+ creativeTemplatePath(networkCode, creativeTemplate) {
1531
+ return this.pathTemplates.creativeTemplatePathTemplate.render({
1532
+ network_code: networkCode,
1533
+ creative_template: creativeTemplate,
1534
+ });
1535
+ }
1536
+ /**
1537
+ * Parse the network_code from CreativeTemplate resource.
1538
+ *
1539
+ * @param {string} creativeTemplateName
1540
+ * A fully-qualified path representing CreativeTemplate resource.
1541
+ * @returns {string} A string representing the network_code.
1542
+ */
1543
+ matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
1544
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
1545
+ }
1546
+ /**
1547
+ * Parse the creative_template from CreativeTemplate resource.
1548
+ *
1549
+ * @param {string} creativeTemplateName
1550
+ * A fully-qualified path representing CreativeTemplate resource.
1551
+ * @returns {string} A string representing the creative_template.
1552
+ */
1553
+ matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
1554
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
1555
+ }
1556
+ /**
1557
+ * Return a fully-qualified creativeWrapper resource name string.
1558
+ *
1559
+ * @param {string} network_code
1560
+ * @param {string} creative_wrapper
1561
+ * @returns {string} Resource name string.
1562
+ */
1563
+ creativeWrapperPath(networkCode, creativeWrapper) {
1564
+ return this.pathTemplates.creativeWrapperPathTemplate.render({
1565
+ network_code: networkCode,
1566
+ creative_wrapper: creativeWrapper,
1567
+ });
1568
+ }
1569
+ /**
1570
+ * Parse the network_code from CreativeWrapper resource.
1571
+ *
1572
+ * @param {string} creativeWrapperName
1573
+ * A fully-qualified path representing CreativeWrapper resource.
1574
+ * @returns {string} A string representing the network_code.
1575
+ */
1576
+ matchNetworkCodeFromCreativeWrapperName(creativeWrapperName) {
1577
+ return this.pathTemplates.creativeWrapperPathTemplate.match(creativeWrapperName).network_code;
1578
+ }
1579
+ /**
1580
+ * Parse the creative_wrapper from CreativeWrapper resource.
1581
+ *
1582
+ * @param {string} creativeWrapperName
1583
+ * A fully-qualified path representing CreativeWrapper resource.
1584
+ * @returns {string} A string representing the creative_wrapper.
1585
+ */
1586
+ matchCreativeWrapperFromCreativeWrapperName(creativeWrapperName) {
1587
+ return this.pathTemplates.creativeWrapperPathTemplate.match(creativeWrapperName).creative_wrapper;
1588
+ }
1589
+ /**
1590
+ * Return a fully-qualified customField resource name string.
1591
+ *
1592
+ * @param {string} network_code
1593
+ * @param {string} custom_field
1594
+ * @returns {string} Resource name string.
1595
+ */
1596
+ customFieldPath(networkCode, customField) {
1597
+ return this.pathTemplates.customFieldPathTemplate.render({
1598
+ network_code: networkCode,
1599
+ custom_field: customField,
1600
+ });
1601
+ }
1602
+ /**
1603
+ * Parse the network_code from CustomField resource.
1604
+ *
1605
+ * @param {string} customFieldName
1606
+ * A fully-qualified path representing CustomField resource.
1607
+ * @returns {string} A string representing the network_code.
1608
+ */
1609
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
1610
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1611
+ .network_code;
1612
+ }
1613
+ /**
1614
+ * Parse the custom_field from CustomField resource.
1615
+ *
1616
+ * @param {string} customFieldName
1617
+ * A fully-qualified path representing CustomField resource.
1618
+ * @returns {string} A string representing the custom_field.
1619
+ */
1620
+ matchCustomFieldFromCustomFieldName(customFieldName) {
1621
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1622
+ .custom_field;
1623
+ }
1624
+ /**
1625
+ * Return a fully-qualified customTargetingKey resource name string.
1626
+ *
1627
+ * @param {string} network_code
1628
+ * @param {string} custom_targeting_key
1629
+ * @returns {string} Resource name string.
1630
+ */
1631
+ customTargetingKeyPath(networkCode, customTargetingKey) {
1632
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
1633
+ network_code: networkCode,
1634
+ custom_targeting_key: customTargetingKey,
1635
+ });
1636
+ }
1637
+ /**
1638
+ * Parse the network_code from CustomTargetingKey resource.
1639
+ *
1640
+ * @param {string} customTargetingKeyName
1641
+ * A fully-qualified path representing CustomTargetingKey resource.
1642
+ * @returns {string} A string representing the network_code.
1643
+ */
1644
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
1645
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
1646
+ }
1647
+ /**
1648
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
1649
+ *
1650
+ * @param {string} customTargetingKeyName
1651
+ * A fully-qualified path representing CustomTargetingKey resource.
1652
+ * @returns {string} A string representing the custom_targeting_key.
1653
+ */
1654
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
1655
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
1656
+ }
1657
+ /**
1658
+ * Return a fully-qualified customTargetingValue resource name string.
1659
+ *
1660
+ * @param {string} network_code
1661
+ * @param {string} custom_targeting_value
1662
+ * @returns {string} Resource name string.
1663
+ */
1664
+ customTargetingValuePath(networkCode, customTargetingValue) {
1665
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
1666
+ network_code: networkCode,
1667
+ custom_targeting_value: customTargetingValue,
1668
+ });
1669
+ }
1670
+ /**
1671
+ * Parse the network_code from CustomTargetingValue resource.
1672
+ *
1673
+ * @param {string} customTargetingValueName
1674
+ * A fully-qualified path representing CustomTargetingValue resource.
1675
+ * @returns {string} A string representing the network_code.
1676
+ */
1677
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
1678
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
1679
+ }
1680
+ /**
1681
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
1682
+ *
1683
+ * @param {string} customTargetingValueName
1684
+ * A fully-qualified path representing CustomTargetingValue resource.
1685
+ * @returns {string} A string representing the custom_targeting_value.
1686
+ */
1687
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
1688
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
1689
+ }
1690
+ /**
1691
+ * Return a fully-qualified daiAuthenticationKey resource name string.
1692
+ *
1693
+ * @param {string} network_code
1694
+ * @param {string} dai_authentication_key
1695
+ * @returns {string} Resource name string.
1696
+ */
1697
+ daiAuthenticationKeyPath(networkCode, daiAuthenticationKey) {
1698
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.render({
1699
+ network_code: networkCode,
1700
+ dai_authentication_key: daiAuthenticationKey,
1701
+ });
1702
+ }
1703
+ /**
1704
+ * Parse the network_code from DaiAuthenticationKey resource.
1705
+ *
1706
+ * @param {string} daiAuthenticationKeyName
1707
+ * A fully-qualified path representing DaiAuthenticationKey resource.
1708
+ * @returns {string} A string representing the network_code.
1709
+ */
1710
+ matchNetworkCodeFromDaiAuthenticationKeyName(daiAuthenticationKeyName) {
1711
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.match(daiAuthenticationKeyName).network_code;
1712
+ }
1713
+ /**
1714
+ * Parse the dai_authentication_key from DaiAuthenticationKey resource.
1715
+ *
1716
+ * @param {string} daiAuthenticationKeyName
1717
+ * A fully-qualified path representing DaiAuthenticationKey resource.
1718
+ * @returns {string} A string representing the dai_authentication_key.
1719
+ */
1720
+ matchDaiAuthenticationKeyFromDaiAuthenticationKeyName(daiAuthenticationKeyName) {
1721
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.match(daiAuthenticationKeyName).dai_authentication_key;
1722
+ }
1723
+ /**
1724
+ * Return a fully-qualified daiEncodingProfile resource name string.
1725
+ *
1726
+ * @param {string} network_code
1727
+ * @param {string} dai_encoding_profile
1728
+ * @returns {string} Resource name string.
1729
+ */
1730
+ daiEncodingProfilePath(networkCode, daiEncodingProfile) {
1731
+ return this.pathTemplates.daiEncodingProfilePathTemplate.render({
1732
+ network_code: networkCode,
1733
+ dai_encoding_profile: daiEncodingProfile,
1734
+ });
1735
+ }
1736
+ /**
1737
+ * Parse the network_code from DaiEncodingProfile resource.
1738
+ *
1739
+ * @param {string} daiEncodingProfileName
1740
+ * A fully-qualified path representing DaiEncodingProfile resource.
1741
+ * @returns {string} A string representing the network_code.
1742
+ */
1743
+ matchNetworkCodeFromDaiEncodingProfileName(daiEncodingProfileName) {
1744
+ return this.pathTemplates.daiEncodingProfilePathTemplate.match(daiEncodingProfileName).network_code;
1745
+ }
1746
+ /**
1747
+ * Parse the dai_encoding_profile from DaiEncodingProfile resource.
1748
+ *
1749
+ * @param {string} daiEncodingProfileName
1750
+ * A fully-qualified path representing DaiEncodingProfile resource.
1751
+ * @returns {string} A string representing the dai_encoding_profile.
1752
+ */
1753
+ matchDaiEncodingProfileFromDaiEncodingProfileName(daiEncodingProfileName) {
1754
+ return this.pathTemplates.daiEncodingProfilePathTemplate.match(daiEncodingProfileName).dai_encoding_profile;
1755
+ }
1756
+ /**
1757
+ * Return a fully-qualified daiSession resource name string.
1758
+ *
1759
+ * @param {string} network_code
1760
+ * @param {string} dai_session
1761
+ * @returns {string} Resource name string.
1762
+ */
1763
+ daiSessionPath(networkCode, daiSession) {
1764
+ return this.pathTemplates.daiSessionPathTemplate.render({
1765
+ network_code: networkCode,
1766
+ dai_session: daiSession,
1767
+ });
1768
+ }
1769
+ /**
1770
+ * Parse the network_code from DaiSession resource.
1771
+ *
1772
+ * @param {string} daiSessionName
1773
+ * A fully-qualified path representing DaiSession resource.
1774
+ * @returns {string} A string representing the network_code.
1775
+ */
1776
+ matchNetworkCodeFromDaiSessionName(daiSessionName) {
1777
+ return this.pathTemplates.daiSessionPathTemplate.match(daiSessionName)
1778
+ .network_code;
1779
+ }
1780
+ /**
1781
+ * Parse the dai_session from DaiSession resource.
1782
+ *
1783
+ * @param {string} daiSessionName
1784
+ * A fully-qualified path representing DaiSession resource.
1785
+ * @returns {string} A string representing the dai_session.
1786
+ */
1787
+ matchDaiSessionFromDaiSessionName(daiSessionName) {
1788
+ return this.pathTemplates.daiSessionPathTemplate.match(daiSessionName)
1789
+ .dai_session;
1790
+ }
1791
+ /**
1792
+ * Return a fully-qualified defaultThirdPartyDataDeclaration resource name string.
1793
+ *
1794
+ * @param {string} network_code
1795
+ * @returns {string} Resource name string.
1796
+ */
1797
+ defaultThirdPartyDataDeclarationPath(networkCode) {
1798
+ return this.pathTemplates.defaultThirdPartyDataDeclarationPathTemplate.render({
1799
+ network_code: networkCode,
1800
+ });
1801
+ }
1802
+ /**
1803
+ * Parse the network_code from DefaultThirdPartyDataDeclaration resource.
1804
+ *
1805
+ * @param {string} defaultThirdPartyDataDeclarationName
1806
+ * A fully-qualified path representing DefaultThirdPartyDataDeclaration resource.
1807
+ * @returns {string} A string representing the network_code.
1808
+ */
1809
+ matchNetworkCodeFromDefaultThirdPartyDataDeclarationName(defaultThirdPartyDataDeclarationName) {
1810
+ return this.pathTemplates.defaultThirdPartyDataDeclarationPathTemplate.match(defaultThirdPartyDataDeclarationName).network_code;
1811
+ }
1812
+ /**
1813
+ * Return a fully-qualified deviceCapability resource name string.
1814
+ *
1815
+ * @param {string} network_code
1816
+ * @param {string} device_capability
1817
+ * @returns {string} Resource name string.
1818
+ */
1819
+ deviceCapabilityPath(networkCode, deviceCapability) {
1820
+ return this.pathTemplates.deviceCapabilityPathTemplate.render({
1821
+ network_code: networkCode,
1822
+ device_capability: deviceCapability,
1823
+ });
1824
+ }
1825
+ /**
1826
+ * Parse the network_code from DeviceCapability resource.
1827
+ *
1828
+ * @param {string} deviceCapabilityName
1829
+ * A fully-qualified path representing DeviceCapability resource.
1830
+ * @returns {string} A string representing the network_code.
1831
+ */
1832
+ matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
1833
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
1834
+ }
1835
+ /**
1836
+ * Parse the device_capability from DeviceCapability resource.
1837
+ *
1838
+ * @param {string} deviceCapabilityName
1839
+ * A fully-qualified path representing DeviceCapability resource.
1840
+ * @returns {string} A string representing the device_capability.
1841
+ */
1842
+ matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
1843
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
1844
+ }
1845
+ /**
1846
+ * Return a fully-qualified deviceCategory resource name string.
1847
+ *
1848
+ * @param {string} network_code
1849
+ * @param {string} device_category
1850
+ * @returns {string} Resource name string.
1851
+ */
1852
+ deviceCategoryPath(networkCode, deviceCategory) {
1853
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
1854
+ network_code: networkCode,
1855
+ device_category: deviceCategory,
1856
+ });
1857
+ }
1858
+ /**
1859
+ * Parse the network_code from DeviceCategory resource.
1860
+ *
1861
+ * @param {string} deviceCategoryName
1862
+ * A fully-qualified path representing DeviceCategory resource.
1863
+ * @returns {string} A string representing the network_code.
1864
+ */
1865
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
1866
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
1867
+ }
1868
+ /**
1869
+ * Parse the device_category from DeviceCategory resource.
1870
+ *
1871
+ * @param {string} deviceCategoryName
1872
+ * A fully-qualified path representing DeviceCategory resource.
1873
+ * @returns {string} A string representing the device_category.
1874
+ */
1875
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
1876
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
1877
+ }
1878
+ /**
1879
+ * Return a fully-qualified deviceManufacturer resource name string.
1880
+ *
1881
+ * @param {string} network_code
1882
+ * @param {string} device_manufacturer
1883
+ * @returns {string} Resource name string.
1884
+ */
1885
+ deviceManufacturerPath(networkCode, deviceManufacturer) {
1886
+ return this.pathTemplates.deviceManufacturerPathTemplate.render({
1887
+ network_code: networkCode,
1888
+ device_manufacturer: deviceManufacturer,
1889
+ });
1890
+ }
1891
+ /**
1892
+ * Parse the network_code from DeviceManufacturer resource.
1893
+ *
1894
+ * @param {string} deviceManufacturerName
1895
+ * A fully-qualified path representing DeviceManufacturer resource.
1896
+ * @returns {string} A string representing the network_code.
1897
+ */
1898
+ matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
1899
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
1900
+ }
1901
+ /**
1902
+ * Parse the device_manufacturer from DeviceManufacturer resource.
1903
+ *
1904
+ * @param {string} deviceManufacturerName
1905
+ * A fully-qualified path representing DeviceManufacturer resource.
1906
+ * @returns {string} A string representing the device_manufacturer.
1907
+ */
1908
+ matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
1909
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
1910
+ }
1911
+ /**
1912
+ * Return a fully-qualified entitySignalsMapping resource name string.
1913
+ *
1914
+ * @param {string} network_code
1915
+ * @param {string} entity_signals_mapping
1916
+ * @returns {string} Resource name string.
1917
+ */
1918
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
1919
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
1920
+ network_code: networkCode,
1921
+ entity_signals_mapping: entitySignalsMapping,
1922
+ });
1923
+ }
1924
+ /**
1925
+ * Parse the network_code from EntitySignalsMapping resource.
1926
+ *
1927
+ * @param {string} entitySignalsMappingName
1928
+ * A fully-qualified path representing EntitySignalsMapping resource.
1929
+ * @returns {string} A string representing the network_code.
1930
+ */
1931
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
1932
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
1933
+ }
1934
+ /**
1935
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
1936
+ *
1937
+ * @param {string} entitySignalsMappingName
1938
+ * A fully-qualified path representing EntitySignalsMapping resource.
1939
+ * @returns {string} A string representing the entity_signals_mapping.
1940
+ */
1941
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
1942
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
1943
+ }
1944
+ /**
1945
+ * Return a fully-qualified geoTarget resource name string.
1946
+ *
1947
+ * @param {string} network_code
1948
+ * @param {string} geo_target
1949
+ * @returns {string} Resource name string.
1950
+ */
1951
+ geoTargetPath(networkCode, geoTarget) {
1952
+ return this.pathTemplates.geoTargetPathTemplate.render({
1953
+ network_code: networkCode,
1954
+ geo_target: geoTarget,
1955
+ });
1956
+ }
1957
+ /**
1958
+ * Parse the network_code from GeoTarget resource.
1959
+ *
1960
+ * @param {string} geoTargetName
1961
+ * A fully-qualified path representing GeoTarget resource.
1962
+ * @returns {string} A string representing the network_code.
1963
+ */
1964
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
1965
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1966
+ .network_code;
1967
+ }
1968
+ /**
1969
+ * Parse the geo_target from GeoTarget resource.
1970
+ *
1971
+ * @param {string} geoTargetName
1972
+ * A fully-qualified path representing GeoTarget resource.
1973
+ * @returns {string} A string representing the geo_target.
1974
+ */
1975
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
1976
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1977
+ .geo_target;
1978
+ }
1979
+ /**
1980
+ * Return a fully-qualified label resource name string.
1981
+ *
1982
+ * @param {string} network_code
1983
+ * @param {string} label
1984
+ * @returns {string} Resource name string.
1985
+ */
1986
+ labelPath(networkCode, label) {
1987
+ return this.pathTemplates.labelPathTemplate.render({
1988
+ network_code: networkCode,
1989
+ label: label,
1990
+ });
1991
+ }
1992
+ /**
1993
+ * Parse the network_code from Label resource.
1994
+ *
1995
+ * @param {string} labelName
1996
+ * A fully-qualified path representing Label resource.
1997
+ * @returns {string} A string representing the network_code.
1998
+ */
1999
+ matchNetworkCodeFromLabelName(labelName) {
2000
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
2001
+ }
2002
+ /**
2003
+ * Parse the label from Label resource.
2004
+ *
2005
+ * @param {string} labelName
2006
+ * A fully-qualified path representing Label resource.
2007
+ * @returns {string} A string representing the label.
2008
+ */
2009
+ matchLabelFromLabelName(labelName) {
2010
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
2011
+ }
2012
+ /**
2013
+ * Return a fully-qualified lineItem resource name string.
2014
+ *
2015
+ * @param {string} network_code
2016
+ * @param {string} line_item
2017
+ * @returns {string} Resource name string.
2018
+ */
2019
+ lineItemPath(networkCode, lineItem) {
2020
+ return this.pathTemplates.lineItemPathTemplate.render({
2021
+ network_code: networkCode,
2022
+ line_item: lineItem,
2023
+ });
2024
+ }
2025
+ /**
2026
+ * Parse the network_code from LineItem resource.
2027
+ *
2028
+ * @param {string} lineItemName
2029
+ * A fully-qualified path representing LineItem resource.
2030
+ * @returns {string} A string representing the network_code.
2031
+ */
2032
+ matchNetworkCodeFromLineItemName(lineItemName) {
2033
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
2034
+ .network_code;
2035
+ }
2036
+ /**
2037
+ * Parse the line_item from LineItem resource.
2038
+ *
2039
+ * @param {string} lineItemName
2040
+ * A fully-qualified path representing LineItem resource.
2041
+ * @returns {string} A string representing the line_item.
2042
+ */
2043
+ matchLineItemFromLineItemName(lineItemName) {
2044
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
2045
+ .line_item;
2046
+ }
2047
+ /**
2048
+ * Return a fully-qualified linkedDevice resource name string.
2049
+ *
2050
+ * @param {string} network_code
2051
+ * @param {string} linked_device
2052
+ * @returns {string} Resource name string.
2053
+ */
2054
+ linkedDevicePath(networkCode, linkedDevice) {
2055
+ return this.pathTemplates.linkedDevicePathTemplate.render({
2056
+ network_code: networkCode,
2057
+ linked_device: linkedDevice,
2058
+ });
2059
+ }
2060
+ /**
2061
+ * Parse the network_code from LinkedDevice resource.
2062
+ *
2063
+ * @param {string} linkedDeviceName
2064
+ * A fully-qualified path representing LinkedDevice resource.
2065
+ * @returns {string} A string representing the network_code.
2066
+ */
2067
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
2068
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
2069
+ .network_code;
2070
+ }
2071
+ /**
2072
+ * Parse the linked_device from LinkedDevice resource.
2073
+ *
2074
+ * @param {string} linkedDeviceName
2075
+ * A fully-qualified path representing LinkedDevice resource.
2076
+ * @returns {string} A string representing the linked_device.
2077
+ */
2078
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
2079
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
2080
+ .linked_device;
2081
+ }
2082
+ /**
2083
+ * Return a fully-qualified liveStream resource name string.
2084
+ *
2085
+ * @param {string} network_code
2086
+ * @param {string} live_stream
2087
+ * @returns {string} Resource name string.
2088
+ */
2089
+ liveStreamPath(networkCode, liveStream) {
2090
+ return this.pathTemplates.liveStreamPathTemplate.render({
2091
+ network_code: networkCode,
2092
+ live_stream: liveStream,
2093
+ });
2094
+ }
2095
+ /**
2096
+ * Parse the network_code from LiveStream resource.
2097
+ *
2098
+ * @param {string} liveStreamName
2099
+ * A fully-qualified path representing LiveStream resource.
2100
+ * @returns {string} A string representing the network_code.
2101
+ */
2102
+ matchNetworkCodeFromLiveStreamName(liveStreamName) {
2103
+ return this.pathTemplates.liveStreamPathTemplate.match(liveStreamName)
2104
+ .network_code;
2105
+ }
2106
+ /**
2107
+ * Parse the live_stream from LiveStream resource.
2108
+ *
2109
+ * @param {string} liveStreamName
2110
+ * A fully-qualified path representing LiveStream resource.
2111
+ * @returns {string} A string representing the live_stream.
2112
+ */
2113
+ matchLiveStreamFromLiveStreamName(liveStreamName) {
2114
+ return this.pathTemplates.liveStreamPathTemplate.match(liveStreamName)
2115
+ .live_stream;
2116
+ }
2117
+ /**
2118
+ * Return a fully-qualified liveStreamEvent resource name string.
2119
+ *
2120
+ * @param {string} network_code
2121
+ * @param {string} live_stream_event
2122
+ * @returns {string} Resource name string.
2123
+ */
2124
+ liveStreamEventPath(networkCode, liveStreamEvent) {
2125
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
2126
+ network_code: networkCode,
2127
+ live_stream_event: liveStreamEvent,
2128
+ });
2129
+ }
2130
+ /**
2131
+ * Parse the network_code from LiveStreamEvent resource.
2132
+ *
2133
+ * @param {string} liveStreamEventName
2134
+ * A fully-qualified path representing LiveStreamEvent resource.
2135
+ * @returns {string} A string representing the network_code.
2136
+ */
2137
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
2138
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
2139
+ }
2140
+ /**
2141
+ * Parse the live_stream_event from LiveStreamEvent resource.
2142
+ *
2143
+ * @param {string} liveStreamEventName
2144
+ * A fully-qualified path representing LiveStreamEvent resource.
2145
+ * @returns {string} A string representing the live_stream_event.
2146
+ */
2147
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
2148
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
2149
+ }
2150
+ /**
2151
+ * Return a fully-qualified mobileCarrier resource name string.
2152
+ *
2153
+ * @param {string} network_code
2154
+ * @param {string} mobile_carrier
2155
+ * @returns {string} Resource name string.
2156
+ */
2157
+ mobileCarrierPath(networkCode, mobileCarrier) {
2158
+ return this.pathTemplates.mobileCarrierPathTemplate.render({
2159
+ network_code: networkCode,
2160
+ mobile_carrier: mobileCarrier,
2161
+ });
2162
+ }
2163
+ /**
2164
+ * Parse the network_code from MobileCarrier resource.
2165
+ *
2166
+ * @param {string} mobileCarrierName
2167
+ * A fully-qualified path representing MobileCarrier resource.
2168
+ * @returns {string} A string representing the network_code.
2169
+ */
2170
+ matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
2171
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
2172
+ .network_code;
2173
+ }
2174
+ /**
2175
+ * Parse the mobile_carrier from MobileCarrier resource.
2176
+ *
2177
+ * @param {string} mobileCarrierName
2178
+ * A fully-qualified path representing MobileCarrier resource.
2179
+ * @returns {string} A string representing the mobile_carrier.
2180
+ */
2181
+ matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
2182
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
2183
+ .mobile_carrier;
2184
+ }
2185
+ /**
2186
+ * Return a fully-qualified mobileDevice resource name string.
2187
+ *
2188
+ * @param {string} network_code
2189
+ * @param {string} mobile_device
2190
+ * @returns {string} Resource name string.
2191
+ */
2192
+ mobileDevicePath(networkCode, mobileDevice) {
2193
+ return this.pathTemplates.mobileDevicePathTemplate.render({
2194
+ network_code: networkCode,
2195
+ mobile_device: mobileDevice,
2196
+ });
2197
+ }
2198
+ /**
2199
+ * Parse the network_code from MobileDevice resource.
2200
+ *
2201
+ * @param {string} mobileDeviceName
2202
+ * A fully-qualified path representing MobileDevice resource.
2203
+ * @returns {string} A string representing the network_code.
2204
+ */
2205
+ matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
2206
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
2207
+ .network_code;
2208
+ }
2209
+ /**
2210
+ * Parse the mobile_device from MobileDevice resource.
2211
+ *
2212
+ * @param {string} mobileDeviceName
2213
+ * A fully-qualified path representing MobileDevice resource.
2214
+ * @returns {string} A string representing the mobile_device.
2215
+ */
2216
+ matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
2217
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
2218
+ .mobile_device;
2219
+ }
2220
+ /**
2221
+ * Return a fully-qualified mobileDeviceSubmodel resource name string.
2222
+ *
2223
+ * @param {string} network_code
2224
+ * @param {string} mobile_device_submodel
2225
+ * @returns {string} Resource name string.
2226
+ */
2227
+ mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
2228
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
2229
+ network_code: networkCode,
2230
+ mobile_device_submodel: mobileDeviceSubmodel,
2231
+ });
2232
+ }
2233
+ /**
2234
+ * Parse the network_code from MobileDeviceSubmodel resource.
2235
+ *
2236
+ * @param {string} mobileDeviceSubmodelName
2237
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
2238
+ * @returns {string} A string representing the network_code.
2239
+ */
2240
+ matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
2241
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
2242
+ }
2243
+ /**
2244
+ * Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
2245
+ *
2246
+ * @param {string} mobileDeviceSubmodelName
2247
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
2248
+ * @returns {string} A string representing the mobile_device_submodel.
2249
+ */
2250
+ matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
2251
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
2252
+ }
2253
+ /**
2254
+ * Return a fully-qualified nativeStyle resource name string.
2255
+ *
2256
+ * @param {string} network_code
2257
+ * @param {string} native_style
2258
+ * @returns {string} Resource name string.
2259
+ */
2260
+ nativeStylePath(networkCode, nativeStyle) {
2261
+ return this.pathTemplates.nativeStylePathTemplate.render({
2262
+ network_code: networkCode,
2263
+ native_style: nativeStyle,
2264
+ });
2265
+ }
2266
+ /**
2267
+ * Parse the network_code from NativeStyle resource.
2268
+ *
2269
+ * @param {string} nativeStyleName
2270
+ * A fully-qualified path representing NativeStyle resource.
2271
+ * @returns {string} A string representing the network_code.
2272
+ */
2273
+ matchNetworkCodeFromNativeStyleName(nativeStyleName) {
2274
+ return this.pathTemplates.nativeStylePathTemplate.match(nativeStyleName)
2275
+ .network_code;
2276
+ }
2277
+ /**
2278
+ * Parse the native_style from NativeStyle resource.
2279
+ *
2280
+ * @param {string} nativeStyleName
2281
+ * A fully-qualified path representing NativeStyle resource.
2282
+ * @returns {string} A string representing the native_style.
2283
+ */
2284
+ matchNativeStyleFromNativeStyleName(nativeStyleName) {
2285
+ return this.pathTemplates.nativeStylePathTemplate.match(nativeStyleName)
2286
+ .native_style;
2287
+ }
2288
+ /**
2289
+ * Return a fully-qualified network resource name string.
2290
+ *
2291
+ * @param {string} network_code
2292
+ * @returns {string} Resource name string.
2293
+ */
2294
+ networkPath(networkCode) {
2295
+ return this.pathTemplates.networkPathTemplate.render({
2296
+ network_code: networkCode,
2297
+ });
2298
+ }
2299
+ /**
2300
+ * Parse the network_code from Network resource.
2301
+ *
2302
+ * @param {string} networkName
2303
+ * A fully-qualified path representing Network resource.
2304
+ * @returns {string} A string representing the network_code.
2305
+ */
2306
+ matchNetworkCodeFromNetworkName(networkName) {
2307
+ return this.pathTemplates.networkPathTemplate.match(networkName)
2308
+ .network_code;
2309
+ }
2310
+ /**
2311
+ * Return a fully-qualified operatingSystem resource name string.
2312
+ *
2313
+ * @param {string} network_code
2314
+ * @param {string} operating_system
2315
+ * @returns {string} Resource name string.
2316
+ */
2317
+ operatingSystemPath(networkCode, operatingSystem) {
2318
+ return this.pathTemplates.operatingSystemPathTemplate.render({
2319
+ network_code: networkCode,
2320
+ operating_system: operatingSystem,
2321
+ });
2322
+ }
2323
+ /**
2324
+ * Parse the network_code from OperatingSystem resource.
2325
+ *
2326
+ * @param {string} operatingSystemName
2327
+ * A fully-qualified path representing OperatingSystem resource.
2328
+ * @returns {string} A string representing the network_code.
2329
+ */
2330
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
2331
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
2332
+ }
2333
+ /**
2334
+ * Parse the operating_system from OperatingSystem resource.
2335
+ *
2336
+ * @param {string} operatingSystemName
2337
+ * A fully-qualified path representing OperatingSystem resource.
2338
+ * @returns {string} A string representing the operating_system.
2339
+ */
2340
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
2341
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
2342
+ }
2343
+ /**
2344
+ * Return a fully-qualified operatingSystemVersion resource name string.
2345
+ *
2346
+ * @param {string} network_code
2347
+ * @param {string} operating_system_version
2348
+ * @returns {string} Resource name string.
2349
+ */
2350
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
2351
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
2352
+ network_code: networkCode,
2353
+ operating_system_version: operatingSystemVersion,
2354
+ });
2355
+ }
2356
+ /**
2357
+ * Parse the network_code from OperatingSystemVersion resource.
2358
+ *
2359
+ * @param {string} operatingSystemVersionName
2360
+ * A fully-qualified path representing OperatingSystemVersion resource.
2361
+ * @returns {string} A string representing the network_code.
2362
+ */
2363
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
2364
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
2365
+ }
2366
+ /**
2367
+ * Parse the operating_system_version from OperatingSystemVersion resource.
2368
+ *
2369
+ * @param {string} operatingSystemVersionName
2370
+ * A fully-qualified path representing OperatingSystemVersion resource.
2371
+ * @returns {string} A string representing the operating_system_version.
2372
+ */
2373
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
2374
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
2375
+ }
2376
+ /**
2377
+ * Return a fully-qualified order resource name string.
2378
+ *
2379
+ * @param {string} network_code
2380
+ * @param {string} order
2381
+ * @returns {string} Resource name string.
2382
+ */
2383
+ orderPath(networkCode, order) {
2384
+ return this.pathTemplates.orderPathTemplate.render({
2385
+ network_code: networkCode,
2386
+ order: order,
2387
+ });
2388
+ }
2389
+ /**
2390
+ * Parse the network_code from Order resource.
2391
+ *
2392
+ * @param {string} orderName
2393
+ * A fully-qualified path representing Order resource.
2394
+ * @returns {string} A string representing the network_code.
2395
+ */
2396
+ matchNetworkCodeFromOrderName(orderName) {
2397
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
2398
+ }
2399
+ /**
2400
+ * Parse the order from Order resource.
2401
+ *
2402
+ * @param {string} orderName
2403
+ * A fully-qualified path representing Order resource.
2404
+ * @returns {string} A string representing the order.
2405
+ */
2406
+ matchOrderFromOrderName(orderName) {
2407
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
2408
+ }
2409
+ /**
2410
+ * Return a fully-qualified partner resource name string.
2411
+ *
2412
+ * @param {string} network_code
2413
+ * @param {string} partner
2414
+ * @returns {string} Resource name string.
2415
+ */
2416
+ partnerPath(networkCode, partner) {
2417
+ return this.pathTemplates.partnerPathTemplate.render({
2418
+ network_code: networkCode,
2419
+ partner: partner,
2420
+ });
2421
+ }
2422
+ /**
2423
+ * Parse the network_code from Partner resource.
2424
+ *
2425
+ * @param {string} partnerName
2426
+ * A fully-qualified path representing Partner resource.
2427
+ * @returns {string} A string representing the network_code.
2428
+ */
2429
+ matchNetworkCodeFromPartnerName(partnerName) {
2430
+ return this.pathTemplates.partnerPathTemplate.match(partnerName)
2431
+ .network_code;
2432
+ }
2433
+ /**
2434
+ * Parse the partner from Partner resource.
2435
+ *
2436
+ * @param {string} partnerName
2437
+ * A fully-qualified path representing Partner resource.
2438
+ * @returns {string} A string representing the partner.
2439
+ */
2440
+ matchPartnerFromPartnerName(partnerName) {
2441
+ return this.pathTemplates.partnerPathTemplate.match(partnerName).partner;
2442
+ }
2443
+ /**
2444
+ * Return a fully-qualified placement resource name string.
2445
+ *
2446
+ * @param {string} network_code
2447
+ * @param {string} placement
2448
+ * @returns {string} Resource name string.
2449
+ */
2450
+ placementPath(networkCode, placement) {
2451
+ return this.pathTemplates.placementPathTemplate.render({
2452
+ network_code: networkCode,
2453
+ placement: placement,
2454
+ });
2455
+ }
2456
+ /**
2457
+ * Parse the network_code from Placement resource.
2458
+ *
2459
+ * @param {string} placementName
2460
+ * A fully-qualified path representing Placement resource.
2461
+ * @returns {string} A string representing the network_code.
2462
+ */
2463
+ matchNetworkCodeFromPlacementName(placementName) {
2464
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2465
+ .network_code;
2466
+ }
2467
+ /**
2468
+ * Parse the placement from Placement resource.
2469
+ *
2470
+ * @param {string} placementName
2471
+ * A fully-qualified path representing Placement resource.
2472
+ * @returns {string} A string representing the placement.
2473
+ */
2474
+ matchPlacementFromPlacementName(placementName) {
2475
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2476
+ .placement;
2477
+ }
2478
+ /**
2479
+ * Return a fully-qualified privateAuction resource name string.
2480
+ *
2481
+ * @param {string} network_code
2482
+ * @param {string} private_auction
2483
+ * @returns {string} Resource name string.
2484
+ */
2485
+ privateAuctionPath(networkCode, privateAuction) {
2486
+ return this.pathTemplates.privateAuctionPathTemplate.render({
2487
+ network_code: networkCode,
2488
+ private_auction: privateAuction,
2489
+ });
2490
+ }
2491
+ /**
2492
+ * Parse the network_code from PrivateAuction resource.
2493
+ *
2494
+ * @param {string} privateAuctionName
2495
+ * A fully-qualified path representing PrivateAuction resource.
2496
+ * @returns {string} A string representing the network_code.
2497
+ */
2498
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
2499
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
2500
+ }
2501
+ /**
2502
+ * Parse the private_auction from PrivateAuction resource.
2503
+ *
2504
+ * @param {string} privateAuctionName
2505
+ * A fully-qualified path representing PrivateAuction resource.
2506
+ * @returns {string} A string representing the private_auction.
2507
+ */
2508
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
2509
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
2510
+ }
2511
+ /**
2512
+ * Return a fully-qualified privateAuctionDeal resource name string.
2513
+ *
2514
+ * @param {string} network_code
2515
+ * @param {string} private_auction_deal
2516
+ * @returns {string} Resource name string.
2517
+ */
2518
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
2519
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
2520
+ network_code: networkCode,
2521
+ private_auction_deal: privateAuctionDeal,
2522
+ });
2523
+ }
2524
+ /**
2525
+ * Parse the network_code from PrivateAuctionDeal resource.
2526
+ *
2527
+ * @param {string} privateAuctionDealName
2528
+ * A fully-qualified path representing PrivateAuctionDeal resource.
2529
+ * @returns {string} A string representing the network_code.
2530
+ */
2531
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
2532
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
2533
+ }
2534
+ /**
2535
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
2536
+ *
2537
+ * @param {string} privateAuctionDealName
2538
+ * A fully-qualified path representing PrivateAuctionDeal resource.
2539
+ * @returns {string} A string representing the private_auction_deal.
2540
+ */
2541
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
2542
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
2543
+ }
2544
+ /**
2545
+ * Return a fully-qualified programmaticBuyer resource name string.
2546
+ *
2547
+ * @param {string} network_code
2548
+ * @param {string} programmatic_buyer
2549
+ * @returns {string} Resource name string.
2550
+ */
2551
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
2552
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
2553
+ network_code: networkCode,
2554
+ programmatic_buyer: programmaticBuyer,
2555
+ });
2556
+ }
2557
+ /**
2558
+ * Parse the network_code from ProgrammaticBuyer resource.
2559
+ *
2560
+ * @param {string} programmaticBuyerName
2561
+ * A fully-qualified path representing ProgrammaticBuyer resource.
2562
+ * @returns {string} A string representing the network_code.
2563
+ */
2564
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
2565
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
2566
+ }
2567
+ /**
2568
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
2569
+ *
2570
+ * @param {string} programmaticBuyerName
2571
+ * A fully-qualified path representing ProgrammaticBuyer resource.
2572
+ * @returns {string} A string representing the programmatic_buyer.
2573
+ */
2574
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
2575
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
2576
+ }
2577
+ /**
2578
+ * Return a fully-qualified report resource name string.
2579
+ *
2580
+ * @param {string} network_code
2581
+ * @param {string} report
2582
+ * @returns {string} Resource name string.
2583
+ */
2584
+ reportPath(networkCode, report) {
2585
+ return this.pathTemplates.reportPathTemplate.render({
2586
+ network_code: networkCode,
2587
+ report: report,
2588
+ });
2589
+ }
2590
+ /**
2591
+ * Parse the network_code from Report resource.
2592
+ *
2593
+ * @param {string} reportName
2594
+ * A fully-qualified path representing Report resource.
2595
+ * @returns {string} A string representing the network_code.
2596
+ */
2597
+ matchNetworkCodeFromReportName(reportName) {
2598
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
2599
+ }
2600
+ /**
2601
+ * Parse the report from Report resource.
2602
+ *
2603
+ * @param {string} reportName
2604
+ * A fully-qualified path representing Report resource.
2605
+ * @returns {string} A string representing the report.
2606
+ */
2607
+ matchReportFromReportName(reportName) {
2608
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
2609
+ }
2610
+ /**
2611
+ * Return a fully-qualified richMediaAdsCompany resource name string.
2612
+ *
2613
+ * @param {string} network_code
2614
+ * @param {string} rich_media_ads_company
2615
+ * @returns {string} Resource name string.
2616
+ */
2617
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
2618
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
2619
+ network_code: networkCode,
2620
+ rich_media_ads_company: richMediaAdsCompany,
2621
+ });
2622
+ }
2623
+ /**
2624
+ * Parse the network_code from RichMediaAdsCompany resource.
2625
+ *
2626
+ * @param {string} richMediaAdsCompanyName
2627
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2628
+ * @returns {string} A string representing the network_code.
2629
+ */
2630
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2631
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
2632
+ }
2633
+ /**
2634
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
2635
+ *
2636
+ * @param {string} richMediaAdsCompanyName
2637
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2638
+ * @returns {string} A string representing the rich_media_ads_company.
2639
+ */
2640
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2641
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
2642
+ }
2643
+ /**
2644
+ * Return a fully-qualified role resource name string.
2645
+ *
2646
+ * @param {string} network_code
2647
+ * @param {string} role
2648
+ * @returns {string} Resource name string.
2649
+ */
2650
+ rolePath(networkCode, role) {
2651
+ return this.pathTemplates.rolePathTemplate.render({
2652
+ network_code: networkCode,
2653
+ role: role,
2654
+ });
2655
+ }
2656
+ /**
2657
+ * Parse the network_code from Role resource.
2658
+ *
2659
+ * @param {string} roleName
2660
+ * A fully-qualified path representing Role resource.
2661
+ * @returns {string} A string representing the network_code.
2662
+ */
2663
+ matchNetworkCodeFromRoleName(roleName) {
2664
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
2665
+ }
2666
+ /**
2667
+ * Parse the role from Role resource.
2668
+ *
2669
+ * @param {string} roleName
2670
+ * A fully-qualified path representing Role resource.
2671
+ * @returns {string} A string representing the role.
2672
+ */
2673
+ matchRoleFromRoleName(roleName) {
2674
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
2675
+ }
2676
+ /**
2677
+ * Return a fully-qualified site resource name string.
2678
+ *
2679
+ * @param {string} network_code
2680
+ * @param {string} site
2681
+ * @returns {string} Resource name string.
2682
+ */
2683
+ sitePath(networkCode, site) {
2684
+ return this.pathTemplates.sitePathTemplate.render({
2685
+ network_code: networkCode,
2686
+ site: site,
2687
+ });
2688
+ }
2689
+ /**
2690
+ * Parse the network_code from Site resource.
2691
+ *
2692
+ * @param {string} siteName
2693
+ * A fully-qualified path representing Site resource.
2694
+ * @returns {string} A string representing the network_code.
2695
+ */
2696
+ matchNetworkCodeFromSiteName(siteName) {
2697
+ return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
2698
+ }
2699
+ /**
2700
+ * Parse the site from Site resource.
2701
+ *
2702
+ * @param {string} siteName
2703
+ * A fully-qualified path representing Site resource.
2704
+ * @returns {string} A string representing the site.
2705
+ */
2706
+ matchSiteFromSiteName(siteName) {
2707
+ return this.pathTemplates.sitePathTemplate.match(siteName).site;
2708
+ }
2709
+ /**
2710
+ * Return a fully-qualified slate resource name string.
2711
+ *
2712
+ * @param {string} network_code
2713
+ * @param {string} slate
2714
+ * @returns {string} Resource name string.
2715
+ */
2716
+ slatePath(networkCode, slate) {
2717
+ return this.pathTemplates.slatePathTemplate.render({
2718
+ network_code: networkCode,
2719
+ slate: slate,
2720
+ });
2721
+ }
2722
+ /**
2723
+ * Parse the network_code from Slate resource.
2724
+ *
2725
+ * @param {string} slateName
2726
+ * A fully-qualified path representing Slate resource.
2727
+ * @returns {string} A string representing the network_code.
2728
+ */
2729
+ matchNetworkCodeFromSlateName(slateName) {
2730
+ return this.pathTemplates.slatePathTemplate.match(slateName).network_code;
2731
+ }
2732
+ /**
2733
+ * Parse the slate from Slate resource.
2734
+ *
2735
+ * @param {string} slateName
2736
+ * A fully-qualified path representing Slate resource.
2737
+ * @returns {string} A string representing the slate.
2738
+ */
2739
+ matchSlateFromSlateName(slateName) {
2740
+ return this.pathTemplates.slatePathTemplate.match(slateName).slate;
2741
+ }
2742
+ /**
2743
+ * Return a fully-qualified suggestedAdUnit resource name string.
2744
+ *
2745
+ * @param {string} network_code
2746
+ * @param {string} suggested_ad_unit
2747
+ * @returns {string} Resource name string.
2748
+ */
2749
+ suggestedAdUnitPath(networkCode, suggestedAdUnit) {
2750
+ return this.pathTemplates.suggestedAdUnitPathTemplate.render({
2751
+ network_code: networkCode,
2752
+ suggested_ad_unit: suggestedAdUnit,
2753
+ });
2754
+ }
2755
+ /**
2756
+ * Parse the network_code from SuggestedAdUnit resource.
2757
+ *
2758
+ * @param {string} suggestedAdUnitName
2759
+ * A fully-qualified path representing SuggestedAdUnit resource.
2760
+ * @returns {string} A string representing the network_code.
2761
+ */
2762
+ matchNetworkCodeFromSuggestedAdUnitName(suggestedAdUnitName) {
2763
+ return this.pathTemplates.suggestedAdUnitPathTemplate.match(suggestedAdUnitName).network_code;
2764
+ }
2765
+ /**
2766
+ * Parse the suggested_ad_unit from SuggestedAdUnit resource.
2767
+ *
2768
+ * @param {string} suggestedAdUnitName
2769
+ * A fully-qualified path representing SuggestedAdUnit resource.
2770
+ * @returns {string} A string representing the suggested_ad_unit.
2771
+ */
2772
+ matchSuggestedAdUnitFromSuggestedAdUnitName(suggestedAdUnitName) {
2773
+ return this.pathTemplates.suggestedAdUnitPathTemplate.match(suggestedAdUnitName).suggested_ad_unit;
2774
+ }
2775
+ /**
2776
+ * Return a fully-qualified targetingPreset resource name string.
2777
+ *
2778
+ * @param {string} network_code
2779
+ * @param {string} targeting_preset
2780
+ * @returns {string} Resource name string.
2781
+ */
2782
+ targetingPresetPath(networkCode, targetingPreset) {
2783
+ return this.pathTemplates.targetingPresetPathTemplate.render({
2784
+ network_code: networkCode,
2785
+ targeting_preset: targetingPreset,
2786
+ });
2787
+ }
2788
+ /**
2789
+ * Parse the network_code from TargetingPreset resource.
2790
+ *
2791
+ * @param {string} targetingPresetName
2792
+ * A fully-qualified path representing TargetingPreset resource.
2793
+ * @returns {string} A string representing the network_code.
2794
+ */
2795
+ matchNetworkCodeFromTargetingPresetName(targetingPresetName) {
2796
+ return this.pathTemplates.targetingPresetPathTemplate.match(targetingPresetName).network_code;
2797
+ }
2798
+ /**
2799
+ * Parse the targeting_preset from TargetingPreset resource.
2800
+ *
2801
+ * @param {string} targetingPresetName
2802
+ * A fully-qualified path representing TargetingPreset resource.
2803
+ * @returns {string} A string representing the targeting_preset.
2804
+ */
2805
+ matchTargetingPresetFromTargetingPresetName(targetingPresetName) {
2806
+ return this.pathTemplates.targetingPresetPathTemplate.match(targetingPresetName).targeting_preset;
2807
+ }
2808
+ /**
2809
+ * Return a fully-qualified taxonomyCategory resource name string.
2810
+ *
2811
+ * @param {string} network_code
2812
+ * @param {string} taxonomy_category
2813
+ * @returns {string} Resource name string.
2814
+ */
2815
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
2816
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
2817
+ network_code: networkCode,
2818
+ taxonomy_category: taxonomyCategory,
2819
+ });
2820
+ }
2821
+ /**
2822
+ * Parse the network_code from TaxonomyCategory resource.
2823
+ *
2824
+ * @param {string} taxonomyCategoryName
2825
+ * A fully-qualified path representing TaxonomyCategory resource.
2826
+ * @returns {string} A string representing the network_code.
2827
+ */
2828
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
2829
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
2830
+ }
2831
+ /**
2832
+ * Parse the taxonomy_category from TaxonomyCategory resource.
2833
+ *
2834
+ * @param {string} taxonomyCategoryName
2835
+ * A fully-qualified path representing TaxonomyCategory resource.
2836
+ * @returns {string} A string representing the taxonomy_category.
2837
+ */
2838
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
2839
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
2840
+ }
2841
+ /**
2842
+ * Return a fully-qualified team resource name string.
2843
+ *
2844
+ * @param {string} network_code
2845
+ * @param {string} team
2846
+ * @returns {string} Resource name string.
2847
+ */
2848
+ teamPath(networkCode, team) {
2849
+ return this.pathTemplates.teamPathTemplate.render({
2850
+ network_code: networkCode,
2851
+ team: team,
2852
+ });
2853
+ }
2854
+ /**
2855
+ * Parse the network_code from Team resource.
2856
+ *
2857
+ * @param {string} teamName
2858
+ * A fully-qualified path representing Team resource.
2859
+ * @returns {string} A string representing the network_code.
2860
+ */
2861
+ matchNetworkCodeFromTeamName(teamName) {
2862
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
2863
+ }
2864
+ /**
2865
+ * Parse the team from Team resource.
2866
+ *
2867
+ * @param {string} teamName
2868
+ * A fully-qualified path representing Team resource.
2869
+ * @returns {string} A string representing the team.
2870
+ */
2871
+ matchTeamFromTeamName(teamName) {
2872
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
2873
+ }
2874
+ /**
2875
+ * Return a fully-qualified thirdPartyCompany resource name string.
2876
+ *
2877
+ * @param {string} network_code
2878
+ * @param {string} third_party_company
2879
+ * @returns {string} Resource name string.
2880
+ */
2881
+ thirdPartyCompanyPath(networkCode, thirdPartyCompany) {
2882
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.render({
2883
+ network_code: networkCode,
2884
+ third_party_company: thirdPartyCompany,
2885
+ });
2886
+ }
2887
+ /**
2888
+ * Parse the network_code from ThirdPartyCompany resource.
2889
+ *
2890
+ * @param {string} thirdPartyCompanyName
2891
+ * A fully-qualified path representing ThirdPartyCompany resource.
2892
+ * @returns {string} A string representing the network_code.
2893
+ */
2894
+ matchNetworkCodeFromThirdPartyCompanyName(thirdPartyCompanyName) {
2895
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.match(thirdPartyCompanyName).network_code;
2896
+ }
2897
+ /**
2898
+ * Parse the third_party_company from ThirdPartyCompany resource.
2899
+ *
2900
+ * @param {string} thirdPartyCompanyName
2901
+ * A fully-qualified path representing ThirdPartyCompany resource.
2902
+ * @returns {string} A string representing the third_party_company.
2903
+ */
2904
+ matchThirdPartyCompanyFromThirdPartyCompanyName(thirdPartyCompanyName) {
2905
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.match(thirdPartyCompanyName).third_party_company;
2906
+ }
2907
+ /**
2908
+ * Return a fully-qualified user resource name string.
2909
+ *
2910
+ * @param {string} network_code
2911
+ * @param {string} user
2912
+ * @returns {string} Resource name string.
2913
+ */
2914
+ userPath(networkCode, user) {
2915
+ return this.pathTemplates.userPathTemplate.render({
2916
+ network_code: networkCode,
2917
+ user: user,
2918
+ });
2919
+ }
2920
+ /**
2921
+ * Parse the network_code from User resource.
2922
+ *
2923
+ * @param {string} userName
2924
+ * A fully-qualified path representing User resource.
2925
+ * @returns {string} A string representing the network_code.
2926
+ */
2927
+ matchNetworkCodeFromUserName(userName) {
2928
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
2929
+ }
2930
+ /**
2931
+ * Parse the user from User resource.
2932
+ *
2933
+ * @param {string} userName
2934
+ * A fully-qualified path representing User resource.
2935
+ * @returns {string} A string representing the user.
2936
+ */
2937
+ matchUserFromUserName(userName) {
2938
+ return this.pathTemplates.userPathTemplate.match(userName).user;
2939
+ }
2940
+ /**
2941
+ * Return a fully-qualified viewabilityProvider resource name string.
2942
+ *
2943
+ * @param {string} network_code
2944
+ * @param {string} viewability_provider
2945
+ * @returns {string} Resource name string.
2946
+ */
2947
+ viewabilityProviderPath(networkCode, viewabilityProvider) {
2948
+ return this.pathTemplates.viewabilityProviderPathTemplate.render({
2949
+ network_code: networkCode,
2950
+ viewability_provider: viewabilityProvider,
2951
+ });
2952
+ }
2953
+ /**
2954
+ * Parse the network_code from ViewabilityProvider resource.
2955
+ *
2956
+ * @param {string} viewabilityProviderName
2957
+ * A fully-qualified path representing ViewabilityProvider resource.
2958
+ * @returns {string} A string representing the network_code.
2959
+ */
2960
+ matchNetworkCodeFromViewabilityProviderName(viewabilityProviderName) {
2961
+ return this.pathTemplates.viewabilityProviderPathTemplate.match(viewabilityProviderName).network_code;
2962
+ }
2963
+ /**
2964
+ * Parse the viewability_provider from ViewabilityProvider resource.
2965
+ *
2966
+ * @param {string} viewabilityProviderName
2967
+ * A fully-qualified path representing ViewabilityProvider resource.
2968
+ * @returns {string} A string representing the viewability_provider.
2969
+ */
2970
+ matchViewabilityProviderFromViewabilityProviderName(viewabilityProviderName) {
2971
+ return this.pathTemplates.viewabilityProviderPathTemplate.match(viewabilityProviderName).viewability_provider;
2972
+ }
2973
+ /**
2974
+ * Return a fully-qualified webProperty resource name string.
2975
+ *
2976
+ * @param {string} network_code
2977
+ * @param {string} web_property
2978
+ * @returns {string} Resource name string.
2979
+ */
2980
+ webPropertyPath(networkCode, webProperty) {
2981
+ return this.pathTemplates.webPropertyPathTemplate.render({
2982
+ network_code: networkCode,
2983
+ web_property: webProperty,
2984
+ });
2985
+ }
2986
+ /**
2987
+ * Parse the network_code from WebProperty resource.
2988
+ *
2989
+ * @param {string} webPropertyName
2990
+ * A fully-qualified path representing WebProperty resource.
2991
+ * @returns {string} A string representing the network_code.
2992
+ */
2993
+ matchNetworkCodeFromWebPropertyName(webPropertyName) {
2994
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2995
+ .network_code;
2996
+ }
2997
+ /**
2998
+ * Parse the web_property from WebProperty resource.
2999
+ *
3000
+ * @param {string} webPropertyName
3001
+ * A fully-qualified path representing WebProperty resource.
3002
+ * @returns {string} A string representing the web_property.
3003
+ */
3004
+ matchWebPropertyFromWebPropertyName(webPropertyName) {
3005
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
3006
+ .web_property;
3007
+ }
3008
+ /**
3009
+ * Terminate the gRPC channel and close the client.
3010
+ *
3011
+ * The client will no longer be usable and all future behavior is undefined.
3012
+ * @returns {Promise} A promise that resolves when the client is closed.
3013
+ */
3014
+ close() {
3015
+ if (this.breakTemplateServiceStub && !this._terminated) {
3016
+ return this.breakTemplateServiceStub.then(stub => {
3017
+ this._log.info('ending gRPC channel');
3018
+ this._terminated = true;
3019
+ stub.close();
3020
+ });
3021
+ }
3022
+ return Promise.resolve();
3023
+ }
3024
+ }
3025
+ exports.BreakTemplateServiceClient = BreakTemplateServiceClient;
3026
+ //# sourceMappingURL=break_template_service_client.js.map