@google-ads/admanager 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/build/protos/google/ads/admanager/v1/dai_session_enums.proto +449 -0
  2. package/build/protos/google/ads/admanager/v1/dai_session_messages.proto +595 -0
  3. package/build/protos/google/ads/admanager/v1/dai_session_service.proto +65 -0
  4. package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +16 -0
  5. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +2 -0
  6. package/build/protos/google/ads/admanager/v1/report_definition.proto +2 -2
  7. package/build/protos/google/ads/admanager/v1/report_delivery.proto +4 -3
  8. package/build/protos/google/ads/admanager/v1/report_visibility_enum.proto +2 -1
  9. package/build/protos/protos.d.ts +4053 -0
  10. package/build/protos/protos.js +1 -1
  11. package/build/protos/protos.json +1477 -0
  12. package/build/src/index.d.ts +4 -1
  13. package/build/src/index.js +5 -3
  14. package/build/src/index.js.map +1 -1
  15. package/build/src/v1/ad_break_service_client.d.ts +24 -0
  16. package/build/src/v1/ad_break_service_client.js +36 -0
  17. package/build/src/v1/ad_break_service_client.js.map +1 -1
  18. package/build/src/v1/ad_break_service_proto_list.json +3 -0
  19. package/build/src/v1/ad_review_center_ad_service_client.d.ts +24 -0
  20. package/build/src/v1/ad_review_center_ad_service_client.js +36 -0
  21. package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
  22. package/build/src/v1/ad_review_center_ad_service_proto_list.json +3 -0
  23. package/build/src/v1/ad_rule_service_client.d.ts +24 -0
  24. package/build/src/v1/ad_rule_service_client.js +36 -0
  25. package/build/src/v1/ad_rule_service_client.js.map +1 -1
  26. package/build/src/v1/ad_rule_service_proto_list.json +3 -0
  27. package/build/src/v1/ad_spot_service_client.d.ts +24 -0
  28. package/build/src/v1/ad_spot_service_client.js +36 -0
  29. package/build/src/v1/ad_spot_service_client.js.map +1 -1
  30. package/build/src/v1/ad_spot_service_proto_list.json +3 -0
  31. package/build/src/v1/ad_unit_service_client.d.ts +24 -0
  32. package/build/src/v1/ad_unit_service_client.js +36 -0
  33. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  34. package/build/src/v1/ad_unit_service_proto_list.json +3 -0
  35. package/build/src/v1/application_service_client.d.ts +24 -0
  36. package/build/src/v1/application_service_client.js +36 -0
  37. package/build/src/v1/application_service_client.js.map +1 -1
  38. package/build/src/v1/application_service_proto_list.json +3 -0
  39. package/build/src/v1/audience_segment_service_client.d.ts +24 -0
  40. package/build/src/v1/audience_segment_service_client.js +36 -0
  41. package/build/src/v1/audience_segment_service_client.js.map +1 -1
  42. package/build/src/v1/audience_segment_service_proto_list.json +3 -0
  43. package/build/src/v1/bandwidth_group_service_client.d.ts +24 -0
  44. package/build/src/v1/bandwidth_group_service_client.js +36 -0
  45. package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
  46. package/build/src/v1/bandwidth_group_service_proto_list.json +3 -0
  47. package/build/src/v1/break_template_service_client.d.ts +24 -0
  48. package/build/src/v1/break_template_service_client.js +36 -0
  49. package/build/src/v1/break_template_service_client.js.map +1 -1
  50. package/build/src/v1/break_template_service_proto_list.json +3 -0
  51. package/build/src/v1/browser_language_service_client.d.ts +24 -0
  52. package/build/src/v1/browser_language_service_client.js +36 -0
  53. package/build/src/v1/browser_language_service_client.js.map +1 -1
  54. package/build/src/v1/browser_language_service_proto_list.json +3 -0
  55. package/build/src/v1/browser_service_client.d.ts +24 -0
  56. package/build/src/v1/browser_service_client.js +36 -0
  57. package/build/src/v1/browser_service_client.js.map +1 -1
  58. package/build/src/v1/browser_service_proto_list.json +3 -0
  59. package/build/src/v1/cdn_config_service_client.d.ts +24 -0
  60. package/build/src/v1/cdn_config_service_client.js +36 -0
  61. package/build/src/v1/cdn_config_service_client.js.map +1 -1
  62. package/build/src/v1/cdn_config_service_proto_list.json +3 -0
  63. package/build/src/v1/child_publisher_service_client.d.ts +24 -0
  64. package/build/src/v1/child_publisher_service_client.js +36 -0
  65. package/build/src/v1/child_publisher_service_client.js.map +1 -1
  66. package/build/src/v1/child_publisher_service_proto_list.json +3 -0
  67. package/build/src/v1/cms_metadata_key_service_client.d.ts +24 -0
  68. package/build/src/v1/cms_metadata_key_service_client.js +36 -0
  69. package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
  70. package/build/src/v1/cms_metadata_key_service_proto_list.json +3 -0
  71. package/build/src/v1/cms_metadata_value_service_client.d.ts +24 -0
  72. package/build/src/v1/cms_metadata_value_service_client.js +36 -0
  73. package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
  74. package/build/src/v1/cms_metadata_value_service_proto_list.json +3 -0
  75. package/build/src/v1/company_service_client.d.ts +24 -0
  76. package/build/src/v1/company_service_client.js +36 -0
  77. package/build/src/v1/company_service_client.js.map +1 -1
  78. package/build/src/v1/company_service_proto_list.json +3 -0
  79. package/build/src/v1/contact_service_client.d.ts +24 -0
  80. package/build/src/v1/contact_service_client.js +36 -0
  81. package/build/src/v1/contact_service_client.js.map +1 -1
  82. package/build/src/v1/contact_service_proto_list.json +3 -0
  83. package/build/src/v1/content_bundle_service_client.d.ts +24 -0
  84. package/build/src/v1/content_bundle_service_client.js +36 -0
  85. package/build/src/v1/content_bundle_service_client.js.map +1 -1
  86. package/build/src/v1/content_bundle_service_proto_list.json +3 -0
  87. package/build/src/v1/content_label_service_client.d.ts +24 -0
  88. package/build/src/v1/content_label_service_client.js +36 -0
  89. package/build/src/v1/content_label_service_client.js.map +1 -1
  90. package/build/src/v1/content_label_service_proto_list.json +3 -0
  91. package/build/src/v1/content_service_client.d.ts +24 -0
  92. package/build/src/v1/content_service_client.js +36 -0
  93. package/build/src/v1/content_service_client.js.map +1 -1
  94. package/build/src/v1/content_service_proto_list.json +3 -0
  95. package/build/src/v1/creative_set_service_client.d.ts +24 -0
  96. package/build/src/v1/creative_set_service_client.js +36 -0
  97. package/build/src/v1/creative_set_service_client.js.map +1 -1
  98. package/build/src/v1/creative_set_service_proto_list.json +3 -0
  99. package/build/src/v1/creative_template_service_client.d.ts +24 -0
  100. package/build/src/v1/creative_template_service_client.js +36 -0
  101. package/build/src/v1/creative_template_service_client.js.map +1 -1
  102. package/build/src/v1/creative_template_service_proto_list.json +3 -0
  103. package/build/src/v1/creative_wrapper_service_client.d.ts +24 -0
  104. package/build/src/v1/creative_wrapper_service_client.js +36 -0
  105. package/build/src/v1/creative_wrapper_service_client.js.map +1 -1
  106. package/build/src/v1/creative_wrapper_service_proto_list.json +3 -0
  107. package/build/src/v1/custom_field_service_client.d.ts +24 -0
  108. package/build/src/v1/custom_field_service_client.js +36 -0
  109. package/build/src/v1/custom_field_service_client.js.map +1 -1
  110. package/build/src/v1/custom_field_service_proto_list.json +3 -0
  111. package/build/src/v1/custom_targeting_key_service_client.d.ts +24 -0
  112. package/build/src/v1/custom_targeting_key_service_client.js +36 -0
  113. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  114. package/build/src/v1/custom_targeting_key_service_proto_list.json +3 -0
  115. package/build/src/v1/custom_targeting_value_service_client.d.ts +24 -0
  116. package/build/src/v1/custom_targeting_value_service_client.js +36 -0
  117. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  118. package/build/src/v1/custom_targeting_value_service_proto_list.json +3 -0
  119. package/build/src/v1/dai_authentication_key_service_client.d.ts +24 -0
  120. package/build/src/v1/dai_authentication_key_service_client.js +36 -0
  121. package/build/src/v1/dai_authentication_key_service_client.js.map +1 -1
  122. package/build/src/v1/dai_authentication_key_service_proto_list.json +3 -0
  123. package/build/src/v1/dai_encoding_profile_service_client.d.ts +24 -0
  124. package/build/src/v1/dai_encoding_profile_service_client.js +36 -0
  125. package/build/src/v1/dai_encoding_profile_service_client.js.map +1 -1
  126. package/build/src/v1/dai_encoding_profile_service_proto_list.json +3 -0
  127. package/build/src/v1/dai_session_service_client.d.ts +1762 -0
  128. package/build/src/v1/dai_session_service_client.js +2674 -0
  129. package/build/src/v1/dai_session_service_client.js.map +1 -0
  130. package/build/src/v1/dai_session_service_client_config.json +30 -0
  131. package/build/src/v1/dai_session_service_proto_list.json +233 -0
  132. package/build/src/v1/device_capability_service_client.d.ts +24 -0
  133. package/build/src/v1/device_capability_service_client.js +36 -0
  134. package/build/src/v1/device_capability_service_client.js.map +1 -1
  135. package/build/src/v1/device_capability_service_proto_list.json +3 -0
  136. package/build/src/v1/device_category_service_client.d.ts +24 -0
  137. package/build/src/v1/device_category_service_client.js +36 -0
  138. package/build/src/v1/device_category_service_client.js.map +1 -1
  139. package/build/src/v1/device_category_service_proto_list.json +3 -0
  140. package/build/src/v1/device_manufacturer_service_client.d.ts +24 -0
  141. package/build/src/v1/device_manufacturer_service_client.js +36 -0
  142. package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
  143. package/build/src/v1/device_manufacturer_service_proto_list.json +3 -0
  144. package/build/src/v1/entity_signals_mapping_service_client.d.ts +24 -0
  145. package/build/src/v1/entity_signals_mapping_service_client.js +36 -0
  146. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  147. package/build/src/v1/entity_signals_mapping_service_proto_list.json +3 -0
  148. package/build/src/v1/gapic_metadata.json +24 -0
  149. package/build/src/v1/geo_target_service_client.d.ts +24 -0
  150. package/build/src/v1/geo_target_service_client.js +36 -0
  151. package/build/src/v1/geo_target_service_client.js.map +1 -1
  152. package/build/src/v1/geo_target_service_proto_list.json +3 -0
  153. package/build/src/v1/index.d.ts +1 -0
  154. package/build/src/v1/index.js +4 -2
  155. package/build/src/v1/index.js.map +1 -1
  156. package/build/src/v1/label_service_client.d.ts +24 -0
  157. package/build/src/v1/label_service_client.js +36 -0
  158. package/build/src/v1/label_service_client.js.map +1 -1
  159. package/build/src/v1/label_service_proto_list.json +3 -0
  160. package/build/src/v1/line_item_service_client.d.ts +24 -0
  161. package/build/src/v1/line_item_service_client.js +36 -0
  162. package/build/src/v1/line_item_service_client.js.map +1 -1
  163. package/build/src/v1/line_item_service_proto_list.json +3 -0
  164. package/build/src/v1/linked_device_service_client.d.ts +24 -0
  165. package/build/src/v1/linked_device_service_client.js +36 -0
  166. package/build/src/v1/linked_device_service_client.js.map +1 -1
  167. package/build/src/v1/linked_device_service_proto_list.json +3 -0
  168. package/build/src/v1/live_stream_service_client.d.ts +24 -0
  169. package/build/src/v1/live_stream_service_client.js +36 -0
  170. package/build/src/v1/live_stream_service_client.js.map +1 -1
  171. package/build/src/v1/live_stream_service_proto_list.json +3 -0
  172. package/build/src/v1/mcm_earnings_service_client.d.ts +24 -0
  173. package/build/src/v1/mcm_earnings_service_client.js +36 -0
  174. package/build/src/v1/mcm_earnings_service_client.js.map +1 -1
  175. package/build/src/v1/mcm_earnings_service_proto_list.json +3 -0
  176. package/build/src/v1/mobile_carrier_service_client.d.ts +24 -0
  177. package/build/src/v1/mobile_carrier_service_client.js +36 -0
  178. package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
  179. package/build/src/v1/mobile_carrier_service_proto_list.json +3 -0
  180. package/build/src/v1/mobile_device_service_client.d.ts +24 -0
  181. package/build/src/v1/mobile_device_service_client.js +36 -0
  182. package/build/src/v1/mobile_device_service_client.js.map +1 -1
  183. package/build/src/v1/mobile_device_service_proto_list.json +3 -0
  184. package/build/src/v1/mobile_device_submodel_service_client.d.ts +24 -0
  185. package/build/src/v1/mobile_device_submodel_service_client.js +36 -0
  186. package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
  187. package/build/src/v1/mobile_device_submodel_service_proto_list.json +3 -0
  188. package/build/src/v1/native_style_service_client.d.ts +24 -0
  189. package/build/src/v1/native_style_service_client.js +36 -0
  190. package/build/src/v1/native_style_service_client.js.map +1 -1
  191. package/build/src/v1/native_style_service_proto_list.json +3 -0
  192. package/build/src/v1/network_service_client.d.ts +24 -0
  193. package/build/src/v1/network_service_client.js +36 -0
  194. package/build/src/v1/network_service_client.js.map +1 -1
  195. package/build/src/v1/network_service_proto_list.json +3 -0
  196. package/build/src/v1/operating_system_service_client.d.ts +24 -0
  197. package/build/src/v1/operating_system_service_client.js +36 -0
  198. package/build/src/v1/operating_system_service_client.js.map +1 -1
  199. package/build/src/v1/operating_system_service_proto_list.json +3 -0
  200. package/build/src/v1/operating_system_version_service_client.d.ts +24 -0
  201. package/build/src/v1/operating_system_version_service_client.js +36 -0
  202. package/build/src/v1/operating_system_version_service_client.js.map +1 -1
  203. package/build/src/v1/operating_system_version_service_proto_list.json +3 -0
  204. package/build/src/v1/order_service_client.d.ts +24 -0
  205. package/build/src/v1/order_service_client.js +36 -0
  206. package/build/src/v1/order_service_client.js.map +1 -1
  207. package/build/src/v1/order_service_proto_list.json +3 -0
  208. package/build/src/v1/partner_service_client.d.ts +24 -0
  209. package/build/src/v1/partner_service_client.js +36 -0
  210. package/build/src/v1/partner_service_client.js.map +1 -1
  211. package/build/src/v1/partner_service_proto_list.json +3 -0
  212. package/build/src/v1/placement_service_client.d.ts +24 -0
  213. package/build/src/v1/placement_service_client.js +36 -0
  214. package/build/src/v1/placement_service_client.js.map +1 -1
  215. package/build/src/v1/placement_service_proto_list.json +3 -0
  216. package/build/src/v1/private_auction_deal_service_client.d.ts +30 -0
  217. package/build/src/v1/private_auction_deal_service_client.js +40 -0
  218. package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
  219. package/build/src/v1/private_auction_deal_service_proto_list.json +3 -0
  220. package/build/src/v1/private_auction_service_client.d.ts +24 -0
  221. package/build/src/v1/private_auction_service_client.js +36 -0
  222. package/build/src/v1/private_auction_service_client.js.map +1 -1
  223. package/build/src/v1/private_auction_service_proto_list.json +3 -0
  224. package/build/src/v1/programmatic_buyer_service_client.d.ts +24 -0
  225. package/build/src/v1/programmatic_buyer_service_client.js +36 -0
  226. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
  227. package/build/src/v1/programmatic_buyer_service_proto_list.json +3 -0
  228. package/build/src/v1/report_service_client.d.ts +24 -0
  229. package/build/src/v1/report_service_client.js +36 -0
  230. package/build/src/v1/report_service_client.js.map +1 -1
  231. package/build/src/v1/report_service_proto_list.json +3 -0
  232. package/build/src/v1/rich_media_ads_company_service_client.d.ts +24 -0
  233. package/build/src/v1/rich_media_ads_company_service_client.js +36 -0
  234. package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -1
  235. package/build/src/v1/rich_media_ads_company_service_proto_list.json +3 -0
  236. package/build/src/v1/role_service_client.d.ts +24 -0
  237. package/build/src/v1/role_service_client.js +36 -0
  238. package/build/src/v1/role_service_client.js.map +1 -1
  239. package/build/src/v1/role_service_proto_list.json +3 -0
  240. package/build/src/v1/site_service_client.d.ts +24 -0
  241. package/build/src/v1/site_service_client.js +36 -0
  242. package/build/src/v1/site_service_client.js.map +1 -1
  243. package/build/src/v1/site_service_proto_list.json +3 -0
  244. package/build/src/v1/slate_service_client.d.ts +24 -0
  245. package/build/src/v1/slate_service_client.js +36 -0
  246. package/build/src/v1/slate_service_client.js.map +1 -1
  247. package/build/src/v1/slate_service_proto_list.json +3 -0
  248. package/build/src/v1/suggested_ad_unit_service_client.d.ts +24 -0
  249. package/build/src/v1/suggested_ad_unit_service_client.js +36 -0
  250. package/build/src/v1/suggested_ad_unit_service_client.js.map +1 -1
  251. package/build/src/v1/suggested_ad_unit_service_proto_list.json +3 -0
  252. package/build/src/v1/targeting_preset_service_client.d.ts +24 -0
  253. package/build/src/v1/targeting_preset_service_client.js +36 -0
  254. package/build/src/v1/targeting_preset_service_client.js.map +1 -1
  255. package/build/src/v1/targeting_preset_service_proto_list.json +3 -0
  256. package/build/src/v1/taxonomy_category_service_client.d.ts +24 -0
  257. package/build/src/v1/taxonomy_category_service_client.js +36 -0
  258. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  259. package/build/src/v1/taxonomy_category_service_proto_list.json +3 -0
  260. package/build/src/v1/team_service_client.d.ts +24 -0
  261. package/build/src/v1/team_service_client.js +36 -0
  262. package/build/src/v1/team_service_client.js.map +1 -1
  263. package/build/src/v1/team_service_proto_list.json +3 -0
  264. package/build/src/v1/third_party_company_service_client.d.ts +24 -0
  265. package/build/src/v1/third_party_company_service_client.js +36 -0
  266. package/build/src/v1/third_party_company_service_client.js.map +1 -1
  267. package/build/src/v1/third_party_company_service_proto_list.json +3 -0
  268. package/build/src/v1/user_service_client.d.ts +24 -0
  269. package/build/src/v1/user_service_client.js +36 -0
  270. package/build/src/v1/user_service_client.js.map +1 -1
  271. package/build/src/v1/user_service_proto_list.json +3 -0
  272. package/build/src/v1/viewability_provider_service_client.d.ts +24 -0
  273. package/build/src/v1/viewability_provider_service_client.js +36 -0
  274. package/build/src/v1/viewability_provider_service_client.js.map +1 -1
  275. package/build/src/v1/viewability_provider_service_proto_list.json +3 -0
  276. package/package.json +6 -1
@@ -0,0 +1,2674 @@
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.DaiSessionServiceClient = 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/dai_session_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./dai_session_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling `DaiSession` objects.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class DaiSessionServiceClient {
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
+ daiSessionServiceStub;
57
+ /**
58
+ * Construct an instance of DaiSessionServiceClient.
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 DaiSessionServiceClient({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
+ adRulePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adRules/{ad_rule}'),
179
+ adSpotPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adSpots/{ad_spot}'),
180
+ adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
181
+ applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
182
+ audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
183
+ bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
184
+ breakTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/breakTemplates/{break_template}'),
185
+ browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
186
+ browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
187
+ cdnConfigPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cdnConfigs/{cdn_config}'),
188
+ childPublisherPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/childPublishers/{child_publisher}'),
189
+ cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
190
+ cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
191
+ companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
192
+ contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
193
+ contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
194
+ contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
195
+ contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
196
+ creativePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creatives/{creative}'),
197
+ creativeSetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeSets/{creative_set}'),
198
+ creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
199
+ creativeWrapperPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeWrappers/{creative_wrapper}'),
200
+ customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
201
+ customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
202
+ customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
203
+ daiAuthenticationKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}'),
204
+ daiEncodingProfilePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}'),
205
+ daiSessionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiSessions/{dai_session}'),
206
+ defaultThirdPartyDataDeclarationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/defaultThirdPartyDataDeclaration'),
207
+ deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
208
+ deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
209
+ deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
210
+ entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
211
+ geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
212
+ labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
213
+ lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
214
+ linkedDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/linkedDevices/{linked_device}'),
215
+ liveStreamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreams/{live_stream}'),
216
+ liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
217
+ mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
218
+ mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
219
+ mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
220
+ nativeStylePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/nativeStyles/{native_style}'),
221
+ networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
222
+ operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
223
+ operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
224
+ orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
225
+ partnerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/partners/{partner}'),
226
+ placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
227
+ privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
228
+ privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
229
+ programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
230
+ reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
231
+ richMediaAdsCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/richMediaAdsCompanies/{rich_media_ads_company}'),
232
+ rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
233
+ sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
234
+ slatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/slates/{slate}'),
235
+ suggestedAdUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/suggestedAdUnits/{suggested_ad_unit}'),
236
+ targetingPresetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/targetingPresets/{targeting_preset}'),
237
+ taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
238
+ teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
239
+ thirdPartyCompanyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/thirdPartyCompanies/{third_party_company}'),
240
+ userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
241
+ viewabilityProviderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/viewabilityProviders/{viewability_provider}'),
242
+ webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
243
+ };
244
+ // Put together the default options sent with requests.
245
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.DaiSessionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
246
+ // Set up a dictionary of "inner API calls"; the core implementation
247
+ // of calling the API is handled in `google-gax`, with this code
248
+ // merely providing the destination and request information.
249
+ this.innerApiCalls = {};
250
+ // Add a warn function to the client constructor so it can be easily tested.
251
+ this.warn = this._gaxModule.warn;
252
+ }
253
+ /**
254
+ * Initialize the client.
255
+ * Performs asynchronous operations (such as authentication) and prepares the client.
256
+ * This function will be called automatically when any class method is called for the
257
+ * first time, but if you need to initialize it before calling an actual method,
258
+ * feel free to call initialize() directly.
259
+ *
260
+ * You can await on this method if you want to make sure the client is initialized.
261
+ *
262
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
263
+ */
264
+ initialize() {
265
+ // If the client stub promise is already initialized, return immediately.
266
+ if (this.daiSessionServiceStub) {
267
+ return this.daiSessionServiceStub;
268
+ }
269
+ // Put together the "service stub" for
270
+ // google.ads.admanager.v1.DaiSessionService.
271
+ this.daiSessionServiceStub = this._gaxGrpc.createStub(this._opts.fallback
272
+ ? this._protos.lookupService('google.ads.admanager.v1.DaiSessionService')
273
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
274
+ this._protos.google.ads.admanager.v1.DaiSessionService, this._opts, this._providedCustomServicePath);
275
+ // Iterate over each of the methods that the service provides
276
+ // and create an API call method for each.
277
+ const daiSessionServiceStubMethods = ['getDaiSession'];
278
+ for (const methodName of daiSessionServiceStubMethods) {
279
+ const callPromise = this.daiSessionServiceStub.then(stub => (...args) => {
280
+ if (this._terminated) {
281
+ return Promise.reject('The client has already been closed.');
282
+ }
283
+ const func = stub[methodName];
284
+ return func.apply(stub, args);
285
+ }, (err) => () => {
286
+ throw err;
287
+ });
288
+ const descriptor = undefined;
289
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
290
+ this.innerApiCalls[methodName] = apiCall;
291
+ }
292
+ return this.daiSessionServiceStub;
293
+ }
294
+ /**
295
+ * The DNS address for this API service.
296
+ * @deprecated Use the apiEndpoint method of the client instance.
297
+ * @returns {string} The DNS address for this service.
298
+ */
299
+ static get servicePath() {
300
+ if (typeof process === 'object' &&
301
+ typeof process.emitWarning === 'function') {
302
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
303
+ }
304
+ return 'admanager.googleapis.com';
305
+ }
306
+ /**
307
+ * The DNS address for this API service - same as servicePath.
308
+ * @deprecated Use the apiEndpoint method of the client instance.
309
+ * @returns {string} The DNS address for this service.
310
+ */
311
+ static get apiEndpoint() {
312
+ if (typeof process === 'object' &&
313
+ typeof process.emitWarning === 'function') {
314
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
315
+ }
316
+ return 'admanager.googleapis.com';
317
+ }
318
+ /**
319
+ * The DNS address for this API service.
320
+ * @returns {string} The DNS address for this service.
321
+ */
322
+ get apiEndpoint() {
323
+ return this._servicePath;
324
+ }
325
+ get universeDomain() {
326
+ return this._universeDomain;
327
+ }
328
+ /**
329
+ * The port for this API service.
330
+ * @returns {number} The default port for this service.
331
+ */
332
+ static get port() {
333
+ return 443;
334
+ }
335
+ /**
336
+ * The scopes needed to make gRPC calls for every method defined
337
+ * in this service.
338
+ * @returns {string[]} List of default scopes.
339
+ */
340
+ static get scopes() {
341
+ return [
342
+ 'https://www.googleapis.com/auth/admanager',
343
+ 'https://www.googleapis.com/auth/admanager.readonly',
344
+ ];
345
+ }
346
+ /**
347
+ * Return the project ID used by this class.
348
+ * @returns {Promise} A promise that resolves to string containing the project ID.
349
+ */
350
+ getProjectId(callback) {
351
+ if (callback) {
352
+ this.auth.getProjectId(callback);
353
+ return;
354
+ }
355
+ return this.auth.getProjectId();
356
+ }
357
+ getDaiSession(request, optionsOrCallback, callback) {
358
+ request = request || {};
359
+ let options;
360
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
361
+ callback = optionsOrCallback;
362
+ options = {};
363
+ }
364
+ else {
365
+ options = optionsOrCallback;
366
+ }
367
+ options = options || {};
368
+ options.otherArgs = options.otherArgs || {};
369
+ options.otherArgs.headers = options.otherArgs.headers || {};
370
+ options.otherArgs.headers['x-goog-request-params'] =
371
+ this._gaxModule.routingHeader.fromParams({
372
+ name: request.name ?? '',
373
+ });
374
+ this.initialize().catch(err => {
375
+ throw err;
376
+ });
377
+ this._log.info('getDaiSession request %j', request);
378
+ const wrappedCallback = callback
379
+ ? (error, response, options, rawResponse) => {
380
+ this._log.info('getDaiSession response %j', response);
381
+ callback(error, response, options, rawResponse); // We verified callback above.
382
+ }
383
+ : undefined;
384
+ return this.innerApiCalls
385
+ .getDaiSession(request, options, wrappedCallback)
386
+ ?.then(([response, options, rawResponse]) => {
387
+ this._log.info('getDaiSession response %j', response);
388
+ return [response, options, rawResponse];
389
+ })
390
+ .catch((error) => {
391
+ if (error &&
392
+ 'statusDetails' in error &&
393
+ error.statusDetails instanceof Array) {
394
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
395
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
396
+ }
397
+ throw error;
398
+ });
399
+ }
400
+ // --------------------
401
+ // -- Path templates --
402
+ // --------------------
403
+ /**
404
+ * Return a fully-qualified adBreak resource name string.
405
+ *
406
+ * @param {string} network_code
407
+ * @param {string} asset_key
408
+ * @param {string} ad_break
409
+ * @returns {string} Resource name string.
410
+ */
411
+ adBreakPath(networkCode, assetKey, adBreak) {
412
+ return this.pathTemplates.adBreakPathTemplate.render({
413
+ network_code: networkCode,
414
+ asset_key: assetKey,
415
+ ad_break: adBreak,
416
+ });
417
+ }
418
+ /**
419
+ * Parse the network_code from AdBreak resource.
420
+ *
421
+ * @param {string} adBreakName
422
+ * A fully-qualified path representing AdBreak resource.
423
+ * @returns {string} A string representing the network_code.
424
+ */
425
+ matchNetworkCodeFromAdBreakName(adBreakName) {
426
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName)
427
+ .network_code;
428
+ }
429
+ /**
430
+ * Parse the asset_key from AdBreak resource.
431
+ *
432
+ * @param {string} adBreakName
433
+ * A fully-qualified path representing AdBreak resource.
434
+ * @returns {string} A string representing the asset_key.
435
+ */
436
+ matchAssetKeyFromAdBreakName(adBreakName) {
437
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
438
+ }
439
+ /**
440
+ * Parse the ad_break from AdBreak resource.
441
+ *
442
+ * @param {string} adBreakName
443
+ * A fully-qualified path representing AdBreak resource.
444
+ * @returns {string} A string representing the ad_break.
445
+ */
446
+ matchAdBreakFromAdBreakName(adBreakName) {
447
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
448
+ }
449
+ /**
450
+ * Return a fully-qualified adReviewCenterAd resource name string.
451
+ *
452
+ * @param {string} network_code
453
+ * @param {string} web_property_code
454
+ * @param {string} ad_review_center_ad
455
+ * @returns {string} Resource name string.
456
+ */
457
+ adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
458
+ return this.pathTemplates.adReviewCenterAdPathTemplate.render({
459
+ network_code: networkCode,
460
+ web_property_code: webPropertyCode,
461
+ ad_review_center_ad: adReviewCenterAd,
462
+ });
463
+ }
464
+ /**
465
+ * Parse the network_code from AdReviewCenterAd resource.
466
+ *
467
+ * @param {string} adReviewCenterAdName
468
+ * A fully-qualified path representing AdReviewCenterAd resource.
469
+ * @returns {string} A string representing the network_code.
470
+ */
471
+ matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
472
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
473
+ }
474
+ /**
475
+ * Parse the web_property_code from AdReviewCenterAd resource.
476
+ *
477
+ * @param {string} adReviewCenterAdName
478
+ * A fully-qualified path representing AdReviewCenterAd resource.
479
+ * @returns {string} A string representing the web_property_code.
480
+ */
481
+ matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
482
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
483
+ }
484
+ /**
485
+ * Parse the ad_review_center_ad from AdReviewCenterAd resource.
486
+ *
487
+ * @param {string} adReviewCenterAdName
488
+ * A fully-qualified path representing AdReviewCenterAd resource.
489
+ * @returns {string} A string representing the ad_review_center_ad.
490
+ */
491
+ matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
492
+ return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
493
+ }
494
+ /**
495
+ * Return a fully-qualified adRule resource name string.
496
+ *
497
+ * @param {string} network_code
498
+ * @param {string} ad_rule
499
+ * @returns {string} Resource name string.
500
+ */
501
+ adRulePath(networkCode, adRule) {
502
+ return this.pathTemplates.adRulePathTemplate.render({
503
+ network_code: networkCode,
504
+ ad_rule: adRule,
505
+ });
506
+ }
507
+ /**
508
+ * Parse the network_code from AdRule resource.
509
+ *
510
+ * @param {string} adRuleName
511
+ * A fully-qualified path representing AdRule resource.
512
+ * @returns {string} A string representing the network_code.
513
+ */
514
+ matchNetworkCodeFromAdRuleName(adRuleName) {
515
+ return this.pathTemplates.adRulePathTemplate.match(adRuleName).network_code;
516
+ }
517
+ /**
518
+ * Parse the ad_rule from AdRule resource.
519
+ *
520
+ * @param {string} adRuleName
521
+ * A fully-qualified path representing AdRule resource.
522
+ * @returns {string} A string representing the ad_rule.
523
+ */
524
+ matchAdRuleFromAdRuleName(adRuleName) {
525
+ return this.pathTemplates.adRulePathTemplate.match(adRuleName).ad_rule;
526
+ }
527
+ /**
528
+ * Return a fully-qualified adSpot resource name string.
529
+ *
530
+ * @param {string} network_code
531
+ * @param {string} ad_spot
532
+ * @returns {string} Resource name string.
533
+ */
534
+ adSpotPath(networkCode, adSpot) {
535
+ return this.pathTemplates.adSpotPathTemplate.render({
536
+ network_code: networkCode,
537
+ ad_spot: adSpot,
538
+ });
539
+ }
540
+ /**
541
+ * Parse the network_code from AdSpot resource.
542
+ *
543
+ * @param {string} adSpotName
544
+ * A fully-qualified path representing AdSpot resource.
545
+ * @returns {string} A string representing the network_code.
546
+ */
547
+ matchNetworkCodeFromAdSpotName(adSpotName) {
548
+ return this.pathTemplates.adSpotPathTemplate.match(adSpotName).network_code;
549
+ }
550
+ /**
551
+ * Parse the ad_spot from AdSpot resource.
552
+ *
553
+ * @param {string} adSpotName
554
+ * A fully-qualified path representing AdSpot resource.
555
+ * @returns {string} A string representing the ad_spot.
556
+ */
557
+ matchAdSpotFromAdSpotName(adSpotName) {
558
+ return this.pathTemplates.adSpotPathTemplate.match(adSpotName).ad_spot;
559
+ }
560
+ /**
561
+ * Return a fully-qualified adUnit resource name string.
562
+ *
563
+ * @param {string} network_code
564
+ * @param {string} ad_unit
565
+ * @returns {string} Resource name string.
566
+ */
567
+ adUnitPath(networkCode, adUnit) {
568
+ return this.pathTemplates.adUnitPathTemplate.render({
569
+ network_code: networkCode,
570
+ ad_unit: adUnit,
571
+ });
572
+ }
573
+ /**
574
+ * Parse the network_code from AdUnit resource.
575
+ *
576
+ * @param {string} adUnitName
577
+ * A fully-qualified path representing AdUnit resource.
578
+ * @returns {string} A string representing the network_code.
579
+ */
580
+ matchNetworkCodeFromAdUnitName(adUnitName) {
581
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
582
+ }
583
+ /**
584
+ * Parse the ad_unit from AdUnit resource.
585
+ *
586
+ * @param {string} adUnitName
587
+ * A fully-qualified path representing AdUnit resource.
588
+ * @returns {string} A string representing the ad_unit.
589
+ */
590
+ matchAdUnitFromAdUnitName(adUnitName) {
591
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
592
+ }
593
+ /**
594
+ * Return a fully-qualified application resource name string.
595
+ *
596
+ * @param {string} network_code
597
+ * @param {string} application
598
+ * @returns {string} Resource name string.
599
+ */
600
+ applicationPath(networkCode, application) {
601
+ return this.pathTemplates.applicationPathTemplate.render({
602
+ network_code: networkCode,
603
+ application: application,
604
+ });
605
+ }
606
+ /**
607
+ * Parse the network_code from Application resource.
608
+ *
609
+ * @param {string} applicationName
610
+ * A fully-qualified path representing Application resource.
611
+ * @returns {string} A string representing the network_code.
612
+ */
613
+ matchNetworkCodeFromApplicationName(applicationName) {
614
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
615
+ .network_code;
616
+ }
617
+ /**
618
+ * Parse the application from Application resource.
619
+ *
620
+ * @param {string} applicationName
621
+ * A fully-qualified path representing Application resource.
622
+ * @returns {string} A string representing the application.
623
+ */
624
+ matchApplicationFromApplicationName(applicationName) {
625
+ return this.pathTemplates.applicationPathTemplate.match(applicationName)
626
+ .application;
627
+ }
628
+ /**
629
+ * Return a fully-qualified audienceSegment resource name string.
630
+ *
631
+ * @param {string} network_code
632
+ * @param {string} audience_segment
633
+ * @returns {string} Resource name string.
634
+ */
635
+ audienceSegmentPath(networkCode, audienceSegment) {
636
+ return this.pathTemplates.audienceSegmentPathTemplate.render({
637
+ network_code: networkCode,
638
+ audience_segment: audienceSegment,
639
+ });
640
+ }
641
+ /**
642
+ * Parse the network_code from AudienceSegment resource.
643
+ *
644
+ * @param {string} audienceSegmentName
645
+ * A fully-qualified path representing AudienceSegment resource.
646
+ * @returns {string} A string representing the network_code.
647
+ */
648
+ matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
649
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
650
+ }
651
+ /**
652
+ * Parse the audience_segment from AudienceSegment resource.
653
+ *
654
+ * @param {string} audienceSegmentName
655
+ * A fully-qualified path representing AudienceSegment resource.
656
+ * @returns {string} A string representing the audience_segment.
657
+ */
658
+ matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
659
+ return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
660
+ }
661
+ /**
662
+ * Return a fully-qualified bandwidthGroup resource name string.
663
+ *
664
+ * @param {string} network_code
665
+ * @param {string} bandwidth_group
666
+ * @returns {string} Resource name string.
667
+ */
668
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
669
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
670
+ network_code: networkCode,
671
+ bandwidth_group: bandwidthGroup,
672
+ });
673
+ }
674
+ /**
675
+ * Parse the network_code from BandwidthGroup resource.
676
+ *
677
+ * @param {string} bandwidthGroupName
678
+ * A fully-qualified path representing BandwidthGroup resource.
679
+ * @returns {string} A string representing the network_code.
680
+ */
681
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
682
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
683
+ }
684
+ /**
685
+ * Parse the bandwidth_group from BandwidthGroup resource.
686
+ *
687
+ * @param {string} bandwidthGroupName
688
+ * A fully-qualified path representing BandwidthGroup resource.
689
+ * @returns {string} A string representing the bandwidth_group.
690
+ */
691
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
692
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
693
+ }
694
+ /**
695
+ * Return a fully-qualified breakTemplate resource name string.
696
+ *
697
+ * @param {string} network_code
698
+ * @param {string} break_template
699
+ * @returns {string} Resource name string.
700
+ */
701
+ breakTemplatePath(networkCode, breakTemplate) {
702
+ return this.pathTemplates.breakTemplatePathTemplate.render({
703
+ network_code: networkCode,
704
+ break_template: breakTemplate,
705
+ });
706
+ }
707
+ /**
708
+ * Parse the network_code from BreakTemplate resource.
709
+ *
710
+ * @param {string} breakTemplateName
711
+ * A fully-qualified path representing BreakTemplate resource.
712
+ * @returns {string} A string representing the network_code.
713
+ */
714
+ matchNetworkCodeFromBreakTemplateName(breakTemplateName) {
715
+ return this.pathTemplates.breakTemplatePathTemplate.match(breakTemplateName)
716
+ .network_code;
717
+ }
718
+ /**
719
+ * Parse the break_template from BreakTemplate resource.
720
+ *
721
+ * @param {string} breakTemplateName
722
+ * A fully-qualified path representing BreakTemplate resource.
723
+ * @returns {string} A string representing the break_template.
724
+ */
725
+ matchBreakTemplateFromBreakTemplateName(breakTemplateName) {
726
+ return this.pathTemplates.breakTemplatePathTemplate.match(breakTemplateName)
727
+ .break_template;
728
+ }
729
+ /**
730
+ * Return a fully-qualified browser resource name string.
731
+ *
732
+ * @param {string} network_code
733
+ * @param {string} browser
734
+ * @returns {string} Resource name string.
735
+ */
736
+ browserPath(networkCode, browser) {
737
+ return this.pathTemplates.browserPathTemplate.render({
738
+ network_code: networkCode,
739
+ browser: browser,
740
+ });
741
+ }
742
+ /**
743
+ * Parse the network_code from Browser resource.
744
+ *
745
+ * @param {string} browserName
746
+ * A fully-qualified path representing Browser resource.
747
+ * @returns {string} A string representing the network_code.
748
+ */
749
+ matchNetworkCodeFromBrowserName(browserName) {
750
+ return this.pathTemplates.browserPathTemplate.match(browserName)
751
+ .network_code;
752
+ }
753
+ /**
754
+ * Parse the browser from Browser resource.
755
+ *
756
+ * @param {string} browserName
757
+ * A fully-qualified path representing Browser resource.
758
+ * @returns {string} A string representing the browser.
759
+ */
760
+ matchBrowserFromBrowserName(browserName) {
761
+ return this.pathTemplates.browserPathTemplate.match(browserName).browser;
762
+ }
763
+ /**
764
+ * Return a fully-qualified browserLanguage resource name string.
765
+ *
766
+ * @param {string} network_code
767
+ * @param {string} browser_language
768
+ * @returns {string} Resource name string.
769
+ */
770
+ browserLanguagePath(networkCode, browserLanguage) {
771
+ return this.pathTemplates.browserLanguagePathTemplate.render({
772
+ network_code: networkCode,
773
+ browser_language: browserLanguage,
774
+ });
775
+ }
776
+ /**
777
+ * Parse the network_code from BrowserLanguage resource.
778
+ *
779
+ * @param {string} browserLanguageName
780
+ * A fully-qualified path representing BrowserLanguage resource.
781
+ * @returns {string} A string representing the network_code.
782
+ */
783
+ matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
784
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
785
+ }
786
+ /**
787
+ * Parse the browser_language from BrowserLanguage resource.
788
+ *
789
+ * @param {string} browserLanguageName
790
+ * A fully-qualified path representing BrowserLanguage resource.
791
+ * @returns {string} A string representing the browser_language.
792
+ */
793
+ matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
794
+ return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
795
+ }
796
+ /**
797
+ * Return a fully-qualified cdnConfig resource name string.
798
+ *
799
+ * @param {string} network_code
800
+ * @param {string} cdn_config
801
+ * @returns {string} Resource name string.
802
+ */
803
+ cdnConfigPath(networkCode, cdnConfig) {
804
+ return this.pathTemplates.cdnConfigPathTemplate.render({
805
+ network_code: networkCode,
806
+ cdn_config: cdnConfig,
807
+ });
808
+ }
809
+ /**
810
+ * Parse the network_code from CdnConfig resource.
811
+ *
812
+ * @param {string} cdnConfigName
813
+ * A fully-qualified path representing CdnConfig resource.
814
+ * @returns {string} A string representing the network_code.
815
+ */
816
+ matchNetworkCodeFromCdnConfigName(cdnConfigName) {
817
+ return this.pathTemplates.cdnConfigPathTemplate.match(cdnConfigName)
818
+ .network_code;
819
+ }
820
+ /**
821
+ * Parse the cdn_config from CdnConfig resource.
822
+ *
823
+ * @param {string} cdnConfigName
824
+ * A fully-qualified path representing CdnConfig resource.
825
+ * @returns {string} A string representing the cdn_config.
826
+ */
827
+ matchCdnConfigFromCdnConfigName(cdnConfigName) {
828
+ return this.pathTemplates.cdnConfigPathTemplate.match(cdnConfigName)
829
+ .cdn_config;
830
+ }
831
+ /**
832
+ * Return a fully-qualified childPublisher resource name string.
833
+ *
834
+ * @param {string} network_code
835
+ * @param {string} child_publisher
836
+ * @returns {string} Resource name string.
837
+ */
838
+ childPublisherPath(networkCode, childPublisher) {
839
+ return this.pathTemplates.childPublisherPathTemplate.render({
840
+ network_code: networkCode,
841
+ child_publisher: childPublisher,
842
+ });
843
+ }
844
+ /**
845
+ * Parse the network_code from ChildPublisher resource.
846
+ *
847
+ * @param {string} childPublisherName
848
+ * A fully-qualified path representing ChildPublisher resource.
849
+ * @returns {string} A string representing the network_code.
850
+ */
851
+ matchNetworkCodeFromChildPublisherName(childPublisherName) {
852
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).network_code;
853
+ }
854
+ /**
855
+ * Parse the child_publisher from ChildPublisher resource.
856
+ *
857
+ * @param {string} childPublisherName
858
+ * A fully-qualified path representing ChildPublisher resource.
859
+ * @returns {string} A string representing the child_publisher.
860
+ */
861
+ matchChildPublisherFromChildPublisherName(childPublisherName) {
862
+ return this.pathTemplates.childPublisherPathTemplate.match(childPublisherName).child_publisher;
863
+ }
864
+ /**
865
+ * Return a fully-qualified cmsMetadataKey resource name string.
866
+ *
867
+ * @param {string} network_code
868
+ * @param {string} cms_metadata_key
869
+ * @returns {string} Resource name string.
870
+ */
871
+ cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
872
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
873
+ network_code: networkCode,
874
+ cms_metadata_key: cmsMetadataKey,
875
+ });
876
+ }
877
+ /**
878
+ * Parse the network_code from CmsMetadataKey resource.
879
+ *
880
+ * @param {string} cmsMetadataKeyName
881
+ * A fully-qualified path representing CmsMetadataKey resource.
882
+ * @returns {string} A string representing the network_code.
883
+ */
884
+ matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
885
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
886
+ }
887
+ /**
888
+ * Parse the cms_metadata_key from CmsMetadataKey resource.
889
+ *
890
+ * @param {string} cmsMetadataKeyName
891
+ * A fully-qualified path representing CmsMetadataKey resource.
892
+ * @returns {string} A string representing the cms_metadata_key.
893
+ */
894
+ matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
895
+ return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
896
+ }
897
+ /**
898
+ * Return a fully-qualified cmsMetadataValue resource name string.
899
+ *
900
+ * @param {string} network_code
901
+ * @param {string} cms_metadata_value
902
+ * @returns {string} Resource name string.
903
+ */
904
+ cmsMetadataValuePath(networkCode, cmsMetadataValue) {
905
+ return this.pathTemplates.cmsMetadataValuePathTemplate.render({
906
+ network_code: networkCode,
907
+ cms_metadata_value: cmsMetadataValue,
908
+ });
909
+ }
910
+ /**
911
+ * Parse the network_code from CmsMetadataValue resource.
912
+ *
913
+ * @param {string} cmsMetadataValueName
914
+ * A fully-qualified path representing CmsMetadataValue resource.
915
+ * @returns {string} A string representing the network_code.
916
+ */
917
+ matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
918
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
919
+ }
920
+ /**
921
+ * Parse the cms_metadata_value from CmsMetadataValue resource.
922
+ *
923
+ * @param {string} cmsMetadataValueName
924
+ * A fully-qualified path representing CmsMetadataValue resource.
925
+ * @returns {string} A string representing the cms_metadata_value.
926
+ */
927
+ matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
928
+ return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
929
+ }
930
+ /**
931
+ * Return a fully-qualified company resource name string.
932
+ *
933
+ * @param {string} network_code
934
+ * @param {string} company
935
+ * @returns {string} Resource name string.
936
+ */
937
+ companyPath(networkCode, company) {
938
+ return this.pathTemplates.companyPathTemplate.render({
939
+ network_code: networkCode,
940
+ company: company,
941
+ });
942
+ }
943
+ /**
944
+ * Parse the network_code from Company resource.
945
+ *
946
+ * @param {string} companyName
947
+ * A fully-qualified path representing Company resource.
948
+ * @returns {string} A string representing the network_code.
949
+ */
950
+ matchNetworkCodeFromCompanyName(companyName) {
951
+ return this.pathTemplates.companyPathTemplate.match(companyName)
952
+ .network_code;
953
+ }
954
+ /**
955
+ * Parse the company from Company resource.
956
+ *
957
+ * @param {string} companyName
958
+ * A fully-qualified path representing Company resource.
959
+ * @returns {string} A string representing the company.
960
+ */
961
+ matchCompanyFromCompanyName(companyName) {
962
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
963
+ }
964
+ /**
965
+ * Return a fully-qualified contact resource name string.
966
+ *
967
+ * @param {string} network_code
968
+ * @param {string} contact
969
+ * @returns {string} Resource name string.
970
+ */
971
+ contactPath(networkCode, contact) {
972
+ return this.pathTemplates.contactPathTemplate.render({
973
+ network_code: networkCode,
974
+ contact: contact,
975
+ });
976
+ }
977
+ /**
978
+ * Parse the network_code from Contact resource.
979
+ *
980
+ * @param {string} contactName
981
+ * A fully-qualified path representing Contact resource.
982
+ * @returns {string} A string representing the network_code.
983
+ */
984
+ matchNetworkCodeFromContactName(contactName) {
985
+ return this.pathTemplates.contactPathTemplate.match(contactName)
986
+ .network_code;
987
+ }
988
+ /**
989
+ * Parse the contact from Contact resource.
990
+ *
991
+ * @param {string} contactName
992
+ * A fully-qualified path representing Contact resource.
993
+ * @returns {string} A string representing the contact.
994
+ */
995
+ matchContactFromContactName(contactName) {
996
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
997
+ }
998
+ /**
999
+ * Return a fully-qualified content resource name string.
1000
+ *
1001
+ * @param {string} network_code
1002
+ * @param {string} content
1003
+ * @returns {string} Resource name string.
1004
+ */
1005
+ contentPath(networkCode, content) {
1006
+ return this.pathTemplates.contentPathTemplate.render({
1007
+ network_code: networkCode,
1008
+ content: content,
1009
+ });
1010
+ }
1011
+ /**
1012
+ * Parse the network_code from Content resource.
1013
+ *
1014
+ * @param {string} contentName
1015
+ * A fully-qualified path representing Content resource.
1016
+ * @returns {string} A string representing the network_code.
1017
+ */
1018
+ matchNetworkCodeFromContentName(contentName) {
1019
+ return this.pathTemplates.contentPathTemplate.match(contentName)
1020
+ .network_code;
1021
+ }
1022
+ /**
1023
+ * Parse the content from Content resource.
1024
+ *
1025
+ * @param {string} contentName
1026
+ * A fully-qualified path representing Content resource.
1027
+ * @returns {string} A string representing the content.
1028
+ */
1029
+ matchContentFromContentName(contentName) {
1030
+ return this.pathTemplates.contentPathTemplate.match(contentName).content;
1031
+ }
1032
+ /**
1033
+ * Return a fully-qualified contentBundle resource name string.
1034
+ *
1035
+ * @param {string} network_code
1036
+ * @param {string} content_bundle
1037
+ * @returns {string} Resource name string.
1038
+ */
1039
+ contentBundlePath(networkCode, contentBundle) {
1040
+ return this.pathTemplates.contentBundlePathTemplate.render({
1041
+ network_code: networkCode,
1042
+ content_bundle: contentBundle,
1043
+ });
1044
+ }
1045
+ /**
1046
+ * Parse the network_code from ContentBundle resource.
1047
+ *
1048
+ * @param {string} contentBundleName
1049
+ * A fully-qualified path representing ContentBundle resource.
1050
+ * @returns {string} A string representing the network_code.
1051
+ */
1052
+ matchNetworkCodeFromContentBundleName(contentBundleName) {
1053
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1054
+ .network_code;
1055
+ }
1056
+ /**
1057
+ * Parse the content_bundle from ContentBundle resource.
1058
+ *
1059
+ * @param {string} contentBundleName
1060
+ * A fully-qualified path representing ContentBundle resource.
1061
+ * @returns {string} A string representing the content_bundle.
1062
+ */
1063
+ matchContentBundleFromContentBundleName(contentBundleName) {
1064
+ return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName)
1065
+ .content_bundle;
1066
+ }
1067
+ /**
1068
+ * Return a fully-qualified contentLabel resource name string.
1069
+ *
1070
+ * @param {string} network_code
1071
+ * @param {string} content_label
1072
+ * @returns {string} Resource name string.
1073
+ */
1074
+ contentLabelPath(networkCode, contentLabel) {
1075
+ return this.pathTemplates.contentLabelPathTemplate.render({
1076
+ network_code: networkCode,
1077
+ content_label: contentLabel,
1078
+ });
1079
+ }
1080
+ /**
1081
+ * Parse the network_code from ContentLabel resource.
1082
+ *
1083
+ * @param {string} contentLabelName
1084
+ * A fully-qualified path representing ContentLabel resource.
1085
+ * @returns {string} A string representing the network_code.
1086
+ */
1087
+ matchNetworkCodeFromContentLabelName(contentLabelName) {
1088
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1089
+ .network_code;
1090
+ }
1091
+ /**
1092
+ * Parse the content_label from ContentLabel resource.
1093
+ *
1094
+ * @param {string} contentLabelName
1095
+ * A fully-qualified path representing ContentLabel resource.
1096
+ * @returns {string} A string representing the content_label.
1097
+ */
1098
+ matchContentLabelFromContentLabelName(contentLabelName) {
1099
+ return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName)
1100
+ .content_label;
1101
+ }
1102
+ /**
1103
+ * Return a fully-qualified creative resource name string.
1104
+ *
1105
+ * @param {string} network_code
1106
+ * @param {string} creative
1107
+ * @returns {string} Resource name string.
1108
+ */
1109
+ creativePath(networkCode, creative) {
1110
+ return this.pathTemplates.creativePathTemplate.render({
1111
+ network_code: networkCode,
1112
+ creative: creative,
1113
+ });
1114
+ }
1115
+ /**
1116
+ * Parse the network_code from Creative resource.
1117
+ *
1118
+ * @param {string} creativeName
1119
+ * A fully-qualified path representing Creative resource.
1120
+ * @returns {string} A string representing the network_code.
1121
+ */
1122
+ matchNetworkCodeFromCreativeName(creativeName) {
1123
+ return this.pathTemplates.creativePathTemplate.match(creativeName)
1124
+ .network_code;
1125
+ }
1126
+ /**
1127
+ * Parse the creative from Creative resource.
1128
+ *
1129
+ * @param {string} creativeName
1130
+ * A fully-qualified path representing Creative resource.
1131
+ * @returns {string} A string representing the creative.
1132
+ */
1133
+ matchCreativeFromCreativeName(creativeName) {
1134
+ return this.pathTemplates.creativePathTemplate.match(creativeName).creative;
1135
+ }
1136
+ /**
1137
+ * Return a fully-qualified creativeSet resource name string.
1138
+ *
1139
+ * @param {string} network_code
1140
+ * @param {string} creative_set
1141
+ * @returns {string} Resource name string.
1142
+ */
1143
+ creativeSetPath(networkCode, creativeSet) {
1144
+ return this.pathTemplates.creativeSetPathTemplate.render({
1145
+ network_code: networkCode,
1146
+ creative_set: creativeSet,
1147
+ });
1148
+ }
1149
+ /**
1150
+ * Parse the network_code from CreativeSet resource.
1151
+ *
1152
+ * @param {string} creativeSetName
1153
+ * A fully-qualified path representing CreativeSet resource.
1154
+ * @returns {string} A string representing the network_code.
1155
+ */
1156
+ matchNetworkCodeFromCreativeSetName(creativeSetName) {
1157
+ return this.pathTemplates.creativeSetPathTemplate.match(creativeSetName)
1158
+ .network_code;
1159
+ }
1160
+ /**
1161
+ * Parse the creative_set from CreativeSet resource.
1162
+ *
1163
+ * @param {string} creativeSetName
1164
+ * A fully-qualified path representing CreativeSet resource.
1165
+ * @returns {string} A string representing the creative_set.
1166
+ */
1167
+ matchCreativeSetFromCreativeSetName(creativeSetName) {
1168
+ return this.pathTemplates.creativeSetPathTemplate.match(creativeSetName)
1169
+ .creative_set;
1170
+ }
1171
+ /**
1172
+ * Return a fully-qualified creativeTemplate resource name string.
1173
+ *
1174
+ * @param {string} network_code
1175
+ * @param {string} creative_template
1176
+ * @returns {string} Resource name string.
1177
+ */
1178
+ creativeTemplatePath(networkCode, creativeTemplate) {
1179
+ return this.pathTemplates.creativeTemplatePathTemplate.render({
1180
+ network_code: networkCode,
1181
+ creative_template: creativeTemplate,
1182
+ });
1183
+ }
1184
+ /**
1185
+ * Parse the network_code from CreativeTemplate resource.
1186
+ *
1187
+ * @param {string} creativeTemplateName
1188
+ * A fully-qualified path representing CreativeTemplate resource.
1189
+ * @returns {string} A string representing the network_code.
1190
+ */
1191
+ matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
1192
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
1193
+ }
1194
+ /**
1195
+ * Parse the creative_template from CreativeTemplate resource.
1196
+ *
1197
+ * @param {string} creativeTemplateName
1198
+ * A fully-qualified path representing CreativeTemplate resource.
1199
+ * @returns {string} A string representing the creative_template.
1200
+ */
1201
+ matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
1202
+ return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
1203
+ }
1204
+ /**
1205
+ * Return a fully-qualified creativeWrapper resource name string.
1206
+ *
1207
+ * @param {string} network_code
1208
+ * @param {string} creative_wrapper
1209
+ * @returns {string} Resource name string.
1210
+ */
1211
+ creativeWrapperPath(networkCode, creativeWrapper) {
1212
+ return this.pathTemplates.creativeWrapperPathTemplate.render({
1213
+ network_code: networkCode,
1214
+ creative_wrapper: creativeWrapper,
1215
+ });
1216
+ }
1217
+ /**
1218
+ * Parse the network_code from CreativeWrapper resource.
1219
+ *
1220
+ * @param {string} creativeWrapperName
1221
+ * A fully-qualified path representing CreativeWrapper resource.
1222
+ * @returns {string} A string representing the network_code.
1223
+ */
1224
+ matchNetworkCodeFromCreativeWrapperName(creativeWrapperName) {
1225
+ return this.pathTemplates.creativeWrapperPathTemplate.match(creativeWrapperName).network_code;
1226
+ }
1227
+ /**
1228
+ * Parse the creative_wrapper from CreativeWrapper resource.
1229
+ *
1230
+ * @param {string} creativeWrapperName
1231
+ * A fully-qualified path representing CreativeWrapper resource.
1232
+ * @returns {string} A string representing the creative_wrapper.
1233
+ */
1234
+ matchCreativeWrapperFromCreativeWrapperName(creativeWrapperName) {
1235
+ return this.pathTemplates.creativeWrapperPathTemplate.match(creativeWrapperName).creative_wrapper;
1236
+ }
1237
+ /**
1238
+ * Return a fully-qualified customField resource name string.
1239
+ *
1240
+ * @param {string} network_code
1241
+ * @param {string} custom_field
1242
+ * @returns {string} Resource name string.
1243
+ */
1244
+ customFieldPath(networkCode, customField) {
1245
+ return this.pathTemplates.customFieldPathTemplate.render({
1246
+ network_code: networkCode,
1247
+ custom_field: customField,
1248
+ });
1249
+ }
1250
+ /**
1251
+ * Parse the network_code from CustomField resource.
1252
+ *
1253
+ * @param {string} customFieldName
1254
+ * A fully-qualified path representing CustomField resource.
1255
+ * @returns {string} A string representing the network_code.
1256
+ */
1257
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
1258
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1259
+ .network_code;
1260
+ }
1261
+ /**
1262
+ * Parse the custom_field from CustomField resource.
1263
+ *
1264
+ * @param {string} customFieldName
1265
+ * A fully-qualified path representing CustomField resource.
1266
+ * @returns {string} A string representing the custom_field.
1267
+ */
1268
+ matchCustomFieldFromCustomFieldName(customFieldName) {
1269
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
1270
+ .custom_field;
1271
+ }
1272
+ /**
1273
+ * Return a fully-qualified customTargetingKey resource name string.
1274
+ *
1275
+ * @param {string} network_code
1276
+ * @param {string} custom_targeting_key
1277
+ * @returns {string} Resource name string.
1278
+ */
1279
+ customTargetingKeyPath(networkCode, customTargetingKey) {
1280
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
1281
+ network_code: networkCode,
1282
+ custom_targeting_key: customTargetingKey,
1283
+ });
1284
+ }
1285
+ /**
1286
+ * Parse the network_code from CustomTargetingKey resource.
1287
+ *
1288
+ * @param {string} customTargetingKeyName
1289
+ * A fully-qualified path representing CustomTargetingKey resource.
1290
+ * @returns {string} A string representing the network_code.
1291
+ */
1292
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
1293
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
1294
+ }
1295
+ /**
1296
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
1297
+ *
1298
+ * @param {string} customTargetingKeyName
1299
+ * A fully-qualified path representing CustomTargetingKey resource.
1300
+ * @returns {string} A string representing the custom_targeting_key.
1301
+ */
1302
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
1303
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
1304
+ }
1305
+ /**
1306
+ * Return a fully-qualified customTargetingValue resource name string.
1307
+ *
1308
+ * @param {string} network_code
1309
+ * @param {string} custom_targeting_value
1310
+ * @returns {string} Resource name string.
1311
+ */
1312
+ customTargetingValuePath(networkCode, customTargetingValue) {
1313
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
1314
+ network_code: networkCode,
1315
+ custom_targeting_value: customTargetingValue,
1316
+ });
1317
+ }
1318
+ /**
1319
+ * Parse the network_code from CustomTargetingValue resource.
1320
+ *
1321
+ * @param {string} customTargetingValueName
1322
+ * A fully-qualified path representing CustomTargetingValue resource.
1323
+ * @returns {string} A string representing the network_code.
1324
+ */
1325
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
1326
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
1327
+ }
1328
+ /**
1329
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
1330
+ *
1331
+ * @param {string} customTargetingValueName
1332
+ * A fully-qualified path representing CustomTargetingValue resource.
1333
+ * @returns {string} A string representing the custom_targeting_value.
1334
+ */
1335
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
1336
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
1337
+ }
1338
+ /**
1339
+ * Return a fully-qualified daiAuthenticationKey resource name string.
1340
+ *
1341
+ * @param {string} network_code
1342
+ * @param {string} dai_authentication_key
1343
+ * @returns {string} Resource name string.
1344
+ */
1345
+ daiAuthenticationKeyPath(networkCode, daiAuthenticationKey) {
1346
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.render({
1347
+ network_code: networkCode,
1348
+ dai_authentication_key: daiAuthenticationKey,
1349
+ });
1350
+ }
1351
+ /**
1352
+ * Parse the network_code from DaiAuthenticationKey resource.
1353
+ *
1354
+ * @param {string} daiAuthenticationKeyName
1355
+ * A fully-qualified path representing DaiAuthenticationKey resource.
1356
+ * @returns {string} A string representing the network_code.
1357
+ */
1358
+ matchNetworkCodeFromDaiAuthenticationKeyName(daiAuthenticationKeyName) {
1359
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.match(daiAuthenticationKeyName).network_code;
1360
+ }
1361
+ /**
1362
+ * Parse the dai_authentication_key from DaiAuthenticationKey resource.
1363
+ *
1364
+ * @param {string} daiAuthenticationKeyName
1365
+ * A fully-qualified path representing DaiAuthenticationKey resource.
1366
+ * @returns {string} A string representing the dai_authentication_key.
1367
+ */
1368
+ matchDaiAuthenticationKeyFromDaiAuthenticationKeyName(daiAuthenticationKeyName) {
1369
+ return this.pathTemplates.daiAuthenticationKeyPathTemplate.match(daiAuthenticationKeyName).dai_authentication_key;
1370
+ }
1371
+ /**
1372
+ * Return a fully-qualified daiEncodingProfile resource name string.
1373
+ *
1374
+ * @param {string} network_code
1375
+ * @param {string} dai_encoding_profile
1376
+ * @returns {string} Resource name string.
1377
+ */
1378
+ daiEncodingProfilePath(networkCode, daiEncodingProfile) {
1379
+ return this.pathTemplates.daiEncodingProfilePathTemplate.render({
1380
+ network_code: networkCode,
1381
+ dai_encoding_profile: daiEncodingProfile,
1382
+ });
1383
+ }
1384
+ /**
1385
+ * Parse the network_code from DaiEncodingProfile resource.
1386
+ *
1387
+ * @param {string} daiEncodingProfileName
1388
+ * A fully-qualified path representing DaiEncodingProfile resource.
1389
+ * @returns {string} A string representing the network_code.
1390
+ */
1391
+ matchNetworkCodeFromDaiEncodingProfileName(daiEncodingProfileName) {
1392
+ return this.pathTemplates.daiEncodingProfilePathTemplate.match(daiEncodingProfileName).network_code;
1393
+ }
1394
+ /**
1395
+ * Parse the dai_encoding_profile from DaiEncodingProfile resource.
1396
+ *
1397
+ * @param {string} daiEncodingProfileName
1398
+ * A fully-qualified path representing DaiEncodingProfile resource.
1399
+ * @returns {string} A string representing the dai_encoding_profile.
1400
+ */
1401
+ matchDaiEncodingProfileFromDaiEncodingProfileName(daiEncodingProfileName) {
1402
+ return this.pathTemplates.daiEncodingProfilePathTemplate.match(daiEncodingProfileName).dai_encoding_profile;
1403
+ }
1404
+ /**
1405
+ * Return a fully-qualified daiSession resource name string.
1406
+ *
1407
+ * @param {string} network_code
1408
+ * @param {string} dai_session
1409
+ * @returns {string} Resource name string.
1410
+ */
1411
+ daiSessionPath(networkCode, daiSession) {
1412
+ return this.pathTemplates.daiSessionPathTemplate.render({
1413
+ network_code: networkCode,
1414
+ dai_session: daiSession,
1415
+ });
1416
+ }
1417
+ /**
1418
+ * Parse the network_code from DaiSession resource.
1419
+ *
1420
+ * @param {string} daiSessionName
1421
+ * A fully-qualified path representing DaiSession resource.
1422
+ * @returns {string} A string representing the network_code.
1423
+ */
1424
+ matchNetworkCodeFromDaiSessionName(daiSessionName) {
1425
+ return this.pathTemplates.daiSessionPathTemplate.match(daiSessionName)
1426
+ .network_code;
1427
+ }
1428
+ /**
1429
+ * Parse the dai_session from DaiSession resource.
1430
+ *
1431
+ * @param {string} daiSessionName
1432
+ * A fully-qualified path representing DaiSession resource.
1433
+ * @returns {string} A string representing the dai_session.
1434
+ */
1435
+ matchDaiSessionFromDaiSessionName(daiSessionName) {
1436
+ return this.pathTemplates.daiSessionPathTemplate.match(daiSessionName)
1437
+ .dai_session;
1438
+ }
1439
+ /**
1440
+ * Return a fully-qualified defaultThirdPartyDataDeclaration resource name string.
1441
+ *
1442
+ * @param {string} network_code
1443
+ * @returns {string} Resource name string.
1444
+ */
1445
+ defaultThirdPartyDataDeclarationPath(networkCode) {
1446
+ return this.pathTemplates.defaultThirdPartyDataDeclarationPathTemplate.render({
1447
+ network_code: networkCode,
1448
+ });
1449
+ }
1450
+ /**
1451
+ * Parse the network_code from DefaultThirdPartyDataDeclaration resource.
1452
+ *
1453
+ * @param {string} defaultThirdPartyDataDeclarationName
1454
+ * A fully-qualified path representing DefaultThirdPartyDataDeclaration resource.
1455
+ * @returns {string} A string representing the network_code.
1456
+ */
1457
+ matchNetworkCodeFromDefaultThirdPartyDataDeclarationName(defaultThirdPartyDataDeclarationName) {
1458
+ return this.pathTemplates.defaultThirdPartyDataDeclarationPathTemplate.match(defaultThirdPartyDataDeclarationName).network_code;
1459
+ }
1460
+ /**
1461
+ * Return a fully-qualified deviceCapability resource name string.
1462
+ *
1463
+ * @param {string} network_code
1464
+ * @param {string} device_capability
1465
+ * @returns {string} Resource name string.
1466
+ */
1467
+ deviceCapabilityPath(networkCode, deviceCapability) {
1468
+ return this.pathTemplates.deviceCapabilityPathTemplate.render({
1469
+ network_code: networkCode,
1470
+ device_capability: deviceCapability,
1471
+ });
1472
+ }
1473
+ /**
1474
+ * Parse the network_code from DeviceCapability resource.
1475
+ *
1476
+ * @param {string} deviceCapabilityName
1477
+ * A fully-qualified path representing DeviceCapability resource.
1478
+ * @returns {string} A string representing the network_code.
1479
+ */
1480
+ matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
1481
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
1482
+ }
1483
+ /**
1484
+ * Parse the device_capability from DeviceCapability resource.
1485
+ *
1486
+ * @param {string} deviceCapabilityName
1487
+ * A fully-qualified path representing DeviceCapability resource.
1488
+ * @returns {string} A string representing the device_capability.
1489
+ */
1490
+ matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
1491
+ return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
1492
+ }
1493
+ /**
1494
+ * Return a fully-qualified deviceCategory resource name string.
1495
+ *
1496
+ * @param {string} network_code
1497
+ * @param {string} device_category
1498
+ * @returns {string} Resource name string.
1499
+ */
1500
+ deviceCategoryPath(networkCode, deviceCategory) {
1501
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
1502
+ network_code: networkCode,
1503
+ device_category: deviceCategory,
1504
+ });
1505
+ }
1506
+ /**
1507
+ * Parse the network_code from DeviceCategory resource.
1508
+ *
1509
+ * @param {string} deviceCategoryName
1510
+ * A fully-qualified path representing DeviceCategory resource.
1511
+ * @returns {string} A string representing the network_code.
1512
+ */
1513
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
1514
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
1515
+ }
1516
+ /**
1517
+ * Parse the device_category from DeviceCategory resource.
1518
+ *
1519
+ * @param {string} deviceCategoryName
1520
+ * A fully-qualified path representing DeviceCategory resource.
1521
+ * @returns {string} A string representing the device_category.
1522
+ */
1523
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
1524
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
1525
+ }
1526
+ /**
1527
+ * Return a fully-qualified deviceManufacturer resource name string.
1528
+ *
1529
+ * @param {string} network_code
1530
+ * @param {string} device_manufacturer
1531
+ * @returns {string} Resource name string.
1532
+ */
1533
+ deviceManufacturerPath(networkCode, deviceManufacturer) {
1534
+ return this.pathTemplates.deviceManufacturerPathTemplate.render({
1535
+ network_code: networkCode,
1536
+ device_manufacturer: deviceManufacturer,
1537
+ });
1538
+ }
1539
+ /**
1540
+ * Parse the network_code from DeviceManufacturer resource.
1541
+ *
1542
+ * @param {string} deviceManufacturerName
1543
+ * A fully-qualified path representing DeviceManufacturer resource.
1544
+ * @returns {string} A string representing the network_code.
1545
+ */
1546
+ matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
1547
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
1548
+ }
1549
+ /**
1550
+ * Parse the device_manufacturer from DeviceManufacturer resource.
1551
+ *
1552
+ * @param {string} deviceManufacturerName
1553
+ * A fully-qualified path representing DeviceManufacturer resource.
1554
+ * @returns {string} A string representing the device_manufacturer.
1555
+ */
1556
+ matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
1557
+ return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
1558
+ }
1559
+ /**
1560
+ * Return a fully-qualified entitySignalsMapping resource name string.
1561
+ *
1562
+ * @param {string} network_code
1563
+ * @param {string} entity_signals_mapping
1564
+ * @returns {string} Resource name string.
1565
+ */
1566
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
1567
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
1568
+ network_code: networkCode,
1569
+ entity_signals_mapping: entitySignalsMapping,
1570
+ });
1571
+ }
1572
+ /**
1573
+ * Parse the network_code from EntitySignalsMapping resource.
1574
+ *
1575
+ * @param {string} entitySignalsMappingName
1576
+ * A fully-qualified path representing EntitySignalsMapping resource.
1577
+ * @returns {string} A string representing the network_code.
1578
+ */
1579
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
1580
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
1581
+ }
1582
+ /**
1583
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
1584
+ *
1585
+ * @param {string} entitySignalsMappingName
1586
+ * A fully-qualified path representing EntitySignalsMapping resource.
1587
+ * @returns {string} A string representing the entity_signals_mapping.
1588
+ */
1589
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
1590
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
1591
+ }
1592
+ /**
1593
+ * Return a fully-qualified geoTarget resource name string.
1594
+ *
1595
+ * @param {string} network_code
1596
+ * @param {string} geo_target
1597
+ * @returns {string} Resource name string.
1598
+ */
1599
+ geoTargetPath(networkCode, geoTarget) {
1600
+ return this.pathTemplates.geoTargetPathTemplate.render({
1601
+ network_code: networkCode,
1602
+ geo_target: geoTarget,
1603
+ });
1604
+ }
1605
+ /**
1606
+ * Parse the network_code from GeoTarget resource.
1607
+ *
1608
+ * @param {string} geoTargetName
1609
+ * A fully-qualified path representing GeoTarget resource.
1610
+ * @returns {string} A string representing the network_code.
1611
+ */
1612
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
1613
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1614
+ .network_code;
1615
+ }
1616
+ /**
1617
+ * Parse the geo_target from GeoTarget resource.
1618
+ *
1619
+ * @param {string} geoTargetName
1620
+ * A fully-qualified path representing GeoTarget resource.
1621
+ * @returns {string} A string representing the geo_target.
1622
+ */
1623
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
1624
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName)
1625
+ .geo_target;
1626
+ }
1627
+ /**
1628
+ * Return a fully-qualified label resource name string.
1629
+ *
1630
+ * @param {string} network_code
1631
+ * @param {string} label
1632
+ * @returns {string} Resource name string.
1633
+ */
1634
+ labelPath(networkCode, label) {
1635
+ return this.pathTemplates.labelPathTemplate.render({
1636
+ network_code: networkCode,
1637
+ label: label,
1638
+ });
1639
+ }
1640
+ /**
1641
+ * Parse the network_code from Label resource.
1642
+ *
1643
+ * @param {string} labelName
1644
+ * A fully-qualified path representing Label resource.
1645
+ * @returns {string} A string representing the network_code.
1646
+ */
1647
+ matchNetworkCodeFromLabelName(labelName) {
1648
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
1649
+ }
1650
+ /**
1651
+ * Parse the label from Label resource.
1652
+ *
1653
+ * @param {string} labelName
1654
+ * A fully-qualified path representing Label resource.
1655
+ * @returns {string} A string representing the label.
1656
+ */
1657
+ matchLabelFromLabelName(labelName) {
1658
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
1659
+ }
1660
+ /**
1661
+ * Return a fully-qualified lineItem resource name string.
1662
+ *
1663
+ * @param {string} network_code
1664
+ * @param {string} line_item
1665
+ * @returns {string} Resource name string.
1666
+ */
1667
+ lineItemPath(networkCode, lineItem) {
1668
+ return this.pathTemplates.lineItemPathTemplate.render({
1669
+ network_code: networkCode,
1670
+ line_item: lineItem,
1671
+ });
1672
+ }
1673
+ /**
1674
+ * Parse the network_code from LineItem resource.
1675
+ *
1676
+ * @param {string} lineItemName
1677
+ * A fully-qualified path representing LineItem resource.
1678
+ * @returns {string} A string representing the network_code.
1679
+ */
1680
+ matchNetworkCodeFromLineItemName(lineItemName) {
1681
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1682
+ .network_code;
1683
+ }
1684
+ /**
1685
+ * Parse the line_item from LineItem resource.
1686
+ *
1687
+ * @param {string} lineItemName
1688
+ * A fully-qualified path representing LineItem resource.
1689
+ * @returns {string} A string representing the line_item.
1690
+ */
1691
+ matchLineItemFromLineItemName(lineItemName) {
1692
+ return this.pathTemplates.lineItemPathTemplate.match(lineItemName)
1693
+ .line_item;
1694
+ }
1695
+ /**
1696
+ * Return a fully-qualified linkedDevice resource name string.
1697
+ *
1698
+ * @param {string} network_code
1699
+ * @param {string} linked_device
1700
+ * @returns {string} Resource name string.
1701
+ */
1702
+ linkedDevicePath(networkCode, linkedDevice) {
1703
+ return this.pathTemplates.linkedDevicePathTemplate.render({
1704
+ network_code: networkCode,
1705
+ linked_device: linkedDevice,
1706
+ });
1707
+ }
1708
+ /**
1709
+ * Parse the network_code from LinkedDevice resource.
1710
+ *
1711
+ * @param {string} linkedDeviceName
1712
+ * A fully-qualified path representing LinkedDevice resource.
1713
+ * @returns {string} A string representing the network_code.
1714
+ */
1715
+ matchNetworkCodeFromLinkedDeviceName(linkedDeviceName) {
1716
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1717
+ .network_code;
1718
+ }
1719
+ /**
1720
+ * Parse the linked_device from LinkedDevice resource.
1721
+ *
1722
+ * @param {string} linkedDeviceName
1723
+ * A fully-qualified path representing LinkedDevice resource.
1724
+ * @returns {string} A string representing the linked_device.
1725
+ */
1726
+ matchLinkedDeviceFromLinkedDeviceName(linkedDeviceName) {
1727
+ return this.pathTemplates.linkedDevicePathTemplate.match(linkedDeviceName)
1728
+ .linked_device;
1729
+ }
1730
+ /**
1731
+ * Return a fully-qualified liveStream resource name string.
1732
+ *
1733
+ * @param {string} network_code
1734
+ * @param {string} live_stream
1735
+ * @returns {string} Resource name string.
1736
+ */
1737
+ liveStreamPath(networkCode, liveStream) {
1738
+ return this.pathTemplates.liveStreamPathTemplate.render({
1739
+ network_code: networkCode,
1740
+ live_stream: liveStream,
1741
+ });
1742
+ }
1743
+ /**
1744
+ * Parse the network_code from LiveStream resource.
1745
+ *
1746
+ * @param {string} liveStreamName
1747
+ * A fully-qualified path representing LiveStream resource.
1748
+ * @returns {string} A string representing the network_code.
1749
+ */
1750
+ matchNetworkCodeFromLiveStreamName(liveStreamName) {
1751
+ return this.pathTemplates.liveStreamPathTemplate.match(liveStreamName)
1752
+ .network_code;
1753
+ }
1754
+ /**
1755
+ * Parse the live_stream from LiveStream resource.
1756
+ *
1757
+ * @param {string} liveStreamName
1758
+ * A fully-qualified path representing LiveStream resource.
1759
+ * @returns {string} A string representing the live_stream.
1760
+ */
1761
+ matchLiveStreamFromLiveStreamName(liveStreamName) {
1762
+ return this.pathTemplates.liveStreamPathTemplate.match(liveStreamName)
1763
+ .live_stream;
1764
+ }
1765
+ /**
1766
+ * Return a fully-qualified liveStreamEvent resource name string.
1767
+ *
1768
+ * @param {string} network_code
1769
+ * @param {string} live_stream_event
1770
+ * @returns {string} Resource name string.
1771
+ */
1772
+ liveStreamEventPath(networkCode, liveStreamEvent) {
1773
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
1774
+ network_code: networkCode,
1775
+ live_stream_event: liveStreamEvent,
1776
+ });
1777
+ }
1778
+ /**
1779
+ * Parse the network_code from LiveStreamEvent resource.
1780
+ *
1781
+ * @param {string} liveStreamEventName
1782
+ * A fully-qualified path representing LiveStreamEvent resource.
1783
+ * @returns {string} A string representing the network_code.
1784
+ */
1785
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
1786
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
1787
+ }
1788
+ /**
1789
+ * Parse the live_stream_event from LiveStreamEvent resource.
1790
+ *
1791
+ * @param {string} liveStreamEventName
1792
+ * A fully-qualified path representing LiveStreamEvent resource.
1793
+ * @returns {string} A string representing the live_stream_event.
1794
+ */
1795
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
1796
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
1797
+ }
1798
+ /**
1799
+ * Return a fully-qualified mobileCarrier resource name string.
1800
+ *
1801
+ * @param {string} network_code
1802
+ * @param {string} mobile_carrier
1803
+ * @returns {string} Resource name string.
1804
+ */
1805
+ mobileCarrierPath(networkCode, mobileCarrier) {
1806
+ return this.pathTemplates.mobileCarrierPathTemplate.render({
1807
+ network_code: networkCode,
1808
+ mobile_carrier: mobileCarrier,
1809
+ });
1810
+ }
1811
+ /**
1812
+ * Parse the network_code from MobileCarrier resource.
1813
+ *
1814
+ * @param {string} mobileCarrierName
1815
+ * A fully-qualified path representing MobileCarrier resource.
1816
+ * @returns {string} A string representing the network_code.
1817
+ */
1818
+ matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
1819
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1820
+ .network_code;
1821
+ }
1822
+ /**
1823
+ * Parse the mobile_carrier from MobileCarrier resource.
1824
+ *
1825
+ * @param {string} mobileCarrierName
1826
+ * A fully-qualified path representing MobileCarrier resource.
1827
+ * @returns {string} A string representing the mobile_carrier.
1828
+ */
1829
+ matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
1830
+ return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName)
1831
+ .mobile_carrier;
1832
+ }
1833
+ /**
1834
+ * Return a fully-qualified mobileDevice resource name string.
1835
+ *
1836
+ * @param {string} network_code
1837
+ * @param {string} mobile_device
1838
+ * @returns {string} Resource name string.
1839
+ */
1840
+ mobileDevicePath(networkCode, mobileDevice) {
1841
+ return this.pathTemplates.mobileDevicePathTemplate.render({
1842
+ network_code: networkCode,
1843
+ mobile_device: mobileDevice,
1844
+ });
1845
+ }
1846
+ /**
1847
+ * Parse the network_code from MobileDevice resource.
1848
+ *
1849
+ * @param {string} mobileDeviceName
1850
+ * A fully-qualified path representing MobileDevice resource.
1851
+ * @returns {string} A string representing the network_code.
1852
+ */
1853
+ matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
1854
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1855
+ .network_code;
1856
+ }
1857
+ /**
1858
+ * Parse the mobile_device from MobileDevice resource.
1859
+ *
1860
+ * @param {string} mobileDeviceName
1861
+ * A fully-qualified path representing MobileDevice resource.
1862
+ * @returns {string} A string representing the mobile_device.
1863
+ */
1864
+ matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
1865
+ return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName)
1866
+ .mobile_device;
1867
+ }
1868
+ /**
1869
+ * Return a fully-qualified mobileDeviceSubmodel resource name string.
1870
+ *
1871
+ * @param {string} network_code
1872
+ * @param {string} mobile_device_submodel
1873
+ * @returns {string} Resource name string.
1874
+ */
1875
+ mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
1876
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
1877
+ network_code: networkCode,
1878
+ mobile_device_submodel: mobileDeviceSubmodel,
1879
+ });
1880
+ }
1881
+ /**
1882
+ * Parse the network_code from MobileDeviceSubmodel resource.
1883
+ *
1884
+ * @param {string} mobileDeviceSubmodelName
1885
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1886
+ * @returns {string} A string representing the network_code.
1887
+ */
1888
+ matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1889
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
1890
+ }
1891
+ /**
1892
+ * Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
1893
+ *
1894
+ * @param {string} mobileDeviceSubmodelName
1895
+ * A fully-qualified path representing MobileDeviceSubmodel resource.
1896
+ * @returns {string} A string representing the mobile_device_submodel.
1897
+ */
1898
+ matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
1899
+ return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
1900
+ }
1901
+ /**
1902
+ * Return a fully-qualified nativeStyle resource name string.
1903
+ *
1904
+ * @param {string} network_code
1905
+ * @param {string} native_style
1906
+ * @returns {string} Resource name string.
1907
+ */
1908
+ nativeStylePath(networkCode, nativeStyle) {
1909
+ return this.pathTemplates.nativeStylePathTemplate.render({
1910
+ network_code: networkCode,
1911
+ native_style: nativeStyle,
1912
+ });
1913
+ }
1914
+ /**
1915
+ * Parse the network_code from NativeStyle resource.
1916
+ *
1917
+ * @param {string} nativeStyleName
1918
+ * A fully-qualified path representing NativeStyle resource.
1919
+ * @returns {string} A string representing the network_code.
1920
+ */
1921
+ matchNetworkCodeFromNativeStyleName(nativeStyleName) {
1922
+ return this.pathTemplates.nativeStylePathTemplate.match(nativeStyleName)
1923
+ .network_code;
1924
+ }
1925
+ /**
1926
+ * Parse the native_style from NativeStyle resource.
1927
+ *
1928
+ * @param {string} nativeStyleName
1929
+ * A fully-qualified path representing NativeStyle resource.
1930
+ * @returns {string} A string representing the native_style.
1931
+ */
1932
+ matchNativeStyleFromNativeStyleName(nativeStyleName) {
1933
+ return this.pathTemplates.nativeStylePathTemplate.match(nativeStyleName)
1934
+ .native_style;
1935
+ }
1936
+ /**
1937
+ * Return a fully-qualified network resource name string.
1938
+ *
1939
+ * @param {string} network_code
1940
+ * @returns {string} Resource name string.
1941
+ */
1942
+ networkPath(networkCode) {
1943
+ return this.pathTemplates.networkPathTemplate.render({
1944
+ network_code: networkCode,
1945
+ });
1946
+ }
1947
+ /**
1948
+ * Parse the network_code from Network resource.
1949
+ *
1950
+ * @param {string} networkName
1951
+ * A fully-qualified path representing Network resource.
1952
+ * @returns {string} A string representing the network_code.
1953
+ */
1954
+ matchNetworkCodeFromNetworkName(networkName) {
1955
+ return this.pathTemplates.networkPathTemplate.match(networkName)
1956
+ .network_code;
1957
+ }
1958
+ /**
1959
+ * Return a fully-qualified operatingSystem resource name string.
1960
+ *
1961
+ * @param {string} network_code
1962
+ * @param {string} operating_system
1963
+ * @returns {string} Resource name string.
1964
+ */
1965
+ operatingSystemPath(networkCode, operatingSystem) {
1966
+ return this.pathTemplates.operatingSystemPathTemplate.render({
1967
+ network_code: networkCode,
1968
+ operating_system: operatingSystem,
1969
+ });
1970
+ }
1971
+ /**
1972
+ * Parse the network_code from OperatingSystem resource.
1973
+ *
1974
+ * @param {string} operatingSystemName
1975
+ * A fully-qualified path representing OperatingSystem resource.
1976
+ * @returns {string} A string representing the network_code.
1977
+ */
1978
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
1979
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
1980
+ }
1981
+ /**
1982
+ * Parse the operating_system from OperatingSystem resource.
1983
+ *
1984
+ * @param {string} operatingSystemName
1985
+ * A fully-qualified path representing OperatingSystem resource.
1986
+ * @returns {string} A string representing the operating_system.
1987
+ */
1988
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
1989
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
1990
+ }
1991
+ /**
1992
+ * Return a fully-qualified operatingSystemVersion resource name string.
1993
+ *
1994
+ * @param {string} network_code
1995
+ * @param {string} operating_system_version
1996
+ * @returns {string} Resource name string.
1997
+ */
1998
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
1999
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
2000
+ network_code: networkCode,
2001
+ operating_system_version: operatingSystemVersion,
2002
+ });
2003
+ }
2004
+ /**
2005
+ * Parse the network_code from OperatingSystemVersion resource.
2006
+ *
2007
+ * @param {string} operatingSystemVersionName
2008
+ * A fully-qualified path representing OperatingSystemVersion resource.
2009
+ * @returns {string} A string representing the network_code.
2010
+ */
2011
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
2012
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
2013
+ }
2014
+ /**
2015
+ * Parse the operating_system_version from OperatingSystemVersion resource.
2016
+ *
2017
+ * @param {string} operatingSystemVersionName
2018
+ * A fully-qualified path representing OperatingSystemVersion resource.
2019
+ * @returns {string} A string representing the operating_system_version.
2020
+ */
2021
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
2022
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
2023
+ }
2024
+ /**
2025
+ * Return a fully-qualified order resource name string.
2026
+ *
2027
+ * @param {string} network_code
2028
+ * @param {string} order
2029
+ * @returns {string} Resource name string.
2030
+ */
2031
+ orderPath(networkCode, order) {
2032
+ return this.pathTemplates.orderPathTemplate.render({
2033
+ network_code: networkCode,
2034
+ order: order,
2035
+ });
2036
+ }
2037
+ /**
2038
+ * Parse the network_code from Order resource.
2039
+ *
2040
+ * @param {string} orderName
2041
+ * A fully-qualified path representing Order resource.
2042
+ * @returns {string} A string representing the network_code.
2043
+ */
2044
+ matchNetworkCodeFromOrderName(orderName) {
2045
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
2046
+ }
2047
+ /**
2048
+ * Parse the order from Order resource.
2049
+ *
2050
+ * @param {string} orderName
2051
+ * A fully-qualified path representing Order resource.
2052
+ * @returns {string} A string representing the order.
2053
+ */
2054
+ matchOrderFromOrderName(orderName) {
2055
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
2056
+ }
2057
+ /**
2058
+ * Return a fully-qualified partner resource name string.
2059
+ *
2060
+ * @param {string} network_code
2061
+ * @param {string} partner
2062
+ * @returns {string} Resource name string.
2063
+ */
2064
+ partnerPath(networkCode, partner) {
2065
+ return this.pathTemplates.partnerPathTemplate.render({
2066
+ network_code: networkCode,
2067
+ partner: partner,
2068
+ });
2069
+ }
2070
+ /**
2071
+ * Parse the network_code from Partner resource.
2072
+ *
2073
+ * @param {string} partnerName
2074
+ * A fully-qualified path representing Partner resource.
2075
+ * @returns {string} A string representing the network_code.
2076
+ */
2077
+ matchNetworkCodeFromPartnerName(partnerName) {
2078
+ return this.pathTemplates.partnerPathTemplate.match(partnerName)
2079
+ .network_code;
2080
+ }
2081
+ /**
2082
+ * Parse the partner from Partner resource.
2083
+ *
2084
+ * @param {string} partnerName
2085
+ * A fully-qualified path representing Partner resource.
2086
+ * @returns {string} A string representing the partner.
2087
+ */
2088
+ matchPartnerFromPartnerName(partnerName) {
2089
+ return this.pathTemplates.partnerPathTemplate.match(partnerName).partner;
2090
+ }
2091
+ /**
2092
+ * Return a fully-qualified placement resource name string.
2093
+ *
2094
+ * @param {string} network_code
2095
+ * @param {string} placement
2096
+ * @returns {string} Resource name string.
2097
+ */
2098
+ placementPath(networkCode, placement) {
2099
+ return this.pathTemplates.placementPathTemplate.render({
2100
+ network_code: networkCode,
2101
+ placement: placement,
2102
+ });
2103
+ }
2104
+ /**
2105
+ * Parse the network_code from Placement resource.
2106
+ *
2107
+ * @param {string} placementName
2108
+ * A fully-qualified path representing Placement resource.
2109
+ * @returns {string} A string representing the network_code.
2110
+ */
2111
+ matchNetworkCodeFromPlacementName(placementName) {
2112
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2113
+ .network_code;
2114
+ }
2115
+ /**
2116
+ * Parse the placement from Placement resource.
2117
+ *
2118
+ * @param {string} placementName
2119
+ * A fully-qualified path representing Placement resource.
2120
+ * @returns {string} A string representing the placement.
2121
+ */
2122
+ matchPlacementFromPlacementName(placementName) {
2123
+ return this.pathTemplates.placementPathTemplate.match(placementName)
2124
+ .placement;
2125
+ }
2126
+ /**
2127
+ * Return a fully-qualified privateAuction resource name string.
2128
+ *
2129
+ * @param {string} network_code
2130
+ * @param {string} private_auction
2131
+ * @returns {string} Resource name string.
2132
+ */
2133
+ privateAuctionPath(networkCode, privateAuction) {
2134
+ return this.pathTemplates.privateAuctionPathTemplate.render({
2135
+ network_code: networkCode,
2136
+ private_auction: privateAuction,
2137
+ });
2138
+ }
2139
+ /**
2140
+ * Parse the network_code from PrivateAuction resource.
2141
+ *
2142
+ * @param {string} privateAuctionName
2143
+ * A fully-qualified path representing PrivateAuction resource.
2144
+ * @returns {string} A string representing the network_code.
2145
+ */
2146
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
2147
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
2148
+ }
2149
+ /**
2150
+ * Parse the private_auction from PrivateAuction resource.
2151
+ *
2152
+ * @param {string} privateAuctionName
2153
+ * A fully-qualified path representing PrivateAuction resource.
2154
+ * @returns {string} A string representing the private_auction.
2155
+ */
2156
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
2157
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
2158
+ }
2159
+ /**
2160
+ * Return a fully-qualified privateAuctionDeal resource name string.
2161
+ *
2162
+ * @param {string} network_code
2163
+ * @param {string} private_auction_deal
2164
+ * @returns {string} Resource name string.
2165
+ */
2166
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
2167
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
2168
+ network_code: networkCode,
2169
+ private_auction_deal: privateAuctionDeal,
2170
+ });
2171
+ }
2172
+ /**
2173
+ * Parse the network_code from PrivateAuctionDeal resource.
2174
+ *
2175
+ * @param {string} privateAuctionDealName
2176
+ * A fully-qualified path representing PrivateAuctionDeal resource.
2177
+ * @returns {string} A string representing the network_code.
2178
+ */
2179
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
2180
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
2181
+ }
2182
+ /**
2183
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
2184
+ *
2185
+ * @param {string} privateAuctionDealName
2186
+ * A fully-qualified path representing PrivateAuctionDeal resource.
2187
+ * @returns {string} A string representing the private_auction_deal.
2188
+ */
2189
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
2190
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
2191
+ }
2192
+ /**
2193
+ * Return a fully-qualified programmaticBuyer resource name string.
2194
+ *
2195
+ * @param {string} network_code
2196
+ * @param {string} programmatic_buyer
2197
+ * @returns {string} Resource name string.
2198
+ */
2199
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
2200
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
2201
+ network_code: networkCode,
2202
+ programmatic_buyer: programmaticBuyer,
2203
+ });
2204
+ }
2205
+ /**
2206
+ * Parse the network_code from ProgrammaticBuyer resource.
2207
+ *
2208
+ * @param {string} programmaticBuyerName
2209
+ * A fully-qualified path representing ProgrammaticBuyer resource.
2210
+ * @returns {string} A string representing the network_code.
2211
+ */
2212
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
2213
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
2214
+ }
2215
+ /**
2216
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
2217
+ *
2218
+ * @param {string} programmaticBuyerName
2219
+ * A fully-qualified path representing ProgrammaticBuyer resource.
2220
+ * @returns {string} A string representing the programmatic_buyer.
2221
+ */
2222
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
2223
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
2224
+ }
2225
+ /**
2226
+ * Return a fully-qualified report resource name string.
2227
+ *
2228
+ * @param {string} network_code
2229
+ * @param {string} report
2230
+ * @returns {string} Resource name string.
2231
+ */
2232
+ reportPath(networkCode, report) {
2233
+ return this.pathTemplates.reportPathTemplate.render({
2234
+ network_code: networkCode,
2235
+ report: report,
2236
+ });
2237
+ }
2238
+ /**
2239
+ * Parse the network_code from Report resource.
2240
+ *
2241
+ * @param {string} reportName
2242
+ * A fully-qualified path representing Report resource.
2243
+ * @returns {string} A string representing the network_code.
2244
+ */
2245
+ matchNetworkCodeFromReportName(reportName) {
2246
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
2247
+ }
2248
+ /**
2249
+ * Parse the report from Report resource.
2250
+ *
2251
+ * @param {string} reportName
2252
+ * A fully-qualified path representing Report resource.
2253
+ * @returns {string} A string representing the report.
2254
+ */
2255
+ matchReportFromReportName(reportName) {
2256
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
2257
+ }
2258
+ /**
2259
+ * Return a fully-qualified richMediaAdsCompany resource name string.
2260
+ *
2261
+ * @param {string} network_code
2262
+ * @param {string} rich_media_ads_company
2263
+ * @returns {string} Resource name string.
2264
+ */
2265
+ richMediaAdsCompanyPath(networkCode, richMediaAdsCompany) {
2266
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.render({
2267
+ network_code: networkCode,
2268
+ rich_media_ads_company: richMediaAdsCompany,
2269
+ });
2270
+ }
2271
+ /**
2272
+ * Parse the network_code from RichMediaAdsCompany resource.
2273
+ *
2274
+ * @param {string} richMediaAdsCompanyName
2275
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2276
+ * @returns {string} A string representing the network_code.
2277
+ */
2278
+ matchNetworkCodeFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2279
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).network_code;
2280
+ }
2281
+ /**
2282
+ * Parse the rich_media_ads_company from RichMediaAdsCompany resource.
2283
+ *
2284
+ * @param {string} richMediaAdsCompanyName
2285
+ * A fully-qualified path representing RichMediaAdsCompany resource.
2286
+ * @returns {string} A string representing the rich_media_ads_company.
2287
+ */
2288
+ matchRichMediaAdsCompanyFromRichMediaAdsCompanyName(richMediaAdsCompanyName) {
2289
+ return this.pathTemplates.richMediaAdsCompanyPathTemplate.match(richMediaAdsCompanyName).rich_media_ads_company;
2290
+ }
2291
+ /**
2292
+ * Return a fully-qualified role resource name string.
2293
+ *
2294
+ * @param {string} network_code
2295
+ * @param {string} role
2296
+ * @returns {string} Resource name string.
2297
+ */
2298
+ rolePath(networkCode, role) {
2299
+ return this.pathTemplates.rolePathTemplate.render({
2300
+ network_code: networkCode,
2301
+ role: role,
2302
+ });
2303
+ }
2304
+ /**
2305
+ * Parse the network_code from Role resource.
2306
+ *
2307
+ * @param {string} roleName
2308
+ * A fully-qualified path representing Role resource.
2309
+ * @returns {string} A string representing the network_code.
2310
+ */
2311
+ matchNetworkCodeFromRoleName(roleName) {
2312
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
2313
+ }
2314
+ /**
2315
+ * Parse the role from Role resource.
2316
+ *
2317
+ * @param {string} roleName
2318
+ * A fully-qualified path representing Role resource.
2319
+ * @returns {string} A string representing the role.
2320
+ */
2321
+ matchRoleFromRoleName(roleName) {
2322
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
2323
+ }
2324
+ /**
2325
+ * Return a fully-qualified site resource name string.
2326
+ *
2327
+ * @param {string} network_code
2328
+ * @param {string} site
2329
+ * @returns {string} Resource name string.
2330
+ */
2331
+ sitePath(networkCode, site) {
2332
+ return this.pathTemplates.sitePathTemplate.render({
2333
+ network_code: networkCode,
2334
+ site: site,
2335
+ });
2336
+ }
2337
+ /**
2338
+ * Parse the network_code from Site resource.
2339
+ *
2340
+ * @param {string} siteName
2341
+ * A fully-qualified path representing Site resource.
2342
+ * @returns {string} A string representing the network_code.
2343
+ */
2344
+ matchNetworkCodeFromSiteName(siteName) {
2345
+ return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
2346
+ }
2347
+ /**
2348
+ * Parse the site from Site resource.
2349
+ *
2350
+ * @param {string} siteName
2351
+ * A fully-qualified path representing Site resource.
2352
+ * @returns {string} A string representing the site.
2353
+ */
2354
+ matchSiteFromSiteName(siteName) {
2355
+ return this.pathTemplates.sitePathTemplate.match(siteName).site;
2356
+ }
2357
+ /**
2358
+ * Return a fully-qualified slate resource name string.
2359
+ *
2360
+ * @param {string} network_code
2361
+ * @param {string} slate
2362
+ * @returns {string} Resource name string.
2363
+ */
2364
+ slatePath(networkCode, slate) {
2365
+ return this.pathTemplates.slatePathTemplate.render({
2366
+ network_code: networkCode,
2367
+ slate: slate,
2368
+ });
2369
+ }
2370
+ /**
2371
+ * Parse the network_code from Slate resource.
2372
+ *
2373
+ * @param {string} slateName
2374
+ * A fully-qualified path representing Slate resource.
2375
+ * @returns {string} A string representing the network_code.
2376
+ */
2377
+ matchNetworkCodeFromSlateName(slateName) {
2378
+ return this.pathTemplates.slatePathTemplate.match(slateName).network_code;
2379
+ }
2380
+ /**
2381
+ * Parse the slate from Slate resource.
2382
+ *
2383
+ * @param {string} slateName
2384
+ * A fully-qualified path representing Slate resource.
2385
+ * @returns {string} A string representing the slate.
2386
+ */
2387
+ matchSlateFromSlateName(slateName) {
2388
+ return this.pathTemplates.slatePathTemplate.match(slateName).slate;
2389
+ }
2390
+ /**
2391
+ * Return a fully-qualified suggestedAdUnit resource name string.
2392
+ *
2393
+ * @param {string} network_code
2394
+ * @param {string} suggested_ad_unit
2395
+ * @returns {string} Resource name string.
2396
+ */
2397
+ suggestedAdUnitPath(networkCode, suggestedAdUnit) {
2398
+ return this.pathTemplates.suggestedAdUnitPathTemplate.render({
2399
+ network_code: networkCode,
2400
+ suggested_ad_unit: suggestedAdUnit,
2401
+ });
2402
+ }
2403
+ /**
2404
+ * Parse the network_code from SuggestedAdUnit resource.
2405
+ *
2406
+ * @param {string} suggestedAdUnitName
2407
+ * A fully-qualified path representing SuggestedAdUnit resource.
2408
+ * @returns {string} A string representing the network_code.
2409
+ */
2410
+ matchNetworkCodeFromSuggestedAdUnitName(suggestedAdUnitName) {
2411
+ return this.pathTemplates.suggestedAdUnitPathTemplate.match(suggestedAdUnitName).network_code;
2412
+ }
2413
+ /**
2414
+ * Parse the suggested_ad_unit from SuggestedAdUnit resource.
2415
+ *
2416
+ * @param {string} suggestedAdUnitName
2417
+ * A fully-qualified path representing SuggestedAdUnit resource.
2418
+ * @returns {string} A string representing the suggested_ad_unit.
2419
+ */
2420
+ matchSuggestedAdUnitFromSuggestedAdUnitName(suggestedAdUnitName) {
2421
+ return this.pathTemplates.suggestedAdUnitPathTemplate.match(suggestedAdUnitName).suggested_ad_unit;
2422
+ }
2423
+ /**
2424
+ * Return a fully-qualified targetingPreset resource name string.
2425
+ *
2426
+ * @param {string} network_code
2427
+ * @param {string} targeting_preset
2428
+ * @returns {string} Resource name string.
2429
+ */
2430
+ targetingPresetPath(networkCode, targetingPreset) {
2431
+ return this.pathTemplates.targetingPresetPathTemplate.render({
2432
+ network_code: networkCode,
2433
+ targeting_preset: targetingPreset,
2434
+ });
2435
+ }
2436
+ /**
2437
+ * Parse the network_code from TargetingPreset resource.
2438
+ *
2439
+ * @param {string} targetingPresetName
2440
+ * A fully-qualified path representing TargetingPreset resource.
2441
+ * @returns {string} A string representing the network_code.
2442
+ */
2443
+ matchNetworkCodeFromTargetingPresetName(targetingPresetName) {
2444
+ return this.pathTemplates.targetingPresetPathTemplate.match(targetingPresetName).network_code;
2445
+ }
2446
+ /**
2447
+ * Parse the targeting_preset from TargetingPreset resource.
2448
+ *
2449
+ * @param {string} targetingPresetName
2450
+ * A fully-qualified path representing TargetingPreset resource.
2451
+ * @returns {string} A string representing the targeting_preset.
2452
+ */
2453
+ matchTargetingPresetFromTargetingPresetName(targetingPresetName) {
2454
+ return this.pathTemplates.targetingPresetPathTemplate.match(targetingPresetName).targeting_preset;
2455
+ }
2456
+ /**
2457
+ * Return a fully-qualified taxonomyCategory resource name string.
2458
+ *
2459
+ * @param {string} network_code
2460
+ * @param {string} taxonomy_category
2461
+ * @returns {string} Resource name string.
2462
+ */
2463
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
2464
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
2465
+ network_code: networkCode,
2466
+ taxonomy_category: taxonomyCategory,
2467
+ });
2468
+ }
2469
+ /**
2470
+ * Parse the network_code from TaxonomyCategory resource.
2471
+ *
2472
+ * @param {string} taxonomyCategoryName
2473
+ * A fully-qualified path representing TaxonomyCategory resource.
2474
+ * @returns {string} A string representing the network_code.
2475
+ */
2476
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
2477
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
2478
+ }
2479
+ /**
2480
+ * Parse the taxonomy_category from TaxonomyCategory resource.
2481
+ *
2482
+ * @param {string} taxonomyCategoryName
2483
+ * A fully-qualified path representing TaxonomyCategory resource.
2484
+ * @returns {string} A string representing the taxonomy_category.
2485
+ */
2486
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
2487
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
2488
+ }
2489
+ /**
2490
+ * Return a fully-qualified team resource name string.
2491
+ *
2492
+ * @param {string} network_code
2493
+ * @param {string} team
2494
+ * @returns {string} Resource name string.
2495
+ */
2496
+ teamPath(networkCode, team) {
2497
+ return this.pathTemplates.teamPathTemplate.render({
2498
+ network_code: networkCode,
2499
+ team: team,
2500
+ });
2501
+ }
2502
+ /**
2503
+ * Parse the network_code from Team resource.
2504
+ *
2505
+ * @param {string} teamName
2506
+ * A fully-qualified path representing Team resource.
2507
+ * @returns {string} A string representing the network_code.
2508
+ */
2509
+ matchNetworkCodeFromTeamName(teamName) {
2510
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
2511
+ }
2512
+ /**
2513
+ * Parse the team from Team resource.
2514
+ *
2515
+ * @param {string} teamName
2516
+ * A fully-qualified path representing Team resource.
2517
+ * @returns {string} A string representing the team.
2518
+ */
2519
+ matchTeamFromTeamName(teamName) {
2520
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
2521
+ }
2522
+ /**
2523
+ * Return a fully-qualified thirdPartyCompany resource name string.
2524
+ *
2525
+ * @param {string} network_code
2526
+ * @param {string} third_party_company
2527
+ * @returns {string} Resource name string.
2528
+ */
2529
+ thirdPartyCompanyPath(networkCode, thirdPartyCompany) {
2530
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.render({
2531
+ network_code: networkCode,
2532
+ third_party_company: thirdPartyCompany,
2533
+ });
2534
+ }
2535
+ /**
2536
+ * Parse the network_code from ThirdPartyCompany resource.
2537
+ *
2538
+ * @param {string} thirdPartyCompanyName
2539
+ * A fully-qualified path representing ThirdPartyCompany resource.
2540
+ * @returns {string} A string representing the network_code.
2541
+ */
2542
+ matchNetworkCodeFromThirdPartyCompanyName(thirdPartyCompanyName) {
2543
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.match(thirdPartyCompanyName).network_code;
2544
+ }
2545
+ /**
2546
+ * Parse the third_party_company from ThirdPartyCompany resource.
2547
+ *
2548
+ * @param {string} thirdPartyCompanyName
2549
+ * A fully-qualified path representing ThirdPartyCompany resource.
2550
+ * @returns {string} A string representing the third_party_company.
2551
+ */
2552
+ matchThirdPartyCompanyFromThirdPartyCompanyName(thirdPartyCompanyName) {
2553
+ return this.pathTemplates.thirdPartyCompanyPathTemplate.match(thirdPartyCompanyName).third_party_company;
2554
+ }
2555
+ /**
2556
+ * Return a fully-qualified user resource name string.
2557
+ *
2558
+ * @param {string} network_code
2559
+ * @param {string} user
2560
+ * @returns {string} Resource name string.
2561
+ */
2562
+ userPath(networkCode, user) {
2563
+ return this.pathTemplates.userPathTemplate.render({
2564
+ network_code: networkCode,
2565
+ user: user,
2566
+ });
2567
+ }
2568
+ /**
2569
+ * Parse the network_code from User resource.
2570
+ *
2571
+ * @param {string} userName
2572
+ * A fully-qualified path representing User resource.
2573
+ * @returns {string} A string representing the network_code.
2574
+ */
2575
+ matchNetworkCodeFromUserName(userName) {
2576
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
2577
+ }
2578
+ /**
2579
+ * Parse the user from User resource.
2580
+ *
2581
+ * @param {string} userName
2582
+ * A fully-qualified path representing User resource.
2583
+ * @returns {string} A string representing the user.
2584
+ */
2585
+ matchUserFromUserName(userName) {
2586
+ return this.pathTemplates.userPathTemplate.match(userName).user;
2587
+ }
2588
+ /**
2589
+ * Return a fully-qualified viewabilityProvider resource name string.
2590
+ *
2591
+ * @param {string} network_code
2592
+ * @param {string} viewability_provider
2593
+ * @returns {string} Resource name string.
2594
+ */
2595
+ viewabilityProviderPath(networkCode, viewabilityProvider) {
2596
+ return this.pathTemplates.viewabilityProviderPathTemplate.render({
2597
+ network_code: networkCode,
2598
+ viewability_provider: viewabilityProvider,
2599
+ });
2600
+ }
2601
+ /**
2602
+ * Parse the network_code from ViewabilityProvider resource.
2603
+ *
2604
+ * @param {string} viewabilityProviderName
2605
+ * A fully-qualified path representing ViewabilityProvider resource.
2606
+ * @returns {string} A string representing the network_code.
2607
+ */
2608
+ matchNetworkCodeFromViewabilityProviderName(viewabilityProviderName) {
2609
+ return this.pathTemplates.viewabilityProviderPathTemplate.match(viewabilityProviderName).network_code;
2610
+ }
2611
+ /**
2612
+ * Parse the viewability_provider from ViewabilityProvider resource.
2613
+ *
2614
+ * @param {string} viewabilityProviderName
2615
+ * A fully-qualified path representing ViewabilityProvider resource.
2616
+ * @returns {string} A string representing the viewability_provider.
2617
+ */
2618
+ matchViewabilityProviderFromViewabilityProviderName(viewabilityProviderName) {
2619
+ return this.pathTemplates.viewabilityProviderPathTemplate.match(viewabilityProviderName).viewability_provider;
2620
+ }
2621
+ /**
2622
+ * Return a fully-qualified webProperty resource name string.
2623
+ *
2624
+ * @param {string} network_code
2625
+ * @param {string} web_property
2626
+ * @returns {string} Resource name string.
2627
+ */
2628
+ webPropertyPath(networkCode, webProperty) {
2629
+ return this.pathTemplates.webPropertyPathTemplate.render({
2630
+ network_code: networkCode,
2631
+ web_property: webProperty,
2632
+ });
2633
+ }
2634
+ /**
2635
+ * Parse the network_code from WebProperty resource.
2636
+ *
2637
+ * @param {string} webPropertyName
2638
+ * A fully-qualified path representing WebProperty resource.
2639
+ * @returns {string} A string representing the network_code.
2640
+ */
2641
+ matchNetworkCodeFromWebPropertyName(webPropertyName) {
2642
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2643
+ .network_code;
2644
+ }
2645
+ /**
2646
+ * Parse the web_property from WebProperty resource.
2647
+ *
2648
+ * @param {string} webPropertyName
2649
+ * A fully-qualified path representing WebProperty resource.
2650
+ * @returns {string} A string representing the web_property.
2651
+ */
2652
+ matchWebPropertyFromWebPropertyName(webPropertyName) {
2653
+ return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName)
2654
+ .web_property;
2655
+ }
2656
+ /**
2657
+ * Terminate the gRPC channel and close the client.
2658
+ *
2659
+ * The client will no longer be usable and all future behavior is undefined.
2660
+ * @returns {Promise} A promise that resolves when the client is closed.
2661
+ */
2662
+ close() {
2663
+ if (this.daiSessionServiceStub && !this._terminated) {
2664
+ return this.daiSessionServiceStub.then(stub => {
2665
+ this._log.info('ending gRPC channel');
2666
+ this._terminated = true;
2667
+ stub.close();
2668
+ });
2669
+ }
2670
+ return Promise.resolve();
2671
+ }
2672
+ }
2673
+ exports.DaiSessionServiceClient = DaiSessionServiceClient;
2674
+ //# sourceMappingURL=dai_session_service_client.js.map