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