@google-ads/admanager 0.3.0 → 0.4.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.
- package/README.md +27 -2
- package/build/protos/google/ads/admanager/v1/ad_break_messages.proto +134 -0
- package/build/protos/google/ads/admanager/v1/ad_break_service.proto +269 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +32 -26
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/admanager_error.proto +1 -1
- package/build/protos/google/ads/admanager/v1/applied_label.proto +1 -1
- package/build/protos/google/ads/admanager/v1/bandwidth_group_messages.proto +46 -0
- package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/company_enums.proto +123 -0
- package/build/protos/google/ads/admanager/v1/company_messages.proto +6 -7
- package/build/protos/google/ads/admanager/v1/company_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +4 -4
- package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +12 -11
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/custom_field_value.proto +1 -2
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +14 -3
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +14 -6
- package/build/protos/google/ads/admanager/v1/deal_buyer_permission_type_enum.proto +41 -0
- package/build/protos/google/ads/admanager/v1/device_category_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/device_category_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/early_ad_break_notification_enums.proto +47 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +4 -4
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +6 -4
- package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/frequency_cap.proto +1 -1
- package/build/protos/google/ads/admanager/v1/geo_target_messages.proto +70 -0
- package/build/protos/google/ads/admanager/v1/geo_target_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/label_messages.proto +1 -1
- package/build/protos/google/ads/admanager/v1/live_stream_event_messages.proto +47 -0
- package/build/protos/google/ads/admanager/v1/network_messages.proto +2 -2
- package/build/protos/google/ads/admanager/v1/network_service.proto +4 -2
- package/build/protos/google/ads/admanager/v1/operating_system_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/operating_system_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/operating_system_version_messages.proto +52 -0
- package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +133 -0
- package/build/protos/google/ads/admanager/v1/order_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/order_messages.proto +24 -20
- package/build/protos/google/ads/admanager/v1/order_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/placement_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/placement_messages.proto +14 -14
- package/build/protos/google/ads/admanager/v1/placement_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/private_auction_deal_messages.proto +119 -0
- package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +184 -0
- package/build/protos/google/ads/admanager/v1/private_auction_messages.proto +74 -0
- package/build/protos/google/ads/admanager/v1/private_auction_service.proto +180 -0
- package/build/protos/google/ads/admanager/v1/private_marketplace_enums.proto +50 -0
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_messages.proto +72 -0
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +131 -0
- package/build/protos/google/ads/admanager/v1/report_messages.proto +3536 -0
- package/build/protos/google/ads/admanager/v1/report_service.proto +5 -3247
- package/build/protos/google/ads/admanager/v1/request_platform_enum.proto +49 -0
- package/build/protos/google/ads/admanager/v1/role_enums.proto +1 -1
- package/build/protos/google/ads/admanager/v1/role_messages.proto +6 -6
- package/build/protos/google/ads/admanager/v1/role_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/size.proto +7 -11
- package/build/protos/google/ads/admanager/v1/size_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/targeted_video_bumper_type_enum.proto +44 -0
- package/build/protos/google/ads/admanager/v1/targeting.proto +328 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +7 -6
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/team_messages.proto +1 -5
- package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +1 -1
- package/build/protos/google/ads/admanager/v1/user_messages.proto +10 -9
- package/build/protos/google/ads/admanager/v1/user_service.proto +3 -1
- package/build/protos/google/ads/admanager/v1/video_position_enum.proto +47 -0
- package/build/protos/protos.d.ts +15832 -7575
- package/build/protos/protos.js +57744 -36372
- package/build/protos/protos.json +5795 -2511
- package/build/src/index.d.ts +28 -1
- package/build/src/index.js +20 -17
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +1040 -0
- package/build/src/v1/ad_break_service_client.js +1483 -0
- package/build/src/v1/ad_break_service_client.js.map +1 -0
- package/build/src/v1/ad_break_service_client_config.json +46 -0
- package/build/src/v1/ad_break_service_proto_list.json +74 -0
- package/build/src/v1/ad_unit_service_client.d.ts +331 -91
- package/build/src/v1/ad_unit_service_client.js +414 -106
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_proto_list.json +29 -3
- package/build/src/v1/bandwidth_group_service_client.d.ts +904 -0
- package/build/src/v1/bandwidth_group_service_client.js +1369 -0
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -0
- package/build/src/v1/bandwidth_group_service_client_config.json +34 -0
- package/build/src/v1/bandwidth_group_service_proto_list.json +74 -0
- package/build/src/v1/company_service_client.d.ts +291 -51
- package/build/src/v1/company_service_client.js +402 -81
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +29 -3
- package/build/src/v1/custom_field_service_client.d.ts +291 -51
- package/build/src/v1/custom_field_service_client.js +403 -85
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_proto_list.json +29 -3
- package/build/src/v1/custom_targeting_key_service_client.d.ts +291 -51
- package/build/src/v1/custom_targeting_key_service_client.js +404 -88
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_proto_list.json +29 -3
- package/build/src/v1/custom_targeting_value_service_client.d.ts +298 -58
- package/build/src/v1/custom_targeting_value_service_client.js +406 -90
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +29 -3
- package/build/src/v1/device_category_service_client.d.ts +904 -0
- package/build/src/v1/device_category_service_client.js +1369 -0
- package/build/src/v1/device_category_service_client.js.map +1 -0
- package/build/src/v1/device_category_service_client_config.json +34 -0
- package/build/src/v1/device_category_service_proto_list.json +74 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +298 -58
- package/build/src/v1/entity_signals_mapping_service_client.js +444 -124
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +29 -3
- package/build/src/v1/gapic_metadata.json +412 -0
- package/build/src/v1/geo_target_service_client.d.ts +904 -0
- package/build/src/v1/geo_target_service_client.js +1369 -0
- package/build/src/v1/geo_target_service_client.js.map +1 -0
- package/build/src/v1/geo_target_service_client_config.json +34 -0
- package/build/src/v1/geo_target_service_proto_list.json +74 -0
- package/build/src/v1/index.d.ts +9 -0
- package/build/src/v1/index.js +19 -1
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/network_service_client.d.ts +252 -12
- package/build/src/v1/network_service_client.js +397 -65
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +29 -3
- package/build/src/v1/operating_system_service_client.d.ts +904 -0
- package/build/src/v1/operating_system_service_client.js +1369 -0
- package/build/src/v1/operating_system_service_client.js.map +1 -0
- package/build/src/v1/operating_system_service_client_config.json +34 -0
- package/build/src/v1/operating_system_service_proto_list.json +74 -0
- package/build/src/v1/operating_system_version_service_client.d.ts +911 -0
- package/build/src/v1/operating_system_version_service_client.js +1373 -0
- package/build/src/v1/operating_system_version_service_client.js.map +1 -0
- package/build/src/v1/operating_system_version_service_client_config.json +34 -0
- package/build/src/v1/operating_system_version_service_proto_list.json +74 -0
- package/build/src/v1/order_service_client.d.ts +296 -56
- package/build/src/v1/order_service_client.js +402 -81
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +29 -3
- package/build/src/v1/placement_service_client.d.ts +291 -51
- package/build/src/v1/placement_service_client.js +402 -81
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_proto_list.json +29 -3
- package/build/src/v1/private_auction_deal_service_client.d.ts +965 -0
- package/build/src/v1/private_auction_deal_service_client.js +1445 -0
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -0
- package/build/src/v1/private_auction_deal_service_client_config.json +42 -0
- package/build/src/v1/private_auction_deal_service_proto_list.json +74 -0
- package/build/src/v1/private_auction_service_client.d.ts +962 -0
- package/build/src/v1/private_auction_service_client.js +1443 -0
- package/build/src/v1/private_auction_service_client.js.map +1 -0
- package/build/src/v1/private_auction_service_client_config.json +42 -0
- package/build/src/v1/private_auction_service_proto_list.json +74 -0
- package/build/src/v1/programmatic_buyer_service_client.d.ts +905 -0
- package/build/src/v1/programmatic_buyer_service_client.js +1369 -0
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -0
- package/build/src/v1/programmatic_buyer_service_client_config.json +34 -0
- package/build/src/v1/programmatic_buyer_service_proto_list.json +74 -0
- package/build/src/v1/report_service_client.d.ts +350 -110
- package/build/src/v1/report_service_client.js +471 -177
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +29 -3
- package/build/src/v1/role_service_client.d.ts +290 -50
- package/build/src/v1/role_service_client.js +402 -81
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +29 -3
- package/build/src/v1/taxonomy_category_service_client.d.ts +291 -51
- package/build/src/v1/taxonomy_category_service_client.js +404 -87
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +29 -3
- package/build/src/v1/user_service_client.d.ts +251 -11
- package/build/src/v1/user_service_client.js +388 -59
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +29 -3
- package/package.json +4 -4
- package/CHANGELOG.md +0 -40
|
@@ -96,19 +96,11 @@ class CustomFieldServiceClient {
|
|
|
96
96
|
constructor(opts, gaxInstance) {
|
|
97
97
|
// Ensure that options include all the required fields.
|
|
98
98
|
const staticMembers = this.constructor;
|
|
99
|
-
if (opts?.universe_domain &&
|
|
100
|
-
opts?.universeDomain &&
|
|
101
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
|
99
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
|
102
100
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
103
101
|
}
|
|
104
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
105
|
-
|
|
106
|
-
: undefined;
|
|
107
|
-
this._universeDomain =
|
|
108
|
-
opts?.universeDomain ??
|
|
109
|
-
opts?.universe_domain ??
|
|
110
|
-
universeDomainEnvVar ??
|
|
111
|
-
'googleapis.com';
|
|
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';
|
|
112
104
|
this._servicePath = 'admanager.' + this._universeDomain;
|
|
113
105
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
114
106
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
@@ -121,8 +113,7 @@ class CustomFieldServiceClient {
|
|
|
121
113
|
else {
|
|
122
114
|
opts.fallback = opts.fallback ?? true;
|
|
123
115
|
}
|
|
124
|
-
const fallback = opts?.fallback ??
|
|
125
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
116
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
126
117
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
127
118
|
// Request numeric enum values if REST transport is used.
|
|
128
119
|
opts.numericEnums = true;
|
|
@@ -151,7 +142,10 @@ class CustomFieldServiceClient {
|
|
|
151
142
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
152
143
|
}
|
|
153
144
|
// Determine the client header string.
|
|
154
|
-
const clientHeader = [
|
|
145
|
+
const clientHeader = [
|
|
146
|
+
`gax/${this._gaxModule.version}`,
|
|
147
|
+
`gapic/${version}`,
|
|
148
|
+
];
|
|
155
149
|
if (typeof process === 'object' && 'versions' in process) {
|
|
156
150
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
157
151
|
}
|
|
@@ -173,17 +167,27 @@ class CustomFieldServiceClient {
|
|
|
173
167
|
// identifiers to uniquely identify resources within the API.
|
|
174
168
|
// Create useful helper objects for these.
|
|
175
169
|
this.pathTemplates = {
|
|
170
|
+
adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
|
|
176
171
|
adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
|
|
172
|
+
bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
|
|
177
173
|
companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
|
|
178
174
|
contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
|
|
179
175
|
customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
|
|
180
176
|
customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
|
|
181
|
-
customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/
|
|
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}'),
|
|
182
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}'),
|
|
183
181
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
182
|
+
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
184
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}'),
|
|
185
186
|
orderPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/orders/{order}'),
|
|
186
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}'),
|
|
187
191
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
188
192
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
189
193
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
@@ -194,7 +198,7 @@ class CustomFieldServiceClient {
|
|
|
194
198
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
195
199
|
// pages). Denote the keys used for pagination and results.
|
|
196
200
|
this.descriptors.page = {
|
|
197
|
-
listCustomFields: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'customFields')
|
|
201
|
+
listCustomFields: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'customFields')
|
|
198
202
|
};
|
|
199
203
|
// Put together the default options sent with requests.
|
|
200
204
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.CustomFieldService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -223,16 +227,13 @@ class CustomFieldServiceClient {
|
|
|
223
227
|
}
|
|
224
228
|
// Put together the "service stub" for
|
|
225
229
|
// google.ads.admanager.v1.CustomFieldService.
|
|
226
|
-
this.customFieldServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
+
this.customFieldServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
|
231
|
+
this._protos.lookupService('google.ads.admanager.v1.CustomFieldService') :
|
|
232
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
233
|
+
this._protos.google.ads.admanager.v1.CustomFieldService, this._opts, this._providedCustomServicePath);
|
|
230
234
|
// Iterate over each of the methods that the service provides
|
|
231
235
|
// and create an API call method for each.
|
|
232
|
-
const customFieldServiceStubMethods = [
|
|
233
|
-
'getCustomField',
|
|
234
|
-
'listCustomFields',
|
|
235
|
-
];
|
|
236
|
+
const customFieldServiceStubMethods = ['getCustomField', 'listCustomFields'];
|
|
236
237
|
for (const methodName of customFieldServiceStubMethods) {
|
|
237
238
|
const callPromise = this.customFieldServiceStub.then(stub => (...args) => {
|
|
238
239
|
if (this._terminated) {
|
|
@@ -243,7 +244,8 @@ class CustomFieldServiceClient {
|
|
|
243
244
|
}, (err) => () => {
|
|
244
245
|
throw err;
|
|
245
246
|
});
|
|
246
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
247
|
+
const descriptor = this.descriptors.page[methodName] ||
|
|
248
|
+
undefined;
|
|
247
249
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
248
250
|
this.innerApiCalls[methodName] = apiCall;
|
|
249
251
|
}
|
|
@@ -255,8 +257,7 @@ class CustomFieldServiceClient {
|
|
|
255
257
|
* @returns {string} The DNS address for this service.
|
|
256
258
|
*/
|
|
257
259
|
static get servicePath() {
|
|
258
|
-
if (typeof process === 'object' &&
|
|
259
|
-
typeof process.emitWarning === 'function') {
|
|
260
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
260
261
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
261
262
|
}
|
|
262
263
|
return 'admanager.googleapis.com';
|
|
@@ -267,8 +268,7 @@ class CustomFieldServiceClient {
|
|
|
267
268
|
* @returns {string} The DNS address for this service.
|
|
268
269
|
*/
|
|
269
270
|
static get apiEndpoint() {
|
|
270
|
-
if (typeof process === 'object' &&
|
|
271
|
-
typeof process.emitWarning === 'function') {
|
|
271
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
272
272
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
273
273
|
}
|
|
274
274
|
return 'admanager.googleapis.com';
|
|
@@ -296,7 +296,9 @@ class CustomFieldServiceClient {
|
|
|
296
296
|
* @returns {string[]} List of default scopes.
|
|
297
297
|
*/
|
|
298
298
|
static get scopes() {
|
|
299
|
-
return [
|
|
299
|
+
return [
|
|
300
|
+
'https://www.googleapis.com/auth/admanager'
|
|
301
|
+
];
|
|
300
302
|
}
|
|
301
303
|
/**
|
|
302
304
|
* Return the project ID used by this class.
|
|
@@ -322,13 +324,10 @@ class CustomFieldServiceClient {
|
|
|
322
324
|
options = options || {};
|
|
323
325
|
options.otherArgs = options.otherArgs || {};
|
|
324
326
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
325
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
326
|
-
|
|
327
|
-
name: request.name ?? '',
|
|
328
|
-
});
|
|
329
|
-
this.initialize().catch(err => {
|
|
330
|
-
throw err;
|
|
327
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
328
|
+
'name': request.name ?? '',
|
|
331
329
|
});
|
|
330
|
+
this.initialize().catch(err => { throw err; });
|
|
332
331
|
this._log.info('getCustomField request %j', request);
|
|
333
332
|
const wrappedCallback = callback
|
|
334
333
|
? (error, response, options, rawResponse) => {
|
|
@@ -336,11 +335,16 @@ class CustomFieldServiceClient {
|
|
|
336
335
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
337
336
|
}
|
|
338
337
|
: undefined;
|
|
339
|
-
return this.innerApiCalls
|
|
340
|
-
.getCustomField(request, options, wrappedCallback)
|
|
338
|
+
return this.innerApiCalls.getCustomField(request, options, wrappedCallback)
|
|
341
339
|
?.then(([response, options, rawResponse]) => {
|
|
342
340
|
this._log.info('getCustomField response %j', response);
|
|
343
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;
|
|
344
348
|
});
|
|
345
349
|
}
|
|
346
350
|
listCustomFields(request, optionsOrCallback, callback) {
|
|
@@ -356,13 +360,10 @@ class CustomFieldServiceClient {
|
|
|
356
360
|
options = options || {};
|
|
357
361
|
options.otherArgs = options.otherArgs || {};
|
|
358
362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
359
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
360
|
-
|
|
361
|
-
parent: request.parent ?? '',
|
|
362
|
-
});
|
|
363
|
-
this.initialize().catch(err => {
|
|
364
|
-
throw err;
|
|
363
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
364
|
+
'parent': request.parent ?? '',
|
|
365
365
|
});
|
|
366
|
+
this.initialize().catch(err => { throw err; });
|
|
366
367
|
const wrappedCallback = callback
|
|
367
368
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
368
369
|
this._log.info('listCustomFields values %j', values);
|
|
@@ -421,15 +422,12 @@ class CustomFieldServiceClient {
|
|
|
421
422
|
options = options || {};
|
|
422
423
|
options.otherArgs = options.otherArgs || {};
|
|
423
424
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
424
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
});
|
|
425
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
426
|
+
'parent': request.parent ?? '',
|
|
427
|
+
});
|
|
428
428
|
const defaultCallSettings = this._defaults['listCustomFields'];
|
|
429
429
|
const callSettings = defaultCallSettings.merge(options);
|
|
430
|
-
this.initialize().catch(err => {
|
|
431
|
-
throw err;
|
|
432
|
-
});
|
|
430
|
+
this.initialize().catch(err => { throw err; });
|
|
433
431
|
this._log.info('listCustomFields stream %j', request);
|
|
434
432
|
return this.descriptors.page.listCustomFields.createStream(this.innerApiCalls.listCustomFields, request, callSettings);
|
|
435
433
|
}
|
|
@@ -480,21 +478,63 @@ class CustomFieldServiceClient {
|
|
|
480
478
|
options = options || {};
|
|
481
479
|
options.otherArgs = options.otherArgs || {};
|
|
482
480
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
483
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
});
|
|
481
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
482
|
+
'parent': request.parent ?? '',
|
|
483
|
+
});
|
|
487
484
|
const defaultCallSettings = this._defaults['listCustomFields'];
|
|
488
485
|
const callSettings = defaultCallSettings.merge(options);
|
|
489
|
-
this.initialize().catch(err => {
|
|
490
|
-
throw err;
|
|
491
|
-
});
|
|
486
|
+
this.initialize().catch(err => { throw err; });
|
|
492
487
|
this._log.info('listCustomFields iterate %j', request);
|
|
493
488
|
return this.descriptors.page.listCustomFields.asyncIterate(this.innerApiCalls['listCustomFields'], request, callSettings);
|
|
494
489
|
}
|
|
495
490
|
// --------------------
|
|
496
491
|
// -- Path templates --
|
|
497
492
|
// --------------------
|
|
493
|
+
/**
|
|
494
|
+
* Return a fully-qualified adBreak resource name string.
|
|
495
|
+
*
|
|
496
|
+
* @param {string} network_code
|
|
497
|
+
* @param {string} asset_key
|
|
498
|
+
* @param {string} ad_break
|
|
499
|
+
* @returns {string} Resource name string.
|
|
500
|
+
*/
|
|
501
|
+
adBreakPath(networkCode, assetKey, adBreak) {
|
|
502
|
+
return this.pathTemplates.adBreakPathTemplate.render({
|
|
503
|
+
network_code: networkCode,
|
|
504
|
+
asset_key: assetKey,
|
|
505
|
+
ad_break: adBreak,
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Parse the network_code from AdBreak resource.
|
|
510
|
+
*
|
|
511
|
+
* @param {string} adBreakName
|
|
512
|
+
* A fully-qualified path representing AdBreak resource.
|
|
513
|
+
* @returns {string} A string representing the network_code.
|
|
514
|
+
*/
|
|
515
|
+
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
516
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Parse the asset_key from AdBreak resource.
|
|
520
|
+
*
|
|
521
|
+
* @param {string} adBreakName
|
|
522
|
+
* A fully-qualified path representing AdBreak resource.
|
|
523
|
+
* @returns {string} A string representing the asset_key.
|
|
524
|
+
*/
|
|
525
|
+
matchAssetKeyFromAdBreakName(adBreakName) {
|
|
526
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Parse the ad_break from AdBreak resource.
|
|
530
|
+
*
|
|
531
|
+
* @param {string} adBreakName
|
|
532
|
+
* A fully-qualified path representing AdBreak resource.
|
|
533
|
+
* @returns {string} A string representing the ad_break.
|
|
534
|
+
*/
|
|
535
|
+
matchAdBreakFromAdBreakName(adBreakName) {
|
|
536
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
|
|
537
|
+
}
|
|
498
538
|
/**
|
|
499
539
|
* Return a fully-qualified adUnit resource name string.
|
|
500
540
|
*
|
|
@@ -528,6 +568,39 @@ class CustomFieldServiceClient {
|
|
|
528
568
|
matchAdUnitFromAdUnitName(adUnitName) {
|
|
529
569
|
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
530
570
|
}
|
|
571
|
+
/**
|
|
572
|
+
* Return a fully-qualified bandwidthGroup resource name string.
|
|
573
|
+
*
|
|
574
|
+
* @param {string} network_code
|
|
575
|
+
* @param {string} bandwidth_group
|
|
576
|
+
* @returns {string} Resource name string.
|
|
577
|
+
*/
|
|
578
|
+
bandwidthGroupPath(networkCode, bandwidthGroup) {
|
|
579
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.render({
|
|
580
|
+
network_code: networkCode,
|
|
581
|
+
bandwidth_group: bandwidthGroup,
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Parse the network_code from BandwidthGroup resource.
|
|
586
|
+
*
|
|
587
|
+
* @param {string} bandwidthGroupName
|
|
588
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
589
|
+
* @returns {string} A string representing the network_code.
|
|
590
|
+
*/
|
|
591
|
+
matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
|
|
592
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Parse the bandwidth_group from BandwidthGroup resource.
|
|
596
|
+
*
|
|
597
|
+
* @param {string} bandwidthGroupName
|
|
598
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
599
|
+
* @returns {string} A string representing the bandwidth_group.
|
|
600
|
+
*/
|
|
601
|
+
matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
|
|
602
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
|
|
603
|
+
}
|
|
531
604
|
/**
|
|
532
605
|
* Return a fully-qualified company resource name string.
|
|
533
606
|
*
|
|
@@ -549,8 +622,7 @@ class CustomFieldServiceClient {
|
|
|
549
622
|
* @returns {string} A string representing the network_code.
|
|
550
623
|
*/
|
|
551
624
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
552
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
553
|
-
.network_code;
|
|
625
|
+
return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
|
|
554
626
|
}
|
|
555
627
|
/**
|
|
556
628
|
* Parse the company from Company resource.
|
|
@@ -583,8 +655,7 @@ class CustomFieldServiceClient {
|
|
|
583
655
|
* @returns {string} A string representing the network_code.
|
|
584
656
|
*/
|
|
585
657
|
matchNetworkCodeFromContactName(contactName) {
|
|
586
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
587
|
-
.network_code;
|
|
658
|
+
return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
|
|
588
659
|
}
|
|
589
660
|
/**
|
|
590
661
|
* Parse the contact from Contact resource.
|
|
@@ -617,8 +688,7 @@ class CustomFieldServiceClient {
|
|
|
617
688
|
* @returns {string} A string representing the network_code.
|
|
618
689
|
*/
|
|
619
690
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
620
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
621
|
-
.network_code;
|
|
691
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
|
|
622
692
|
}
|
|
623
693
|
/**
|
|
624
694
|
* Parse the custom_field from CustomField resource.
|
|
@@ -628,8 +698,7 @@ class CustomFieldServiceClient {
|
|
|
628
698
|
* @returns {string} A string representing the custom_field.
|
|
629
699
|
*/
|
|
630
700
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
631
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
632
|
-
.custom_field;
|
|
701
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
|
|
633
702
|
}
|
|
634
703
|
/**
|
|
635
704
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -668,14 +737,12 @@ class CustomFieldServiceClient {
|
|
|
668
737
|
* Return a fully-qualified customTargetingValue resource name string.
|
|
669
738
|
*
|
|
670
739
|
* @param {string} network_code
|
|
671
|
-
* @param {string} custom_targeting_key
|
|
672
740
|
* @param {string} custom_targeting_value
|
|
673
741
|
* @returns {string} Resource name string.
|
|
674
742
|
*/
|
|
675
|
-
customTargetingValuePath(networkCode,
|
|
743
|
+
customTargetingValuePath(networkCode, customTargetingValue) {
|
|
676
744
|
return this.pathTemplates.customTargetingValuePathTemplate.render({
|
|
677
745
|
network_code: networkCode,
|
|
678
|
-
custom_targeting_key: customTargetingKey,
|
|
679
746
|
custom_targeting_value: customTargetingValue,
|
|
680
747
|
});
|
|
681
748
|
}
|
|
@@ -689,16 +756,6 @@ class CustomFieldServiceClient {
|
|
|
689
756
|
matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
|
|
690
757
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
|
|
691
758
|
}
|
|
692
|
-
/**
|
|
693
|
-
* Parse the custom_targeting_key from CustomTargetingValue resource.
|
|
694
|
-
*
|
|
695
|
-
* @param {string} customTargetingValueName
|
|
696
|
-
* A fully-qualified path representing CustomTargetingValue resource.
|
|
697
|
-
* @returns {string} A string representing the custom_targeting_key.
|
|
698
|
-
*/
|
|
699
|
-
matchCustomTargetingKeyFromCustomTargetingValueName(customTargetingValueName) {
|
|
700
|
-
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_key;
|
|
701
|
-
}
|
|
702
759
|
/**
|
|
703
760
|
* Parse the custom_targeting_value from CustomTargetingValue resource.
|
|
704
761
|
*
|
|
@@ -709,6 +766,39 @@ class CustomFieldServiceClient {
|
|
|
709
766
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
710
767
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
711
768
|
}
|
|
769
|
+
/**
|
|
770
|
+
* Return a fully-qualified deviceCategory resource name string.
|
|
771
|
+
*
|
|
772
|
+
* @param {string} network_code
|
|
773
|
+
* @param {string} device_category
|
|
774
|
+
* @returns {string} Resource name string.
|
|
775
|
+
*/
|
|
776
|
+
deviceCategoryPath(networkCode, deviceCategory) {
|
|
777
|
+
return this.pathTemplates.deviceCategoryPathTemplate.render({
|
|
778
|
+
network_code: networkCode,
|
|
779
|
+
device_category: deviceCategory,
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Parse the network_code from DeviceCategory resource.
|
|
784
|
+
*
|
|
785
|
+
* @param {string} deviceCategoryName
|
|
786
|
+
* A fully-qualified path representing DeviceCategory resource.
|
|
787
|
+
* @returns {string} A string representing the network_code.
|
|
788
|
+
*/
|
|
789
|
+
matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
|
|
790
|
+
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Parse the device_category from DeviceCategory resource.
|
|
794
|
+
*
|
|
795
|
+
* @param {string} deviceCategoryName
|
|
796
|
+
* A fully-qualified path representing DeviceCategory resource.
|
|
797
|
+
* @returns {string} A string representing the device_category.
|
|
798
|
+
*/
|
|
799
|
+
matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
|
|
800
|
+
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
|
|
801
|
+
}
|
|
712
802
|
/**
|
|
713
803
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
714
804
|
*
|
|
@@ -742,6 +832,39 @@ class CustomFieldServiceClient {
|
|
|
742
832
|
matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
|
|
743
833
|
return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
|
|
744
834
|
}
|
|
835
|
+
/**
|
|
836
|
+
* Return a fully-qualified geoTarget resource name string.
|
|
837
|
+
*
|
|
838
|
+
* @param {string} network_code
|
|
839
|
+
* @param {string} geo_target
|
|
840
|
+
* @returns {string} Resource name string.
|
|
841
|
+
*/
|
|
842
|
+
geoTargetPath(networkCode, geoTarget) {
|
|
843
|
+
return this.pathTemplates.geoTargetPathTemplate.render({
|
|
844
|
+
network_code: networkCode,
|
|
845
|
+
geo_target: geoTarget,
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Parse the network_code from GeoTarget resource.
|
|
850
|
+
*
|
|
851
|
+
* @param {string} geoTargetName
|
|
852
|
+
* A fully-qualified path representing GeoTarget resource.
|
|
853
|
+
* @returns {string} A string representing the network_code.
|
|
854
|
+
*/
|
|
855
|
+
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
856
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Parse the geo_target from GeoTarget resource.
|
|
860
|
+
*
|
|
861
|
+
* @param {string} geoTargetName
|
|
862
|
+
* A fully-qualified path representing GeoTarget resource.
|
|
863
|
+
* @returns {string} A string representing the geo_target.
|
|
864
|
+
*/
|
|
865
|
+
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
866
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
|
|
867
|
+
}
|
|
745
868
|
/**
|
|
746
869
|
* Return a fully-qualified label resource name string.
|
|
747
870
|
*
|
|
@@ -775,6 +898,39 @@ class CustomFieldServiceClient {
|
|
|
775
898
|
matchLabelFromLabelName(labelName) {
|
|
776
899
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
777
900
|
}
|
|
901
|
+
/**
|
|
902
|
+
* Return a fully-qualified liveStreamEvent resource name string.
|
|
903
|
+
*
|
|
904
|
+
* @param {string} network_code
|
|
905
|
+
* @param {string} live_stream_event
|
|
906
|
+
* @returns {string} Resource name string.
|
|
907
|
+
*/
|
|
908
|
+
liveStreamEventPath(networkCode, liveStreamEvent) {
|
|
909
|
+
return this.pathTemplates.liveStreamEventPathTemplate.render({
|
|
910
|
+
network_code: networkCode,
|
|
911
|
+
live_stream_event: liveStreamEvent,
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Parse the network_code from LiveStreamEvent resource.
|
|
916
|
+
*
|
|
917
|
+
* @param {string} liveStreamEventName
|
|
918
|
+
* A fully-qualified path representing LiveStreamEvent resource.
|
|
919
|
+
* @returns {string} A string representing the network_code.
|
|
920
|
+
*/
|
|
921
|
+
matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
|
|
922
|
+
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Parse the live_stream_event from LiveStreamEvent resource.
|
|
926
|
+
*
|
|
927
|
+
* @param {string} liveStreamEventName
|
|
928
|
+
* A fully-qualified path representing LiveStreamEvent resource.
|
|
929
|
+
* @returns {string} A string representing the live_stream_event.
|
|
930
|
+
*/
|
|
931
|
+
matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
|
|
932
|
+
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
|
|
933
|
+
}
|
|
778
934
|
/**
|
|
779
935
|
* Return a fully-qualified network resource name string.
|
|
780
936
|
*
|
|
@@ -794,8 +950,73 @@ class CustomFieldServiceClient {
|
|
|
794
950
|
* @returns {string} A string representing the network_code.
|
|
795
951
|
*/
|
|
796
952
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
797
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
798
|
-
|
|
953
|
+
return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Return a fully-qualified operatingSystem resource name string.
|
|
957
|
+
*
|
|
958
|
+
* @param {string} network_code
|
|
959
|
+
* @param {string} operating_system
|
|
960
|
+
* @returns {string} Resource name string.
|
|
961
|
+
*/
|
|
962
|
+
operatingSystemPath(networkCode, operatingSystem) {
|
|
963
|
+
return this.pathTemplates.operatingSystemPathTemplate.render({
|
|
964
|
+
network_code: networkCode,
|
|
965
|
+
operating_system: operatingSystem,
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Parse the network_code from OperatingSystem resource.
|
|
970
|
+
*
|
|
971
|
+
* @param {string} operatingSystemName
|
|
972
|
+
* A fully-qualified path representing OperatingSystem resource.
|
|
973
|
+
* @returns {string} A string representing the network_code.
|
|
974
|
+
*/
|
|
975
|
+
matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
|
|
976
|
+
return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Parse the operating_system from OperatingSystem resource.
|
|
980
|
+
*
|
|
981
|
+
* @param {string} operatingSystemName
|
|
982
|
+
* A fully-qualified path representing OperatingSystem resource.
|
|
983
|
+
* @returns {string} A string representing the operating_system.
|
|
984
|
+
*/
|
|
985
|
+
matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
|
|
986
|
+
return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* Return a fully-qualified operatingSystemVersion resource name string.
|
|
990
|
+
*
|
|
991
|
+
* @param {string} network_code
|
|
992
|
+
* @param {string} operating_system_version
|
|
993
|
+
* @returns {string} Resource name string.
|
|
994
|
+
*/
|
|
995
|
+
operatingSystemVersionPath(networkCode, operatingSystemVersion) {
|
|
996
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.render({
|
|
997
|
+
network_code: networkCode,
|
|
998
|
+
operating_system_version: operatingSystemVersion,
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Parse the network_code from OperatingSystemVersion resource.
|
|
1003
|
+
*
|
|
1004
|
+
* @param {string} operatingSystemVersionName
|
|
1005
|
+
* A fully-qualified path representing OperatingSystemVersion resource.
|
|
1006
|
+
* @returns {string} A string representing the network_code.
|
|
1007
|
+
*/
|
|
1008
|
+
matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
|
|
1009
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Parse the operating_system_version from OperatingSystemVersion resource.
|
|
1013
|
+
*
|
|
1014
|
+
* @param {string} operatingSystemVersionName
|
|
1015
|
+
* A fully-qualified path representing OperatingSystemVersion resource.
|
|
1016
|
+
* @returns {string} A string representing the operating_system_version.
|
|
1017
|
+
*/
|
|
1018
|
+
matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
|
|
1019
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
|
|
799
1020
|
}
|
|
800
1021
|
/**
|
|
801
1022
|
* Return a fully-qualified order resource name string.
|
|
@@ -851,8 +1072,7 @@ class CustomFieldServiceClient {
|
|
|
851
1072
|
* @returns {string} A string representing the network_code.
|
|
852
1073
|
*/
|
|
853
1074
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
854
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
855
|
-
.network_code;
|
|
1075
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
|
|
856
1076
|
}
|
|
857
1077
|
/**
|
|
858
1078
|
* Parse the placement from Placement resource.
|
|
@@ -862,8 +1082,106 @@ class CustomFieldServiceClient {
|
|
|
862
1082
|
* @returns {string} A string representing the placement.
|
|
863
1083
|
*/
|
|
864
1084
|
matchPlacementFromPlacementName(placementName) {
|
|
865
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
866
|
-
|
|
1085
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).placement;
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Return a fully-qualified privateAuction resource name string.
|
|
1089
|
+
*
|
|
1090
|
+
* @param {string} network_code
|
|
1091
|
+
* @param {string} private_auction
|
|
1092
|
+
* @returns {string} Resource name string.
|
|
1093
|
+
*/
|
|
1094
|
+
privateAuctionPath(networkCode, privateAuction) {
|
|
1095
|
+
return this.pathTemplates.privateAuctionPathTemplate.render({
|
|
1096
|
+
network_code: networkCode,
|
|
1097
|
+
private_auction: privateAuction,
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Parse the network_code from PrivateAuction resource.
|
|
1102
|
+
*
|
|
1103
|
+
* @param {string} privateAuctionName
|
|
1104
|
+
* A fully-qualified path representing PrivateAuction resource.
|
|
1105
|
+
* @returns {string} A string representing the network_code.
|
|
1106
|
+
*/
|
|
1107
|
+
matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
|
|
1108
|
+
return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Parse the private_auction from PrivateAuction resource.
|
|
1112
|
+
*
|
|
1113
|
+
* @param {string} privateAuctionName
|
|
1114
|
+
* A fully-qualified path representing PrivateAuction resource.
|
|
1115
|
+
* @returns {string} A string representing the private_auction.
|
|
1116
|
+
*/
|
|
1117
|
+
matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
|
|
1118
|
+
return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Return a fully-qualified privateAuctionDeal resource name string.
|
|
1122
|
+
*
|
|
1123
|
+
* @param {string} network_code
|
|
1124
|
+
* @param {string} private_auction_deal
|
|
1125
|
+
* @returns {string} Resource name string.
|
|
1126
|
+
*/
|
|
1127
|
+
privateAuctionDealPath(networkCode, privateAuctionDeal) {
|
|
1128
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.render({
|
|
1129
|
+
network_code: networkCode,
|
|
1130
|
+
private_auction_deal: privateAuctionDeal,
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Parse the network_code from PrivateAuctionDeal resource.
|
|
1135
|
+
*
|
|
1136
|
+
* @param {string} privateAuctionDealName
|
|
1137
|
+
* A fully-qualified path representing PrivateAuctionDeal resource.
|
|
1138
|
+
* @returns {string} A string representing the network_code.
|
|
1139
|
+
*/
|
|
1140
|
+
matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
|
|
1141
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Parse the private_auction_deal from PrivateAuctionDeal resource.
|
|
1145
|
+
*
|
|
1146
|
+
* @param {string} privateAuctionDealName
|
|
1147
|
+
* A fully-qualified path representing PrivateAuctionDeal resource.
|
|
1148
|
+
* @returns {string} A string representing the private_auction_deal.
|
|
1149
|
+
*/
|
|
1150
|
+
matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
|
|
1151
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* Return a fully-qualified programmaticBuyer resource name string.
|
|
1155
|
+
*
|
|
1156
|
+
* @param {string} network_code
|
|
1157
|
+
* @param {string} programmatic_buyer
|
|
1158
|
+
* @returns {string} Resource name string.
|
|
1159
|
+
*/
|
|
1160
|
+
programmaticBuyerPath(networkCode, programmaticBuyer) {
|
|
1161
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.render({
|
|
1162
|
+
network_code: networkCode,
|
|
1163
|
+
programmatic_buyer: programmaticBuyer,
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Parse the network_code from ProgrammaticBuyer resource.
|
|
1168
|
+
*
|
|
1169
|
+
* @param {string} programmaticBuyerName
|
|
1170
|
+
* A fully-qualified path representing ProgrammaticBuyer resource.
|
|
1171
|
+
* @returns {string} A string representing the network_code.
|
|
1172
|
+
*/
|
|
1173
|
+
matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
|
|
1174
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* Parse the programmatic_buyer from ProgrammaticBuyer resource.
|
|
1178
|
+
*
|
|
1179
|
+
* @param {string} programmaticBuyerName
|
|
1180
|
+
* A fully-qualified path representing ProgrammaticBuyer resource.
|
|
1181
|
+
* @returns {string} A string representing the programmatic_buyer.
|
|
1182
|
+
*/
|
|
1183
|
+
matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
|
|
1184
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
|
|
867
1185
|
}
|
|
868
1186
|
/**
|
|
869
1187
|
* Return a fully-qualified report resource name string.
|