@google-ads/admanager 0.3.0 → 0.4.1

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 (182) hide show
  1. package/README.md +86 -150
  2. package/build/protos/google/ads/admanager/v1/ad_break_messages.proto +134 -0
  3. package/build/protos/google/ads/admanager/v1/ad_break_service.proto +269 -0
  4. package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +1 -1
  5. package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +32 -26
  6. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +3 -1
  7. package/build/protos/google/ads/admanager/v1/admanager_error.proto +1 -1
  8. package/build/protos/google/ads/admanager/v1/applied_label.proto +1 -1
  9. package/build/protos/google/ads/admanager/v1/bandwidth_group_messages.proto +46 -0
  10. package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +129 -0
  11. package/build/protos/google/ads/admanager/v1/company_enums.proto +123 -0
  12. package/build/protos/google/ads/admanager/v1/company_messages.proto +6 -7
  13. package/build/protos/google/ads/admanager/v1/company_service.proto +3 -1
  14. package/build/protos/google/ads/admanager/v1/contact_messages.proto +4 -4
  15. package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +1 -1
  16. package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +12 -11
  17. package/build/protos/google/ads/admanager/v1/custom_field_service.proto +3 -1
  18. package/build/protos/google/ads/admanager/v1/custom_field_value.proto +1 -2
  19. package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +1 -1
  20. package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +1 -1
  21. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +3 -1
  22. package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +1 -1
  23. package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +14 -3
  24. package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +14 -6
  25. package/build/protos/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto +41 -0
  26. package/build/protos/google/ads/admanager/v1/device_category_messages.proto +45 -0
  27. package/build/protos/google/ads/admanager/v1/device_category_service.proto +129 -0
  28. package/build/protos/google/ads/admanager/v1/early_ad_break_notification_enums.proto +47 -0
  29. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +4 -4
  30. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +6 -4
  31. package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +1 -1
  32. package/build/protos/google/ads/admanager/v1/frequency_cap.proto +1 -1
  33. package/build/protos/google/ads/admanager/v1/geo_target_messages.proto +70 -0
  34. package/build/protos/google/ads/admanager/v1/geo_target_service.proto +128 -0
  35. package/build/protos/google/ads/admanager/v1/label_messages.proto +1 -1
  36. package/build/protos/google/ads/admanager/v1/live_stream_event_messages.proto +47 -0
  37. package/build/protos/google/ads/admanager/v1/network_messages.proto +2 -2
  38. package/build/protos/google/ads/admanager/v1/network_service.proto +4 -2
  39. package/build/protos/google/ads/admanager/v1/operating_system_messages.proto +45 -0
  40. package/build/protos/google/ads/admanager/v1/operating_system_service.proto +129 -0
  41. package/build/protos/google/ads/admanager/v1/operating_system_version_messages.proto +52 -0
  42. package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +133 -0
  43. package/build/protos/google/ads/admanager/v1/order_enums.proto +1 -1
  44. package/build/protos/google/ads/admanager/v1/order_messages.proto +24 -20
  45. package/build/protos/google/ads/admanager/v1/order_service.proto +3 -1
  46. package/build/protos/google/ads/admanager/v1/placement_enums.proto +1 -1
  47. package/build/protos/google/ads/admanager/v1/placement_messages.proto +14 -14
  48. package/build/protos/google/ads/admanager/v1/placement_service.proto +3 -1
  49. package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +119 -0
  50. package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +184 -0
  51. package/build/protos/google/ads/admanager/v1/private_auction_messages.proto +74 -0
  52. package/build/protos/google/ads/admanager/v1/private_auction_service.proto +180 -0
  53. package/build/protos/google/ads/admanager/v1/private_marketplace_enums.proto +50 -0
  54. package/build/protos/google/ads/admanager/v1/programmatic_buyer_messages.proto +72 -0
  55. package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +131 -0
  56. package/build/protos/google/ads/admanager/v1/report_messages.proto +3536 -0
  57. package/build/protos/google/ads/admanager/v1/report_service.proto +5 -3247
  58. package/build/protos/google/ads/admanager/v1/request_platform_enum.proto +49 -0
  59. package/build/protos/google/ads/admanager/v1/role_enums.proto +1 -1
  60. package/build/protos/google/ads/admanager/v1/role_messages.proto +6 -6
  61. package/build/protos/google/ads/admanager/v1/role_service.proto +3 -1
  62. package/build/protos/google/ads/admanager/v1/size.proto +7 -11
  63. package/build/protos/google/ads/admanager/v1/size_type_enum.proto +1 -1
  64. package/build/protos/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto +44 -0
  65. package/build/protos/google/ads/admanager/v1/targeting.proto +328 -0
  66. package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +7 -6
  67. package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +3 -1
  68. package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +1 -1
  69. package/build/protos/google/ads/admanager/v1/team_messages.proto +1 -5
  70. package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +1 -1
  71. package/build/protos/google/ads/admanager/v1/user_messages.proto +10 -9
  72. package/build/protos/google/ads/admanager/v1/user_service.proto +3 -1
  73. package/build/protos/google/ads/admanager/v1/video_position_enum.proto +47 -0
  74. package/build/protos/protos.d.ts +15832 -7575
  75. package/build/protos/protos.js +57744 -36372
  76. package/build/protos/protos.json +5795 -2511
  77. package/build/src/index.d.ts +28 -1
  78. package/build/src/index.js +20 -17
  79. package/build/src/index.js.map +1 -1
  80. package/build/src/v1/ad_break_service_client.d.ts +1040 -0
  81. package/build/src/v1/ad_break_service_client.js +1483 -0
  82. package/build/src/v1/ad_break_service_client.js.map +1 -0
  83. package/build/src/v1/ad_break_service_client_config.json +46 -0
  84. package/build/src/v1/ad_break_service_proto_list.json +74 -0
  85. package/build/src/v1/ad_unit_service_client.d.ts +331 -91
  86. package/build/src/v1/ad_unit_service_client.js +414 -106
  87. package/build/src/v1/ad_unit_service_client.js.map +1 -1
  88. package/build/src/v1/ad_unit_service_proto_list.json +29 -3
  89. package/build/src/v1/bandwidth_group_service_client.d.ts +904 -0
  90. package/build/src/v1/bandwidth_group_service_client.js +1369 -0
  91. package/build/src/v1/bandwidth_group_service_client.js.map +1 -0
  92. package/build/src/v1/bandwidth_group_service_client_config.json +34 -0
  93. package/build/src/v1/bandwidth_group_service_proto_list.json +74 -0
  94. package/build/src/v1/company_service_client.d.ts +291 -51
  95. package/build/src/v1/company_service_client.js +402 -81
  96. package/build/src/v1/company_service_client.js.map +1 -1
  97. package/build/src/v1/company_service_proto_list.json +29 -3
  98. package/build/src/v1/custom_field_service_client.d.ts +291 -51
  99. package/build/src/v1/custom_field_service_client.js +403 -85
  100. package/build/src/v1/custom_field_service_client.js.map +1 -1
  101. package/build/src/v1/custom_field_service_proto_list.json +29 -3
  102. package/build/src/v1/custom_targeting_key_service_client.d.ts +291 -51
  103. package/build/src/v1/custom_targeting_key_service_client.js +404 -88
  104. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
  105. package/build/src/v1/custom_targeting_key_service_proto_list.json +29 -3
  106. package/build/src/v1/custom_targeting_value_service_client.d.ts +298 -58
  107. package/build/src/v1/custom_targeting_value_service_client.js +406 -90
  108. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
  109. package/build/src/v1/custom_targeting_value_service_proto_list.json +29 -3
  110. package/build/src/v1/device_category_service_client.d.ts +904 -0
  111. package/build/src/v1/device_category_service_client.js +1369 -0
  112. package/build/src/v1/device_category_service_client.js.map +1 -0
  113. package/build/src/v1/device_category_service_client_config.json +34 -0
  114. package/build/src/v1/device_category_service_proto_list.json +74 -0
  115. package/build/src/v1/entity_signals_mapping_service_client.d.ts +298 -58
  116. package/build/src/v1/entity_signals_mapping_service_client.js +444 -124
  117. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
  118. package/build/src/v1/entity_signals_mapping_service_proto_list.json +29 -3
  119. package/build/src/v1/gapic_metadata.json +412 -0
  120. package/build/src/v1/geo_target_service_client.d.ts +904 -0
  121. package/build/src/v1/geo_target_service_client.js +1369 -0
  122. package/build/src/v1/geo_target_service_client.js.map +1 -0
  123. package/build/src/v1/geo_target_service_client_config.json +34 -0
  124. package/build/src/v1/geo_target_service_proto_list.json +74 -0
  125. package/build/src/v1/index.d.ts +9 -0
  126. package/build/src/v1/index.js +19 -1
  127. package/build/src/v1/index.js.map +1 -1
  128. package/build/src/v1/network_service_client.d.ts +252 -12
  129. package/build/src/v1/network_service_client.js +397 -65
  130. package/build/src/v1/network_service_client.js.map +1 -1
  131. package/build/src/v1/network_service_proto_list.json +29 -3
  132. package/build/src/v1/operating_system_service_client.d.ts +904 -0
  133. package/build/src/v1/operating_system_service_client.js +1369 -0
  134. package/build/src/v1/operating_system_service_client.js.map +1 -0
  135. package/build/src/v1/operating_system_service_client_config.json +34 -0
  136. package/build/src/v1/operating_system_service_proto_list.json +74 -0
  137. package/build/src/v1/operating_system_version_service_client.d.ts +911 -0
  138. package/build/src/v1/operating_system_version_service_client.js +1373 -0
  139. package/build/src/v1/operating_system_version_service_client.js.map +1 -0
  140. package/build/src/v1/operating_system_version_service_client_config.json +34 -0
  141. package/build/src/v1/operating_system_version_service_proto_list.json +74 -0
  142. package/build/src/v1/order_service_client.d.ts +296 -56
  143. package/build/src/v1/order_service_client.js +402 -81
  144. package/build/src/v1/order_service_client.js.map +1 -1
  145. package/build/src/v1/order_service_proto_list.json +29 -3
  146. package/build/src/v1/placement_service_client.d.ts +291 -51
  147. package/build/src/v1/placement_service_client.js +402 -81
  148. package/build/src/v1/placement_service_client.js.map +1 -1
  149. package/build/src/v1/placement_service_proto_list.json +29 -3
  150. package/build/src/v1/private_auction_deal_service_client.d.ts +965 -0
  151. package/build/src/v1/private_auction_deal_service_client.js +1445 -0
  152. package/build/src/v1/private_auction_deal_service_client.js.map +1 -0
  153. package/build/src/v1/private_auction_deal_service_client_config.json +42 -0
  154. package/build/src/v1/private_auction_deal_service_proto_list.json +74 -0
  155. package/build/src/v1/private_auction_service_client.d.ts +962 -0
  156. package/build/src/v1/private_auction_service_client.js +1443 -0
  157. package/build/src/v1/private_auction_service_client.js.map +1 -0
  158. package/build/src/v1/private_auction_service_client_config.json +42 -0
  159. package/build/src/v1/private_auction_service_proto_list.json +74 -0
  160. package/build/src/v1/programmatic_buyer_service_client.d.ts +905 -0
  161. package/build/src/v1/programmatic_buyer_service_client.js +1369 -0
  162. package/build/src/v1/programmatic_buyer_service_client.js.map +1 -0
  163. package/build/src/v1/programmatic_buyer_service_client_config.json +34 -0
  164. package/build/src/v1/programmatic_buyer_service_proto_list.json +74 -0
  165. package/build/src/v1/report_service_client.d.ts +350 -110
  166. package/build/src/v1/report_service_client.js +471 -177
  167. package/build/src/v1/report_service_client.js.map +1 -1
  168. package/build/src/v1/report_service_proto_list.json +29 -3
  169. package/build/src/v1/role_service_client.d.ts +290 -50
  170. package/build/src/v1/role_service_client.js +402 -81
  171. package/build/src/v1/role_service_client.js.map +1 -1
  172. package/build/src/v1/role_service_proto_list.json +29 -3
  173. package/build/src/v1/taxonomy_category_service_client.d.ts +291 -51
  174. package/build/src/v1/taxonomy_category_service_client.js +404 -87
  175. package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
  176. package/build/src/v1/taxonomy_category_service_proto_list.json +29 -3
  177. package/build/src/v1/user_service_client.d.ts +251 -11
  178. package/build/src/v1/user_service_client.js +388 -59
  179. package/build/src/v1/user_service_client.js.map +1 -1
  180. package/build/src/v1/user_service_proto_list.json +29 -3
  181. package/package.json +4 -4
  182. package/CHANGELOG.md +0 -40
@@ -0,0 +1,1373 @@
1
+ "use strict";
2
+ // Copyright 2025 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.OperatingSystemVersionServiceClient = 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/operating_system_version_service_client_config.json`.
26
+ * This file defines retry strategy and timeouts for all API methods in this library.
27
+ */
28
+ const gapicConfig = require("./operating_system_version_service_client_config.json");
29
+ const version = require('../../../package.json').version;
30
+ /**
31
+ * Provides methods for handling `OperatingSystemVersion` objects.
32
+ * @class
33
+ * @memberof v1
34
+ */
35
+ class OperatingSystemVersionServiceClient {
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
+ operatingSystemVersionServiceStub;
57
+ /**
58
+ * Construct an instance of OperatingSystemVersionServiceClient.
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 OperatingSystemVersionServiceClient({fallback: true}, gax);
94
+ * ```
95
+ */
96
+ constructor(opts, gaxInstance) {
97
+ // Ensure that options include all the required fields.
98
+ const staticMembers = this.constructor;
99
+ if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
100
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
101
+ }
102
+ const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
103
+ this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
104
+ this._servicePath = 'admanager.' + this._universeDomain;
105
+ const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
106
+ this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
107
+ const port = opts?.port || staticMembers.port;
108
+ const clientConfig = opts?.clientConfig ?? {};
109
+ // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute).
110
+ if (!opts) {
111
+ opts = { fallback: true };
112
+ }
113
+ else {
114
+ opts.fallback = opts.fallback ?? true;
115
+ }
116
+ const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
117
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
118
+ // Request numeric enum values if REST transport is used.
119
+ opts.numericEnums = true;
120
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
121
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
122
+ opts['scopes'] = staticMembers.scopes;
123
+ }
124
+ // Load google-gax module synchronously if needed
125
+ if (!gaxInstance) {
126
+ gaxInstance = require('google-gax');
127
+ }
128
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
129
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
130
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
131
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
132
+ // Save options to use in initialize() method.
133
+ this._opts = opts;
134
+ // Save the auth object to the client, for use by other methods.
135
+ this.auth = this._gaxGrpc.auth;
136
+ // Set useJWTAccessWithScope on the auth object.
137
+ this.auth.useJWTAccessWithScope = true;
138
+ // Set defaultServicePath on the auth object.
139
+ this.auth.defaultServicePath = this._servicePath;
140
+ // Set the default scopes in auth client if needed.
141
+ if (servicePath === this._servicePath) {
142
+ this.auth.defaultScopes = staticMembers.scopes;
143
+ }
144
+ // Determine the client header string.
145
+ const clientHeader = [
146
+ `gax/${this._gaxModule.version}`,
147
+ `gapic/${version}`,
148
+ ];
149
+ if (typeof process === 'object' && 'versions' in process) {
150
+ clientHeader.push(`gl-node/${process.versions.node}`);
151
+ }
152
+ else {
153
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
154
+ }
155
+ if (!opts.fallback) {
156
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
157
+ }
158
+ else {
159
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
160
+ }
161
+ if (opts.libName && opts.libVersion) {
162
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
163
+ }
164
+ // Load the applicable protos.
165
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
166
+ // This API contains "path templates"; forward-slash-separated
167
+ // identifiers to uniquely identify resources within the API.
168
+ // Create useful helper objects for these.
169
+ this.pathTemplates = {
170
+ adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
171
+ adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
172
+ bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
173
+ companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
174
+ contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
175
+ customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
176
+ customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
177
+ customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
178
+ deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
179
+ entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
180
+ geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
181
+ labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
182
+ liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
183
+ networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
184
+ operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
185
+ operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
186
+ orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
187
+ placementPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/placements/{placement}'),
188
+ privateAuctionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctions/{private_auction}'),
189
+ privateAuctionDealPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/privateAuctionDeals/{private_auction_deal}'),
190
+ programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
191
+ reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
192
+ rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
193
+ taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
194
+ teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
195
+ userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
196
+ };
197
+ // Some of the methods on this service return "paged" results,
198
+ // (e.g. 50 results at a time, with tokens to get subsequent
199
+ // pages). Denote the keys used for pagination and results.
200
+ this.descriptors.page = {
201
+ listOperatingSystemVersions: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'operatingSystemVersions')
202
+ };
203
+ // Put together the default options sent with requests.
204
+ this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.OperatingSystemVersionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
205
+ // Set up a dictionary of "inner API calls"; the core implementation
206
+ // of calling the API is handled in `google-gax`, with this code
207
+ // merely providing the destination and request information.
208
+ this.innerApiCalls = {};
209
+ // Add a warn function to the client constructor so it can be easily tested.
210
+ this.warn = this._gaxModule.warn;
211
+ }
212
+ /**
213
+ * Initialize the client.
214
+ * Performs asynchronous operations (such as authentication) and prepares the client.
215
+ * This function will be called automatically when any class method is called for the
216
+ * first time, but if you need to initialize it before calling an actual method,
217
+ * feel free to call initialize() directly.
218
+ *
219
+ * You can await on this method if you want to make sure the client is initialized.
220
+ *
221
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
222
+ */
223
+ initialize() {
224
+ // If the client stub promise is already initialized, return immediately.
225
+ if (this.operatingSystemVersionServiceStub) {
226
+ return this.operatingSystemVersionServiceStub;
227
+ }
228
+ // Put together the "service stub" for
229
+ // google.ads.admanager.v1.OperatingSystemVersionService.
230
+ this.operatingSystemVersionServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
231
+ this._protos.lookupService('google.ads.admanager.v1.OperatingSystemVersionService') :
232
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
233
+ this._protos.google.ads.admanager.v1.OperatingSystemVersionService, this._opts, this._providedCustomServicePath);
234
+ // Iterate over each of the methods that the service provides
235
+ // and create an API call method for each.
236
+ const operatingSystemVersionServiceStubMethods = ['getOperatingSystemVersion', 'listOperatingSystemVersions'];
237
+ for (const methodName of operatingSystemVersionServiceStubMethods) {
238
+ const callPromise = this.operatingSystemVersionServiceStub.then(stub => (...args) => {
239
+ if (this._terminated) {
240
+ return Promise.reject('The client has already been closed.');
241
+ }
242
+ const func = stub[methodName];
243
+ return func.apply(stub, args);
244
+ }, (err) => () => {
245
+ throw err;
246
+ });
247
+ const descriptor = this.descriptors.page[methodName] ||
248
+ undefined;
249
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
250
+ this.innerApiCalls[methodName] = apiCall;
251
+ }
252
+ return this.operatingSystemVersionServiceStub;
253
+ }
254
+ /**
255
+ * The DNS address for this API service.
256
+ * @deprecated Use the apiEndpoint method of the client instance.
257
+ * @returns {string} The DNS address for this service.
258
+ */
259
+ static get servicePath() {
260
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
261
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
262
+ }
263
+ return 'admanager.googleapis.com';
264
+ }
265
+ /**
266
+ * The DNS address for this API service - same as servicePath.
267
+ * @deprecated Use the apiEndpoint method of the client instance.
268
+ * @returns {string} The DNS address for this service.
269
+ */
270
+ static get apiEndpoint() {
271
+ if (typeof process === 'object' && typeof process.emitWarning === 'function') {
272
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
273
+ }
274
+ return 'admanager.googleapis.com';
275
+ }
276
+ /**
277
+ * The DNS address for this API service.
278
+ * @returns {string} The DNS address for this service.
279
+ */
280
+ get apiEndpoint() {
281
+ return this._servicePath;
282
+ }
283
+ get universeDomain() {
284
+ return this._universeDomain;
285
+ }
286
+ /**
287
+ * The port for this API service.
288
+ * @returns {number} The default port for this service.
289
+ */
290
+ static get port() {
291
+ return 443;
292
+ }
293
+ /**
294
+ * The scopes needed to make gRPC calls for every method defined
295
+ * in this service.
296
+ * @returns {string[]} List of default scopes.
297
+ */
298
+ static get scopes() {
299
+ return [
300
+ 'https://www.googleapis.com/auth/admanager'
301
+ ];
302
+ }
303
+ /**
304
+ * Return the project ID used by this class.
305
+ * @returns {Promise} A promise that resolves to string containing the project ID.
306
+ */
307
+ getProjectId(callback) {
308
+ if (callback) {
309
+ this.auth.getProjectId(callback);
310
+ return;
311
+ }
312
+ return this.auth.getProjectId();
313
+ }
314
+ getOperatingSystemVersion(request, optionsOrCallback, callback) {
315
+ request = request || {};
316
+ let options;
317
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
318
+ callback = optionsOrCallback;
319
+ options = {};
320
+ }
321
+ else {
322
+ options = optionsOrCallback;
323
+ }
324
+ options = options || {};
325
+ options.otherArgs = options.otherArgs || {};
326
+ options.otherArgs.headers = options.otherArgs.headers || {};
327
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
328
+ 'name': request.name ?? '',
329
+ });
330
+ this.initialize().catch(err => { throw err; });
331
+ this._log.info('getOperatingSystemVersion request %j', request);
332
+ const wrappedCallback = callback
333
+ ? (error, response, options, rawResponse) => {
334
+ this._log.info('getOperatingSystemVersion response %j', response);
335
+ callback(error, response, options, rawResponse); // We verified callback above.
336
+ }
337
+ : undefined;
338
+ return this.innerApiCalls.getOperatingSystemVersion(request, options, wrappedCallback)
339
+ ?.then(([response, options, rawResponse]) => {
340
+ this._log.info('getOperatingSystemVersion response %j', response);
341
+ return [response, options, rawResponse];
342
+ }).catch((error) => {
343
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
344
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
345
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
346
+ }
347
+ throw error;
348
+ });
349
+ }
350
+ listOperatingSystemVersions(request, optionsOrCallback, callback) {
351
+ request = request || {};
352
+ let options;
353
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
354
+ callback = optionsOrCallback;
355
+ options = {};
356
+ }
357
+ else {
358
+ options = optionsOrCallback;
359
+ }
360
+ options = options || {};
361
+ options.otherArgs = options.otherArgs || {};
362
+ options.otherArgs.headers = options.otherArgs.headers || {};
363
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
364
+ 'parent': request.parent ?? '',
365
+ });
366
+ this.initialize().catch(err => { throw err; });
367
+ const wrappedCallback = callback
368
+ ? (error, values, nextPageRequest, rawResponse) => {
369
+ this._log.info('listOperatingSystemVersions values %j', values);
370
+ callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
371
+ }
372
+ : undefined;
373
+ this._log.info('listOperatingSystemVersions request %j', request);
374
+ return this.innerApiCalls
375
+ .listOperatingSystemVersions(request, options, wrappedCallback)
376
+ ?.then(([response, input, output]) => {
377
+ this._log.info('listOperatingSystemVersions values %j', response);
378
+ return [response, input, output];
379
+ });
380
+ }
381
+ /**
382
+ * Equivalent to `listOperatingSystemVersions`, but returns a NodeJS Stream object.
383
+ * @param {Object} request
384
+ * The request object that will be sent.
385
+ * @param {string} request.parent
386
+ * Required. The parent, which owns this collection of
387
+ * OperatingSystemVersions. Format: `networks/{network_code}`
388
+ * @param {number} [request.pageSize]
389
+ * Optional. The maximum number of `OperatingSystemVersions` to return. The
390
+ * service may return fewer than this value. If unspecified, at most 50
391
+ * `OperatingSystemVersions` will be returned. The maximum value is 1000;
392
+ * values above 1000 will be coerced to 1000.
393
+ * @param {string} [request.pageToken]
394
+ * Optional. A page token, received from a previous
395
+ * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
396
+ * page.
397
+ *
398
+ * When paginating, all other parameters provided to
399
+ * `ListOperatingSystemVersions` must match the call that provided the page
400
+ * token.
401
+ * @param {string} [request.filter]
402
+ * Optional. Expression to filter the response.
403
+ * See syntax details at
404
+ * https://developers.google.com/ad-manager/api/beta/filters
405
+ * @param {string} [request.orderBy]
406
+ * Optional. Expression to specify sorting order.
407
+ * See syntax details at
408
+ * https://developers.google.com/ad-manager/api/beta/filters#order
409
+ * @param {number} [request.skip]
410
+ * Optional. Number of individual resources to skip while paginating.
411
+ * @param {object} [options]
412
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
413
+ * @returns {Stream}
414
+ * An object stream which emits an object representing {@link protos.google.ads.admanager.v1.OperatingSystemVersion|OperatingSystemVersion} on 'data' event.
415
+ * The client library will perform auto-pagination by default: it will call the API as many
416
+ * times as needed. Note that it can affect your quota.
417
+ * We recommend using `listOperatingSystemVersionsAsync()`
418
+ * method described below for async iteration which you can stop as needed.
419
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
420
+ * for more details and examples.
421
+ */
422
+ listOperatingSystemVersionsStream(request, options) {
423
+ request = request || {};
424
+ options = options || {};
425
+ options.otherArgs = options.otherArgs || {};
426
+ options.otherArgs.headers = options.otherArgs.headers || {};
427
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
428
+ 'parent': request.parent ?? '',
429
+ });
430
+ const defaultCallSettings = this._defaults['listOperatingSystemVersions'];
431
+ const callSettings = defaultCallSettings.merge(options);
432
+ this.initialize().catch(err => { throw err; });
433
+ this._log.info('listOperatingSystemVersions stream %j', request);
434
+ return this.descriptors.page.listOperatingSystemVersions.createStream(this.innerApiCalls.listOperatingSystemVersions, request, callSettings);
435
+ }
436
+ /**
437
+ * Equivalent to `listOperatingSystemVersions`, but returns an iterable object.
438
+ *
439
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
440
+ * @param {Object} request
441
+ * The request object that will be sent.
442
+ * @param {string} request.parent
443
+ * Required. The parent, which owns this collection of
444
+ * OperatingSystemVersions. Format: `networks/{network_code}`
445
+ * @param {number} [request.pageSize]
446
+ * Optional. The maximum number of `OperatingSystemVersions` to return. The
447
+ * service may return fewer than this value. If unspecified, at most 50
448
+ * `OperatingSystemVersions` will be returned. The maximum value is 1000;
449
+ * values above 1000 will be coerced to 1000.
450
+ * @param {string} [request.pageToken]
451
+ * Optional. A page token, received from a previous
452
+ * `ListOperatingSystemVersions` call. Provide this to retrieve the subsequent
453
+ * page.
454
+ *
455
+ * When paginating, all other parameters provided to
456
+ * `ListOperatingSystemVersions` must match the call that provided the page
457
+ * token.
458
+ * @param {string} [request.filter]
459
+ * Optional. Expression to filter the response.
460
+ * See syntax details at
461
+ * https://developers.google.com/ad-manager/api/beta/filters
462
+ * @param {string} [request.orderBy]
463
+ * Optional. Expression to specify sorting order.
464
+ * See syntax details at
465
+ * https://developers.google.com/ad-manager/api/beta/filters#order
466
+ * @param {number} [request.skip]
467
+ * Optional. Number of individual resources to skip while paginating.
468
+ * @param {object} [options]
469
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
470
+ * @returns {Object}
471
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
472
+ * When you iterate the returned iterable, each element will be an object representing
473
+ * {@link protos.google.ads.admanager.v1.OperatingSystemVersion|OperatingSystemVersion}. The API will be called under the hood as needed, once per the page,
474
+ * so you can stop the iteration when you don't need more results.
475
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
476
+ * for more details and examples.
477
+ * @example <caption>include:samples/generated/v1/operating_system_version_service.list_operating_system_versions.js</caption>
478
+ * region_tag:admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_async
479
+ */
480
+ listOperatingSystemVersionsAsync(request, options) {
481
+ request = request || {};
482
+ options = options || {};
483
+ options.otherArgs = options.otherArgs || {};
484
+ options.otherArgs.headers = options.otherArgs.headers || {};
485
+ options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
486
+ 'parent': request.parent ?? '',
487
+ });
488
+ const defaultCallSettings = this._defaults['listOperatingSystemVersions'];
489
+ const callSettings = defaultCallSettings.merge(options);
490
+ this.initialize().catch(err => { throw err; });
491
+ this._log.info('listOperatingSystemVersions iterate %j', request);
492
+ return this.descriptors.page.listOperatingSystemVersions.asyncIterate(this.innerApiCalls['listOperatingSystemVersions'], request, callSettings);
493
+ }
494
+ // --------------------
495
+ // -- Path templates --
496
+ // --------------------
497
+ /**
498
+ * Return a fully-qualified adBreak resource name string.
499
+ *
500
+ * @param {string} network_code
501
+ * @param {string} asset_key
502
+ * @param {string} ad_break
503
+ * @returns {string} Resource name string.
504
+ */
505
+ adBreakPath(networkCode, assetKey, adBreak) {
506
+ return this.pathTemplates.adBreakPathTemplate.render({
507
+ network_code: networkCode,
508
+ asset_key: assetKey,
509
+ ad_break: adBreak,
510
+ });
511
+ }
512
+ /**
513
+ * Parse the network_code from AdBreak resource.
514
+ *
515
+ * @param {string} adBreakName
516
+ * A fully-qualified path representing AdBreak resource.
517
+ * @returns {string} A string representing the network_code.
518
+ */
519
+ matchNetworkCodeFromAdBreakName(adBreakName) {
520
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
521
+ }
522
+ /**
523
+ * Parse the asset_key from AdBreak resource.
524
+ *
525
+ * @param {string} adBreakName
526
+ * A fully-qualified path representing AdBreak resource.
527
+ * @returns {string} A string representing the asset_key.
528
+ */
529
+ matchAssetKeyFromAdBreakName(adBreakName) {
530
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
531
+ }
532
+ /**
533
+ * Parse the ad_break from AdBreak resource.
534
+ *
535
+ * @param {string} adBreakName
536
+ * A fully-qualified path representing AdBreak resource.
537
+ * @returns {string} A string representing the ad_break.
538
+ */
539
+ matchAdBreakFromAdBreakName(adBreakName) {
540
+ return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
541
+ }
542
+ /**
543
+ * Return a fully-qualified adUnit resource name string.
544
+ *
545
+ * @param {string} network_code
546
+ * @param {string} ad_unit
547
+ * @returns {string} Resource name string.
548
+ */
549
+ adUnitPath(networkCode, adUnit) {
550
+ return this.pathTemplates.adUnitPathTemplate.render({
551
+ network_code: networkCode,
552
+ ad_unit: adUnit,
553
+ });
554
+ }
555
+ /**
556
+ * Parse the network_code from AdUnit resource.
557
+ *
558
+ * @param {string} adUnitName
559
+ * A fully-qualified path representing AdUnit resource.
560
+ * @returns {string} A string representing the network_code.
561
+ */
562
+ matchNetworkCodeFromAdUnitName(adUnitName) {
563
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
564
+ }
565
+ /**
566
+ * Parse the ad_unit from AdUnit resource.
567
+ *
568
+ * @param {string} adUnitName
569
+ * A fully-qualified path representing AdUnit resource.
570
+ * @returns {string} A string representing the ad_unit.
571
+ */
572
+ matchAdUnitFromAdUnitName(adUnitName) {
573
+ return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
574
+ }
575
+ /**
576
+ * Return a fully-qualified bandwidthGroup resource name string.
577
+ *
578
+ * @param {string} network_code
579
+ * @param {string} bandwidth_group
580
+ * @returns {string} Resource name string.
581
+ */
582
+ bandwidthGroupPath(networkCode, bandwidthGroup) {
583
+ return this.pathTemplates.bandwidthGroupPathTemplate.render({
584
+ network_code: networkCode,
585
+ bandwidth_group: bandwidthGroup,
586
+ });
587
+ }
588
+ /**
589
+ * Parse the network_code from BandwidthGroup resource.
590
+ *
591
+ * @param {string} bandwidthGroupName
592
+ * A fully-qualified path representing BandwidthGroup resource.
593
+ * @returns {string} A string representing the network_code.
594
+ */
595
+ matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
596
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
597
+ }
598
+ /**
599
+ * Parse the bandwidth_group from BandwidthGroup resource.
600
+ *
601
+ * @param {string} bandwidthGroupName
602
+ * A fully-qualified path representing BandwidthGroup resource.
603
+ * @returns {string} A string representing the bandwidth_group.
604
+ */
605
+ matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
606
+ return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
607
+ }
608
+ /**
609
+ * Return a fully-qualified company resource name string.
610
+ *
611
+ * @param {string} network_code
612
+ * @param {string} company
613
+ * @returns {string} Resource name string.
614
+ */
615
+ companyPath(networkCode, company) {
616
+ return this.pathTemplates.companyPathTemplate.render({
617
+ network_code: networkCode,
618
+ company: company,
619
+ });
620
+ }
621
+ /**
622
+ * Parse the network_code from Company resource.
623
+ *
624
+ * @param {string} companyName
625
+ * A fully-qualified path representing Company resource.
626
+ * @returns {string} A string representing the network_code.
627
+ */
628
+ matchNetworkCodeFromCompanyName(companyName) {
629
+ return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
630
+ }
631
+ /**
632
+ * Parse the company from Company resource.
633
+ *
634
+ * @param {string} companyName
635
+ * A fully-qualified path representing Company resource.
636
+ * @returns {string} A string representing the company.
637
+ */
638
+ matchCompanyFromCompanyName(companyName) {
639
+ return this.pathTemplates.companyPathTemplate.match(companyName).company;
640
+ }
641
+ /**
642
+ * Return a fully-qualified contact resource name string.
643
+ *
644
+ * @param {string} network_code
645
+ * @param {string} contact
646
+ * @returns {string} Resource name string.
647
+ */
648
+ contactPath(networkCode, contact) {
649
+ return this.pathTemplates.contactPathTemplate.render({
650
+ network_code: networkCode,
651
+ contact: contact,
652
+ });
653
+ }
654
+ /**
655
+ * Parse the network_code from Contact resource.
656
+ *
657
+ * @param {string} contactName
658
+ * A fully-qualified path representing Contact resource.
659
+ * @returns {string} A string representing the network_code.
660
+ */
661
+ matchNetworkCodeFromContactName(contactName) {
662
+ return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
663
+ }
664
+ /**
665
+ * Parse the contact from Contact resource.
666
+ *
667
+ * @param {string} contactName
668
+ * A fully-qualified path representing Contact resource.
669
+ * @returns {string} A string representing the contact.
670
+ */
671
+ matchContactFromContactName(contactName) {
672
+ return this.pathTemplates.contactPathTemplate.match(contactName).contact;
673
+ }
674
+ /**
675
+ * Return a fully-qualified customField resource name string.
676
+ *
677
+ * @param {string} network_code
678
+ * @param {string} custom_field
679
+ * @returns {string} Resource name string.
680
+ */
681
+ customFieldPath(networkCode, customField) {
682
+ return this.pathTemplates.customFieldPathTemplate.render({
683
+ network_code: networkCode,
684
+ custom_field: customField,
685
+ });
686
+ }
687
+ /**
688
+ * Parse the network_code from CustomField resource.
689
+ *
690
+ * @param {string} customFieldName
691
+ * A fully-qualified path representing CustomField resource.
692
+ * @returns {string} A string representing the network_code.
693
+ */
694
+ matchNetworkCodeFromCustomFieldName(customFieldName) {
695
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
696
+ }
697
+ /**
698
+ * Parse the custom_field from CustomField resource.
699
+ *
700
+ * @param {string} customFieldName
701
+ * A fully-qualified path representing CustomField resource.
702
+ * @returns {string} A string representing the custom_field.
703
+ */
704
+ matchCustomFieldFromCustomFieldName(customFieldName) {
705
+ return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
706
+ }
707
+ /**
708
+ * Return a fully-qualified customTargetingKey resource name string.
709
+ *
710
+ * @param {string} network_code
711
+ * @param {string} custom_targeting_key
712
+ * @returns {string} Resource name string.
713
+ */
714
+ customTargetingKeyPath(networkCode, customTargetingKey) {
715
+ return this.pathTemplates.customTargetingKeyPathTemplate.render({
716
+ network_code: networkCode,
717
+ custom_targeting_key: customTargetingKey,
718
+ });
719
+ }
720
+ /**
721
+ * Parse the network_code from CustomTargetingKey resource.
722
+ *
723
+ * @param {string} customTargetingKeyName
724
+ * A fully-qualified path representing CustomTargetingKey resource.
725
+ * @returns {string} A string representing the network_code.
726
+ */
727
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName) {
728
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).network_code;
729
+ }
730
+ /**
731
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
732
+ *
733
+ * @param {string} customTargetingKeyName
734
+ * A fully-qualified path representing CustomTargetingKey resource.
735
+ * @returns {string} A string representing the custom_targeting_key.
736
+ */
737
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName) {
738
+ return this.pathTemplates.customTargetingKeyPathTemplate.match(customTargetingKeyName).custom_targeting_key;
739
+ }
740
+ /**
741
+ * Return a fully-qualified customTargetingValue resource name string.
742
+ *
743
+ * @param {string} network_code
744
+ * @param {string} custom_targeting_value
745
+ * @returns {string} Resource name string.
746
+ */
747
+ customTargetingValuePath(networkCode, customTargetingValue) {
748
+ return this.pathTemplates.customTargetingValuePathTemplate.render({
749
+ network_code: networkCode,
750
+ custom_targeting_value: customTargetingValue,
751
+ });
752
+ }
753
+ /**
754
+ * Parse the network_code from CustomTargetingValue resource.
755
+ *
756
+ * @param {string} customTargetingValueName
757
+ * A fully-qualified path representing CustomTargetingValue resource.
758
+ * @returns {string} A string representing the network_code.
759
+ */
760
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
761
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
762
+ }
763
+ /**
764
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
765
+ *
766
+ * @param {string} customTargetingValueName
767
+ * A fully-qualified path representing CustomTargetingValue resource.
768
+ * @returns {string} A string representing the custom_targeting_value.
769
+ */
770
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
771
+ return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
772
+ }
773
+ /**
774
+ * Return a fully-qualified deviceCategory resource name string.
775
+ *
776
+ * @param {string} network_code
777
+ * @param {string} device_category
778
+ * @returns {string} Resource name string.
779
+ */
780
+ deviceCategoryPath(networkCode, deviceCategory) {
781
+ return this.pathTemplates.deviceCategoryPathTemplate.render({
782
+ network_code: networkCode,
783
+ device_category: deviceCategory,
784
+ });
785
+ }
786
+ /**
787
+ * Parse the network_code from DeviceCategory resource.
788
+ *
789
+ * @param {string} deviceCategoryName
790
+ * A fully-qualified path representing DeviceCategory resource.
791
+ * @returns {string} A string representing the network_code.
792
+ */
793
+ matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
794
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
795
+ }
796
+ /**
797
+ * Parse the device_category from DeviceCategory resource.
798
+ *
799
+ * @param {string} deviceCategoryName
800
+ * A fully-qualified path representing DeviceCategory resource.
801
+ * @returns {string} A string representing the device_category.
802
+ */
803
+ matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
804
+ return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
805
+ }
806
+ /**
807
+ * Return a fully-qualified entitySignalsMapping resource name string.
808
+ *
809
+ * @param {string} network_code
810
+ * @param {string} entity_signals_mapping
811
+ * @returns {string} Resource name string.
812
+ */
813
+ entitySignalsMappingPath(networkCode, entitySignalsMapping) {
814
+ return this.pathTemplates.entitySignalsMappingPathTemplate.render({
815
+ network_code: networkCode,
816
+ entity_signals_mapping: entitySignalsMapping,
817
+ });
818
+ }
819
+ /**
820
+ * Parse the network_code from EntitySignalsMapping resource.
821
+ *
822
+ * @param {string} entitySignalsMappingName
823
+ * A fully-qualified path representing EntitySignalsMapping resource.
824
+ * @returns {string} A string representing the network_code.
825
+ */
826
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName) {
827
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).network_code;
828
+ }
829
+ /**
830
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
831
+ *
832
+ * @param {string} entitySignalsMappingName
833
+ * A fully-qualified path representing EntitySignalsMapping resource.
834
+ * @returns {string} A string representing the entity_signals_mapping.
835
+ */
836
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
837
+ return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
838
+ }
839
+ /**
840
+ * Return a fully-qualified geoTarget resource name string.
841
+ *
842
+ * @param {string} network_code
843
+ * @param {string} geo_target
844
+ * @returns {string} Resource name string.
845
+ */
846
+ geoTargetPath(networkCode, geoTarget) {
847
+ return this.pathTemplates.geoTargetPathTemplate.render({
848
+ network_code: networkCode,
849
+ geo_target: geoTarget,
850
+ });
851
+ }
852
+ /**
853
+ * Parse the network_code from GeoTarget resource.
854
+ *
855
+ * @param {string} geoTargetName
856
+ * A fully-qualified path representing GeoTarget resource.
857
+ * @returns {string} A string representing the network_code.
858
+ */
859
+ matchNetworkCodeFromGeoTargetName(geoTargetName) {
860
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
861
+ }
862
+ /**
863
+ * Parse the geo_target from GeoTarget resource.
864
+ *
865
+ * @param {string} geoTargetName
866
+ * A fully-qualified path representing GeoTarget resource.
867
+ * @returns {string} A string representing the geo_target.
868
+ */
869
+ matchGeoTargetFromGeoTargetName(geoTargetName) {
870
+ return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
871
+ }
872
+ /**
873
+ * Return a fully-qualified label resource name string.
874
+ *
875
+ * @param {string} network_code
876
+ * @param {string} label
877
+ * @returns {string} Resource name string.
878
+ */
879
+ labelPath(networkCode, label) {
880
+ return this.pathTemplates.labelPathTemplate.render({
881
+ network_code: networkCode,
882
+ label: label,
883
+ });
884
+ }
885
+ /**
886
+ * Parse the network_code from Label resource.
887
+ *
888
+ * @param {string} labelName
889
+ * A fully-qualified path representing Label resource.
890
+ * @returns {string} A string representing the network_code.
891
+ */
892
+ matchNetworkCodeFromLabelName(labelName) {
893
+ return this.pathTemplates.labelPathTemplate.match(labelName).network_code;
894
+ }
895
+ /**
896
+ * Parse the label from Label resource.
897
+ *
898
+ * @param {string} labelName
899
+ * A fully-qualified path representing Label resource.
900
+ * @returns {string} A string representing the label.
901
+ */
902
+ matchLabelFromLabelName(labelName) {
903
+ return this.pathTemplates.labelPathTemplate.match(labelName).label;
904
+ }
905
+ /**
906
+ * Return a fully-qualified liveStreamEvent resource name string.
907
+ *
908
+ * @param {string} network_code
909
+ * @param {string} live_stream_event
910
+ * @returns {string} Resource name string.
911
+ */
912
+ liveStreamEventPath(networkCode, liveStreamEvent) {
913
+ return this.pathTemplates.liveStreamEventPathTemplate.render({
914
+ network_code: networkCode,
915
+ live_stream_event: liveStreamEvent,
916
+ });
917
+ }
918
+ /**
919
+ * Parse the network_code from LiveStreamEvent resource.
920
+ *
921
+ * @param {string} liveStreamEventName
922
+ * A fully-qualified path representing LiveStreamEvent resource.
923
+ * @returns {string} A string representing the network_code.
924
+ */
925
+ matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
926
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
927
+ }
928
+ /**
929
+ * Parse the live_stream_event from LiveStreamEvent resource.
930
+ *
931
+ * @param {string} liveStreamEventName
932
+ * A fully-qualified path representing LiveStreamEvent resource.
933
+ * @returns {string} A string representing the live_stream_event.
934
+ */
935
+ matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
936
+ return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
937
+ }
938
+ /**
939
+ * Return a fully-qualified network resource name string.
940
+ *
941
+ * @param {string} network_code
942
+ * @returns {string} Resource name string.
943
+ */
944
+ networkPath(networkCode) {
945
+ return this.pathTemplates.networkPathTemplate.render({
946
+ network_code: networkCode,
947
+ });
948
+ }
949
+ /**
950
+ * Parse the network_code from Network resource.
951
+ *
952
+ * @param {string} networkName
953
+ * A fully-qualified path representing Network resource.
954
+ * @returns {string} A string representing the network_code.
955
+ */
956
+ matchNetworkCodeFromNetworkName(networkName) {
957
+ return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
958
+ }
959
+ /**
960
+ * Return a fully-qualified operatingSystem resource name string.
961
+ *
962
+ * @param {string} network_code
963
+ * @param {string} operating_system
964
+ * @returns {string} Resource name string.
965
+ */
966
+ operatingSystemPath(networkCode, operatingSystem) {
967
+ return this.pathTemplates.operatingSystemPathTemplate.render({
968
+ network_code: networkCode,
969
+ operating_system: operatingSystem,
970
+ });
971
+ }
972
+ /**
973
+ * Parse the network_code from OperatingSystem resource.
974
+ *
975
+ * @param {string} operatingSystemName
976
+ * A fully-qualified path representing OperatingSystem resource.
977
+ * @returns {string} A string representing the network_code.
978
+ */
979
+ matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
980
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
981
+ }
982
+ /**
983
+ * Parse the operating_system from OperatingSystem resource.
984
+ *
985
+ * @param {string} operatingSystemName
986
+ * A fully-qualified path representing OperatingSystem resource.
987
+ * @returns {string} A string representing the operating_system.
988
+ */
989
+ matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
990
+ return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
991
+ }
992
+ /**
993
+ * Return a fully-qualified operatingSystemVersion resource name string.
994
+ *
995
+ * @param {string} network_code
996
+ * @param {string} operating_system_version
997
+ * @returns {string} Resource name string.
998
+ */
999
+ operatingSystemVersionPath(networkCode, operatingSystemVersion) {
1000
+ return this.pathTemplates.operatingSystemVersionPathTemplate.render({
1001
+ network_code: networkCode,
1002
+ operating_system_version: operatingSystemVersion,
1003
+ });
1004
+ }
1005
+ /**
1006
+ * Parse the network_code from OperatingSystemVersion resource.
1007
+ *
1008
+ * @param {string} operatingSystemVersionName
1009
+ * A fully-qualified path representing OperatingSystemVersion resource.
1010
+ * @returns {string} A string representing the network_code.
1011
+ */
1012
+ matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
1013
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
1014
+ }
1015
+ /**
1016
+ * Parse the operating_system_version from OperatingSystemVersion resource.
1017
+ *
1018
+ * @param {string} operatingSystemVersionName
1019
+ * A fully-qualified path representing OperatingSystemVersion resource.
1020
+ * @returns {string} A string representing the operating_system_version.
1021
+ */
1022
+ matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
1023
+ return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
1024
+ }
1025
+ /**
1026
+ * Return a fully-qualified order resource name string.
1027
+ *
1028
+ * @param {string} network_code
1029
+ * @param {string} order
1030
+ * @returns {string} Resource name string.
1031
+ */
1032
+ orderPath(networkCode, order) {
1033
+ return this.pathTemplates.orderPathTemplate.render({
1034
+ network_code: networkCode,
1035
+ order: order,
1036
+ });
1037
+ }
1038
+ /**
1039
+ * Parse the network_code from Order resource.
1040
+ *
1041
+ * @param {string} orderName
1042
+ * A fully-qualified path representing Order resource.
1043
+ * @returns {string} A string representing the network_code.
1044
+ */
1045
+ matchNetworkCodeFromOrderName(orderName) {
1046
+ return this.pathTemplates.orderPathTemplate.match(orderName).network_code;
1047
+ }
1048
+ /**
1049
+ * Parse the order from Order resource.
1050
+ *
1051
+ * @param {string} orderName
1052
+ * A fully-qualified path representing Order resource.
1053
+ * @returns {string} A string representing the order.
1054
+ */
1055
+ matchOrderFromOrderName(orderName) {
1056
+ return this.pathTemplates.orderPathTemplate.match(orderName).order;
1057
+ }
1058
+ /**
1059
+ * Return a fully-qualified placement resource name string.
1060
+ *
1061
+ * @param {string} network_code
1062
+ * @param {string} placement
1063
+ * @returns {string} Resource name string.
1064
+ */
1065
+ placementPath(networkCode, placement) {
1066
+ return this.pathTemplates.placementPathTemplate.render({
1067
+ network_code: networkCode,
1068
+ placement: placement,
1069
+ });
1070
+ }
1071
+ /**
1072
+ * Parse the network_code from Placement resource.
1073
+ *
1074
+ * @param {string} placementName
1075
+ * A fully-qualified path representing Placement resource.
1076
+ * @returns {string} A string representing the network_code.
1077
+ */
1078
+ matchNetworkCodeFromPlacementName(placementName) {
1079
+ return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
1080
+ }
1081
+ /**
1082
+ * Parse the placement from Placement resource.
1083
+ *
1084
+ * @param {string} placementName
1085
+ * A fully-qualified path representing Placement resource.
1086
+ * @returns {string} A string representing the placement.
1087
+ */
1088
+ matchPlacementFromPlacementName(placementName) {
1089
+ return this.pathTemplates.placementPathTemplate.match(placementName).placement;
1090
+ }
1091
+ /**
1092
+ * Return a fully-qualified privateAuction resource name string.
1093
+ *
1094
+ * @param {string} network_code
1095
+ * @param {string} private_auction
1096
+ * @returns {string} Resource name string.
1097
+ */
1098
+ privateAuctionPath(networkCode, privateAuction) {
1099
+ return this.pathTemplates.privateAuctionPathTemplate.render({
1100
+ network_code: networkCode,
1101
+ private_auction: privateAuction,
1102
+ });
1103
+ }
1104
+ /**
1105
+ * Parse the network_code from PrivateAuction resource.
1106
+ *
1107
+ * @param {string} privateAuctionName
1108
+ * A fully-qualified path representing PrivateAuction resource.
1109
+ * @returns {string} A string representing the network_code.
1110
+ */
1111
+ matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
1112
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
1113
+ }
1114
+ /**
1115
+ * Parse the private_auction from PrivateAuction resource.
1116
+ *
1117
+ * @param {string} privateAuctionName
1118
+ * A fully-qualified path representing PrivateAuction resource.
1119
+ * @returns {string} A string representing the private_auction.
1120
+ */
1121
+ matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
1122
+ return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
1123
+ }
1124
+ /**
1125
+ * Return a fully-qualified privateAuctionDeal resource name string.
1126
+ *
1127
+ * @param {string} network_code
1128
+ * @param {string} private_auction_deal
1129
+ * @returns {string} Resource name string.
1130
+ */
1131
+ privateAuctionDealPath(networkCode, privateAuctionDeal) {
1132
+ return this.pathTemplates.privateAuctionDealPathTemplate.render({
1133
+ network_code: networkCode,
1134
+ private_auction_deal: privateAuctionDeal,
1135
+ });
1136
+ }
1137
+ /**
1138
+ * Parse the network_code from PrivateAuctionDeal resource.
1139
+ *
1140
+ * @param {string} privateAuctionDealName
1141
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1142
+ * @returns {string} A string representing the network_code.
1143
+ */
1144
+ matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
1145
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
1146
+ }
1147
+ /**
1148
+ * Parse the private_auction_deal from PrivateAuctionDeal resource.
1149
+ *
1150
+ * @param {string} privateAuctionDealName
1151
+ * A fully-qualified path representing PrivateAuctionDeal resource.
1152
+ * @returns {string} A string representing the private_auction_deal.
1153
+ */
1154
+ matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
1155
+ return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
1156
+ }
1157
+ /**
1158
+ * Return a fully-qualified programmaticBuyer resource name string.
1159
+ *
1160
+ * @param {string} network_code
1161
+ * @param {string} programmatic_buyer
1162
+ * @returns {string} Resource name string.
1163
+ */
1164
+ programmaticBuyerPath(networkCode, programmaticBuyer) {
1165
+ return this.pathTemplates.programmaticBuyerPathTemplate.render({
1166
+ network_code: networkCode,
1167
+ programmatic_buyer: programmaticBuyer,
1168
+ });
1169
+ }
1170
+ /**
1171
+ * Parse the network_code from ProgrammaticBuyer resource.
1172
+ *
1173
+ * @param {string} programmaticBuyerName
1174
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1175
+ * @returns {string} A string representing the network_code.
1176
+ */
1177
+ matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
1178
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
1179
+ }
1180
+ /**
1181
+ * Parse the programmatic_buyer from ProgrammaticBuyer resource.
1182
+ *
1183
+ * @param {string} programmaticBuyerName
1184
+ * A fully-qualified path representing ProgrammaticBuyer resource.
1185
+ * @returns {string} A string representing the programmatic_buyer.
1186
+ */
1187
+ matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
1188
+ return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
1189
+ }
1190
+ /**
1191
+ * Return a fully-qualified report resource name string.
1192
+ *
1193
+ * @param {string} network_code
1194
+ * @param {string} report
1195
+ * @returns {string} Resource name string.
1196
+ */
1197
+ reportPath(networkCode, report) {
1198
+ return this.pathTemplates.reportPathTemplate.render({
1199
+ network_code: networkCode,
1200
+ report: report,
1201
+ });
1202
+ }
1203
+ /**
1204
+ * Parse the network_code from Report resource.
1205
+ *
1206
+ * @param {string} reportName
1207
+ * A fully-qualified path representing Report resource.
1208
+ * @returns {string} A string representing the network_code.
1209
+ */
1210
+ matchNetworkCodeFromReportName(reportName) {
1211
+ return this.pathTemplates.reportPathTemplate.match(reportName).network_code;
1212
+ }
1213
+ /**
1214
+ * Parse the report from Report resource.
1215
+ *
1216
+ * @param {string} reportName
1217
+ * A fully-qualified path representing Report resource.
1218
+ * @returns {string} A string representing the report.
1219
+ */
1220
+ matchReportFromReportName(reportName) {
1221
+ return this.pathTemplates.reportPathTemplate.match(reportName).report;
1222
+ }
1223
+ /**
1224
+ * Return a fully-qualified role resource name string.
1225
+ *
1226
+ * @param {string} network_code
1227
+ * @param {string} role
1228
+ * @returns {string} Resource name string.
1229
+ */
1230
+ rolePath(networkCode, role) {
1231
+ return this.pathTemplates.rolePathTemplate.render({
1232
+ network_code: networkCode,
1233
+ role: role,
1234
+ });
1235
+ }
1236
+ /**
1237
+ * Parse the network_code from Role resource.
1238
+ *
1239
+ * @param {string} roleName
1240
+ * A fully-qualified path representing Role resource.
1241
+ * @returns {string} A string representing the network_code.
1242
+ */
1243
+ matchNetworkCodeFromRoleName(roleName) {
1244
+ return this.pathTemplates.rolePathTemplate.match(roleName).network_code;
1245
+ }
1246
+ /**
1247
+ * Parse the role from Role resource.
1248
+ *
1249
+ * @param {string} roleName
1250
+ * A fully-qualified path representing Role resource.
1251
+ * @returns {string} A string representing the role.
1252
+ */
1253
+ matchRoleFromRoleName(roleName) {
1254
+ return this.pathTemplates.rolePathTemplate.match(roleName).role;
1255
+ }
1256
+ /**
1257
+ * Return a fully-qualified taxonomyCategory resource name string.
1258
+ *
1259
+ * @param {string} network_code
1260
+ * @param {string} taxonomy_category
1261
+ * @returns {string} Resource name string.
1262
+ */
1263
+ taxonomyCategoryPath(networkCode, taxonomyCategory) {
1264
+ return this.pathTemplates.taxonomyCategoryPathTemplate.render({
1265
+ network_code: networkCode,
1266
+ taxonomy_category: taxonomyCategory,
1267
+ });
1268
+ }
1269
+ /**
1270
+ * Parse the network_code from TaxonomyCategory resource.
1271
+ *
1272
+ * @param {string} taxonomyCategoryName
1273
+ * A fully-qualified path representing TaxonomyCategory resource.
1274
+ * @returns {string} A string representing the network_code.
1275
+ */
1276
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName) {
1277
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).network_code;
1278
+ }
1279
+ /**
1280
+ * Parse the taxonomy_category from TaxonomyCategory resource.
1281
+ *
1282
+ * @param {string} taxonomyCategoryName
1283
+ * A fully-qualified path representing TaxonomyCategory resource.
1284
+ * @returns {string} A string representing the taxonomy_category.
1285
+ */
1286
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName) {
1287
+ return this.pathTemplates.taxonomyCategoryPathTemplate.match(taxonomyCategoryName).taxonomy_category;
1288
+ }
1289
+ /**
1290
+ * Return a fully-qualified team resource name string.
1291
+ *
1292
+ * @param {string} network_code
1293
+ * @param {string} team
1294
+ * @returns {string} Resource name string.
1295
+ */
1296
+ teamPath(networkCode, team) {
1297
+ return this.pathTemplates.teamPathTemplate.render({
1298
+ network_code: networkCode,
1299
+ team: team,
1300
+ });
1301
+ }
1302
+ /**
1303
+ * Parse the network_code from Team resource.
1304
+ *
1305
+ * @param {string} teamName
1306
+ * A fully-qualified path representing Team resource.
1307
+ * @returns {string} A string representing the network_code.
1308
+ */
1309
+ matchNetworkCodeFromTeamName(teamName) {
1310
+ return this.pathTemplates.teamPathTemplate.match(teamName).network_code;
1311
+ }
1312
+ /**
1313
+ * Parse the team from Team resource.
1314
+ *
1315
+ * @param {string} teamName
1316
+ * A fully-qualified path representing Team resource.
1317
+ * @returns {string} A string representing the team.
1318
+ */
1319
+ matchTeamFromTeamName(teamName) {
1320
+ return this.pathTemplates.teamPathTemplate.match(teamName).team;
1321
+ }
1322
+ /**
1323
+ * Return a fully-qualified user resource name string.
1324
+ *
1325
+ * @param {string} network_code
1326
+ * @param {string} user
1327
+ * @returns {string} Resource name string.
1328
+ */
1329
+ userPath(networkCode, user) {
1330
+ return this.pathTemplates.userPathTemplate.render({
1331
+ network_code: networkCode,
1332
+ user: user,
1333
+ });
1334
+ }
1335
+ /**
1336
+ * Parse the network_code from User resource.
1337
+ *
1338
+ * @param {string} userName
1339
+ * A fully-qualified path representing User resource.
1340
+ * @returns {string} A string representing the network_code.
1341
+ */
1342
+ matchNetworkCodeFromUserName(userName) {
1343
+ return this.pathTemplates.userPathTemplate.match(userName).network_code;
1344
+ }
1345
+ /**
1346
+ * Parse the user from User resource.
1347
+ *
1348
+ * @param {string} userName
1349
+ * A fully-qualified path representing User resource.
1350
+ * @returns {string} A string representing the user.
1351
+ */
1352
+ matchUserFromUserName(userName) {
1353
+ return this.pathTemplates.userPathTemplate.match(userName).user;
1354
+ }
1355
+ /**
1356
+ * Terminate the gRPC channel and close the client.
1357
+ *
1358
+ * The client will no longer be usable and all future behavior is undefined.
1359
+ * @returns {Promise} A promise that resolves when the client is closed.
1360
+ */
1361
+ close() {
1362
+ if (this.operatingSystemVersionServiceStub && !this._terminated) {
1363
+ return this.operatingSystemVersionServiceStub.then(stub => {
1364
+ this._log.info('ending gRPC channel');
1365
+ this._terminated = true;
1366
+ stub.close();
1367
+ });
1368
+ }
1369
+ return Promise.resolve();
1370
+ }
1371
+ }
1372
+ exports.OperatingSystemVersionServiceClient = OperatingSystemVersionServiceClient;
1373
+ //# sourceMappingURL=operating_system_version_service_client.js.map