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