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