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