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