@google-ads/admanager 0.4.1 → 0.5.1

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