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