@google-ads/admanager 0.5.0 → 0.6.0

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