@google-ads/admanager 0.9.0 → 0.10.0

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