@google-ads/admanager 0.4.1 → 0.5.1

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