@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,2200 @@
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.LinkedDeviceServiceClient = 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/linked_device_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./linked_device_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling `LinkedDevice` objects.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class LinkedDeviceServiceClient {
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
+ linkedDeviceServiceStub;
57
+ /**
58
+ * Construct an instance of LinkedDeviceServiceClient.
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 LinkedDeviceServiceClient({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
+ listLinkedDevices: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'linkedDevices'),
230
+ };
231
+ // Put together the default options sent with requests.
232
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.LinkedDeviceService', 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.linkedDeviceServiceStub) {
254
+ return this.linkedDeviceServiceStub;
255
+ }
256
+ // Put together the "service stub" for
257
+ // google.ads.admanager.v1.LinkedDeviceService.
258
+ this.linkedDeviceServiceStub = this._gaxGrpc.createStub(this._opts.fallback
259
+ ? this._protos.lookupService('google.ads.admanager.v1.LinkedDeviceService')
260
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
261
+ this._protos.google.ads.admanager.v1.LinkedDeviceService, 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 linkedDeviceServiceStubMethods = [
265
+ 'getLinkedDevice',
266
+ 'listLinkedDevices',
267
+ ];
268
+ for (const methodName of linkedDeviceServiceStubMethods) {
269
+ const callPromise = this.linkedDeviceServiceStub.then((stub) => (...args) => {
270
+ if (this._terminated) {
271
+ return Promise.reject('The client has already been closed.');
272
+ }
273
+ const func = stub[methodName];
274
+ return func.apply(stub, args);
275
+ }, (err) => () => {
276
+ throw err;
277
+ });
278
+ const descriptor = this.descriptors.page[methodName] || undefined;
279
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
280
+ this.innerApiCalls[methodName] = apiCall;
281
+ }
282
+ return this.linkedDeviceServiceStub;
283
+ }
284
+ /**
285
+ * The DNS address for this API service.
286
+ * @deprecated Use the apiEndpoint method of the client instance.
287
+ * @returns {string} The DNS address for this service.
288
+ */
289
+ static get servicePath() {
290
+ if (typeof process === 'object' &&
291
+ typeof process.emitWarning === 'function') {
292
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
293
+ }
294
+ return 'admanager.googleapis.com';
295
+ }
296
+ /**
297
+ * The DNS address for this API service - same as servicePath.
298
+ * @deprecated Use the apiEndpoint method of the client instance.
299
+ * @returns {string} The DNS address for this service.
300
+ */
301
+ static get apiEndpoint() {
302
+ if (typeof process === 'object' &&
303
+ typeof process.emitWarning === 'function') {
304
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
305
+ }
306
+ return 'admanager.googleapis.com';
307
+ }
308
+ /**
309
+ * The DNS address for this API service.
310
+ * @returns {string} The DNS address for this service.
311
+ */
312
+ get apiEndpoint() {
313
+ return this._servicePath;
314
+ }
315
+ get universeDomain() {
316
+ return this._universeDomain;
317
+ }
318
+ /**
319
+ * The port for this API service.
320
+ * @returns {number} The default port for this service.
321
+ */
322
+ static get port() {
323
+ return 443;
324
+ }
325
+ /**
326
+ * The scopes needed to make gRPC calls for every method defined
327
+ * in this service.
328
+ * @returns {string[]} List of default scopes.
329
+ */
330
+ static get scopes() {
331
+ return [
332
+ 'https://www.googleapis.com/auth/admanager',
333
+ 'https://www.googleapis.com/auth/admanager.readonly',
334
+ ];
335
+ }
336
+ /**
337
+ * Return the project ID used by this class.
338
+ * @returns {Promise} A promise that resolves to string containing the project ID.
339
+ */
340
+ getProjectId(callback) {
341
+ if (callback) {
342
+ this.auth.getProjectId(callback);
343
+ return;
344
+ }
345
+ return this.auth.getProjectId();
346
+ }
347
+ getLinkedDevice(request, optionsOrCallback, callback) {
348
+ request = request || {};
349
+ let options;
350
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
351
+ callback = optionsOrCallback;
352
+ options = {};
353
+ }
354
+ else {
355
+ options = optionsOrCallback;
356
+ }
357
+ options = options || {};
358
+ options.otherArgs = options.otherArgs || {};
359
+ options.otherArgs.headers = options.otherArgs.headers || {};
360
+ options.otherArgs.headers['x-goog-request-params'] =
361
+ this._gaxModule.routingHeader.fromParams({
362
+ name: request.name ?? '',
363
+ });
364
+ this.initialize().catch((err) => {
365
+ throw err;
366
+ });
367
+ this._log.info('getLinkedDevice request %j', request);
368
+ const wrappedCallback = callback
369
+ ? (error, response, options, rawResponse) => {
370
+ this._log.info('getLinkedDevice response %j', response);
371
+ callback(error, response, options, rawResponse); // We verified callback above.
372
+ }
373
+ : undefined;
374
+ return this.innerApiCalls
375
+ .getLinkedDevice(request, options, wrappedCallback)
376
+ ?.then(([response, options, rawResponse]) => {
377
+ this._log.info('getLinkedDevice response %j', response);
378
+ return [response, options, rawResponse];
379
+ })
380
+ .catch((error) => {
381
+ if (error &&
382
+ 'statusDetails' in error &&
383
+ error.statusDetails instanceof Array) {
384
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
385
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
386
+ }
387
+ throw error;
388
+ });
389
+ }
390
+ listLinkedDevices(request, optionsOrCallback, callback) {
391
+ request = request || {};
392
+ let options;
393
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
394
+ callback = optionsOrCallback;
395
+ options = {};
396
+ }
397
+ else {
398
+ options = optionsOrCallback;
399
+ }
400
+ options = options || {};
401
+ options.otherArgs = options.otherArgs || {};
402
+ options.otherArgs.headers = options.otherArgs.headers || {};
403
+ options.otherArgs.headers['x-goog-request-params'] =
404
+ this._gaxModule.routingHeader.fromParams({
405
+ parent: request.parent ?? '',
406
+ });
407
+ this.initialize().catch((err) => {
408
+ throw err;
409
+ });
410
+ const wrappedCallback = callback
411
+ ? (error, values, nextPageRequest, rawResponse) => {
412
+ this._log.info('listLinkedDevices values %j', values);
413
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
414
+ }
415
+ : undefined;
416
+ this._log.info('listLinkedDevices request %j', request);
417
+ return this.innerApiCalls
418
+ .listLinkedDevices(request, options, wrappedCallback)
419
+ ?.then(([response, input, output]) => {
420
+ this._log.info('listLinkedDevices values %j', response);
421
+ return [response, input, output];
422
+ });
423
+ }
424
+ /**
425
+ * Equivalent to `listLinkedDevices`, but returns a NodeJS Stream object.
426
+ * @param {Object} request
427
+ * The request object that will be sent.
428
+ * @param {string} request.parent
429
+ * Required. The parent, which owns this collection of LinkedDevices.
430
+ * Format: `networks/{network_code}`
431
+ * @param {number} [request.pageSize]
432
+ * Optional. The maximum number of `LinkedDevices` to return. The service may
433
+ * return fewer than this value. If unspecified, at most 50 `LinkedDevices`
434
+ * will be returned. The maximum value is 1000; values greater than 1000 will
435
+ * be coerced to 1000.
436
+ * @param {string} [request.pageToken]
437
+ * Optional. A page token, received from a previous `ListLinkedDevices` call.
438
+ * Provide this to retrieve the subsequent page.
439
+ *
440
+ * When paginating, all other parameters provided to `ListLinkedDevices` must
441
+ * match the call that provided the page token.
442
+ * @param {string} [request.filter]
443
+ * Optional. Expression to filter the response.
444
+ * See syntax details at
445
+ * https://developers.google.com/ad-manager/api/beta/filters
446
+ *
447
+ * <b>Filterable fields:</b>
448
+ * <ul style="list-style-type:none">
449
+ * <li><code>displayName</code></li>
450
+ * <li><code>name</code></li>
451
+ * <li><code>owner</code></li>
452
+ * <li><code>visibility</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.LinkedDevice|LinkedDevice} 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 `listLinkedDevicesAsync()`
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
+ listLinkedDevicesStream(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['listLinkedDevices'];
481
+ const callSettings = defaultCallSettings.merge(options);
482
+ this.initialize().catch((err) => {
483
+ throw err;
484
+ });
485
+ this._log.info('listLinkedDevices stream %j', request);
486
+ return this.descriptors.page.listLinkedDevices.createStream(this.innerApiCalls.listLinkedDevices, request, callSettings);
487
+ }
488
+ /**
489
+ * Equivalent to `listLinkedDevices`, 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 LinkedDevices.
496
+ * Format: `networks/{network_code}`
497
+ * @param {number} [request.pageSize]
498
+ * Optional. The maximum number of `LinkedDevices` to return. The service may
499
+ * return fewer than this value. If unspecified, at most 50 `LinkedDevices`
500
+ * will be returned. The maximum value is 1000; values greater than 1000 will
501
+ * be coerced to 1000.
502
+ * @param {string} [request.pageToken]
503
+ * Optional. A page token, received from a previous `ListLinkedDevices` call.
504
+ * Provide this to retrieve the subsequent page.
505
+ *
506
+ * When paginating, all other parameters provided to `ListLinkedDevices` 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>name</code></li>
517
+ * <li><code>owner</code></li>
518
+ * <li><code>visibility</code></li>
519
+ * </ul>
520
+ * @param {string} [request.orderBy]
521
+ * Optional. Expression to specify sorting order.
522
+ * See syntax details at
523
+ * https://developers.google.com/ad-manager/api/beta/filters#order
524
+ * @param {number} [request.skip]
525
+ * Optional. Number of individual resources to skip while paginating.
526
+ * @param {object} [options]
527
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
528
+ * @returns {Object}
529
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
530
+ * When you iterate the returned iterable, each element will be an object representing
531
+ * {@link protos.google.ads.admanager.v1.LinkedDevice|LinkedDevice}. The API will be called under the hood as needed, once per the page,
532
+ * so you can stop the iteration when you don't need more results.
533
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
534
+ * for more details and examples.
535
+ * @example <caption>include:samples/generated/v1/linked_device_service.list_linked_devices.js</caption>
536
+ * region_tag:admanager_v1_generated_LinkedDeviceService_ListLinkedDevices_async
537
+ */
538
+ listLinkedDevicesAsync(request, options) {
539
+ request = request || {};
540
+ options = options || {};
541
+ options.otherArgs = options.otherArgs || {};
542
+ options.otherArgs.headers = options.otherArgs.headers || {};
543
+ options.otherArgs.headers['x-goog-request-params'] =
544
+ this._gaxModule.routingHeader.fromParams({
545
+ parent: request.parent ?? '',
546
+ });
547
+ const defaultCallSettings = this._defaults['listLinkedDevices'];
548
+ const callSettings = defaultCallSettings.merge(options);
549
+ this.initialize().catch((err) => {
550
+ throw err;
551
+ });
552
+ this._log.info('listLinkedDevices iterate %j', request);
553
+ return this.descriptors.page.listLinkedDevices.asyncIterate(this.innerApiCalls['listLinkedDevices'], request, callSettings);
554
+ }
555
+ // --------------------
556
+ // -- Path templates --
557
+ // --------------------
558
+ /**
559
+ * Return a fully-qualified adBreak resource name string.
560
+ *
561
+ * @param {string} network_code
562
+ * @param {string} asset_key
563
+ * @param {string} ad_break
564
+ * @returns {string} Resource name string.
565
+ */
566
+ adBreakPath(networkCode, assetKey, adBreak) {
567
+ return this.pathTemplates.adBreakPathTemplate.render({
568
+ network_code: networkCode,
569
+ asset_key: assetKey,
570
+ ad_break: adBreak,
571
+ });
572
+ }
573
+ /**
574
+ * Parse the network_code from AdBreak resource.
575
+ *
576
+ * @param {string} adBreakName
577
+ * A fully-qualified path representing AdBreak resource.
578
+ * @returns {string} A string representing the network_code.
579
+ */
580
+ matchNetworkCodeFromAdBreakName(adBreakName) {
581
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
582
+ .network_code;
583
+ }
584
+ /**
585
+ * Parse the asset_key from AdBreak resource.
586
+ *
587
+ * @param {string} adBreakName
588
+ * A fully-qualified path representing AdBreak resource.
589
+ * @returns {string} A string representing the asset_key.
590
+ */
591
+ matchAssetKeyFromAdBreakName(adBreakName) {
592
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
593
+ }
594
+ /**
595
+ * Parse the ad_break from AdBreak resource.
596
+ *
597
+ * @param {string} adBreakName
598
+ * A fully-qualified path representing AdBreak resource.
599
+ * @returns {string} A string representing the ad_break.
600
+ */
601
+ matchAdBreakFromAdBreakName(adBreakName) {
602
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
603
+ }
604
+ /**
605
+ * Return a fully-qualified adReviewCenterAd resource name string.
606
+ *
607
+ * @param {string} network_code
608
+ * @param {string} web_property_code
609
+ * @param {string} ad_review_center_ad
610
+ * @returns {string} Resource name string.
611
+ */
612
+ adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
613
+ return this.pathTemplates.adReviewCenterAdPathTemplate.render({
614
+ network_code: networkCode,
615
+ web_property_code: webPropertyCode,
616
+ ad_review_center_ad: adReviewCenterAd,
617
+ });
618
+ }
619
+ /**
620
+ * Parse the network_code from AdReviewCenterAd resource.
621
+ *
622
+ * @param {string} adReviewCenterAdName
623
+ * A fully-qualified path representing AdReviewCenterAd resource.
624
+ * @returns {string} A string representing the network_code.
625
+ */
626
+ matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
627
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
628
+ }
629
+ /**
630
+ * Parse the web_property_code from AdReviewCenterAd resource.
631
+ *
632
+ * @param {string} adReviewCenterAdName
633
+ * A fully-qualified path representing AdReviewCenterAd resource.
634
+ * @returns {string} A string representing the web_property_code.
635
+ */
636
+ matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
637
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
638
+ }
639
+ /**
640
+ * Parse the ad_review_center_ad from AdReviewCenterAd resource.
641
+ *
642
+ * @param {string} adReviewCenterAdName
643
+ * A fully-qualified path representing AdReviewCenterAd resource.
644
+ * @returns {string} A string representing the ad_review_center_ad.
645
+ */
646
+ matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
647
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
648
+ }
649
+ /**
650
+ * Return a fully-qualified adUnit resource name string.
651
+ *
652
+ * @param {string} network_code
653
+ * @param {string} ad_unit
654
+ * @returns {string} Resource name string.
655
+ */
656
+ adUnitPath(networkCode, adUnit) {
657
+ return this.pathTemplates.adUnitPathTemplate.render({
658
+ network_code: networkCode,
659
+ ad_unit: adUnit,
660
+ });
661
+ }
662
+ /**
663
+ * Parse the network_code from AdUnit resource.
664
+ *
665
+ * @param {string} adUnitName
666
+ * A fully-qualified path representing AdUnit resource.
667
+ * @returns {string} A string representing the network_code.
668
+ */
669
+ matchNetworkCodeFromAdUnitName(adUnitName) {
670
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
671
+ }
672
+ /**
673
+ * Parse the ad_unit from AdUnit resource.
674
+ *
675
+ * @param {string} adUnitName
676
+ * A fully-qualified path representing AdUnit resource.
677
+ * @returns {string} A string representing the ad_unit.
678
+ */
679
+ matchAdUnitFromAdUnitName(adUnitName) {
680
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
681
+ }
682
+ /**
683
+ * Return a fully-qualified application resource name string.
684
+ *
685
+ * @param {string} network_code
686
+ * @param {string} application
687
+ * @returns {string} Resource name string.
688
+ */
689
+ applicationPath(networkCode, application) {
690
+ return this.pathTemplates.applicationPathTemplate.render({
691
+ network_code: networkCode,
692
+ application: application,
693
+ });
694
+ }
695
+ /**
696
+ * Parse the network_code from Application resource.
697
+ *
698
+ * @param {string} applicationName
699
+ * A fully-qualified path representing Application resource.
700
+ * @returns {string} A string representing the network_code.
701
+ */
702
+ matchNetworkCodeFromApplicationName(applicationName) {
703
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
704
+ .network_code;
705
+ }
706
+ /**
707
+ * Parse the application from Application resource.
708
+ *
709
+ * @param {string} applicationName
710
+ * A fully-qualified path representing Application resource.
711
+ * @returns {string} A string representing the application.
712
+ */
713
+ matchApplicationFromApplicationName(applicationName) {
714
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
715
+ .application;
716
+ }
717
+ /**
718
+ * Return a fully-qualified audienceSegment resource name string.
719
+ *
720
+ * @param {string} network_code
721
+ * @param {string} audience_segment
722
+ * @returns {string} Resource name string.
723
+ */
724
+ audienceSegmentPath(networkCode, audienceSegment) {
725
+ return this.pathTemplates.audienceSegmentPathTemplate.render({
726
+ network_code: networkCode,
727
+ audience_segment: audienceSegment,
728
+ });
729
+ }
730
+ /**
731
+ * Parse the network_code from AudienceSegment resource.
732
+ *
733
+ * @param {string} audienceSegmentName
734
+ * A fully-qualified path representing AudienceSegment resource.
735
+ * @returns {string} A string representing the network_code.
736
+ */
737
+ matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
738
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
739
+ }
740
+ /**
741
+ * Parse the audience_segment from AudienceSegment resource.
742
+ *
743
+ * @param {string} audienceSegmentName
744
+ * A fully-qualified path representing AudienceSegment resource.
745
+ * @returns {string} A string representing the audience_segment.
746
+ */
747
+ matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
748
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
749
+ }
750
+ /**
751
+ * Return a fully-qualified bandwidthGroup resource name string.
752
+ *
753
+ * @param {string} network_code
754
+ * @param {string} bandwidth_group
755
+ * @returns {string} Resource name string.
756
+ */
757
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
758
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
759
+ network_code: networkCode,
760
+ bandwidth_group: bandwidthGroup,
761
+ });
762
+ }
763
+ /**
764
+ * Parse the network_code from BandwidthGroup resource.
765
+ *
766
+ * @param {string} bandwidthGroupName
767
+ * A fully-qualified path representing BandwidthGroup resource.
768
+ * @returns {string} A string representing the network_code.
769
+ */
770
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
771
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
772
+ }
773
+ /**
774
+ * Parse the bandwidth_group from BandwidthGroup resource.
775
+ *
776
+ * @param {string} bandwidthGroupName
777
+ * A fully-qualified path representing BandwidthGroup resource.
778
+ * @returns {string} A string representing the bandwidth_group.
779
+ */
780
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
781
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
782
+ }
783
+ /**
784
+ * Return a fully-qualified browser resource name string.
785
+ *
786
+ * @param {string} network_code
787
+ * @param {string} browser
788
+ * @returns {string} Resource name string.
789
+ */
790
+ browserPath(networkCode, browser) {
791
+ return this.pathTemplates.browserPathTemplate.render({
792
+ network_code: networkCode,
793
+ browser: browser,
794
+ });
795
+ }
796
+ /**
797
+ * Parse the network_code from Browser resource.
798
+ *
799
+ * @param {string} browserName
800
+ * A fully-qualified path representing Browser resource.
801
+ * @returns {string} A string representing the network_code.
802
+ */
803
+ matchNetworkCodeFromBrowserName(browserName) {
804
+ return this.pathTemplates.browserPathTemplate.match(browserName)
805
+ .network_code;
806
+ }
807
+ /**
808
+ * Parse the browser from Browser resource.
809
+ *
810
+ * @param {string} browserName
811
+ * A fully-qualified path representing Browser resource.
812
+ * @returns {string} A string representing the browser.
813
+ */
814
+ matchBrowserFromBrowserName(browserName) {
815
+ return this.pathTemplates.browserPathTemplate.match(browserName).browser;
816
+ }
817
+ /**
818
+ * Return a fully-qualified browserLanguage resource name string.
819
+ *
820
+ * @param {string} network_code
821
+ * @param {string} browser_language
822
+ * @returns {string} Resource name string.
823
+ */
824
+ browserLanguagePath(networkCode, browserLanguage) {
825
+ return this.pathTemplates.browserLanguagePathTemplate.render({
826
+ network_code: networkCode,
827
+ browser_language: browserLanguage,
828
+ });
829
+ }
830
+ /**
831
+ * Parse the network_code from BrowserLanguage resource.
832
+ *
833
+ * @param {string} browserLanguageName
834
+ * A fully-qualified path representing BrowserLanguage resource.
835
+ * @returns {string} A string representing the network_code.
836
+ */
837
+ matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
838
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
839
+ }
840
+ /**
841
+ * Parse the browser_language from BrowserLanguage resource.
842
+ *
843
+ * @param {string} browserLanguageName
844
+ * A fully-qualified path representing BrowserLanguage resource.
845
+ * @returns {string} A string representing the browser_language.
846
+ */
847
+ matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
848
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
849
+ }
850
+ /**
851
+ * Return a fully-qualified childPublisher resource name string.
852
+ *
853
+ * @param {string} network_code
854
+ * @param {string} child_publisher
855
+ * @returns {string} Resource name string.
856
+ */
857
+ childPublisherPath(networkCode, childPublisher) {
858
+ return this.pathTemplates.childPublisherPathTemplate.render({
859
+ network_code: networkCode,
860
+ child_publisher: childPublisher,
861
+ });
862
+ }
863
+ /**
864
+ * Parse the network_code from ChildPublisher resource.
865
+ *
866
+ * @param {string} childPublisherName
867
+ * A fully-qualified path representing ChildPublisher resource.
868
+ * @returns {string} A string representing the network_code.
869
+ */
870
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
871
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
872
+ }
873
+ /**
874
+ * Parse the child_publisher from ChildPublisher resource.
875
+ *
876
+ * @param {string} childPublisherName
877
+ * A fully-qualified path representing ChildPublisher resource.
878
+ * @returns {string} A string representing the child_publisher.
879
+ */
880
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
881
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
882
+ }
883
+ /**
884
+ * Return a fully-qualified cmsMetadataKey resource name string.
885
+ *
886
+ * @param {string} network_code
887
+ * @param {string} cms_metadata_key
888
+ * @returns {string} Resource name string.
889
+ */
890
+ cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
891
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
892
+ network_code: networkCode,
893
+ cms_metadata_key: cmsMetadataKey,
894
+ });
895
+ }
896
+ /**
897
+ * Parse the network_code from CmsMetadataKey resource.
898
+ *
899
+ * @param {string} cmsMetadataKeyName
900
+ * A fully-qualified path representing CmsMetadataKey resource.
901
+ * @returns {string} A string representing the network_code.
902
+ */
903
+ matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
904
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
905
+ }
906
+ /**
907
+ * Parse the cms_metadata_key from CmsMetadataKey resource.
908
+ *
909
+ * @param {string} cmsMetadataKeyName
910
+ * A fully-qualified path representing CmsMetadataKey resource.
911
+ * @returns {string} A string representing the cms_metadata_key.
912
+ */
913
+ matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
914
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
915
+ }
916
+ /**
917
+ * Return a fully-qualified cmsMetadataValue resource name string.
918
+ *
919
+ * @param {string} network_code
920
+ * @param {string} cms_metadata_value
921
+ * @returns {string} Resource name string.
922
+ */
923
+ cmsMetadataValuePath(networkCode, cmsMetadataValue) {
924
+ return this.pathTemplates.cmsMetadataValuePathTemplate.render({
925
+ network_code: networkCode,
926
+ cms_metadata_value: cmsMetadataValue,
927
+ });
928
+ }
929
+ /**
930
+ * Parse the network_code from CmsMetadataValue resource.
931
+ *
932
+ * @param {string} cmsMetadataValueName
933
+ * A fully-qualified path representing CmsMetadataValue resource.
934
+ * @returns {string} A string representing the network_code.
935
+ */
936
+ matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
937
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
938
+ }
939
+ /**
940
+ * Parse the cms_metadata_value from CmsMetadataValue resource.
941
+ *
942
+ * @param {string} cmsMetadataValueName
943
+ * A fully-qualified path representing CmsMetadataValue resource.
944
+ * @returns {string} A string representing the cms_metadata_value.
945
+ */
946
+ matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
947
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
948
+ }
949
+ /**
950
+ * Return a fully-qualified company resource name string.
951
+ *
952
+ * @param {string} network_code
953
+ * @param {string} company
954
+ * @returns {string} Resource name string.
955
+ */
956
+ companyPath(networkCode, company) {
957
+ return this.pathTemplates.companyPathTemplate.render({
958
+ network_code: networkCode,
959
+ company: company,
960
+ });
961
+ }
962
+ /**
963
+ * Parse the network_code from Company resource.
964
+ *
965
+ * @param {string} companyName
966
+ * A fully-qualified path representing Company resource.
967
+ * @returns {string} A string representing the network_code.
968
+ */
969
+ matchNetworkCodeFromCompanyName(companyName) {
970
+ return this.pathTemplates.companyPathTemplate.match(companyName)
971
+ .network_code;
972
+ }
973
+ /**
974
+ * Parse the company from Company resource.
975
+ *
976
+ * @param {string} companyName
977
+ * A fully-qualified path representing Company resource.
978
+ * @returns {string} A string representing the company.
979
+ */
980
+ matchCompanyFromCompanyName(companyName) {
981
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
982
+ }
983
+ /**
984
+ * Return a fully-qualified contact resource name string.
985
+ *
986
+ * @param {string} network_code
987
+ * @param {string} contact
988
+ * @returns {string} Resource name string.
989
+ */
990
+ contactPath(networkCode, contact) {
991
+ return this.pathTemplates.contactPathTemplate.render({
992
+ network_code: networkCode,
993
+ contact: contact,
994
+ });
995
+ }
996
+ /**
997
+ * Parse the network_code from Contact resource.
998
+ *
999
+ * @param {string} contactName
1000
+ * A fully-qualified path representing Contact resource.
1001
+ * @returns {string} A string representing the network_code.
1002
+ */
1003
+ matchNetworkCodeFromContactName(contactName) {
1004
+ return this.pathTemplates.contactPathTemplate.match(contactName)
1005
+ .network_code;
1006
+ }
1007
+ /**
1008
+ * Parse the contact from Contact resource.
1009
+ *
1010
+ * @param {string} contactName
1011
+ * A fully-qualified path representing Contact resource.
1012
+ * @returns {string} A string representing the contact.
1013
+ */
1014
+ matchContactFromContactName(contactName) {
1015
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
1016
+ }
1017
+ /**
1018
+ * Return a fully-qualified content resource name string.
1019
+ *
1020
+ * @param {string} network_code
1021
+ * @param {string} content
1022
+ * @returns {string} Resource name string.
1023
+ */
1024
+ contentPath(networkCode, content) {
1025
+ return this.pathTemplates.contentPathTemplate.render({
1026
+ network_code: networkCode,
1027
+ content: content,
1028
+ });
1029
+ }
1030
+ /**
1031
+ * Parse the network_code from Content resource.
1032
+ *
1033
+ * @param {string} contentName
1034
+ * A fully-qualified path representing Content resource.
1035
+ * @returns {string} A string representing the network_code.
1036
+ */
1037
+ matchNetworkCodeFromContentName(contentName) {
1038
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1039
+ .network_code;
1040
+ }
1041
+ /**
1042
+ * Parse the content from Content resource.
1043
+ *
1044
+ * @param {string} contentName
1045
+ * A fully-qualified path representing Content resource.
1046
+ * @returns {string} A string representing the content.
1047
+ */
1048
+ matchContentFromContentName(contentName) {
1049
+ return this.pathTemplates.contentPathTemplate.match(contentName).content;
1050
+ }
1051
+ /**
1052
+ * Return a fully-qualified contentBundle resource name string.
1053
+ *
1054
+ * @param {string} network_code
1055
+ * @param {string} content_bundle
1056
+ * @returns {string} Resource name string.
1057
+ */
1058
+ contentBundlePath(networkCode, contentBundle) {
1059
+ return this.pathTemplates.contentBundlePathTemplate.render({
1060
+ network_code: networkCode,
1061
+ content_bundle: contentBundle,
1062
+ });
1063
+ }
1064
+ /**
1065
+ * Parse the network_code from ContentBundle resource.
1066
+ *
1067
+ * @param {string} contentBundleName
1068
+ * A fully-qualified path representing ContentBundle resource.
1069
+ * @returns {string} A string representing the network_code.
1070
+ */
1071
+ matchNetworkCodeFromContentBundleName(contentBundleName) {
1072
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1073
+ .network_code;
1074
+ }
1075
+ /**
1076
+ * Parse the content_bundle from ContentBundle resource.
1077
+ *
1078
+ * @param {string} contentBundleName
1079
+ * A fully-qualified path representing ContentBundle resource.
1080
+ * @returns {string} A string representing the content_bundle.
1081
+ */
1082
+ matchContentBundleFromContentBundleName(contentBundleName) {
1083
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1084
+ .content_bundle;
1085
+ }
1086
+ /**
1087
+ * Return a fully-qualified contentLabel resource name string.
1088
+ *
1089
+ * @param {string} network_code
1090
+ * @param {string} content_label
1091
+ * @returns {string} Resource name string.
1092
+ */
1093
+ contentLabelPath(networkCode, contentLabel) {
1094
+ return this.pathTemplates.contentLabelPathTemplate.render({
1095
+ network_code: networkCode,
1096
+ content_label: contentLabel,
1097
+ });
1098
+ }
1099
+ /**
1100
+ * Parse the network_code from ContentLabel resource.
1101
+ *
1102
+ * @param {string} contentLabelName
1103
+ * A fully-qualified path representing ContentLabel resource.
1104
+ * @returns {string} A string representing the network_code.
1105
+ */
1106
+ matchNetworkCodeFromContentLabelName(contentLabelName) {
1107
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1108
+ .network_code;
1109
+ }
1110
+ /**
1111
+ * Parse the content_label from ContentLabel resource.
1112
+ *
1113
+ * @param {string} contentLabelName
1114
+ * A fully-qualified path representing ContentLabel resource.
1115
+ * @returns {string} A string representing the content_label.
1116
+ */
1117
+ matchContentLabelFromContentLabelName(contentLabelName) {
1118
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1119
+ .content_label;
1120
+ }
1121
+ /**
1122
+ * Return a fully-qualified creativeTemplate resource name string.
1123
+ *
1124
+ * @param {string} network_code
1125
+ * @param {string} creative_template
1126
+ * @returns {string} Resource name string.
1127
+ */
1128
+ creativeTemplatePath(networkCode, creativeTemplate) {
1129
+ return this.pathTemplates.creativeTemplatePathTemplate.render({
1130
+ network_code: networkCode,
1131
+ creative_template: creativeTemplate,
1132
+ });
1133
+ }
1134
+ /**
1135
+ * Parse the network_code from CreativeTemplate resource.
1136
+ *
1137
+ * @param {string} creativeTemplateName
1138
+ * A fully-qualified path representing CreativeTemplate resource.
1139
+ * @returns {string} A string representing the network_code.
1140
+ */
1141
+ matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
1142
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
1143
+ }
1144
+ /**
1145
+ * Parse the creative_template from CreativeTemplate resource.
1146
+ *
1147
+ * @param {string} creativeTemplateName
1148
+ * A fully-qualified path representing CreativeTemplate resource.
1149
+ * @returns {string} A string representing the creative_template.
1150
+ */
1151
+ matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
1152
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
1153
+ }
1154
+ /**
1155
+ * Return a fully-qualified customField resource name string.
1156
+ *
1157
+ * @param {string} network_code
1158
+ * @param {string} custom_field
1159
+ * @returns {string} Resource name string.
1160
+ */
1161
+ customFieldPath(networkCode, customField) {
1162
+ return this.pathTemplates.customFieldPathTemplate.render({
1163
+ network_code: networkCode,
1164
+ custom_field: customField,
1165
+ });
1166
+ }
1167
+ /**
1168
+ * Parse the network_code from CustomField resource.
1169
+ *
1170
+ * @param {string} customFieldName
1171
+ * A fully-qualified path representing CustomField resource.
1172
+ * @returns {string} A string representing the network_code.
1173
+ */
1174
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
1175
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1176
+ .network_code;
1177
+ }
1178
+ /**
1179
+ * Parse the custom_field from CustomField resource.
1180
+ *
1181
+ * @param {string} customFieldName
1182
+ * A fully-qualified path representing CustomField resource.
1183
+ * @returns {string} A string representing the custom_field.
1184
+ */
1185
+ matchCustomFieldFromCustomFieldName(customFieldName) {
1186
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1187
+ .custom_field;
1188
+ }
1189
+ /**
1190
+ * Return a fully-qualified customTargetingKey resource name string.
1191
+ *
1192
+ * @param {string} network_code
1193
+ * @param {string} custom_targeting_key
1194
+ * @returns {string} Resource name string.
1195
+ */
1196
+ customTargetingKeyPath(networkCode, customTargetingKey) {
1197
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
1198
+ network_code: networkCode,
1199
+ custom_targeting_key: customTargetingKey,
1200
+ });
1201
+ }
1202
+ /**
1203
+ * Parse the network_code from CustomTargetingKey resource.
1204
+ *
1205
+ * @param {string} customTargetingKeyName
1206
+ * A fully-qualified path representing CustomTargetingKey resource.
1207
+ * @returns {string} A string representing the network_code.
1208
+ */
1209
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
1210
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
1211
+ }
1212
+ /**
1213
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
1214
+ *
1215
+ * @param {string} customTargetingKeyName
1216
+ * A fully-qualified path representing CustomTargetingKey resource.
1217
+ * @returns {string} A string representing the custom_targeting_key.
1218
+ */
1219
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
1220
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
1221
+ }
1222
+ /**
1223
+ * Return a fully-qualified customTargetingValue resource name string.
1224
+ *
1225
+ * @param {string} network_code
1226
+ * @param {string} custom_targeting_value
1227
+ * @returns {string} Resource name string.
1228
+ */
1229
+ customTargetingValuePath(networkCode, customTargetingValue) {
1230
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
1231
+ network_code: networkCode,
1232
+ custom_targeting_value: customTargetingValue,
1233
+ });
1234
+ }
1235
+ /**
1236
+ * Parse the network_code from CustomTargetingValue resource.
1237
+ *
1238
+ * @param {string} customTargetingValueName
1239
+ * A fully-qualified path representing CustomTargetingValue resource.
1240
+ * @returns {string} A string representing the network_code.
1241
+ */
1242
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
1243
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
1244
+ }
1245
+ /**
1246
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
1247
+ *
1248
+ * @param {string} customTargetingValueName
1249
+ * A fully-qualified path representing CustomTargetingValue resource.
1250
+ * @returns {string} A string representing the custom_targeting_value.
1251
+ */
1252
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
1253
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
1254
+ }
1255
+ /**
1256
+ * Return a fully-qualified deviceCapability resource name string.
1257
+ *
1258
+ * @param {string} network_code
1259
+ * @param {string} device_capability
1260
+ * @returns {string} Resource name string.
1261
+ */
1262
+ deviceCapabilityPath(networkCode, deviceCapability) {
1263
+ return this.pathTemplates.deviceCapabilityPathTemplate.render({
1264
+ network_code: networkCode,
1265
+ device_capability: deviceCapability,
1266
+ });
1267
+ }
1268
+ /**
1269
+ * Parse the network_code from DeviceCapability resource.
1270
+ *
1271
+ * @param {string} deviceCapabilityName
1272
+ * A fully-qualified path representing DeviceCapability resource.
1273
+ * @returns {string} A string representing the network_code.
1274
+ */
1275
+ matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
1276
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
1277
+ }
1278
+ /**
1279
+ * Parse the device_capability from DeviceCapability resource.
1280
+ *
1281
+ * @param {string} deviceCapabilityName
1282
+ * A fully-qualified path representing DeviceCapability resource.
1283
+ * @returns {string} A string representing the device_capability.
1284
+ */
1285
+ matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
1286
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
1287
+ }
1288
+ /**
1289
+ * Return a fully-qualified deviceCategory resource name string.
1290
+ *
1291
+ * @param {string} network_code
1292
+ * @param {string} device_category
1293
+ * @returns {string} Resource name string.
1294
+ */
1295
+ deviceCategoryPath(networkCode, deviceCategory) {
1296
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
1297
+ network_code: networkCode,
1298
+ device_category: deviceCategory,
1299
+ });
1300
+ }
1301
+ /**
1302
+ * Parse the network_code from DeviceCategory resource.
1303
+ *
1304
+ * @param {string} deviceCategoryName
1305
+ * A fully-qualified path representing DeviceCategory resource.
1306
+ * @returns {string} A string representing the network_code.
1307
+ */
1308
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
1309
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
1310
+ }
1311
+ /**
1312
+ * Parse the device_category from DeviceCategory resource.
1313
+ *
1314
+ * @param {string} deviceCategoryName
1315
+ * A fully-qualified path representing DeviceCategory resource.
1316
+ * @returns {string} A string representing the device_category.
1317
+ */
1318
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
1319
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
1320
+ }
1321
+ /**
1322
+ * Return a fully-qualified deviceManufacturer resource name string.
1323
+ *
1324
+ * @param {string} network_code
1325
+ * @param {string} device_manufacturer
1326
+ * @returns {string} Resource name string.
1327
+ */
1328
+ deviceManufacturerPath(networkCode, deviceManufacturer) {
1329
+ return this.pathTemplates.deviceManufacturerPathTemplate.render({
1330
+ network_code: networkCode,
1331
+ device_manufacturer: deviceManufacturer,
1332
+ });
1333
+ }
1334
+ /**
1335
+ * Parse the network_code from DeviceManufacturer resource.
1336
+ *
1337
+ * @param {string} deviceManufacturerName
1338
+ * A fully-qualified path representing DeviceManufacturer resource.
1339
+ * @returns {string} A string representing the network_code.
1340
+ */
1341
+ matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
1342
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
1343
+ }
1344
+ /**
1345
+ * Parse the device_manufacturer from DeviceManufacturer resource.
1346
+ *
1347
+ * @param {string} deviceManufacturerName
1348
+ * A fully-qualified path representing DeviceManufacturer resource.
1349
+ * @returns {string} A string representing the device_manufacturer.
1350
+ */
1351
+ matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
1352
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
1353
+ }
1354
+ /**
1355
+ * Return a fully-qualified entitySignalsMapping resource name string.
1356
+ *
1357
+ * @param {string} network_code
1358
+ * @param {string} entity_signals_mapping
1359
+ * @returns {string} Resource name string.
1360
+ */
1361
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
1362
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
1363
+ network_code: networkCode,
1364
+ entity_signals_mapping: entitySignalsMapping,
1365
+ });
1366
+ }
1367
+ /**
1368
+ * Parse the network_code from EntitySignalsMapping resource.
1369
+ *
1370
+ * @param {string} entitySignalsMappingName
1371
+ * A fully-qualified path representing EntitySignalsMapping resource.
1372
+ * @returns {string} A string representing the network_code.
1373
+ */
1374
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
1375
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
1376
+ }
1377
+ /**
1378
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
1379
+ *
1380
+ * @param {string} entitySignalsMappingName
1381
+ * A fully-qualified path representing EntitySignalsMapping resource.
1382
+ * @returns {string} A string representing the entity_signals_mapping.
1383
+ */
1384
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
1385
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
1386
+ }
1387
+ /**
1388
+ * Return a fully-qualified geoTarget resource name string.
1389
+ *
1390
+ * @param {string} network_code
1391
+ * @param {string} geo_target
1392
+ * @returns {string} Resource name string.
1393
+ */
1394
+ geoTargetPath(networkCode, geoTarget) {
1395
+ return this.pathTemplates.geoTargetPathTemplate.render({
1396
+ network_code: networkCode,
1397
+ geo_target: geoTarget,
1398
+ });
1399
+ }
1400
+ /**
1401
+ * Parse the network_code from GeoTarget resource.
1402
+ *
1403
+ * @param {string} geoTargetName
1404
+ * A fully-qualified path representing GeoTarget resource.
1405
+ * @returns {string} A string representing the network_code.
1406
+ */
1407
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
1408
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1409
+ .network_code;
1410
+ }
1411
+ /**
1412
+ * Parse the geo_target from GeoTarget resource.
1413
+ *
1414
+ * @param {string} geoTargetName
1415
+ * A fully-qualified path representing GeoTarget resource.
1416
+ * @returns {string} A string representing the geo_target.
1417
+ */
1418
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
1419
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1420
+ .geo_target;
1421
+ }
1422
+ /**
1423
+ * Return a fully-qualified label resource name string.
1424
+ *
1425
+ * @param {string} network_code
1426
+ * @param {string} label
1427
+ * @returns {string} Resource name string.
1428
+ */
1429
+ labelPath(networkCode, label) {
1430
+ return this.pathTemplates.labelPathTemplate.render({
1431
+ network_code: networkCode,
1432
+ label: label,
1433
+ });
1434
+ }
1435
+ /**
1436
+ * Parse the network_code from Label resource.
1437
+ *
1438
+ * @param {string} labelName
1439
+ * A fully-qualified path representing Label resource.
1440
+ * @returns {string} A string representing the network_code.
1441
+ */
1442
+ matchNetworkCodeFromLabelName(labelName) {
1443
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
1444
+ }
1445
+ /**
1446
+ * Parse the label from Label resource.
1447
+ *
1448
+ * @param {string} labelName
1449
+ * A fully-qualified path representing Label resource.
1450
+ * @returns {string} A string representing the label.
1451
+ */
1452
+ matchLabelFromLabelName(labelName) {
1453
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
1454
+ }
1455
+ /**
1456
+ * Return a fully-qualified lineItem resource name string.
1457
+ *
1458
+ * @param {string} network_code
1459
+ * @param {string} line_item
1460
+ * @returns {string} Resource name string.
1461
+ */
1462
+ lineItemPath(networkCode, lineItem) {
1463
+ return this.pathTemplates.lineItemPathTemplate.render({
1464
+ network_code: networkCode,
1465
+ line_item: lineItem,
1466
+ });
1467
+ }
1468
+ /**
1469
+ * Parse the network_code from LineItem resource.
1470
+ *
1471
+ * @param {string} lineItemName
1472
+ * A fully-qualified path representing LineItem resource.
1473
+ * @returns {string} A string representing the network_code.
1474
+ */
1475
+ matchNetworkCodeFromLineItemName(lineItemName) {
1476
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1477
+ .network_code;
1478
+ }
1479
+ /**
1480
+ * Parse the line_item from LineItem resource.
1481
+ *
1482
+ * @param {string} lineItemName
1483
+ * A fully-qualified path representing LineItem resource.
1484
+ * @returns {string} A string representing the line_item.
1485
+ */
1486
+ matchLineItemFromLineItemName(lineItemName) {
1487
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1488
+ .line_item;
1489
+ }
1490
+ /**
1491
+ * Return a fully-qualified linkedDevice resource name string.
1492
+ *
1493
+ * @param {string} network_code
1494
+ * @param {string} linked_device
1495
+ * @returns {string} Resource name string.
1496
+ */
1497
+ linkedDevicePath(networkCode, linkedDevice) {
1498
+ return this.pathTemplates.linkedDevicePathTemplate.render({
1499
+ network_code: networkCode,
1500
+ linked_device: linkedDevice,
1501
+ });
1502
+ }
1503
+ /**
1504
+ * Parse the network_code from LinkedDevice resource.
1505
+ *
1506
+ * @param {string} linkedDeviceName
1507
+ * A fully-qualified path representing LinkedDevice resource.
1508
+ * @returns {string} A string representing the network_code.
1509
+ */
1510
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
1511
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1512
+ .network_code;
1513
+ }
1514
+ /**
1515
+ * Parse the linked_device from LinkedDevice resource.
1516
+ *
1517
+ * @param {string} linkedDeviceName
1518
+ * A fully-qualified path representing LinkedDevice resource.
1519
+ * @returns {string} A string representing the linked_device.
1520
+ */
1521
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
1522
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1523
+ .linked_device;
1524
+ }
1525
+ /**
1526
+ * Return a fully-qualified liveStreamEvent resource name string.
1527
+ *
1528
+ * @param {string} network_code
1529
+ * @param {string} live_stream_event
1530
+ * @returns {string} Resource name string.
1531
+ */
1532
+ liveStreamEventPath(networkCode, liveStreamEvent) {
1533
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
1534
+ network_code: networkCode,
1535
+ live_stream_event: liveStreamEvent,
1536
+ });
1537
+ }
1538
+ /**
1539
+ * Parse the network_code from LiveStreamEvent resource.
1540
+ *
1541
+ * @param {string} liveStreamEventName
1542
+ * A fully-qualified path representing LiveStreamEvent resource.
1543
+ * @returns {string} A string representing the network_code.
1544
+ */
1545
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
1546
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
1547
+ }
1548
+ /**
1549
+ * Parse the live_stream_event from LiveStreamEvent resource.
1550
+ *
1551
+ * @param {string} liveStreamEventName
1552
+ * A fully-qualified path representing LiveStreamEvent resource.
1553
+ * @returns {string} A string representing the live_stream_event.
1554
+ */
1555
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
1556
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
1557
+ }
1558
+ /**
1559
+ * Return a fully-qualified mobileCarrier resource name string.
1560
+ *
1561
+ * @param {string} network_code
1562
+ * @param {string} mobile_carrier
1563
+ * @returns {string} Resource name string.
1564
+ */
1565
+ mobileCarrierPath(networkCode, mobileCarrier) {
1566
+ return this.pathTemplates.mobileCarrierPathTemplate.render({
1567
+ network_code: networkCode,
1568
+ mobile_carrier: mobileCarrier,
1569
+ });
1570
+ }
1571
+ /**
1572
+ * Parse the network_code from MobileCarrier resource.
1573
+ *
1574
+ * @param {string} mobileCarrierName
1575
+ * A fully-qualified path representing MobileCarrier resource.
1576
+ * @returns {string} A string representing the network_code.
1577
+ */
1578
+ matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1579
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1580
+ .network_code;
1581
+ }
1582
+ /**
1583
+ * Parse the mobile_carrier from MobileCarrier resource.
1584
+ *
1585
+ * @param {string} mobileCarrierName
1586
+ * A fully-qualified path representing MobileCarrier resource.
1587
+ * @returns {string} A string representing the mobile_carrier.
1588
+ */
1589
+ matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1590
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1591
+ .mobile_carrier;
1592
+ }
1593
+ /**
1594
+ * Return a fully-qualified mobileDevice resource name string.
1595
+ *
1596
+ * @param {string} network_code
1597
+ * @param {string} mobile_device
1598
+ * @returns {string} Resource name string.
1599
+ */
1600
+ mobileDevicePath(networkCode, mobileDevice) {
1601
+ return this.pathTemplates.mobileDevicePathTemplate.render({
1602
+ network_code: networkCode,
1603
+ mobile_device: mobileDevice,
1604
+ });
1605
+ }
1606
+ /**
1607
+ * Parse the network_code from MobileDevice resource.
1608
+ *
1609
+ * @param {string} mobileDeviceName
1610
+ * A fully-qualified path representing MobileDevice resource.
1611
+ * @returns {string} A string representing the network_code.
1612
+ */
1613
+ matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1614
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1615
+ .network_code;
1616
+ }
1617
+ /**
1618
+ * Parse the mobile_device from MobileDevice resource.
1619
+ *
1620
+ * @param {string} mobileDeviceName
1621
+ * A fully-qualified path representing MobileDevice resource.
1622
+ * @returns {string} A string representing the mobile_device.
1623
+ */
1624
+ matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1625
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1626
+ .mobile_device;
1627
+ }
1628
+ /**
1629
+ * Return a fully-qualified mobileDeviceSubmodel resource name string.
1630
+ *
1631
+ * @param {string} network_code
1632
+ * @param {string} mobile_device_submodel
1633
+ * @returns {string} Resource name string.
1634
+ */
1635
+ mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
1636
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
1637
+ network_code: networkCode,
1638
+ mobile_device_submodel: mobileDeviceSubmodel,
1639
+ });
1640
+ }
1641
+ /**
1642
+ * Parse the network_code from MobileDeviceSubmodel resource.
1643
+ *
1644
+ * @param {string} mobileDeviceSubmodelName
1645
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1646
+ * @returns {string} A string representing the network_code.
1647
+ */
1648
+ matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1649
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
1650
+ }
1651
+ /**
1652
+ * Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
1653
+ *
1654
+ * @param {string} mobileDeviceSubmodelName
1655
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1656
+ * @returns {string} A string representing the mobile_device_submodel.
1657
+ */
1658
+ matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1659
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
1660
+ }
1661
+ /**
1662
+ * Return a fully-qualified network resource name string.
1663
+ *
1664
+ * @param {string} network_code
1665
+ * @returns {string} Resource name string.
1666
+ */
1667
+ networkPath(networkCode) {
1668
+ return this.pathTemplates.networkPathTemplate.render({
1669
+ network_code: networkCode,
1670
+ });
1671
+ }
1672
+ /**
1673
+ * Parse the network_code from Network resource.
1674
+ *
1675
+ * @param {string} networkName
1676
+ * A fully-qualified path representing Network resource.
1677
+ * @returns {string} A string representing the network_code.
1678
+ */
1679
+ matchNetworkCodeFromNetworkName(networkName) {
1680
+ return this.pathTemplates.networkPathTemplate.match(networkName)
1681
+ .network_code;
1682
+ }
1683
+ /**
1684
+ * Return a fully-qualified operatingSystem resource name string.
1685
+ *
1686
+ * @param {string} network_code
1687
+ * @param {string} operating_system
1688
+ * @returns {string} Resource name string.
1689
+ */
1690
+ operatingSystemPath(networkCode, operatingSystem) {
1691
+ return this.pathTemplates.operatingSystemPathTemplate.render({
1692
+ network_code: networkCode,
1693
+ operating_system: operatingSystem,
1694
+ });
1695
+ }
1696
+ /**
1697
+ * Parse the network_code from OperatingSystem resource.
1698
+ *
1699
+ * @param {string} operatingSystemName
1700
+ * A fully-qualified path representing OperatingSystem resource.
1701
+ * @returns {string} A string representing the network_code.
1702
+ */
1703
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
1704
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
1705
+ }
1706
+ /**
1707
+ * Parse the operating_system from OperatingSystem resource.
1708
+ *
1709
+ * @param {string} operatingSystemName
1710
+ * A fully-qualified path representing OperatingSystem resource.
1711
+ * @returns {string} A string representing the operating_system.
1712
+ */
1713
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
1714
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
1715
+ }
1716
+ /**
1717
+ * Return a fully-qualified operatingSystemVersion resource name string.
1718
+ *
1719
+ * @param {string} network_code
1720
+ * @param {string} operating_system_version
1721
+ * @returns {string} Resource name string.
1722
+ */
1723
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
1724
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
1725
+ network_code: networkCode,
1726
+ operating_system_version: operatingSystemVersion,
1727
+ });
1728
+ }
1729
+ /**
1730
+ * Parse the network_code from OperatingSystemVersion resource.
1731
+ *
1732
+ * @param {string} operatingSystemVersionName
1733
+ * A fully-qualified path representing OperatingSystemVersion resource.
1734
+ * @returns {string} A string representing the network_code.
1735
+ */
1736
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
1737
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
1738
+ }
1739
+ /**
1740
+ * Parse the operating_system_version from OperatingSystemVersion resource.
1741
+ *
1742
+ * @param {string} operatingSystemVersionName
1743
+ * A fully-qualified path representing OperatingSystemVersion resource.
1744
+ * @returns {string} A string representing the operating_system_version.
1745
+ */
1746
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
1747
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
1748
+ }
1749
+ /**
1750
+ * Return a fully-qualified order resource name string.
1751
+ *
1752
+ * @param {string} network_code
1753
+ * @param {string} order
1754
+ * @returns {string} Resource name string.
1755
+ */
1756
+ orderPath(networkCode, order) {
1757
+ return this.pathTemplates.orderPathTemplate.render({
1758
+ network_code: networkCode,
1759
+ order: order,
1760
+ });
1761
+ }
1762
+ /**
1763
+ * Parse the network_code from Order resource.
1764
+ *
1765
+ * @param {string} orderName
1766
+ * A fully-qualified path representing Order resource.
1767
+ * @returns {string} A string representing the network_code.
1768
+ */
1769
+ matchNetworkCodeFromOrderName(orderName) {
1770
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
1771
+ }
1772
+ /**
1773
+ * Parse the order from Order resource.
1774
+ *
1775
+ * @param {string} orderName
1776
+ * A fully-qualified path representing Order resource.
1777
+ * @returns {string} A string representing the order.
1778
+ */
1779
+ matchOrderFromOrderName(orderName) {
1780
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
1781
+ }
1782
+ /**
1783
+ * Return a fully-qualified placement resource name string.
1784
+ *
1785
+ * @param {string} network_code
1786
+ * @param {string} placement
1787
+ * @returns {string} Resource name string.
1788
+ */
1789
+ placementPath(networkCode, placement) {
1790
+ return this.pathTemplates.placementPathTemplate.render({
1791
+ network_code: networkCode,
1792
+ placement: placement,
1793
+ });
1794
+ }
1795
+ /**
1796
+ * Parse the network_code from Placement resource.
1797
+ *
1798
+ * @param {string} placementName
1799
+ * A fully-qualified path representing Placement resource.
1800
+ * @returns {string} A string representing the network_code.
1801
+ */
1802
+ matchNetworkCodeFromPlacementName(placementName) {
1803
+ return this.pathTemplates.placementPathTemplate.match(placementName)
1804
+ .network_code;
1805
+ }
1806
+ /**
1807
+ * Parse the placement from Placement resource.
1808
+ *
1809
+ * @param {string} placementName
1810
+ * A fully-qualified path representing Placement resource.
1811
+ * @returns {string} A string representing the placement.
1812
+ */
1813
+ matchPlacementFromPlacementName(placementName) {
1814
+ return this.pathTemplates.placementPathTemplate.match(placementName)
1815
+ .placement;
1816
+ }
1817
+ /**
1818
+ * Return a fully-qualified privateAuction resource name string.
1819
+ *
1820
+ * @param {string} network_code
1821
+ * @param {string} private_auction
1822
+ * @returns {string} Resource name string.
1823
+ */
1824
+ privateAuctionPath(networkCode, privateAuction) {
1825
+ return this.pathTemplates.privateAuctionPathTemplate.render({
1826
+ network_code: networkCode,
1827
+ private_auction: privateAuction,
1828
+ });
1829
+ }
1830
+ /**
1831
+ * Parse the network_code from PrivateAuction resource.
1832
+ *
1833
+ * @param {string} privateAuctionName
1834
+ * A fully-qualified path representing PrivateAuction resource.
1835
+ * @returns {string} A string representing the network_code.
1836
+ */
1837
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
1838
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
1839
+ }
1840
+ /**
1841
+ * Parse the private_auction from PrivateAuction resource.
1842
+ *
1843
+ * @param {string} privateAuctionName
1844
+ * A fully-qualified path representing PrivateAuction resource.
1845
+ * @returns {string} A string representing the private_auction.
1846
+ */
1847
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
1848
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
1849
+ }
1850
+ /**
1851
+ * Return a fully-qualified privateAuctionDeal resource name string.
1852
+ *
1853
+ * @param {string} network_code
1854
+ * @param {string} private_auction_deal
1855
+ * @returns {string} Resource name string.
1856
+ */
1857
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
1858
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
1859
+ network_code: networkCode,
1860
+ private_auction_deal: privateAuctionDeal,
1861
+ });
1862
+ }
1863
+ /**
1864
+ * Parse the network_code from PrivateAuctionDeal resource.
1865
+ *
1866
+ * @param {string} privateAuctionDealName
1867
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1868
+ * @returns {string} A string representing the network_code.
1869
+ */
1870
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
1871
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
1872
+ }
1873
+ /**
1874
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
1875
+ *
1876
+ * @param {string} privateAuctionDealName
1877
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1878
+ * @returns {string} A string representing the private_auction_deal.
1879
+ */
1880
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
1881
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
1882
+ }
1883
+ /**
1884
+ * Return a fully-qualified programmaticBuyer resource name string.
1885
+ *
1886
+ * @param {string} network_code
1887
+ * @param {string} programmatic_buyer
1888
+ * @returns {string} Resource name string.
1889
+ */
1890
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
1891
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
1892
+ network_code: networkCode,
1893
+ programmatic_buyer: programmaticBuyer,
1894
+ });
1895
+ }
1896
+ /**
1897
+ * Parse the network_code from ProgrammaticBuyer resource.
1898
+ *
1899
+ * @param {string} programmaticBuyerName
1900
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1901
+ * @returns {string} A string representing the network_code.
1902
+ */
1903
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
1904
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
1905
+ }
1906
+ /**
1907
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
1908
+ *
1909
+ * @param {string} programmaticBuyerName
1910
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1911
+ * @returns {string} A string representing the programmatic_buyer.
1912
+ */
1913
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
1914
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
1915
+ }
1916
+ /**
1917
+ * Return a fully-qualified report resource name string.
1918
+ *
1919
+ * @param {string} network_code
1920
+ * @param {string} report
1921
+ * @returns {string} Resource name string.
1922
+ */
1923
+ reportPath(networkCode, report) {
1924
+ return this.pathTemplates.reportPathTemplate.render({
1925
+ network_code: networkCode,
1926
+ report: report,
1927
+ });
1928
+ }
1929
+ /**
1930
+ * Parse the network_code from Report resource.
1931
+ *
1932
+ * @param {string} reportName
1933
+ * A fully-qualified path representing Report resource.
1934
+ * @returns {string} A string representing the network_code.
1935
+ */
1936
+ matchNetworkCodeFromReportName(reportName) {
1937
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
1938
+ }
1939
+ /**
1940
+ * Parse the report from Report resource.
1941
+ *
1942
+ * @param {string} reportName
1943
+ * A fully-qualified path representing Report resource.
1944
+ * @returns {string} A string representing the report.
1945
+ */
1946
+ matchReportFromReportName(reportName) {
1947
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
1948
+ }
1949
+ /**
1950
+ * Return a fully-qualified richMediaAdsCompany resource name string.
1951
+ *
1952
+ * @param {string} network_code
1953
+ * @param {string} rich_media_ads_company
1954
+ * @returns {string} Resource name string.
1955
+ */
1956
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
1957
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
1958
+ network_code: networkCode,
1959
+ rich_media_ads_company: richMediaAdsCompany,
1960
+ });
1961
+ }
1962
+ /**
1963
+ * Parse the network_code from RichMediaAdsCompany resource.
1964
+ *
1965
+ * @param {string} richMediaAdsCompanyName
1966
+ * A fully-qualified path representing RichMediaAdsCompany resource.
1967
+ * @returns {string} A string representing the network_code.
1968
+ */
1969
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
1970
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
1971
+ }
1972
+ /**
1973
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
1974
+ *
1975
+ * @param {string} richMediaAdsCompanyName
1976
+ * A fully-qualified path representing RichMediaAdsCompany resource.
1977
+ * @returns {string} A string representing the rich_media_ads_company.
1978
+ */
1979
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
1980
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
1981
+ }
1982
+ /**
1983
+ * Return a fully-qualified role resource name string.
1984
+ *
1985
+ * @param {string} network_code
1986
+ * @param {string} role
1987
+ * @returns {string} Resource name string.
1988
+ */
1989
+ rolePath(networkCode, role) {
1990
+ return this.pathTemplates.rolePathTemplate.render({
1991
+ network_code: networkCode,
1992
+ role: role,
1993
+ });
1994
+ }
1995
+ /**
1996
+ * Parse the network_code from Role resource.
1997
+ *
1998
+ * @param {string} roleName
1999
+ * A fully-qualified path representing Role resource.
2000
+ * @returns {string} A string representing the network_code.
2001
+ */
2002
+ matchNetworkCodeFromRoleName(roleName) {
2003
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
2004
+ }
2005
+ /**
2006
+ * Parse the role from Role resource.
2007
+ *
2008
+ * @param {string} roleName
2009
+ * A fully-qualified path representing Role resource.
2010
+ * @returns {string} A string representing the role.
2011
+ */
2012
+ matchRoleFromRoleName(roleName) {
2013
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
2014
+ }
2015
+ /**
2016
+ * Return a fully-qualified site resource name string.
2017
+ *
2018
+ * @param {string} network_code
2019
+ * @param {string} site
2020
+ * @returns {string} Resource name string.
2021
+ */
2022
+ sitePath(networkCode, site) {
2023
+ return this.pathTemplates.sitePathTemplate.render({
2024
+ network_code: networkCode,
2025
+ site: site,
2026
+ });
2027
+ }
2028
+ /**
2029
+ * Parse the network_code from Site resource.
2030
+ *
2031
+ * @param {string} siteName
2032
+ * A fully-qualified path representing Site resource.
2033
+ * @returns {string} A string representing the network_code.
2034
+ */
2035
+ matchNetworkCodeFromSiteName(siteName) {
2036
+ return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
2037
+ }
2038
+ /**
2039
+ * Parse the site from Site resource.
2040
+ *
2041
+ * @param {string} siteName
2042
+ * A fully-qualified path representing Site resource.
2043
+ * @returns {string} A string representing the site.
2044
+ */
2045
+ matchSiteFromSiteName(siteName) {
2046
+ return this.pathTemplates.sitePathTemplate.match(siteName).site;
2047
+ }
2048
+ /**
2049
+ * Return a fully-qualified taxonomyCategory resource name string.
2050
+ *
2051
+ * @param {string} network_code
2052
+ * @param {string} taxonomy_category
2053
+ * @returns {string} Resource name string.
2054
+ */
2055
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
2056
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
2057
+ network_code: networkCode,
2058
+ taxonomy_category: taxonomyCategory,
2059
+ });
2060
+ }
2061
+ /**
2062
+ * Parse the network_code from TaxonomyCategory resource.
2063
+ *
2064
+ * @param {string} taxonomyCategoryName
2065
+ * A fully-qualified path representing TaxonomyCategory resource.
2066
+ * @returns {string} A string representing the network_code.
2067
+ */
2068
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
2069
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
2070
+ }
2071
+ /**
2072
+ * Parse the taxonomy_category from TaxonomyCategory resource.
2073
+ *
2074
+ * @param {string} taxonomyCategoryName
2075
+ * A fully-qualified path representing TaxonomyCategory resource.
2076
+ * @returns {string} A string representing the taxonomy_category.
2077
+ */
2078
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
2079
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
2080
+ }
2081
+ /**
2082
+ * Return a fully-qualified team resource name string.
2083
+ *
2084
+ * @param {string} network_code
2085
+ * @param {string} team
2086
+ * @returns {string} Resource name string.
2087
+ */
2088
+ teamPath(networkCode, team) {
2089
+ return this.pathTemplates.teamPathTemplate.render({
2090
+ network_code: networkCode,
2091
+ team: team,
2092
+ });
2093
+ }
2094
+ /**
2095
+ * Parse the network_code from Team resource.
2096
+ *
2097
+ * @param {string} teamName
2098
+ * A fully-qualified path representing Team resource.
2099
+ * @returns {string} A string representing the network_code.
2100
+ */
2101
+ matchNetworkCodeFromTeamName(teamName) {
2102
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
2103
+ }
2104
+ /**
2105
+ * Parse the team from Team resource.
2106
+ *
2107
+ * @param {string} teamName
2108
+ * A fully-qualified path representing Team resource.
2109
+ * @returns {string} A string representing the team.
2110
+ */
2111
+ matchTeamFromTeamName(teamName) {
2112
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
2113
+ }
2114
+ /**
2115
+ * Return a fully-qualified user resource name string.
2116
+ *
2117
+ * @param {string} network_code
2118
+ * @param {string} user
2119
+ * @returns {string} Resource name string.
2120
+ */
2121
+ userPath(networkCode, user) {
2122
+ return this.pathTemplates.userPathTemplate.render({
2123
+ network_code: networkCode,
2124
+ user: user,
2125
+ });
2126
+ }
2127
+ /**
2128
+ * Parse the network_code from User resource.
2129
+ *
2130
+ * @param {string} userName
2131
+ * A fully-qualified path representing User resource.
2132
+ * @returns {string} A string representing the network_code.
2133
+ */
2134
+ matchNetworkCodeFromUserName(userName) {
2135
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
2136
+ }
2137
+ /**
2138
+ * Parse the user from User resource.
2139
+ *
2140
+ * @param {string} userName
2141
+ * A fully-qualified path representing User resource.
2142
+ * @returns {string} A string representing the user.
2143
+ */
2144
+ matchUserFromUserName(userName) {
2145
+ return this.pathTemplates.userPathTemplate.match(userName).user;
2146
+ }
2147
+ /**
2148
+ * Return a fully-qualified webProperty resource name string.
2149
+ *
2150
+ * @param {string} network_code
2151
+ * @param {string} web_property
2152
+ * @returns {string} Resource name string.
2153
+ */
2154
+ webPropertyPath(networkCode, webProperty) {
2155
+ return this.pathTemplates.webPropertyPathTemplate.render({
2156
+ network_code: networkCode,
2157
+ web_property: webProperty,
2158
+ });
2159
+ }
2160
+ /**
2161
+ * Parse the network_code from WebProperty resource.
2162
+ *
2163
+ * @param {string} webPropertyName
2164
+ * A fully-qualified path representing WebProperty resource.
2165
+ * @returns {string} A string representing the network_code.
2166
+ */
2167
+ matchNetworkCodeFromWebPropertyName(webPropertyName) {
2168
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2169
+ .network_code;
2170
+ }
2171
+ /**
2172
+ * Parse the web_property from WebProperty resource.
2173
+ *
2174
+ * @param {string} webPropertyName
2175
+ * A fully-qualified path representing WebProperty resource.
2176
+ * @returns {string} A string representing the web_property.
2177
+ */
2178
+ matchWebPropertyFromWebPropertyName(webPropertyName) {
2179
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2180
+ .web_property;
2181
+ }
2182
+ /**
2183
+ * Terminate the gRPC channel and close the client.
2184
+ *
2185
+ * The client will no longer be usable and all future behavior is undefined.
2186
+ * @returns {Promise} A promise that resolves when the client is closed.
2187
+ */
2188
+ close() {
2189
+ if (this.linkedDeviceServiceStub && !this._terminated) {
2190
+ return this.linkedDeviceServiceStub.then((stub) => {
2191
+ this._log.info('ending gRPC channel');
2192
+ this._terminated = true;
2193
+ stub.close();
2194
+ });
2195
+ }
2196
+ return Promise.resolve();
2197
+ }
2198
+ }
2199
+ exports.LinkedDeviceServiceClient = LinkedDeviceServiceClient;
2200
+ //# sourceMappingURL=linked_device_service_client.js.map