@google-ads/admanager 0.4.1 → 0.5.0

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