@google-ads/admanager 0.5.0 → 0.6.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 (344) hide show
  1. package/README.md +40 -2
  2. package/build/protos/google/ads/admanager/v1/ad_break_messages.proto +1 -1
  3. package/build/protos/google/ads/admanager/v1/ad_break_service.proto +5 -4
  4. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +26 -1
  5. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +9 -1
  6. package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +22 -9
  7. package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +1 -1
  8. package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +4 -3
  9. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +237 -4
  10. package/build/protos/google/ads/admanager/v1/application_enums.proto +156 -0
  11. package/build/protos/google/ads/admanager/v1/application_messages.proto +51 -4
  12. package/build/protos/google/ads/admanager/v1/application_service.proto +198 -4
  13. package/build/protos/google/ads/admanager/v1/applied_label.proto +1 -1
  14. package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +1 -1
  15. package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +10 -4
  16. package/build/protos/google/ads/admanager/v1/bandwidth_group_messages.proto +1 -1
  17. package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +11 -4
  18. package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +1 -1
  19. package/build/protos/google/ads/admanager/v1/browser_language_service.proto +11 -4
  20. package/build/protos/google/ads/admanager/v1/browser_messages.proto +1 -1
  21. package/build/protos/google/ads/admanager/v1/browser_service.proto +13 -4
  22. package/build/protos/google/ads/admanager/v1/child_publisher_messages.proto +43 -0
  23. package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +1 -1
  24. package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +1 -1
  25. package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +81 -4
  26. package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +1 -1
  27. package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +1 -1
  28. package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +85 -6
  29. package/build/protos/google/ads/admanager/v1/company_enums.proto +1 -1
  30. package/build/protos/google/ads/admanager/v1/company_messages.proto +36 -23
  31. package/build/protos/google/ads/admanager/v1/company_service.proto +22 -4
  32. package/build/protos/google/ads/admanager/v1/contact_enums.proto +1 -1
  33. package/build/protos/google/ads/admanager/v1/contact_messages.proto +1 -1
  34. package/build/protos/google/ads/admanager/v1/contact_service.proto +22 -6
  35. package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +1 -1
  36. package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +11 -4
  37. package/build/protos/google/ads/admanager/v1/content_label_messages.proto +1 -1
  38. package/build/protos/google/ads/admanager/v1/content_label_service.proto +11 -4
  39. package/build/protos/google/ads/admanager/v1/content_messages.proto +2 -2
  40. package/build/protos/google/ads/admanager/v1/content_service.proto +11 -4
  41. package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +1 -1
  42. package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +1 -1
  43. package/build/protos/google/ads/admanager/v1/creative_template_service.proto +18 -4
  44. package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +1 -1
  45. package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +1 -1
  46. package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +3 -4
  47. package/build/protos/google/ads/admanager/v1/custom_field_service.proto +20 -6
  48. package/build/protos/google/ads/admanager/v1/custom_field_value.proto +1 -1
  49. package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +1 -1
  50. package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +3 -3
  51. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +205 -4
  52. package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +1 -1
  53. package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +1 -1
  54. package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +15 -4
  55. package/build/protos/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto +1 -1
  56. package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +1 -1
  57. package/build/protos/google/ads/admanager/v1/device_capability_service.proto +11 -4
  58. package/build/protos/google/ads/admanager/v1/device_category_messages.proto +1 -1
  59. package/build/protos/google/ads/admanager/v1/device_category_service.proto +11 -4
  60. package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +1 -1
  61. package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +11 -4
  62. package/build/protos/google/ads/admanager/v1/early_ad_break_notification_enums.proto +1 -1
  63. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +3 -3
  64. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +5 -4
  65. package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +1 -1
  66. package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +1 -1
  67. package/build/protos/google/ads/admanager/v1/frequency_cap.proto +1 -1
  68. package/build/protos/google/ads/admanager/v1/geo_target_messages.proto +1 -1
  69. package/build/protos/google/ads/admanager/v1/geo_target_service.proto +14 -4
  70. package/build/protos/google/ads/admanager/v1/goal.proto +57 -0
  71. package/build/protos/google/ads/admanager/v1/goal_enums.proto +138 -0
  72. package/build/protos/google/ads/admanager/v1/label_enums.proto +56 -0
  73. package/build/protos/google/ads/admanager/v1/label_messages.proto +19 -1
  74. package/build/protos/google/ads/admanager/v1/label_service.proto +313 -0
  75. package/build/protos/google/ads/admanager/v1/line_item_enums.proto +86 -0
  76. package/build/protos/google/ads/admanager/v1/line_item_messages.proto +94 -0
  77. package/build/protos/google/ads/admanager/v1/line_item_service.proto +140 -0
  78. package/build/protos/google/ads/admanager/v1/{company_type_enum.proto → linked_device_enums.proto} +15 -24
  79. package/build/protos/google/ads/admanager/v1/linked_device_messages.proto +58 -0
  80. package/build/protos/google/ads/admanager/v1/linked_device_service.proto +138 -0
  81. package/build/protos/google/ads/admanager/v1/live_stream_event_messages.proto +1 -1
  82. package/build/protos/google/ads/admanager/v1/mcm_earnings_messages.proto +124 -0
  83. package/build/protos/google/ads/admanager/v1/mcm_earnings_service.proto +115 -0
  84. package/build/protos/google/ads/admanager/v1/mcm_enums.proto +97 -0
  85. package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +1 -1
  86. package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +12 -4
  87. package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +1 -1
  88. package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +12 -4
  89. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +1 -1
  90. package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +12 -4
  91. package/build/protos/google/ads/admanager/v1/network_messages.proto +9 -9
  92. package/build/protos/google/ads/admanager/v1/network_service.proto +35 -3
  93. package/build/protos/google/ads/admanager/v1/operating_system_messages.proto +1 -1
  94. package/build/protos/google/ads/admanager/v1/operating_system_service.proto +11 -4
  95. package/build/protos/google/ads/admanager/v1/operating_system_version_messages.proto +1 -1
  96. package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +13 -4
  97. package/build/protos/google/ads/admanager/v1/order_enums.proto +1 -1
  98. package/build/protos/google/ads/admanager/v1/order_messages.proto +9 -7
  99. package/build/protos/google/ads/admanager/v1/order_service.proto +28 -4
  100. package/build/protos/google/ads/admanager/v1/placement_enums.proto +1 -1
  101. package/build/protos/google/ads/admanager/v1/placement_messages.proto +4 -3
  102. package/build/protos/google/ads/admanager/v1/placement_service.proto +18 -6
  103. package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +3 -3
  104. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +24 -6
  105. package/build/protos/google/ads/admanager/v1/private_auction_messages.proto +3 -3
  106. package/build/protos/google/ads/admanager/v1/private_auction_service.proto +5 -4
  107. package/build/protos/google/ads/admanager/v1/private_marketplace_enums.proto +4 -1
  108. package/build/protos/google/ads/admanager/v1/programmatic_buyer_messages.proto +1 -1
  109. package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +17 -4
  110. package/build/protos/google/ads/admanager/v1/report_definition.proto +2898 -1001
  111. package/build/protos/google/ads/admanager/v1/report_messages.proto +10 -3
  112. package/build/protos/google/ads/admanager/v1/report_service.proto +5 -4
  113. package/build/protos/google/ads/admanager/v1/report_value.proto +1 -1
  114. package/build/protos/google/ads/admanager/v1/request_platform_enum.proto +1 -1
  115. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_enums.proto +53 -0
  116. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_messages.proto +57 -0
  117. package/build/protos/google/ads/admanager/v1/rich_media_ads_company_service.proto +143 -0
  118. package/build/protos/google/ads/admanager/v1/role_enums.proto +1 -1
  119. package/build/protos/google/ads/admanager/v1/role_messages.proto +4 -3
  120. package/build/protos/google/ads/admanager/v1/role_service.proto +14 -4
  121. package/build/protos/google/ads/admanager/v1/site_enums.proto +1 -1
  122. package/build/protos/google/ads/admanager/v1/site_messages.proto +1 -1
  123. package/build/protos/google/ads/admanager/v1/site_service.proto +16 -6
  124. package/build/protos/google/ads/admanager/v1/size.proto +1 -1
  125. package/build/protos/google/ads/admanager/v1/size_type_enum.proto +1 -1
  126. package/build/protos/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto +1 -1
  127. package/build/protos/google/ads/admanager/v1/targeting.proto +4 -4
  128. package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +3 -3
  129. package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +3 -2
  130. package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +1 -1
  131. package/build/protos/google/ads/admanager/v1/team_enums.proto +1 -1
  132. package/build/protos/google/ads/admanager/v1/team_messages.proto +1 -1
  133. package/build/protos/google/ads/admanager/v1/team_service.proto +18 -6
  134. package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +1 -1
  135. package/build/protos/google/ads/admanager/v1/user_messages.proto +4 -3
  136. package/build/protos/google/ads/admanager/v1/user_service.proto +3 -2
  137. package/build/protos/google/ads/admanager/v1/video_position_enum.proto +1 -1
  138. package/build/protos/google/ads/admanager/v1/web_property.proto +1 -1
  139. package/build/protos/protos.d.ts +18344 -7945
  140. package/build/protos/protos.js +50285 -23131
  141. package/build/protos/protos.json +6302 -3054
  142. package/build/src/index.d.ts +16 -1
  143. package/build/src/index.js +13 -3
  144. package/build/src/index.js.map +1 -1
  145. package/build/src/v1/ad_break_service_client.d.ts +145 -49
  146. package/build/src/v1/ad_break_service_client.js +296 -81
  147. package/build/src/v1/ad_break_service_client.js.map +1 -1
  148. package/build/src/v1/ad_break_service_proto_list.json +18 -1
  149. package/build/src/v1/ad_review_center_ad_service_client.d.ts +213 -96
  150. package/build/src/v1/ad_review_center_ad_service_client.js +327 -107
  151. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
  152. package/build/src/v1/ad_review_center_ad_service_proto_list.json +18 -1
  153. package/build/src/v1/ad_unit_service_client.d.ts +418 -84
  154. package/build/src/v1/ad_unit_service_client.js +619 -78
  155. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  156. package/build/src/v1/ad_unit_service_client_config.json +28 -0
  157. package/build/src/v1/ad_unit_service_proto_list.json +18 -1
  158. package/build/src/v1/application_service_client.d.ts +340 -44
  159. package/build/src/v1/application_service_client.js +548 -67
  160. package/build/src/v1/application_service_client.js.map +1 -1
  161. package/build/src/v1/application_service_client_config.json +24 -0
  162. package/build/src/v1/application_service_proto_list.json +18 -1
  163. package/build/src/v1/audience_segment_service_client.d.ts +155 -44
  164. package/build/src/v1/audience_segment_service_client.js +270 -68
  165. package/build/src/v1/audience_segment_service_client.js.map +1 -1
  166. package/build/src/v1/audience_segment_service_proto_list.json +18 -1
  167. package/build/src/v1/bandwidth_group_service_client.d.ts +158 -44
  168. package/build/src/v1/bandwidth_group_service_client.js +272 -68
  169. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  170. package/build/src/v1/bandwidth_group_service_proto_list.json +18 -1
  171. package/build/src/v1/browser_language_service_client.d.ts +158 -44
  172. package/build/src/v1/browser_language_service_client.js +272 -68
  173. package/build/src/v1/browser_language_service_client.js.map +1 -1
  174. package/build/src/v1/browser_language_service_proto_list.json +18 -1
  175. package/build/src/v1/browser_service_client.d.ts +164 -44
  176. package/build/src/v1/browser_service_client.js +270 -66
  177. package/build/src/v1/browser_service_client.js.map +1 -1
  178. package/build/src/v1/browser_service_proto_list.json +18 -1
  179. package/build/src/v1/cms_metadata_key_service_client.d.ts +216 -44
  180. package/build/src/v1/cms_metadata_key_service_client.js +362 -68
  181. package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
  182. package/build/src/v1/cms_metadata_key_service_client_config.json +8 -0
  183. package/build/src/v1/cms_metadata_key_service_proto_list.json +18 -1
  184. package/build/src/v1/cms_metadata_value_service_client.d.ts +222 -46
  185. package/build/src/v1/cms_metadata_value_service_client.js +364 -68
  186. package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
  187. package/build/src/v1/cms_metadata_value_service_client_config.json +8 -0
  188. package/build/src/v1/cms_metadata_value_service_proto_list.json +18 -1
  189. package/build/src/v1/company_service_client.d.ts +191 -44
  190. package/build/src/v1/company_service_client.js +288 -66
  191. package/build/src/v1/company_service_client.js.map +1 -1
  192. package/build/src/v1/company_service_proto_list.json +18 -1
  193. package/build/src/v1/contact_service_client.d.ts +187 -46
  194. package/build/src/v1/contact_service_client.js +344 -91
  195. package/build/src/v1/contact_service_client.js.map +1 -1
  196. package/build/src/v1/contact_service_proto_list.json +18 -1
  197. package/build/src/v1/content_bundle_service_client.d.ts +158 -44
  198. package/build/src/v1/content_bundle_service_client.js +270 -67
  199. package/build/src/v1/content_bundle_service_client.js.map +1 -1
  200. package/build/src/v1/content_bundle_service_proto_list.json +18 -1
  201. package/build/src/v1/content_label_service_client.d.ts +158 -44
  202. package/build/src/v1/content_label_service_client.js +270 -67
  203. package/build/src/v1/content_label_service_client.js.map +1 -1
  204. package/build/src/v1/content_label_service_proto_list.json +18 -1
  205. package/build/src/v1/content_service_client.d.ts +158 -44
  206. package/build/src/v1/content_service_client.js +266 -66
  207. package/build/src/v1/content_service_client.js.map +1 -1
  208. package/build/src/v1/content_service_proto_list.json +18 -1
  209. package/build/src/v1/creative_template_service_client.d.ts +179 -44
  210. package/build/src/v1/creative_template_service_client.js +286 -68
  211. package/build/src/v1/creative_template_service_client.js.map +1 -1
  212. package/build/src/v1/creative_template_service_proto_list.json +18 -1
  213. package/build/src/v1/custom_field_service_client.d.ts +185 -50
  214. package/build/src/v1/custom_field_service_client.js +368 -103
  215. package/build/src/v1/custom_field_service_client.js.map +1 -1
  216. package/build/src/v1/custom_field_service_proto_list.json +18 -1
  217. package/build/src/v1/custom_targeting_key_service_client.d.ts +336 -44
  218. package/build/src/v1/custom_targeting_key_service_client.js +545 -68
  219. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  220. package/build/src/v1/custom_targeting_key_service_client_config.json +24 -0
  221. package/build/src/v1/custom_targeting_key_service_proto_list.json +18 -1
  222. package/build/src/v1/custom_targeting_value_service_client.d.ts +174 -48
  223. package/build/src/v1/custom_targeting_value_service_client.js +281 -68
  224. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  225. package/build/src/v1/custom_targeting_value_service_proto_list.json +18 -1
  226. package/build/src/v1/device_capability_service_client.d.ts +158 -44
  227. package/build/src/v1/device_capability_service_client.js +272 -68
  228. package/build/src/v1/device_capability_service_client.js.map +1 -1
  229. package/build/src/v1/device_capability_service_proto_list.json +18 -1
  230. package/build/src/v1/device_category_service_client.d.ts +158 -44
  231. package/build/src/v1/device_category_service_client.js +272 -68
  232. package/build/src/v1/device_category_service_client.js.map +1 -1
  233. package/build/src/v1/device_category_service_proto_list.json +18 -1
  234. package/build/src/v1/device_manufacturer_service_client.d.ts +158 -44
  235. package/build/src/v1/device_manufacturer_service_client.js +273 -68
  236. package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
  237. package/build/src/v1/device_manufacturer_service_proto_list.json +18 -1
  238. package/build/src/v1/entity_signals_mapping_service_client.d.ts +145 -49
  239. package/build/src/v1/entity_signals_mapping_service_client.js +313 -88
  240. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  241. package/build/src/v1/entity_signals_mapping_service_proto_list.json +18 -1
  242. package/build/src/v1/gapic_metadata.json +476 -2
  243. package/build/src/v1/geo_target_service_client.d.ts +167 -44
  244. package/build/src/v1/geo_target_service_client.js +272 -66
  245. package/build/src/v1/geo_target_service_client.js.map +1 -1
  246. package/build/src/v1/geo_target_service_proto_list.json +18 -1
  247. package/build/src/v1/index.d.ts +5 -0
  248. package/build/src/v1/index.js +12 -2
  249. package/build/src/v1/index.js.map +1 -1
  250. package/build/src/v1/label_service_client.d.ts +1631 -0
  251. package/build/src/v1/label_service_client.js +2466 -0
  252. package/build/src/v1/label_service_client.js.map +1 -0
  253. package/build/src/v1/label_service_client_config.json +58 -0
  254. package/build/src/v1/label_service_proto_list.json +139 -0
  255. package/build/src/v1/line_item_service_client.d.ts +1474 -0
  256. package/build/src/v1/line_item_service_client.js +2203 -0
  257. package/build/src/v1/line_item_service_client.js.map +1 -0
  258. package/build/src/v1/line_item_service_client_config.json +34 -0
  259. package/build/src/v1/line_item_service_proto_list.json +139 -0
  260. package/build/src/v1/linked_device_service_client.d.ts +1465 -0
  261. package/build/src/v1/linked_device_service_client.js +2200 -0
  262. package/build/src/v1/linked_device_service_client.js.map +1 -0
  263. package/build/src/v1/linked_device_service_client_config.json +34 -0
  264. package/build/src/v1/linked_device_service_proto_list.json +139 -0
  265. package/build/src/v1/mcm_earnings_service_client.d.ts +1426 -0
  266. package/build/src/v1/mcm_earnings_service_client.js +2144 -0
  267. package/build/src/v1/mcm_earnings_service_client.js.map +1 -0
  268. package/build/src/v1/mcm_earnings_service_client_config.json +30 -0
  269. package/build/src/v1/mcm_earnings_service_proto_list.json +139 -0
  270. package/build/src/v1/mobile_carrier_service_client.d.ts +161 -44
  271. package/build/src/v1/mobile_carrier_service_client.js +272 -67
  272. package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
  273. package/build/src/v1/mobile_carrier_service_proto_list.json +18 -1
  274. package/build/src/v1/mobile_device_service_client.d.ts +161 -44
  275. package/build/src/v1/mobile_device_service_client.js +272 -67
  276. package/build/src/v1/mobile_device_service_client.js.map +1 -1
  277. package/build/src/v1/mobile_device_service_proto_list.json +18 -1
  278. package/build/src/v1/mobile_device_submodel_service_client.d.ts +164 -47
  279. package/build/src/v1/mobile_device_submodel_service_client.js +275 -68
  280. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
  281. package/build/src/v1/mobile_device_submodel_service_proto_list.json +18 -1
  282. package/build/src/v1/network_service_client.d.ts +184 -10
  283. package/build/src/v1/network_service_client.js +332 -64
  284. package/build/src/v1/network_service_client.js.map +1 -1
  285. package/build/src/v1/network_service_proto_list.json +18 -1
  286. package/build/src/v1/operating_system_service_client.d.ts +158 -44
  287. package/build/src/v1/operating_system_service_client.js +272 -68
  288. package/build/src/v1/operating_system_service_client.js.map +1 -1
  289. package/build/src/v1/operating_system_service_proto_list.json +18 -1
  290. package/build/src/v1/operating_system_version_service_client.d.ts +167 -47
  291. package/build/src/v1/operating_system_version_service_client.js +277 -68
  292. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  293. package/build/src/v1/operating_system_version_service_proto_list.json +18 -1
  294. package/build/src/v1/order_service_client.d.ts +214 -49
  295. package/build/src/v1/order_service_client.js +300 -66
  296. package/build/src/v1/order_service_client.js.map +1 -1
  297. package/build/src/v1/order_service_proto_list.json +18 -1
  298. package/build/src/v1/placement_service_client.d.ts +177 -48
  299. package/build/src/v1/placement_service_client.js +378 -109
  300. package/build/src/v1/placement_service_client.js.map +1 -1
  301. package/build/src/v1/placement_service_proto_list.json +18 -1
  302. package/build/src/v1/private_auction_deal_service_client.d.ts +197 -50
  303. package/build/src/v1/private_auction_deal_service_client.js +323 -80
  304. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  305. package/build/src/v1/private_auction_deal_service_proto_list.json +18 -1
  306. package/build/src/v1/private_auction_service_client.d.ts +139 -43
  307. package/build/src/v1/private_auction_service_client.js +284 -76
  308. package/build/src/v1/private_auction_service_client.js.map +1 -1
  309. package/build/src/v1/private_auction_service_proto_list.json +18 -1
  310. package/build/src/v1/programmatic_buyer_service_client.d.ts +176 -44
  311. package/build/src/v1/programmatic_buyer_service_client.js +285 -68
  312. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  313. package/build/src/v1/programmatic_buyer_service_proto_list.json +18 -1
  314. package/build/src/v1/report_service_client.d.ts +198 -102
  315. package/build/src/v1/report_service_client.js +355 -121
  316. package/build/src/v1/report_service_client.js.map +1 -1
  317. package/build/src/v1/report_service_proto_list.json +18 -1
  318. package/build/src/v1/rich_media_ads_company_service_client.d.ts +1475 -0
  319. package/build/src/v1/rich_media_ads_company_service_client.js +2208 -0
  320. package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -0
  321. package/build/src/v1/rich_media_ads_company_service_client_config.json +34 -0
  322. package/build/src/v1/rich_media_ads_company_service_proto_list.json +139 -0
  323. package/build/src/v1/role_service_client.d.ts +167 -44
  324. package/build/src/v1/role_service_client.js +272 -66
  325. package/build/src/v1/role_service_client.js.map +1 -1
  326. package/build/src/v1/role_service_proto_list.json +18 -1
  327. package/build/src/v1/site_service_client.d.ts +170 -47
  328. package/build/src/v1/site_service_client.js +360 -103
  329. package/build/src/v1/site_service_client.js.map +1 -1
  330. package/build/src/v1/site_service_proto_list.json +18 -1
  331. package/build/src/v1/taxonomy_category_service_client.d.ts +136 -40
  332. package/build/src/v1/taxonomy_category_service_client.js +256 -64
  333. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  334. package/build/src/v1/taxonomy_category_service_proto_list.json +18 -1
  335. package/build/src/v1/team_service_client.d.ts +175 -46
  336. package/build/src/v1/team_service_client.js +364 -103
  337. package/build/src/v1/team_service_client.js.map +1 -1
  338. package/build/src/v1/team_service_proto_list.json +18 -1
  339. package/build/src/v1/user_service_client.d.ts +96 -0
  340. package/build/src/v1/user_service_client.js +228 -48
  341. package/build/src/v1/user_service_client.js.map +1 -1
  342. package/build/src/v1/user_service_proto_list.json +18 -1
  343. package/package.json +10 -2
  344. package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +0 -97
@@ -0,0 +1,2203 @@
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.LineItemServiceClient = 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/line_item_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./line_item_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling `LineItem` objects.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class LineItemServiceClient {
36
+ _terminated = false;
37
+ _opts;
38
+ _providedCustomServicePath;
39
+ _gaxModule;
40
+ _gaxGrpc;
41
+ _protos;
42
+ _defaults;
43
+ _universeDomain;
44
+ _servicePath;
45
+ _log = google_gax_1.loggingUtils.log('admanager');
46
+ auth;
47
+ descriptors = {
48
+ page: {},
49
+ stream: {},
50
+ longrunning: {},
51
+ batching: {},
52
+ };
53
+ warn;
54
+ innerApiCalls;
55
+ pathTemplates;
56
+ lineItemServiceStub;
57
+ /**
58
+ * Construct an instance of LineItemServiceClient.
59
+ *
60
+ * @param {object} [options] - The configuration object.
61
+ * The options accepted by the constructor are described in detail
62
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
63
+ * The common options are:
64
+ * @param {object} [options.credentials] - Credentials object.
65
+ * @param {string} [options.credentials.client_email]
66
+ * @param {string} [options.credentials.private_key]
67
+ * @param {string} [options.email] - Account email address. Required when
68
+ * using a .pem or .p12 keyFilename.
69
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
70
+ * .p12 key downloaded from the Google Developers Console. If you provide
71
+ * a path to a JSON file, the projectId option below is not necessary.
72
+ * NOTE: .pem and .p12 require you to specify options.email as well.
73
+ * @param {number} [options.port] - The port on which to connect to
74
+ * the remote host.
75
+ * @param {string} [options.projectId] - The project ID from the Google
76
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
77
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
78
+ * app is running in an environment which supports
79
+ * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
80
+ * your project ID will be detected automatically.
81
+ * @param {string} [options.apiEndpoint] - The domain name of the
82
+ * API remote host.
83
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
84
+ * Follows the structure of {@link gapicConfig}.
85
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
86
+ * For more information, please check the
87
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
88
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
89
+ * need to avoid loading the default gRPC version and want to use the fallback
90
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
91
+ * ```
92
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
93
+ * const client = new LineItemServiceClient({fallback: true}, gax);
94
+ * ```
95
+ */
96
+ constructor(opts, gaxInstance) {
97
+ // Ensure that options include all the required fields.
98
+ const staticMembers = this.constructor;
99
+ if (opts?.universe_domain &&
100
+ opts?.universeDomain &&
101
+ opts?.universe_domain !== opts?.universeDomain) {
102
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
103
+ }
104
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
105
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
106
+ : undefined;
107
+ this._universeDomain =
108
+ opts?.universeDomain ??
109
+ opts?.universe_domain ??
110
+ universeDomainEnvVar ??
111
+ 'googleapis.com';
112
+ this._servicePath = 'admanager.' + this._universeDomain;
113
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
114
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
115
+ const port = opts?.port || staticMembers.port;
116
+ const clientConfig = opts?.clientConfig ?? {};
117
+ // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute).
118
+ if (!opts) {
119
+ opts = { fallback: true };
120
+ }
121
+ else {
122
+ opts.fallback = opts.fallback ?? true;
123
+ }
124
+ const fallback = opts?.fallback ??
125
+ (typeof window !== 'undefined' && typeof window?.fetch === 'function');
126
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
127
+ // Request numeric enum values if REST transport is used.
128
+ opts.numericEnums = true;
129
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
130
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
131
+ opts['scopes'] = staticMembers.scopes;
132
+ }
133
+ // Load google-gax module synchronously if needed
134
+ if (!gaxInstance) {
135
+ gaxInstance = require('google-gax');
136
+ }
137
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
138
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
139
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
140
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
141
+ // Save options to use in initialize() method.
142
+ this._opts = opts;
143
+ // Save the auth object to the client, for use by other methods.
144
+ this.auth = this._gaxGrpc.auth;
145
+ // Set useJWTAccessWithScope on the auth object.
146
+ this.auth.useJWTAccessWithScope = true;
147
+ // Set defaultServicePath on the auth object.
148
+ this.auth.defaultServicePath = this._servicePath;
149
+ // Set the default scopes in auth client if needed.
150
+ if (servicePath === this._servicePath) {
151
+ this.auth.defaultScopes = staticMembers.scopes;
152
+ }
153
+ // Determine the client header string.
154
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
155
+ if (typeof process === 'object' && 'versions' in process) {
156
+ clientHeader.push(`gl-node/${process.versions.node}`);
157
+ }
158
+ else {
159
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
160
+ }
161
+ if (!opts.fallback) {
162
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
163
+ }
164
+ else {
165
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
166
+ }
167
+ if (opts.libName && opts.libVersion) {
168
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
169
+ }
170
+ // Load the applicable protos.
171
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
172
+ // This API contains "path templates"; forward-slash-separated
173
+ // identifiers to uniquely identify resources within the API.
174
+ // Create useful helper objects for these.
175
+ this.pathTemplates = {
176
+ adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
177
+ adReviewCenterAdPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}'),
178
+ adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
179
+ applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
180
+ audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
181
+ bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
182
+ browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
183
+ browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
184
+ childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
185
+ cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
186
+ cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
187
+ companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
188
+ contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
189
+ contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
190
+ contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
191
+ contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
192
+ creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
193
+ customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
194
+ customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
195
+ customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
196
+ deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
197
+ deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
198
+ deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
199
+ entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
200
+ geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
201
+ labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
202
+ lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
203
+ linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
204
+ liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
205
+ mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
206
+ mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
207
+ mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
208
+ networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
209
+ operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
210
+ operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
211
+ orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
212
+ placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
213
+ privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
214
+ privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
215
+ programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
216
+ reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
217
+ richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
218
+ rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
219
+ sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
220
+ taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
221
+ teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
222
+ userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
223
+ webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
224
+ };
225
+ // Some of the methods on this service return "paged" results,
226
+ // (e.g. 50 results at a time, with tokens to get subsequent
227
+ // pages). Denote the keys used for pagination and results.
228
+ this.descriptors.page = {
229
+ listLineItems: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'lineItems'),
230
+ };
231
+ // Put together the default options sent with requests.
232
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.LineItemService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
233
+ // Set up a dictionary of "inner API calls"; the core implementation
234
+ // of calling the API is handled in `google-gax`, with this code
235
+ // merely providing the destination and request information.
236
+ this.innerApiCalls = {};
237
+ // Add a warn function to the client constructor so it can be easily tested.
238
+ this.warn = this._gaxModule.warn;
239
+ }
240
+ /**
241
+ * Initialize the client.
242
+ * Performs asynchronous operations (such as authentication) and prepares the client.
243
+ * This function will be called automatically when any class method is called for the
244
+ * first time, but if you need to initialize it before calling an actual method,
245
+ * feel free to call initialize() directly.
246
+ *
247
+ * You can await on this method if you want to make sure the client is initialized.
248
+ *
249
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
250
+ */
251
+ initialize() {
252
+ // If the client stub promise is already initialized, return immediately.
253
+ if (this.lineItemServiceStub) {
254
+ return this.lineItemServiceStub;
255
+ }
256
+ // Put together the "service stub" for
257
+ // google.ads.admanager.v1.LineItemService.
258
+ this.lineItemServiceStub = this._gaxGrpc.createStub(this._opts.fallback
259
+ ? this._protos.lookupService('google.ads.admanager.v1.LineItemService')
260
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
261
+ this._protos.google.ads.admanager.v1.LineItemService, this._opts, this._providedCustomServicePath);
262
+ // Iterate over each of the methods that the service provides
263
+ // and create an API call method for each.
264
+ const lineItemServiceStubMethods = ['getLineItem', 'listLineItems'];
265
+ for (const methodName of lineItemServiceStubMethods) {
266
+ const callPromise = this.lineItemServiceStub.then((stub) => (...args) => {
267
+ if (this._terminated) {
268
+ return Promise.reject('The client has already been closed.');
269
+ }
270
+ const func = stub[methodName];
271
+ return func.apply(stub, args);
272
+ }, (err) => () => {
273
+ throw err;
274
+ });
275
+ const descriptor = this.descriptors.page[methodName] || undefined;
276
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
277
+ this.innerApiCalls[methodName] = apiCall;
278
+ }
279
+ return this.lineItemServiceStub;
280
+ }
281
+ /**
282
+ * The DNS address for this API service.
283
+ * @deprecated Use the apiEndpoint method of the client instance.
284
+ * @returns {string} The DNS address for this service.
285
+ */
286
+ static get servicePath() {
287
+ if (typeof process === 'object' &&
288
+ typeof process.emitWarning === 'function') {
289
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
290
+ }
291
+ return 'admanager.googleapis.com';
292
+ }
293
+ /**
294
+ * The DNS address for this API service - same as servicePath.
295
+ * @deprecated Use the apiEndpoint method of the client instance.
296
+ * @returns {string} The DNS address for this service.
297
+ */
298
+ static get apiEndpoint() {
299
+ if (typeof process === 'object' &&
300
+ typeof process.emitWarning === 'function') {
301
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
302
+ }
303
+ return 'admanager.googleapis.com';
304
+ }
305
+ /**
306
+ * The DNS address for this API service.
307
+ * @returns {string} The DNS address for this service.
308
+ */
309
+ get apiEndpoint() {
310
+ return this._servicePath;
311
+ }
312
+ get universeDomain() {
313
+ return this._universeDomain;
314
+ }
315
+ /**
316
+ * The port for this API service.
317
+ * @returns {number} The default port for this service.
318
+ */
319
+ static get port() {
320
+ return 443;
321
+ }
322
+ /**
323
+ * The scopes needed to make gRPC calls for every method defined
324
+ * in this service.
325
+ * @returns {string[]} List of default scopes.
326
+ */
327
+ static get scopes() {
328
+ return [
329
+ 'https://www.googleapis.com/auth/admanager',
330
+ 'https://www.googleapis.com/auth/admanager.readonly',
331
+ ];
332
+ }
333
+ /**
334
+ * Return the project ID used by this class.
335
+ * @returns {Promise} A promise that resolves to string containing the project ID.
336
+ */
337
+ getProjectId(callback) {
338
+ if (callback) {
339
+ this.auth.getProjectId(callback);
340
+ return;
341
+ }
342
+ return this.auth.getProjectId();
343
+ }
344
+ getLineItem(request, optionsOrCallback, callback) {
345
+ request = request || {};
346
+ let options;
347
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
348
+ callback = optionsOrCallback;
349
+ options = {};
350
+ }
351
+ else {
352
+ options = optionsOrCallback;
353
+ }
354
+ options = options || {};
355
+ options.otherArgs = options.otherArgs || {};
356
+ options.otherArgs.headers = options.otherArgs.headers || {};
357
+ options.otherArgs.headers['x-goog-request-params'] =
358
+ this._gaxModule.routingHeader.fromParams({
359
+ name: request.name ?? '',
360
+ });
361
+ this.initialize().catch((err) => {
362
+ throw err;
363
+ });
364
+ this._log.info('getLineItem request %j', request);
365
+ const wrappedCallback = callback
366
+ ? (error, response, options, rawResponse) => {
367
+ this._log.info('getLineItem response %j', response);
368
+ callback(error, response, options, rawResponse); // We verified callback above.
369
+ }
370
+ : undefined;
371
+ return this.innerApiCalls
372
+ .getLineItem(request, options, wrappedCallback)
373
+ ?.then(([response, options, rawResponse]) => {
374
+ this._log.info('getLineItem response %j', response);
375
+ return [response, options, rawResponse];
376
+ })
377
+ .catch((error) => {
378
+ if (error &&
379
+ 'statusDetails' in error &&
380
+ error.statusDetails instanceof Array) {
381
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
382
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
383
+ }
384
+ throw error;
385
+ });
386
+ }
387
+ listLineItems(request, optionsOrCallback, callback) {
388
+ request = request || {};
389
+ let options;
390
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
391
+ callback = optionsOrCallback;
392
+ options = {};
393
+ }
394
+ else {
395
+ options = optionsOrCallback;
396
+ }
397
+ options = options || {};
398
+ options.otherArgs = options.otherArgs || {};
399
+ options.otherArgs.headers = options.otherArgs.headers || {};
400
+ options.otherArgs.headers['x-goog-request-params'] =
401
+ this._gaxModule.routingHeader.fromParams({
402
+ parent: request.parent ?? '',
403
+ });
404
+ this.initialize().catch((err) => {
405
+ throw err;
406
+ });
407
+ const wrappedCallback = callback
408
+ ? (error, values, nextPageRequest, rawResponse) => {
409
+ this._log.info('listLineItems values %j', values);
410
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
411
+ }
412
+ : undefined;
413
+ this._log.info('listLineItems request %j', request);
414
+ return this.innerApiCalls
415
+ .listLineItems(request, options, wrappedCallback)
416
+ ?.then(([response, input, output]) => {
417
+ this._log.info('listLineItems values %j', response);
418
+ return [response, input, output];
419
+ });
420
+ }
421
+ /**
422
+ * Equivalent to `listLineItems`, but returns a NodeJS Stream object.
423
+ * @param {Object} request
424
+ * The request object that will be sent.
425
+ * @param {string} request.parent
426
+ * Required. The parent, which owns this collection of LineItems.
427
+ * Format: `networks/{network_code}`
428
+ * @param {number} [request.pageSize]
429
+ * Optional. The maximum number of `LineItems` to return. The service may
430
+ * return fewer than this value. If unspecified, at most 50 `LineItems` will
431
+ * be returned. The maximum value is 1000; values greater than 1000 will be
432
+ * coerced to 1000.
433
+ * @param {string} [request.pageToken]
434
+ * Optional. A page token, received from a previous `ListLineItems` call.
435
+ * Provide this to retrieve the subsequent page.
436
+ *
437
+ * When paginating, all other parameters provided to `ListLineItems` must
438
+ * match the call that provided the page token.
439
+ * @param {string} [request.filter]
440
+ * Optional. Expression to filter the response.
441
+ * See syntax details at
442
+ * https://developers.google.com/ad-manager/api/beta/filters
443
+ *
444
+ * <b>Filterable fields:</b>
445
+ * <ul style="list-style-type:none">
446
+ * <li><code>displayName</code></li>
447
+ * <li><code>endTime</code></li>
448
+ * <li><code>goal.units</code></li>
449
+ * <li><code>lineItemType</code></li>
450
+ * <li><code>name</code></li>
451
+ * <li><code>order</code></li>
452
+ * <li><code>startTime</code></li>
453
+ * </ul>
454
+ * @param {string} [request.orderBy]
455
+ * Optional. Expression to specify sorting order.
456
+ * See syntax details at
457
+ * https://developers.google.com/ad-manager/api/beta/filters#order
458
+ * @param {number} [request.skip]
459
+ * Optional. Number of individual resources to skip while paginating.
460
+ * @param {object} [options]
461
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
462
+ * @returns {Stream}
463
+ * An object stream which emits an object representing {@link protos.google.ads.admanager.v1.LineItem|LineItem} on 'data' event.
464
+ * The client library will perform auto-pagination by default: it will call the API as many
465
+ * times as needed. Note that it can affect your quota.
466
+ * We recommend using `listLineItemsAsync()`
467
+ * method described below for async iteration which you can stop as needed.
468
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
469
+ * for more details and examples.
470
+ */
471
+ listLineItemsStream(request, options) {
472
+ request = request || {};
473
+ options = options || {};
474
+ options.otherArgs = options.otherArgs || {};
475
+ options.otherArgs.headers = options.otherArgs.headers || {};
476
+ options.otherArgs.headers['x-goog-request-params'] =
477
+ this._gaxModule.routingHeader.fromParams({
478
+ parent: request.parent ?? '',
479
+ });
480
+ const defaultCallSettings = this._defaults['listLineItems'];
481
+ const callSettings = defaultCallSettings.merge(options);
482
+ this.initialize().catch((err) => {
483
+ throw err;
484
+ });
485
+ this._log.info('listLineItems stream %j', request);
486
+ return this.descriptors.page.listLineItems.createStream(this.innerApiCalls.listLineItems, request, callSettings);
487
+ }
488
+ /**
489
+ * Equivalent to `listLineItems`, but returns an iterable object.
490
+ *
491
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
492
+ * @param {Object} request
493
+ * The request object that will be sent.
494
+ * @param {string} request.parent
495
+ * Required. The parent, which owns this collection of LineItems.
496
+ * Format: `networks/{network_code}`
497
+ * @param {number} [request.pageSize]
498
+ * Optional. The maximum number of `LineItems` to return. The service may
499
+ * return fewer than this value. If unspecified, at most 50 `LineItems` will
500
+ * be returned. The maximum value is 1000; values greater than 1000 will be
501
+ * coerced to 1000.
502
+ * @param {string} [request.pageToken]
503
+ * Optional. A page token, received from a previous `ListLineItems` call.
504
+ * Provide this to retrieve the subsequent page.
505
+ *
506
+ * When paginating, all other parameters provided to `ListLineItems` must
507
+ * match the call that provided the page token.
508
+ * @param {string} [request.filter]
509
+ * Optional. Expression to filter the response.
510
+ * See syntax details at
511
+ * https://developers.google.com/ad-manager/api/beta/filters
512
+ *
513
+ * <b>Filterable fields:</b>
514
+ * <ul style="list-style-type:none">
515
+ * <li><code>displayName</code></li>
516
+ * <li><code>endTime</code></li>
517
+ * <li><code>goal.units</code></li>
518
+ * <li><code>lineItemType</code></li>
519
+ * <li><code>name</code></li>
520
+ * <li><code>order</code></li>
521
+ * <li><code>startTime</code></li>
522
+ * </ul>
523
+ * @param {string} [request.orderBy]
524
+ * Optional. Expression to specify sorting order.
525
+ * See syntax details at
526
+ * https://developers.google.com/ad-manager/api/beta/filters#order
527
+ * @param {number} [request.skip]
528
+ * Optional. Number of individual resources to skip while paginating.
529
+ * @param {object} [options]
530
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
531
+ * @returns {Object}
532
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
533
+ * When you iterate the returned iterable, each element will be an object representing
534
+ * {@link protos.google.ads.admanager.v1.LineItem|LineItem}. The API will be called under the hood as needed, once per the page,
535
+ * so you can stop the iteration when you don't need more results.
536
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
537
+ * for more details and examples.
538
+ * @example <caption>include:samples/generated/v1/line_item_service.list_line_items.js</caption>
539
+ * region_tag:admanager_v1_generated_LineItemService_ListLineItems_async
540
+ */
541
+ listLineItemsAsync(request, options) {
542
+ request = request || {};
543
+ options = options || {};
544
+ options.otherArgs = options.otherArgs || {};
545
+ options.otherArgs.headers = options.otherArgs.headers || {};
546
+ options.otherArgs.headers['x-goog-request-params'] =
547
+ this._gaxModule.routingHeader.fromParams({
548
+ parent: request.parent ?? '',
549
+ });
550
+ const defaultCallSettings = this._defaults['listLineItems'];
551
+ const callSettings = defaultCallSettings.merge(options);
552
+ this.initialize().catch((err) => {
553
+ throw err;
554
+ });
555
+ this._log.info('listLineItems iterate %j', request);
556
+ return this.descriptors.page.listLineItems.asyncIterate(this.innerApiCalls['listLineItems'], request, callSettings);
557
+ }
558
+ // --------------------
559
+ // -- Path templates --
560
+ // --------------------
561
+ /**
562
+ * Return a fully-qualified adBreak resource name string.
563
+ *
564
+ * @param {string} network_code
565
+ * @param {string} asset_key
566
+ * @param {string} ad_break
567
+ * @returns {string} Resource name string.
568
+ */
569
+ adBreakPath(networkCode, assetKey, adBreak) {
570
+ return this.pathTemplates.adBreakPathTemplate.render({
571
+ network_code: networkCode,
572
+ asset_key: assetKey,
573
+ ad_break: adBreak,
574
+ });
575
+ }
576
+ /**
577
+ * Parse the network_code from AdBreak resource.
578
+ *
579
+ * @param {string} adBreakName
580
+ * A fully-qualified path representing AdBreak resource.
581
+ * @returns {string} A string representing the network_code.
582
+ */
583
+ matchNetworkCodeFromAdBreakName(adBreakName) {
584
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
585
+ .network_code;
586
+ }
587
+ /**
588
+ * Parse the asset_key from AdBreak resource.
589
+ *
590
+ * @param {string} adBreakName
591
+ * A fully-qualified path representing AdBreak resource.
592
+ * @returns {string} A string representing the asset_key.
593
+ */
594
+ matchAssetKeyFromAdBreakName(adBreakName) {
595
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
596
+ }
597
+ /**
598
+ * Parse the ad_break from AdBreak resource.
599
+ *
600
+ * @param {string} adBreakName
601
+ * A fully-qualified path representing AdBreak resource.
602
+ * @returns {string} A string representing the ad_break.
603
+ */
604
+ matchAdBreakFromAdBreakName(adBreakName) {
605
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
606
+ }
607
+ /**
608
+ * Return a fully-qualified adReviewCenterAd resource name string.
609
+ *
610
+ * @param {string} network_code
611
+ * @param {string} web_property_code
612
+ * @param {string} ad_review_center_ad
613
+ * @returns {string} Resource name string.
614
+ */
615
+ adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
616
+ return this.pathTemplates.adReviewCenterAdPathTemplate.render({
617
+ network_code: networkCode,
618
+ web_property_code: webPropertyCode,
619
+ ad_review_center_ad: adReviewCenterAd,
620
+ });
621
+ }
622
+ /**
623
+ * Parse the network_code from AdReviewCenterAd resource.
624
+ *
625
+ * @param {string} adReviewCenterAdName
626
+ * A fully-qualified path representing AdReviewCenterAd resource.
627
+ * @returns {string} A string representing the network_code.
628
+ */
629
+ matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
630
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
631
+ }
632
+ /**
633
+ * Parse the web_property_code from AdReviewCenterAd resource.
634
+ *
635
+ * @param {string} adReviewCenterAdName
636
+ * A fully-qualified path representing AdReviewCenterAd resource.
637
+ * @returns {string} A string representing the web_property_code.
638
+ */
639
+ matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
640
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
641
+ }
642
+ /**
643
+ * Parse the ad_review_center_ad from AdReviewCenterAd resource.
644
+ *
645
+ * @param {string} adReviewCenterAdName
646
+ * A fully-qualified path representing AdReviewCenterAd resource.
647
+ * @returns {string} A string representing the ad_review_center_ad.
648
+ */
649
+ matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
650
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
651
+ }
652
+ /**
653
+ * Return a fully-qualified adUnit resource name string.
654
+ *
655
+ * @param {string} network_code
656
+ * @param {string} ad_unit
657
+ * @returns {string} Resource name string.
658
+ */
659
+ adUnitPath(networkCode, adUnit) {
660
+ return this.pathTemplates.adUnitPathTemplate.render({
661
+ network_code: networkCode,
662
+ ad_unit: adUnit,
663
+ });
664
+ }
665
+ /**
666
+ * Parse the network_code from AdUnit resource.
667
+ *
668
+ * @param {string} adUnitName
669
+ * A fully-qualified path representing AdUnit resource.
670
+ * @returns {string} A string representing the network_code.
671
+ */
672
+ matchNetworkCodeFromAdUnitName(adUnitName) {
673
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
674
+ }
675
+ /**
676
+ * Parse the ad_unit from AdUnit resource.
677
+ *
678
+ * @param {string} adUnitName
679
+ * A fully-qualified path representing AdUnit resource.
680
+ * @returns {string} A string representing the ad_unit.
681
+ */
682
+ matchAdUnitFromAdUnitName(adUnitName) {
683
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
684
+ }
685
+ /**
686
+ * Return a fully-qualified application resource name string.
687
+ *
688
+ * @param {string} network_code
689
+ * @param {string} application
690
+ * @returns {string} Resource name string.
691
+ */
692
+ applicationPath(networkCode, application) {
693
+ return this.pathTemplates.applicationPathTemplate.render({
694
+ network_code: networkCode,
695
+ application: application,
696
+ });
697
+ }
698
+ /**
699
+ * Parse the network_code from Application resource.
700
+ *
701
+ * @param {string} applicationName
702
+ * A fully-qualified path representing Application resource.
703
+ * @returns {string} A string representing the network_code.
704
+ */
705
+ matchNetworkCodeFromApplicationName(applicationName) {
706
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
707
+ .network_code;
708
+ }
709
+ /**
710
+ * Parse the application from Application resource.
711
+ *
712
+ * @param {string} applicationName
713
+ * A fully-qualified path representing Application resource.
714
+ * @returns {string} A string representing the application.
715
+ */
716
+ matchApplicationFromApplicationName(applicationName) {
717
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
718
+ .application;
719
+ }
720
+ /**
721
+ * Return a fully-qualified audienceSegment resource name string.
722
+ *
723
+ * @param {string} network_code
724
+ * @param {string} audience_segment
725
+ * @returns {string} Resource name string.
726
+ */
727
+ audienceSegmentPath(networkCode, audienceSegment) {
728
+ return this.pathTemplates.audienceSegmentPathTemplate.render({
729
+ network_code: networkCode,
730
+ audience_segment: audienceSegment,
731
+ });
732
+ }
733
+ /**
734
+ * Parse the network_code from AudienceSegment resource.
735
+ *
736
+ * @param {string} audienceSegmentName
737
+ * A fully-qualified path representing AudienceSegment resource.
738
+ * @returns {string} A string representing the network_code.
739
+ */
740
+ matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
741
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
742
+ }
743
+ /**
744
+ * Parse the audience_segment from AudienceSegment resource.
745
+ *
746
+ * @param {string} audienceSegmentName
747
+ * A fully-qualified path representing AudienceSegment resource.
748
+ * @returns {string} A string representing the audience_segment.
749
+ */
750
+ matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
751
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
752
+ }
753
+ /**
754
+ * Return a fully-qualified bandwidthGroup resource name string.
755
+ *
756
+ * @param {string} network_code
757
+ * @param {string} bandwidth_group
758
+ * @returns {string} Resource name string.
759
+ */
760
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
761
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
762
+ network_code: networkCode,
763
+ bandwidth_group: bandwidthGroup,
764
+ });
765
+ }
766
+ /**
767
+ * Parse the network_code from BandwidthGroup resource.
768
+ *
769
+ * @param {string} bandwidthGroupName
770
+ * A fully-qualified path representing BandwidthGroup resource.
771
+ * @returns {string} A string representing the network_code.
772
+ */
773
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
774
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
775
+ }
776
+ /**
777
+ * Parse the bandwidth_group from BandwidthGroup resource.
778
+ *
779
+ * @param {string} bandwidthGroupName
780
+ * A fully-qualified path representing BandwidthGroup resource.
781
+ * @returns {string} A string representing the bandwidth_group.
782
+ */
783
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
784
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
785
+ }
786
+ /**
787
+ * Return a fully-qualified browser resource name string.
788
+ *
789
+ * @param {string} network_code
790
+ * @param {string} browser
791
+ * @returns {string} Resource name string.
792
+ */
793
+ browserPath(networkCode, browser) {
794
+ return this.pathTemplates.browserPathTemplate.render({
795
+ network_code: networkCode,
796
+ browser: browser,
797
+ });
798
+ }
799
+ /**
800
+ * Parse the network_code from Browser resource.
801
+ *
802
+ * @param {string} browserName
803
+ * A fully-qualified path representing Browser resource.
804
+ * @returns {string} A string representing the network_code.
805
+ */
806
+ matchNetworkCodeFromBrowserName(browserName) {
807
+ return this.pathTemplates.browserPathTemplate.match(browserName)
808
+ .network_code;
809
+ }
810
+ /**
811
+ * Parse the browser from Browser resource.
812
+ *
813
+ * @param {string} browserName
814
+ * A fully-qualified path representing Browser resource.
815
+ * @returns {string} A string representing the browser.
816
+ */
817
+ matchBrowserFromBrowserName(browserName) {
818
+ return this.pathTemplates.browserPathTemplate.match(browserName).browser;
819
+ }
820
+ /**
821
+ * Return a fully-qualified browserLanguage resource name string.
822
+ *
823
+ * @param {string} network_code
824
+ * @param {string} browser_language
825
+ * @returns {string} Resource name string.
826
+ */
827
+ browserLanguagePath(networkCode, browserLanguage) {
828
+ return this.pathTemplates.browserLanguagePathTemplate.render({
829
+ network_code: networkCode,
830
+ browser_language: browserLanguage,
831
+ });
832
+ }
833
+ /**
834
+ * Parse the network_code from BrowserLanguage resource.
835
+ *
836
+ * @param {string} browserLanguageName
837
+ * A fully-qualified path representing BrowserLanguage resource.
838
+ * @returns {string} A string representing the network_code.
839
+ */
840
+ matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
841
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
842
+ }
843
+ /**
844
+ * Parse the browser_language from BrowserLanguage resource.
845
+ *
846
+ * @param {string} browserLanguageName
847
+ * A fully-qualified path representing BrowserLanguage resource.
848
+ * @returns {string} A string representing the browser_language.
849
+ */
850
+ matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
851
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
852
+ }
853
+ /**
854
+ * Return a fully-qualified childPublisher resource name string.
855
+ *
856
+ * @param {string} network_code
857
+ * @param {string} child_publisher
858
+ * @returns {string} Resource name string.
859
+ */
860
+ childPublisherPath(networkCode, childPublisher) {
861
+ return this.pathTemplates.childPublisherPathTemplate.render({
862
+ network_code: networkCode,
863
+ child_publisher: childPublisher,
864
+ });
865
+ }
866
+ /**
867
+ * Parse the network_code from ChildPublisher resource.
868
+ *
869
+ * @param {string} childPublisherName
870
+ * A fully-qualified path representing ChildPublisher resource.
871
+ * @returns {string} A string representing the network_code.
872
+ */
873
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
874
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
875
+ }
876
+ /**
877
+ * Parse the child_publisher from ChildPublisher resource.
878
+ *
879
+ * @param {string} childPublisherName
880
+ * A fully-qualified path representing ChildPublisher resource.
881
+ * @returns {string} A string representing the child_publisher.
882
+ */
883
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
884
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
885
+ }
886
+ /**
887
+ * Return a fully-qualified cmsMetadataKey resource name string.
888
+ *
889
+ * @param {string} network_code
890
+ * @param {string} cms_metadata_key
891
+ * @returns {string} Resource name string.
892
+ */
893
+ cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
894
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
895
+ network_code: networkCode,
896
+ cms_metadata_key: cmsMetadataKey,
897
+ });
898
+ }
899
+ /**
900
+ * Parse the network_code from CmsMetadataKey resource.
901
+ *
902
+ * @param {string} cmsMetadataKeyName
903
+ * A fully-qualified path representing CmsMetadataKey resource.
904
+ * @returns {string} A string representing the network_code.
905
+ */
906
+ matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
907
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
908
+ }
909
+ /**
910
+ * Parse the cms_metadata_key from CmsMetadataKey resource.
911
+ *
912
+ * @param {string} cmsMetadataKeyName
913
+ * A fully-qualified path representing CmsMetadataKey resource.
914
+ * @returns {string} A string representing the cms_metadata_key.
915
+ */
916
+ matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
917
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
918
+ }
919
+ /**
920
+ * Return a fully-qualified cmsMetadataValue resource name string.
921
+ *
922
+ * @param {string} network_code
923
+ * @param {string} cms_metadata_value
924
+ * @returns {string} Resource name string.
925
+ */
926
+ cmsMetadataValuePath(networkCode, cmsMetadataValue) {
927
+ return this.pathTemplates.cmsMetadataValuePathTemplate.render({
928
+ network_code: networkCode,
929
+ cms_metadata_value: cmsMetadataValue,
930
+ });
931
+ }
932
+ /**
933
+ * Parse the network_code from CmsMetadataValue resource.
934
+ *
935
+ * @param {string} cmsMetadataValueName
936
+ * A fully-qualified path representing CmsMetadataValue resource.
937
+ * @returns {string} A string representing the network_code.
938
+ */
939
+ matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
940
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
941
+ }
942
+ /**
943
+ * Parse the cms_metadata_value from CmsMetadataValue resource.
944
+ *
945
+ * @param {string} cmsMetadataValueName
946
+ * A fully-qualified path representing CmsMetadataValue resource.
947
+ * @returns {string} A string representing the cms_metadata_value.
948
+ */
949
+ matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
950
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
951
+ }
952
+ /**
953
+ * Return a fully-qualified company resource name string.
954
+ *
955
+ * @param {string} network_code
956
+ * @param {string} company
957
+ * @returns {string} Resource name string.
958
+ */
959
+ companyPath(networkCode, company) {
960
+ return this.pathTemplates.companyPathTemplate.render({
961
+ network_code: networkCode,
962
+ company: company,
963
+ });
964
+ }
965
+ /**
966
+ * Parse the network_code from Company resource.
967
+ *
968
+ * @param {string} companyName
969
+ * A fully-qualified path representing Company resource.
970
+ * @returns {string} A string representing the network_code.
971
+ */
972
+ matchNetworkCodeFromCompanyName(companyName) {
973
+ return this.pathTemplates.companyPathTemplate.match(companyName)
974
+ .network_code;
975
+ }
976
+ /**
977
+ * Parse the company from Company resource.
978
+ *
979
+ * @param {string} companyName
980
+ * A fully-qualified path representing Company resource.
981
+ * @returns {string} A string representing the company.
982
+ */
983
+ matchCompanyFromCompanyName(companyName) {
984
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
985
+ }
986
+ /**
987
+ * Return a fully-qualified contact resource name string.
988
+ *
989
+ * @param {string} network_code
990
+ * @param {string} contact
991
+ * @returns {string} Resource name string.
992
+ */
993
+ contactPath(networkCode, contact) {
994
+ return this.pathTemplates.contactPathTemplate.render({
995
+ network_code: networkCode,
996
+ contact: contact,
997
+ });
998
+ }
999
+ /**
1000
+ * Parse the network_code from Contact resource.
1001
+ *
1002
+ * @param {string} contactName
1003
+ * A fully-qualified path representing Contact resource.
1004
+ * @returns {string} A string representing the network_code.
1005
+ */
1006
+ matchNetworkCodeFromContactName(contactName) {
1007
+ return this.pathTemplates.contactPathTemplate.match(contactName)
1008
+ .network_code;
1009
+ }
1010
+ /**
1011
+ * Parse the contact from Contact resource.
1012
+ *
1013
+ * @param {string} contactName
1014
+ * A fully-qualified path representing Contact resource.
1015
+ * @returns {string} A string representing the contact.
1016
+ */
1017
+ matchContactFromContactName(contactName) {
1018
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
1019
+ }
1020
+ /**
1021
+ * Return a fully-qualified content resource name string.
1022
+ *
1023
+ * @param {string} network_code
1024
+ * @param {string} content
1025
+ * @returns {string} Resource name string.
1026
+ */
1027
+ contentPath(networkCode, content) {
1028
+ return this.pathTemplates.contentPathTemplate.render({
1029
+ network_code: networkCode,
1030
+ content: content,
1031
+ });
1032
+ }
1033
+ /**
1034
+ * Parse the network_code from Content resource.
1035
+ *
1036
+ * @param {string} contentName
1037
+ * A fully-qualified path representing Content resource.
1038
+ * @returns {string} A string representing the network_code.
1039
+ */
1040
+ matchNetworkCodeFromContentName(contentName) {
1041
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1042
+ .network_code;
1043
+ }
1044
+ /**
1045
+ * Parse the content from Content resource.
1046
+ *
1047
+ * @param {string} contentName
1048
+ * A fully-qualified path representing Content resource.
1049
+ * @returns {string} A string representing the content.
1050
+ */
1051
+ matchContentFromContentName(contentName) {
1052
+ return this.pathTemplates.contentPathTemplate.match(contentName).content;
1053
+ }
1054
+ /**
1055
+ * Return a fully-qualified contentBundle resource name string.
1056
+ *
1057
+ * @param {string} network_code
1058
+ * @param {string} content_bundle
1059
+ * @returns {string} Resource name string.
1060
+ */
1061
+ contentBundlePath(networkCode, contentBundle) {
1062
+ return this.pathTemplates.contentBundlePathTemplate.render({
1063
+ network_code: networkCode,
1064
+ content_bundle: contentBundle,
1065
+ });
1066
+ }
1067
+ /**
1068
+ * Parse the network_code from ContentBundle resource.
1069
+ *
1070
+ * @param {string} contentBundleName
1071
+ * A fully-qualified path representing ContentBundle resource.
1072
+ * @returns {string} A string representing the network_code.
1073
+ */
1074
+ matchNetworkCodeFromContentBundleName(contentBundleName) {
1075
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1076
+ .network_code;
1077
+ }
1078
+ /**
1079
+ * Parse the content_bundle from ContentBundle resource.
1080
+ *
1081
+ * @param {string} contentBundleName
1082
+ * A fully-qualified path representing ContentBundle resource.
1083
+ * @returns {string} A string representing the content_bundle.
1084
+ */
1085
+ matchContentBundleFromContentBundleName(contentBundleName) {
1086
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1087
+ .content_bundle;
1088
+ }
1089
+ /**
1090
+ * Return a fully-qualified contentLabel resource name string.
1091
+ *
1092
+ * @param {string} network_code
1093
+ * @param {string} content_label
1094
+ * @returns {string} Resource name string.
1095
+ */
1096
+ contentLabelPath(networkCode, contentLabel) {
1097
+ return this.pathTemplates.contentLabelPathTemplate.render({
1098
+ network_code: networkCode,
1099
+ content_label: contentLabel,
1100
+ });
1101
+ }
1102
+ /**
1103
+ * Parse the network_code from ContentLabel resource.
1104
+ *
1105
+ * @param {string} contentLabelName
1106
+ * A fully-qualified path representing ContentLabel resource.
1107
+ * @returns {string} A string representing the network_code.
1108
+ */
1109
+ matchNetworkCodeFromContentLabelName(contentLabelName) {
1110
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1111
+ .network_code;
1112
+ }
1113
+ /**
1114
+ * Parse the content_label from ContentLabel resource.
1115
+ *
1116
+ * @param {string} contentLabelName
1117
+ * A fully-qualified path representing ContentLabel resource.
1118
+ * @returns {string} A string representing the content_label.
1119
+ */
1120
+ matchContentLabelFromContentLabelName(contentLabelName) {
1121
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1122
+ .content_label;
1123
+ }
1124
+ /**
1125
+ * Return a fully-qualified creativeTemplate resource name string.
1126
+ *
1127
+ * @param {string} network_code
1128
+ * @param {string} creative_template
1129
+ * @returns {string} Resource name string.
1130
+ */
1131
+ creativeTemplatePath(networkCode, creativeTemplate) {
1132
+ return this.pathTemplates.creativeTemplatePathTemplate.render({
1133
+ network_code: networkCode,
1134
+ creative_template: creativeTemplate,
1135
+ });
1136
+ }
1137
+ /**
1138
+ * Parse the network_code from CreativeTemplate resource.
1139
+ *
1140
+ * @param {string} creativeTemplateName
1141
+ * A fully-qualified path representing CreativeTemplate resource.
1142
+ * @returns {string} A string representing the network_code.
1143
+ */
1144
+ matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
1145
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
1146
+ }
1147
+ /**
1148
+ * Parse the creative_template from CreativeTemplate resource.
1149
+ *
1150
+ * @param {string} creativeTemplateName
1151
+ * A fully-qualified path representing CreativeTemplate resource.
1152
+ * @returns {string} A string representing the creative_template.
1153
+ */
1154
+ matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
1155
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
1156
+ }
1157
+ /**
1158
+ * Return a fully-qualified customField resource name string.
1159
+ *
1160
+ * @param {string} network_code
1161
+ * @param {string} custom_field
1162
+ * @returns {string} Resource name string.
1163
+ */
1164
+ customFieldPath(networkCode, customField) {
1165
+ return this.pathTemplates.customFieldPathTemplate.render({
1166
+ network_code: networkCode,
1167
+ custom_field: customField,
1168
+ });
1169
+ }
1170
+ /**
1171
+ * Parse the network_code from CustomField resource.
1172
+ *
1173
+ * @param {string} customFieldName
1174
+ * A fully-qualified path representing CustomField resource.
1175
+ * @returns {string} A string representing the network_code.
1176
+ */
1177
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
1178
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1179
+ .network_code;
1180
+ }
1181
+ /**
1182
+ * Parse the custom_field from CustomField resource.
1183
+ *
1184
+ * @param {string} customFieldName
1185
+ * A fully-qualified path representing CustomField resource.
1186
+ * @returns {string} A string representing the custom_field.
1187
+ */
1188
+ matchCustomFieldFromCustomFieldName(customFieldName) {
1189
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1190
+ .custom_field;
1191
+ }
1192
+ /**
1193
+ * Return a fully-qualified customTargetingKey resource name string.
1194
+ *
1195
+ * @param {string} network_code
1196
+ * @param {string} custom_targeting_key
1197
+ * @returns {string} Resource name string.
1198
+ */
1199
+ customTargetingKeyPath(networkCode, customTargetingKey) {
1200
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
1201
+ network_code: networkCode,
1202
+ custom_targeting_key: customTargetingKey,
1203
+ });
1204
+ }
1205
+ /**
1206
+ * Parse the network_code from CustomTargetingKey resource.
1207
+ *
1208
+ * @param {string} customTargetingKeyName
1209
+ * A fully-qualified path representing CustomTargetingKey resource.
1210
+ * @returns {string} A string representing the network_code.
1211
+ */
1212
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
1213
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
1214
+ }
1215
+ /**
1216
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
1217
+ *
1218
+ * @param {string} customTargetingKeyName
1219
+ * A fully-qualified path representing CustomTargetingKey resource.
1220
+ * @returns {string} A string representing the custom_targeting_key.
1221
+ */
1222
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
1223
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
1224
+ }
1225
+ /**
1226
+ * Return a fully-qualified customTargetingValue resource name string.
1227
+ *
1228
+ * @param {string} network_code
1229
+ * @param {string} custom_targeting_value
1230
+ * @returns {string} Resource name string.
1231
+ */
1232
+ customTargetingValuePath(networkCode, customTargetingValue) {
1233
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
1234
+ network_code: networkCode,
1235
+ custom_targeting_value: customTargetingValue,
1236
+ });
1237
+ }
1238
+ /**
1239
+ * Parse the network_code from CustomTargetingValue resource.
1240
+ *
1241
+ * @param {string} customTargetingValueName
1242
+ * A fully-qualified path representing CustomTargetingValue resource.
1243
+ * @returns {string} A string representing the network_code.
1244
+ */
1245
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
1246
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
1247
+ }
1248
+ /**
1249
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
1250
+ *
1251
+ * @param {string} customTargetingValueName
1252
+ * A fully-qualified path representing CustomTargetingValue resource.
1253
+ * @returns {string} A string representing the custom_targeting_value.
1254
+ */
1255
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
1256
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
1257
+ }
1258
+ /**
1259
+ * Return a fully-qualified deviceCapability resource name string.
1260
+ *
1261
+ * @param {string} network_code
1262
+ * @param {string} device_capability
1263
+ * @returns {string} Resource name string.
1264
+ */
1265
+ deviceCapabilityPath(networkCode, deviceCapability) {
1266
+ return this.pathTemplates.deviceCapabilityPathTemplate.render({
1267
+ network_code: networkCode,
1268
+ device_capability: deviceCapability,
1269
+ });
1270
+ }
1271
+ /**
1272
+ * Parse the network_code from DeviceCapability resource.
1273
+ *
1274
+ * @param {string} deviceCapabilityName
1275
+ * A fully-qualified path representing DeviceCapability resource.
1276
+ * @returns {string} A string representing the network_code.
1277
+ */
1278
+ matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
1279
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
1280
+ }
1281
+ /**
1282
+ * Parse the device_capability from DeviceCapability resource.
1283
+ *
1284
+ * @param {string} deviceCapabilityName
1285
+ * A fully-qualified path representing DeviceCapability resource.
1286
+ * @returns {string} A string representing the device_capability.
1287
+ */
1288
+ matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
1289
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
1290
+ }
1291
+ /**
1292
+ * Return a fully-qualified deviceCategory resource name string.
1293
+ *
1294
+ * @param {string} network_code
1295
+ * @param {string} device_category
1296
+ * @returns {string} Resource name string.
1297
+ */
1298
+ deviceCategoryPath(networkCode, deviceCategory) {
1299
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
1300
+ network_code: networkCode,
1301
+ device_category: deviceCategory,
1302
+ });
1303
+ }
1304
+ /**
1305
+ * Parse the network_code from DeviceCategory resource.
1306
+ *
1307
+ * @param {string} deviceCategoryName
1308
+ * A fully-qualified path representing DeviceCategory resource.
1309
+ * @returns {string} A string representing the network_code.
1310
+ */
1311
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
1312
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
1313
+ }
1314
+ /**
1315
+ * Parse the device_category from DeviceCategory resource.
1316
+ *
1317
+ * @param {string} deviceCategoryName
1318
+ * A fully-qualified path representing DeviceCategory resource.
1319
+ * @returns {string} A string representing the device_category.
1320
+ */
1321
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
1322
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
1323
+ }
1324
+ /**
1325
+ * Return a fully-qualified deviceManufacturer resource name string.
1326
+ *
1327
+ * @param {string} network_code
1328
+ * @param {string} device_manufacturer
1329
+ * @returns {string} Resource name string.
1330
+ */
1331
+ deviceManufacturerPath(networkCode, deviceManufacturer) {
1332
+ return this.pathTemplates.deviceManufacturerPathTemplate.render({
1333
+ network_code: networkCode,
1334
+ device_manufacturer: deviceManufacturer,
1335
+ });
1336
+ }
1337
+ /**
1338
+ * Parse the network_code from DeviceManufacturer resource.
1339
+ *
1340
+ * @param {string} deviceManufacturerName
1341
+ * A fully-qualified path representing DeviceManufacturer resource.
1342
+ * @returns {string} A string representing the network_code.
1343
+ */
1344
+ matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
1345
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
1346
+ }
1347
+ /**
1348
+ * Parse the device_manufacturer from DeviceManufacturer resource.
1349
+ *
1350
+ * @param {string} deviceManufacturerName
1351
+ * A fully-qualified path representing DeviceManufacturer resource.
1352
+ * @returns {string} A string representing the device_manufacturer.
1353
+ */
1354
+ matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
1355
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
1356
+ }
1357
+ /**
1358
+ * Return a fully-qualified entitySignalsMapping resource name string.
1359
+ *
1360
+ * @param {string} network_code
1361
+ * @param {string} entity_signals_mapping
1362
+ * @returns {string} Resource name string.
1363
+ */
1364
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
1365
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
1366
+ network_code: networkCode,
1367
+ entity_signals_mapping: entitySignalsMapping,
1368
+ });
1369
+ }
1370
+ /**
1371
+ * Parse the network_code from EntitySignalsMapping resource.
1372
+ *
1373
+ * @param {string} entitySignalsMappingName
1374
+ * A fully-qualified path representing EntitySignalsMapping resource.
1375
+ * @returns {string} A string representing the network_code.
1376
+ */
1377
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
1378
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
1379
+ }
1380
+ /**
1381
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
1382
+ *
1383
+ * @param {string} entitySignalsMappingName
1384
+ * A fully-qualified path representing EntitySignalsMapping resource.
1385
+ * @returns {string} A string representing the entity_signals_mapping.
1386
+ */
1387
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
1388
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
1389
+ }
1390
+ /**
1391
+ * Return a fully-qualified geoTarget resource name string.
1392
+ *
1393
+ * @param {string} network_code
1394
+ * @param {string} geo_target
1395
+ * @returns {string} Resource name string.
1396
+ */
1397
+ geoTargetPath(networkCode, geoTarget) {
1398
+ return this.pathTemplates.geoTargetPathTemplate.render({
1399
+ network_code: networkCode,
1400
+ geo_target: geoTarget,
1401
+ });
1402
+ }
1403
+ /**
1404
+ * Parse the network_code from GeoTarget resource.
1405
+ *
1406
+ * @param {string} geoTargetName
1407
+ * A fully-qualified path representing GeoTarget resource.
1408
+ * @returns {string} A string representing the network_code.
1409
+ */
1410
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
1411
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1412
+ .network_code;
1413
+ }
1414
+ /**
1415
+ * Parse the geo_target from GeoTarget resource.
1416
+ *
1417
+ * @param {string} geoTargetName
1418
+ * A fully-qualified path representing GeoTarget resource.
1419
+ * @returns {string} A string representing the geo_target.
1420
+ */
1421
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
1422
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1423
+ .geo_target;
1424
+ }
1425
+ /**
1426
+ * Return a fully-qualified label resource name string.
1427
+ *
1428
+ * @param {string} network_code
1429
+ * @param {string} label
1430
+ * @returns {string} Resource name string.
1431
+ */
1432
+ labelPath(networkCode, label) {
1433
+ return this.pathTemplates.labelPathTemplate.render({
1434
+ network_code: networkCode,
1435
+ label: label,
1436
+ });
1437
+ }
1438
+ /**
1439
+ * Parse the network_code from Label resource.
1440
+ *
1441
+ * @param {string} labelName
1442
+ * A fully-qualified path representing Label resource.
1443
+ * @returns {string} A string representing the network_code.
1444
+ */
1445
+ matchNetworkCodeFromLabelName(labelName) {
1446
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
1447
+ }
1448
+ /**
1449
+ * Parse the label from Label resource.
1450
+ *
1451
+ * @param {string} labelName
1452
+ * A fully-qualified path representing Label resource.
1453
+ * @returns {string} A string representing the label.
1454
+ */
1455
+ matchLabelFromLabelName(labelName) {
1456
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
1457
+ }
1458
+ /**
1459
+ * Return a fully-qualified lineItem resource name string.
1460
+ *
1461
+ * @param {string} network_code
1462
+ * @param {string} line_item
1463
+ * @returns {string} Resource name string.
1464
+ */
1465
+ lineItemPath(networkCode, lineItem) {
1466
+ return this.pathTemplates.lineItemPathTemplate.render({
1467
+ network_code: networkCode,
1468
+ line_item: lineItem,
1469
+ });
1470
+ }
1471
+ /**
1472
+ * Parse the network_code from LineItem resource.
1473
+ *
1474
+ * @param {string} lineItemName
1475
+ * A fully-qualified path representing LineItem resource.
1476
+ * @returns {string} A string representing the network_code.
1477
+ */
1478
+ matchNetworkCodeFromLineItemName(lineItemName) {
1479
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1480
+ .network_code;
1481
+ }
1482
+ /**
1483
+ * Parse the line_item from LineItem resource.
1484
+ *
1485
+ * @param {string} lineItemName
1486
+ * A fully-qualified path representing LineItem resource.
1487
+ * @returns {string} A string representing the line_item.
1488
+ */
1489
+ matchLineItemFromLineItemName(lineItemName) {
1490
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1491
+ .line_item;
1492
+ }
1493
+ /**
1494
+ * Return a fully-qualified linkedDevice resource name string.
1495
+ *
1496
+ * @param {string} network_code
1497
+ * @param {string} linked_device
1498
+ * @returns {string} Resource name string.
1499
+ */
1500
+ linkedDevicePath(networkCode, linkedDevice) {
1501
+ return this.pathTemplates.linkedDevicePathTemplate.render({
1502
+ network_code: networkCode,
1503
+ linked_device: linkedDevice,
1504
+ });
1505
+ }
1506
+ /**
1507
+ * Parse the network_code from LinkedDevice resource.
1508
+ *
1509
+ * @param {string} linkedDeviceName
1510
+ * A fully-qualified path representing LinkedDevice resource.
1511
+ * @returns {string} A string representing the network_code.
1512
+ */
1513
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
1514
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1515
+ .network_code;
1516
+ }
1517
+ /**
1518
+ * Parse the linked_device from LinkedDevice resource.
1519
+ *
1520
+ * @param {string} linkedDeviceName
1521
+ * A fully-qualified path representing LinkedDevice resource.
1522
+ * @returns {string} A string representing the linked_device.
1523
+ */
1524
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
1525
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1526
+ .linked_device;
1527
+ }
1528
+ /**
1529
+ * Return a fully-qualified liveStreamEvent resource name string.
1530
+ *
1531
+ * @param {string} network_code
1532
+ * @param {string} live_stream_event
1533
+ * @returns {string} Resource name string.
1534
+ */
1535
+ liveStreamEventPath(networkCode, liveStreamEvent) {
1536
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
1537
+ network_code: networkCode,
1538
+ live_stream_event: liveStreamEvent,
1539
+ });
1540
+ }
1541
+ /**
1542
+ * Parse the network_code from LiveStreamEvent resource.
1543
+ *
1544
+ * @param {string} liveStreamEventName
1545
+ * A fully-qualified path representing LiveStreamEvent resource.
1546
+ * @returns {string} A string representing the network_code.
1547
+ */
1548
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
1549
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
1550
+ }
1551
+ /**
1552
+ * Parse the live_stream_event from LiveStreamEvent resource.
1553
+ *
1554
+ * @param {string} liveStreamEventName
1555
+ * A fully-qualified path representing LiveStreamEvent resource.
1556
+ * @returns {string} A string representing the live_stream_event.
1557
+ */
1558
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
1559
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
1560
+ }
1561
+ /**
1562
+ * Return a fully-qualified mobileCarrier resource name string.
1563
+ *
1564
+ * @param {string} network_code
1565
+ * @param {string} mobile_carrier
1566
+ * @returns {string} Resource name string.
1567
+ */
1568
+ mobileCarrierPath(networkCode, mobileCarrier) {
1569
+ return this.pathTemplates.mobileCarrierPathTemplate.render({
1570
+ network_code: networkCode,
1571
+ mobile_carrier: mobileCarrier,
1572
+ });
1573
+ }
1574
+ /**
1575
+ * Parse the network_code from MobileCarrier resource.
1576
+ *
1577
+ * @param {string} mobileCarrierName
1578
+ * A fully-qualified path representing MobileCarrier resource.
1579
+ * @returns {string} A string representing the network_code.
1580
+ */
1581
+ matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1582
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1583
+ .network_code;
1584
+ }
1585
+ /**
1586
+ * Parse the mobile_carrier from MobileCarrier resource.
1587
+ *
1588
+ * @param {string} mobileCarrierName
1589
+ * A fully-qualified path representing MobileCarrier resource.
1590
+ * @returns {string} A string representing the mobile_carrier.
1591
+ */
1592
+ matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1593
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1594
+ .mobile_carrier;
1595
+ }
1596
+ /**
1597
+ * Return a fully-qualified mobileDevice resource name string.
1598
+ *
1599
+ * @param {string} network_code
1600
+ * @param {string} mobile_device
1601
+ * @returns {string} Resource name string.
1602
+ */
1603
+ mobileDevicePath(networkCode, mobileDevice) {
1604
+ return this.pathTemplates.mobileDevicePathTemplate.render({
1605
+ network_code: networkCode,
1606
+ mobile_device: mobileDevice,
1607
+ });
1608
+ }
1609
+ /**
1610
+ * Parse the network_code from MobileDevice resource.
1611
+ *
1612
+ * @param {string} mobileDeviceName
1613
+ * A fully-qualified path representing MobileDevice resource.
1614
+ * @returns {string} A string representing the network_code.
1615
+ */
1616
+ matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1617
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1618
+ .network_code;
1619
+ }
1620
+ /**
1621
+ * Parse the mobile_device from MobileDevice resource.
1622
+ *
1623
+ * @param {string} mobileDeviceName
1624
+ * A fully-qualified path representing MobileDevice resource.
1625
+ * @returns {string} A string representing the mobile_device.
1626
+ */
1627
+ matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1628
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1629
+ .mobile_device;
1630
+ }
1631
+ /**
1632
+ * Return a fully-qualified mobileDeviceSubmodel resource name string.
1633
+ *
1634
+ * @param {string} network_code
1635
+ * @param {string} mobile_device_submodel
1636
+ * @returns {string} Resource name string.
1637
+ */
1638
+ mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
1639
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
1640
+ network_code: networkCode,
1641
+ mobile_device_submodel: mobileDeviceSubmodel,
1642
+ });
1643
+ }
1644
+ /**
1645
+ * Parse the network_code from MobileDeviceSubmodel resource.
1646
+ *
1647
+ * @param {string} mobileDeviceSubmodelName
1648
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1649
+ * @returns {string} A string representing the network_code.
1650
+ */
1651
+ matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1652
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
1653
+ }
1654
+ /**
1655
+ * Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
1656
+ *
1657
+ * @param {string} mobileDeviceSubmodelName
1658
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1659
+ * @returns {string} A string representing the mobile_device_submodel.
1660
+ */
1661
+ matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1662
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
1663
+ }
1664
+ /**
1665
+ * Return a fully-qualified network resource name string.
1666
+ *
1667
+ * @param {string} network_code
1668
+ * @returns {string} Resource name string.
1669
+ */
1670
+ networkPath(networkCode) {
1671
+ return this.pathTemplates.networkPathTemplate.render({
1672
+ network_code: networkCode,
1673
+ });
1674
+ }
1675
+ /**
1676
+ * Parse the network_code from Network resource.
1677
+ *
1678
+ * @param {string} networkName
1679
+ * A fully-qualified path representing Network resource.
1680
+ * @returns {string} A string representing the network_code.
1681
+ */
1682
+ matchNetworkCodeFromNetworkName(networkName) {
1683
+ return this.pathTemplates.networkPathTemplate.match(networkName)
1684
+ .network_code;
1685
+ }
1686
+ /**
1687
+ * Return a fully-qualified operatingSystem resource name string.
1688
+ *
1689
+ * @param {string} network_code
1690
+ * @param {string} operating_system
1691
+ * @returns {string} Resource name string.
1692
+ */
1693
+ operatingSystemPath(networkCode, operatingSystem) {
1694
+ return this.pathTemplates.operatingSystemPathTemplate.render({
1695
+ network_code: networkCode,
1696
+ operating_system: operatingSystem,
1697
+ });
1698
+ }
1699
+ /**
1700
+ * Parse the network_code from OperatingSystem resource.
1701
+ *
1702
+ * @param {string} operatingSystemName
1703
+ * A fully-qualified path representing OperatingSystem resource.
1704
+ * @returns {string} A string representing the network_code.
1705
+ */
1706
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
1707
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
1708
+ }
1709
+ /**
1710
+ * Parse the operating_system from OperatingSystem resource.
1711
+ *
1712
+ * @param {string} operatingSystemName
1713
+ * A fully-qualified path representing OperatingSystem resource.
1714
+ * @returns {string} A string representing the operating_system.
1715
+ */
1716
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
1717
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
1718
+ }
1719
+ /**
1720
+ * Return a fully-qualified operatingSystemVersion resource name string.
1721
+ *
1722
+ * @param {string} network_code
1723
+ * @param {string} operating_system_version
1724
+ * @returns {string} Resource name string.
1725
+ */
1726
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
1727
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
1728
+ network_code: networkCode,
1729
+ operating_system_version: operatingSystemVersion,
1730
+ });
1731
+ }
1732
+ /**
1733
+ * Parse the network_code from OperatingSystemVersion resource.
1734
+ *
1735
+ * @param {string} operatingSystemVersionName
1736
+ * A fully-qualified path representing OperatingSystemVersion resource.
1737
+ * @returns {string} A string representing the network_code.
1738
+ */
1739
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
1740
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
1741
+ }
1742
+ /**
1743
+ * Parse the operating_system_version from OperatingSystemVersion resource.
1744
+ *
1745
+ * @param {string} operatingSystemVersionName
1746
+ * A fully-qualified path representing OperatingSystemVersion resource.
1747
+ * @returns {string} A string representing the operating_system_version.
1748
+ */
1749
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
1750
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
1751
+ }
1752
+ /**
1753
+ * Return a fully-qualified order resource name string.
1754
+ *
1755
+ * @param {string} network_code
1756
+ * @param {string} order
1757
+ * @returns {string} Resource name string.
1758
+ */
1759
+ orderPath(networkCode, order) {
1760
+ return this.pathTemplates.orderPathTemplate.render({
1761
+ network_code: networkCode,
1762
+ order: order,
1763
+ });
1764
+ }
1765
+ /**
1766
+ * Parse the network_code from Order resource.
1767
+ *
1768
+ * @param {string} orderName
1769
+ * A fully-qualified path representing Order resource.
1770
+ * @returns {string} A string representing the network_code.
1771
+ */
1772
+ matchNetworkCodeFromOrderName(orderName) {
1773
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
1774
+ }
1775
+ /**
1776
+ * Parse the order from Order resource.
1777
+ *
1778
+ * @param {string} orderName
1779
+ * A fully-qualified path representing Order resource.
1780
+ * @returns {string} A string representing the order.
1781
+ */
1782
+ matchOrderFromOrderName(orderName) {
1783
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
1784
+ }
1785
+ /**
1786
+ * Return a fully-qualified placement resource name string.
1787
+ *
1788
+ * @param {string} network_code
1789
+ * @param {string} placement
1790
+ * @returns {string} Resource name string.
1791
+ */
1792
+ placementPath(networkCode, placement) {
1793
+ return this.pathTemplates.placementPathTemplate.render({
1794
+ network_code: networkCode,
1795
+ placement: placement,
1796
+ });
1797
+ }
1798
+ /**
1799
+ * Parse the network_code from Placement resource.
1800
+ *
1801
+ * @param {string} placementName
1802
+ * A fully-qualified path representing Placement resource.
1803
+ * @returns {string} A string representing the network_code.
1804
+ */
1805
+ matchNetworkCodeFromPlacementName(placementName) {
1806
+ return this.pathTemplates.placementPathTemplate.match(placementName)
1807
+ .network_code;
1808
+ }
1809
+ /**
1810
+ * Parse the placement from Placement resource.
1811
+ *
1812
+ * @param {string} placementName
1813
+ * A fully-qualified path representing Placement resource.
1814
+ * @returns {string} A string representing the placement.
1815
+ */
1816
+ matchPlacementFromPlacementName(placementName) {
1817
+ return this.pathTemplates.placementPathTemplate.match(placementName)
1818
+ .placement;
1819
+ }
1820
+ /**
1821
+ * Return a fully-qualified privateAuction resource name string.
1822
+ *
1823
+ * @param {string} network_code
1824
+ * @param {string} private_auction
1825
+ * @returns {string} Resource name string.
1826
+ */
1827
+ privateAuctionPath(networkCode, privateAuction) {
1828
+ return this.pathTemplates.privateAuctionPathTemplate.render({
1829
+ network_code: networkCode,
1830
+ private_auction: privateAuction,
1831
+ });
1832
+ }
1833
+ /**
1834
+ * Parse the network_code from PrivateAuction resource.
1835
+ *
1836
+ * @param {string} privateAuctionName
1837
+ * A fully-qualified path representing PrivateAuction resource.
1838
+ * @returns {string} A string representing the network_code.
1839
+ */
1840
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
1841
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
1842
+ }
1843
+ /**
1844
+ * Parse the private_auction from PrivateAuction resource.
1845
+ *
1846
+ * @param {string} privateAuctionName
1847
+ * A fully-qualified path representing PrivateAuction resource.
1848
+ * @returns {string} A string representing the private_auction.
1849
+ */
1850
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
1851
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
1852
+ }
1853
+ /**
1854
+ * Return a fully-qualified privateAuctionDeal resource name string.
1855
+ *
1856
+ * @param {string} network_code
1857
+ * @param {string} private_auction_deal
1858
+ * @returns {string} Resource name string.
1859
+ */
1860
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
1861
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
1862
+ network_code: networkCode,
1863
+ private_auction_deal: privateAuctionDeal,
1864
+ });
1865
+ }
1866
+ /**
1867
+ * Parse the network_code from PrivateAuctionDeal resource.
1868
+ *
1869
+ * @param {string} privateAuctionDealName
1870
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1871
+ * @returns {string} A string representing the network_code.
1872
+ */
1873
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
1874
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
1875
+ }
1876
+ /**
1877
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
1878
+ *
1879
+ * @param {string} privateAuctionDealName
1880
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1881
+ * @returns {string} A string representing the private_auction_deal.
1882
+ */
1883
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
1884
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
1885
+ }
1886
+ /**
1887
+ * Return a fully-qualified programmaticBuyer resource name string.
1888
+ *
1889
+ * @param {string} network_code
1890
+ * @param {string} programmatic_buyer
1891
+ * @returns {string} Resource name string.
1892
+ */
1893
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
1894
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
1895
+ network_code: networkCode,
1896
+ programmatic_buyer: programmaticBuyer,
1897
+ });
1898
+ }
1899
+ /**
1900
+ * Parse the network_code from ProgrammaticBuyer resource.
1901
+ *
1902
+ * @param {string} programmaticBuyerName
1903
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1904
+ * @returns {string} A string representing the network_code.
1905
+ */
1906
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
1907
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
1908
+ }
1909
+ /**
1910
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
1911
+ *
1912
+ * @param {string} programmaticBuyerName
1913
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1914
+ * @returns {string} A string representing the programmatic_buyer.
1915
+ */
1916
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
1917
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
1918
+ }
1919
+ /**
1920
+ * Return a fully-qualified report resource name string.
1921
+ *
1922
+ * @param {string} network_code
1923
+ * @param {string} report
1924
+ * @returns {string} Resource name string.
1925
+ */
1926
+ reportPath(networkCode, report) {
1927
+ return this.pathTemplates.reportPathTemplate.render({
1928
+ network_code: networkCode,
1929
+ report: report,
1930
+ });
1931
+ }
1932
+ /**
1933
+ * Parse the network_code from Report resource.
1934
+ *
1935
+ * @param {string} reportName
1936
+ * A fully-qualified path representing Report resource.
1937
+ * @returns {string} A string representing the network_code.
1938
+ */
1939
+ matchNetworkCodeFromReportName(reportName) {
1940
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
1941
+ }
1942
+ /**
1943
+ * Parse the report from Report resource.
1944
+ *
1945
+ * @param {string} reportName
1946
+ * A fully-qualified path representing Report resource.
1947
+ * @returns {string} A string representing the report.
1948
+ */
1949
+ matchReportFromReportName(reportName) {
1950
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
1951
+ }
1952
+ /**
1953
+ * Return a fully-qualified richMediaAdsCompany resource name string.
1954
+ *
1955
+ * @param {string} network_code
1956
+ * @param {string} rich_media_ads_company
1957
+ * @returns {string} Resource name string.
1958
+ */
1959
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
1960
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
1961
+ network_code: networkCode,
1962
+ rich_media_ads_company: richMediaAdsCompany,
1963
+ });
1964
+ }
1965
+ /**
1966
+ * Parse the network_code from RichMediaAdsCompany resource.
1967
+ *
1968
+ * @param {string} richMediaAdsCompanyName
1969
+ * A fully-qualified path representing RichMediaAdsCompany resource.
1970
+ * @returns {string} A string representing the network_code.
1971
+ */
1972
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
1973
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
1974
+ }
1975
+ /**
1976
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
1977
+ *
1978
+ * @param {string} richMediaAdsCompanyName
1979
+ * A fully-qualified path representing RichMediaAdsCompany resource.
1980
+ * @returns {string} A string representing the rich_media_ads_company.
1981
+ */
1982
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
1983
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
1984
+ }
1985
+ /**
1986
+ * Return a fully-qualified role resource name string.
1987
+ *
1988
+ * @param {string} network_code
1989
+ * @param {string} role
1990
+ * @returns {string} Resource name string.
1991
+ */
1992
+ rolePath(networkCode, role) {
1993
+ return this.pathTemplates.rolePathTemplate.render({
1994
+ network_code: networkCode,
1995
+ role: role,
1996
+ });
1997
+ }
1998
+ /**
1999
+ * Parse the network_code from Role resource.
2000
+ *
2001
+ * @param {string} roleName
2002
+ * A fully-qualified path representing Role resource.
2003
+ * @returns {string} A string representing the network_code.
2004
+ */
2005
+ matchNetworkCodeFromRoleName(roleName) {
2006
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
2007
+ }
2008
+ /**
2009
+ * Parse the role from Role resource.
2010
+ *
2011
+ * @param {string} roleName
2012
+ * A fully-qualified path representing Role resource.
2013
+ * @returns {string} A string representing the role.
2014
+ */
2015
+ matchRoleFromRoleName(roleName) {
2016
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
2017
+ }
2018
+ /**
2019
+ * Return a fully-qualified site resource name string.
2020
+ *
2021
+ * @param {string} network_code
2022
+ * @param {string} site
2023
+ * @returns {string} Resource name string.
2024
+ */
2025
+ sitePath(networkCode, site) {
2026
+ return this.pathTemplates.sitePathTemplate.render({
2027
+ network_code: networkCode,
2028
+ site: site,
2029
+ });
2030
+ }
2031
+ /**
2032
+ * Parse the network_code from Site resource.
2033
+ *
2034
+ * @param {string} siteName
2035
+ * A fully-qualified path representing Site resource.
2036
+ * @returns {string} A string representing the network_code.
2037
+ */
2038
+ matchNetworkCodeFromSiteName(siteName) {
2039
+ return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
2040
+ }
2041
+ /**
2042
+ * Parse the site from Site resource.
2043
+ *
2044
+ * @param {string} siteName
2045
+ * A fully-qualified path representing Site resource.
2046
+ * @returns {string} A string representing the site.
2047
+ */
2048
+ matchSiteFromSiteName(siteName) {
2049
+ return this.pathTemplates.sitePathTemplate.match(siteName).site;
2050
+ }
2051
+ /**
2052
+ * Return a fully-qualified taxonomyCategory resource name string.
2053
+ *
2054
+ * @param {string} network_code
2055
+ * @param {string} taxonomy_category
2056
+ * @returns {string} Resource name string.
2057
+ */
2058
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
2059
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
2060
+ network_code: networkCode,
2061
+ taxonomy_category: taxonomyCategory,
2062
+ });
2063
+ }
2064
+ /**
2065
+ * Parse the network_code from TaxonomyCategory resource.
2066
+ *
2067
+ * @param {string} taxonomyCategoryName
2068
+ * A fully-qualified path representing TaxonomyCategory resource.
2069
+ * @returns {string} A string representing the network_code.
2070
+ */
2071
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
2072
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
2073
+ }
2074
+ /**
2075
+ * Parse the taxonomy_category from TaxonomyCategory resource.
2076
+ *
2077
+ * @param {string} taxonomyCategoryName
2078
+ * A fully-qualified path representing TaxonomyCategory resource.
2079
+ * @returns {string} A string representing the taxonomy_category.
2080
+ */
2081
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
2082
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
2083
+ }
2084
+ /**
2085
+ * Return a fully-qualified team resource name string.
2086
+ *
2087
+ * @param {string} network_code
2088
+ * @param {string} team
2089
+ * @returns {string} Resource name string.
2090
+ */
2091
+ teamPath(networkCode, team) {
2092
+ return this.pathTemplates.teamPathTemplate.render({
2093
+ network_code: networkCode,
2094
+ team: team,
2095
+ });
2096
+ }
2097
+ /**
2098
+ * Parse the network_code from Team resource.
2099
+ *
2100
+ * @param {string} teamName
2101
+ * A fully-qualified path representing Team resource.
2102
+ * @returns {string} A string representing the network_code.
2103
+ */
2104
+ matchNetworkCodeFromTeamName(teamName) {
2105
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
2106
+ }
2107
+ /**
2108
+ * Parse the team from Team resource.
2109
+ *
2110
+ * @param {string} teamName
2111
+ * A fully-qualified path representing Team resource.
2112
+ * @returns {string} A string representing the team.
2113
+ */
2114
+ matchTeamFromTeamName(teamName) {
2115
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
2116
+ }
2117
+ /**
2118
+ * Return a fully-qualified user resource name string.
2119
+ *
2120
+ * @param {string} network_code
2121
+ * @param {string} user
2122
+ * @returns {string} Resource name string.
2123
+ */
2124
+ userPath(networkCode, user) {
2125
+ return this.pathTemplates.userPathTemplate.render({
2126
+ network_code: networkCode,
2127
+ user: user,
2128
+ });
2129
+ }
2130
+ /**
2131
+ * Parse the network_code from User resource.
2132
+ *
2133
+ * @param {string} userName
2134
+ * A fully-qualified path representing User resource.
2135
+ * @returns {string} A string representing the network_code.
2136
+ */
2137
+ matchNetworkCodeFromUserName(userName) {
2138
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
2139
+ }
2140
+ /**
2141
+ * Parse the user from User resource.
2142
+ *
2143
+ * @param {string} userName
2144
+ * A fully-qualified path representing User resource.
2145
+ * @returns {string} A string representing the user.
2146
+ */
2147
+ matchUserFromUserName(userName) {
2148
+ return this.pathTemplates.userPathTemplate.match(userName).user;
2149
+ }
2150
+ /**
2151
+ * Return a fully-qualified webProperty resource name string.
2152
+ *
2153
+ * @param {string} network_code
2154
+ * @param {string} web_property
2155
+ * @returns {string} Resource name string.
2156
+ */
2157
+ webPropertyPath(networkCode, webProperty) {
2158
+ return this.pathTemplates.webPropertyPathTemplate.render({
2159
+ network_code: networkCode,
2160
+ web_property: webProperty,
2161
+ });
2162
+ }
2163
+ /**
2164
+ * Parse the network_code from WebProperty resource.
2165
+ *
2166
+ * @param {string} webPropertyName
2167
+ * A fully-qualified path representing WebProperty resource.
2168
+ * @returns {string} A string representing the network_code.
2169
+ */
2170
+ matchNetworkCodeFromWebPropertyName(webPropertyName) {
2171
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2172
+ .network_code;
2173
+ }
2174
+ /**
2175
+ * Parse the web_property from WebProperty resource.
2176
+ *
2177
+ * @param {string} webPropertyName
2178
+ * A fully-qualified path representing WebProperty resource.
2179
+ * @returns {string} A string representing the web_property.
2180
+ */
2181
+ matchWebPropertyFromWebPropertyName(webPropertyName) {
2182
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2183
+ .web_property;
2184
+ }
2185
+ /**
2186
+ * Terminate the gRPC channel and close the client.
2187
+ *
2188
+ * The client will no longer be usable and all future behavior is undefined.
2189
+ * @returns {Promise} A promise that resolves when the client is closed.
2190
+ */
2191
+ close() {
2192
+ if (this.lineItemServiceStub && !this._terminated) {
2193
+ return this.lineItemServiceStub.then((stub) => {
2194
+ this._log.info('ending gRPC channel');
2195
+ this._terminated = true;
2196
+ stub.close();
2197
+ });
2198
+ }
2199
+ return Promise.resolve();
2200
+ }
2201
+ }
2202
+ exports.LineItemServiceClient = LineItemServiceClient;
2203
+ //# sourceMappingURL=line_item_service_client.js.map