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