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