@google-ads/admanager 0.4.1 → 0.5.0

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