@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 RoleServiceClient {
|
|
|
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 RoleServiceClient {
|
|
|
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 RoleServiceClient {
|
|
|
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 RoleServiceClient {
|
|
|
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 RoleServiceClient {
|
|
|
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
|
-
listRoles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'roles')
|
|
201
|
+
listRoles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'roles')
|
|
198
202
|
};
|
|
199
203
|
// Put together the default options sent with requests.
|
|
200
204
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.RoleService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -223,10 +227,10 @@ class RoleServiceClient {
|
|
|
223
227
|
}
|
|
224
228
|
// Put together the "service stub" for
|
|
225
229
|
// google.ads.admanager.v1.RoleService.
|
|
226
|
-
this.roleServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
+
this.roleServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
|
231
|
+
this._protos.lookupService('google.ads.admanager.v1.RoleService') :
|
|
232
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
233
|
+
this._protos.google.ads.admanager.v1.RoleService, 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
236
|
const roleServiceStubMethods = ['getRole', 'listRoles'];
|
|
@@ -240,7 +244,8 @@ class RoleServiceClient {
|
|
|
240
244
|
}, (err) => () => {
|
|
241
245
|
throw err;
|
|
242
246
|
});
|
|
243
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
247
|
+
const descriptor = this.descriptors.page[methodName] ||
|
|
248
|
+
undefined;
|
|
244
249
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
245
250
|
this.innerApiCalls[methodName] = apiCall;
|
|
246
251
|
}
|
|
@@ -252,8 +257,7 @@ class RoleServiceClient {
|
|
|
252
257
|
* @returns {string} The DNS address for this service.
|
|
253
258
|
*/
|
|
254
259
|
static get servicePath() {
|
|
255
|
-
if (typeof process === 'object' &&
|
|
256
|
-
typeof process.emitWarning === 'function') {
|
|
260
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
257
261
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
258
262
|
}
|
|
259
263
|
return 'admanager.googleapis.com';
|
|
@@ -264,8 +268,7 @@ class RoleServiceClient {
|
|
|
264
268
|
* @returns {string} The DNS address for this service.
|
|
265
269
|
*/
|
|
266
270
|
static get apiEndpoint() {
|
|
267
|
-
if (typeof process === 'object' &&
|
|
268
|
-
typeof process.emitWarning === 'function') {
|
|
271
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
269
272
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
270
273
|
}
|
|
271
274
|
return 'admanager.googleapis.com';
|
|
@@ -293,7 +296,9 @@ class RoleServiceClient {
|
|
|
293
296
|
* @returns {string[]} List of default scopes.
|
|
294
297
|
*/
|
|
295
298
|
static get scopes() {
|
|
296
|
-
return [
|
|
299
|
+
return [
|
|
300
|
+
'https://www.googleapis.com/auth/admanager'
|
|
301
|
+
];
|
|
297
302
|
}
|
|
298
303
|
/**
|
|
299
304
|
* Return the project ID used by this class.
|
|
@@ -319,13 +324,10 @@ class RoleServiceClient {
|
|
|
319
324
|
options = options || {};
|
|
320
325
|
options.otherArgs = options.otherArgs || {};
|
|
321
326
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
322
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
323
|
-
|
|
324
|
-
name: request.name ?? '',
|
|
325
|
-
});
|
|
326
|
-
this.initialize().catch(err => {
|
|
327
|
-
throw err;
|
|
327
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
328
|
+
'name': request.name ?? '',
|
|
328
329
|
});
|
|
330
|
+
this.initialize().catch(err => { throw err; });
|
|
329
331
|
this._log.info('getRole request %j', request);
|
|
330
332
|
const wrappedCallback = callback
|
|
331
333
|
? (error, response, options, rawResponse) => {
|
|
@@ -333,11 +335,16 @@ class RoleServiceClient {
|
|
|
333
335
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
334
336
|
}
|
|
335
337
|
: undefined;
|
|
336
|
-
return this.innerApiCalls
|
|
337
|
-
.getRole(request, options, wrappedCallback)
|
|
338
|
+
return this.innerApiCalls.getRole(request, options, wrappedCallback)
|
|
338
339
|
?.then(([response, options, rawResponse]) => {
|
|
339
340
|
this._log.info('getRole response %j', response);
|
|
340
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;
|
|
341
348
|
});
|
|
342
349
|
}
|
|
343
350
|
listRoles(request, optionsOrCallback, callback) {
|
|
@@ -353,13 +360,10 @@ class RoleServiceClient {
|
|
|
353
360
|
options = options || {};
|
|
354
361
|
options.otherArgs = options.otherArgs || {};
|
|
355
362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
356
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
357
|
-
|
|
358
|
-
parent: request.parent ?? '',
|
|
359
|
-
});
|
|
360
|
-
this.initialize().catch(err => {
|
|
361
|
-
throw err;
|
|
363
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
364
|
+
'parent': request.parent ?? '',
|
|
362
365
|
});
|
|
366
|
+
this.initialize().catch(err => { throw err; });
|
|
363
367
|
const wrappedCallback = callback
|
|
364
368
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
365
369
|
this._log.info('listRoles values %j', values);
|
|
@@ -417,15 +421,12 @@ class RoleServiceClient {
|
|
|
417
421
|
options = options || {};
|
|
418
422
|
options.otherArgs = options.otherArgs || {};
|
|
419
423
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
420
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
});
|
|
424
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
425
|
+
'parent': request.parent ?? '',
|
|
426
|
+
});
|
|
424
427
|
const defaultCallSettings = this._defaults['listRoles'];
|
|
425
428
|
const callSettings = defaultCallSettings.merge(options);
|
|
426
|
-
this.initialize().catch(err => {
|
|
427
|
-
throw err;
|
|
428
|
-
});
|
|
429
|
+
this.initialize().catch(err => { throw err; });
|
|
429
430
|
this._log.info('listRoles stream %j', request);
|
|
430
431
|
return this.descriptors.page.listRoles.createStream(this.innerApiCalls.listRoles, request, callSettings);
|
|
431
432
|
}
|
|
@@ -475,21 +476,63 @@ class RoleServiceClient {
|
|
|
475
476
|
options = options || {};
|
|
476
477
|
options.otherArgs = options.otherArgs || {};
|
|
477
478
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
478
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
});
|
|
479
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
480
|
+
'parent': request.parent ?? '',
|
|
481
|
+
});
|
|
482
482
|
const defaultCallSettings = this._defaults['listRoles'];
|
|
483
483
|
const callSettings = defaultCallSettings.merge(options);
|
|
484
|
-
this.initialize().catch(err => {
|
|
485
|
-
throw err;
|
|
486
|
-
});
|
|
484
|
+
this.initialize().catch(err => { throw err; });
|
|
487
485
|
this._log.info('listRoles iterate %j', request);
|
|
488
486
|
return this.descriptors.page.listRoles.asyncIterate(this.innerApiCalls['listRoles'], request, callSettings);
|
|
489
487
|
}
|
|
490
488
|
// --------------------
|
|
491
489
|
// -- Path templates --
|
|
492
490
|
// --------------------
|
|
491
|
+
/**
|
|
492
|
+
* Return a fully-qualified adBreak resource name string.
|
|
493
|
+
*
|
|
494
|
+
* @param {string} network_code
|
|
495
|
+
* @param {string} asset_key
|
|
496
|
+
* @param {string} ad_break
|
|
497
|
+
* @returns {string} Resource name string.
|
|
498
|
+
*/
|
|
499
|
+
adBreakPath(networkCode, assetKey, adBreak) {
|
|
500
|
+
return this.pathTemplates.adBreakPathTemplate.render({
|
|
501
|
+
network_code: networkCode,
|
|
502
|
+
asset_key: assetKey,
|
|
503
|
+
ad_break: adBreak,
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Parse the network_code from AdBreak resource.
|
|
508
|
+
*
|
|
509
|
+
* @param {string} adBreakName
|
|
510
|
+
* A fully-qualified path representing AdBreak resource.
|
|
511
|
+
* @returns {string} A string representing the network_code.
|
|
512
|
+
*/
|
|
513
|
+
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
514
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Parse the asset_key from AdBreak resource.
|
|
518
|
+
*
|
|
519
|
+
* @param {string} adBreakName
|
|
520
|
+
* A fully-qualified path representing AdBreak resource.
|
|
521
|
+
* @returns {string} A string representing the asset_key.
|
|
522
|
+
*/
|
|
523
|
+
matchAssetKeyFromAdBreakName(adBreakName) {
|
|
524
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* Parse the ad_break from AdBreak resource.
|
|
528
|
+
*
|
|
529
|
+
* @param {string} adBreakName
|
|
530
|
+
* A fully-qualified path representing AdBreak resource.
|
|
531
|
+
* @returns {string} A string representing the ad_break.
|
|
532
|
+
*/
|
|
533
|
+
matchAdBreakFromAdBreakName(adBreakName) {
|
|
534
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
|
|
535
|
+
}
|
|
493
536
|
/**
|
|
494
537
|
* Return a fully-qualified adUnit resource name string.
|
|
495
538
|
*
|
|
@@ -523,6 +566,39 @@ class RoleServiceClient {
|
|
|
523
566
|
matchAdUnitFromAdUnitName(adUnitName) {
|
|
524
567
|
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
525
568
|
}
|
|
569
|
+
/**
|
|
570
|
+
* Return a fully-qualified bandwidthGroup resource name string.
|
|
571
|
+
*
|
|
572
|
+
* @param {string} network_code
|
|
573
|
+
* @param {string} bandwidth_group
|
|
574
|
+
* @returns {string} Resource name string.
|
|
575
|
+
*/
|
|
576
|
+
bandwidthGroupPath(networkCode, bandwidthGroup) {
|
|
577
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.render({
|
|
578
|
+
network_code: networkCode,
|
|
579
|
+
bandwidth_group: bandwidthGroup,
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Parse the network_code from BandwidthGroup resource.
|
|
584
|
+
*
|
|
585
|
+
* @param {string} bandwidthGroupName
|
|
586
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
587
|
+
* @returns {string} A string representing the network_code.
|
|
588
|
+
*/
|
|
589
|
+
matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
|
|
590
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Parse the bandwidth_group from BandwidthGroup resource.
|
|
594
|
+
*
|
|
595
|
+
* @param {string} bandwidthGroupName
|
|
596
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
597
|
+
* @returns {string} A string representing the bandwidth_group.
|
|
598
|
+
*/
|
|
599
|
+
matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
|
|
600
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
|
|
601
|
+
}
|
|
526
602
|
/**
|
|
527
603
|
* Return a fully-qualified company resource name string.
|
|
528
604
|
*
|
|
@@ -544,8 +620,7 @@ class RoleServiceClient {
|
|
|
544
620
|
* @returns {string} A string representing the network_code.
|
|
545
621
|
*/
|
|
546
622
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
547
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
548
|
-
.network_code;
|
|
623
|
+
return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
|
|
549
624
|
}
|
|
550
625
|
/**
|
|
551
626
|
* Parse the company from Company resource.
|
|
@@ -578,8 +653,7 @@ class RoleServiceClient {
|
|
|
578
653
|
* @returns {string} A string representing the network_code.
|
|
579
654
|
*/
|
|
580
655
|
matchNetworkCodeFromContactName(contactName) {
|
|
581
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
582
|
-
.network_code;
|
|
656
|
+
return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
|
|
583
657
|
}
|
|
584
658
|
/**
|
|
585
659
|
* Parse the contact from Contact resource.
|
|
@@ -612,8 +686,7 @@ class RoleServiceClient {
|
|
|
612
686
|
* @returns {string} A string representing the network_code.
|
|
613
687
|
*/
|
|
614
688
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
615
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
616
|
-
.network_code;
|
|
689
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
|
|
617
690
|
}
|
|
618
691
|
/**
|
|
619
692
|
* Parse the custom_field from CustomField resource.
|
|
@@ -623,8 +696,7 @@ class RoleServiceClient {
|
|
|
623
696
|
* @returns {string} A string representing the custom_field.
|
|
624
697
|
*/
|
|
625
698
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
626
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
627
|
-
.custom_field;
|
|
699
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
|
|
628
700
|
}
|
|
629
701
|
/**
|
|
630
702
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -663,14 +735,12 @@ class RoleServiceClient {
|
|
|
663
735
|
* Return a fully-qualified customTargetingValue resource name string.
|
|
664
736
|
*
|
|
665
737
|
* @param {string} network_code
|
|
666
|
-
* @param {string} custom_targeting_key
|
|
667
738
|
* @param {string} custom_targeting_value
|
|
668
739
|
* @returns {string} Resource name string.
|
|
669
740
|
*/
|
|
670
|
-
customTargetingValuePath(networkCode,
|
|
741
|
+
customTargetingValuePath(networkCode, customTargetingValue) {
|
|
671
742
|
return this.pathTemplates.customTargetingValuePathTemplate.render({
|
|
672
743
|
network_code: networkCode,
|
|
673
|
-
custom_targeting_key: customTargetingKey,
|
|
674
744
|
custom_targeting_value: customTargetingValue,
|
|
675
745
|
});
|
|
676
746
|
}
|
|
@@ -684,16 +754,6 @@ class RoleServiceClient {
|
|
|
684
754
|
matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
|
|
685
755
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
|
|
686
756
|
}
|
|
687
|
-
/**
|
|
688
|
-
* Parse the custom_targeting_key from CustomTargetingValue resource.
|
|
689
|
-
*
|
|
690
|
-
* @param {string} customTargetingValueName
|
|
691
|
-
* A fully-qualified path representing CustomTargetingValue resource.
|
|
692
|
-
* @returns {string} A string representing the custom_targeting_key.
|
|
693
|
-
*/
|
|
694
|
-
matchCustomTargetingKeyFromCustomTargetingValueName(customTargetingValueName) {
|
|
695
|
-
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_key;
|
|
696
|
-
}
|
|
697
757
|
/**
|
|
698
758
|
* Parse the custom_targeting_value from CustomTargetingValue resource.
|
|
699
759
|
*
|
|
@@ -704,6 +764,39 @@ class RoleServiceClient {
|
|
|
704
764
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
705
765
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
706
766
|
}
|
|
767
|
+
/**
|
|
768
|
+
* Return a fully-qualified deviceCategory resource name string.
|
|
769
|
+
*
|
|
770
|
+
* @param {string} network_code
|
|
771
|
+
* @param {string} device_category
|
|
772
|
+
* @returns {string} Resource name string.
|
|
773
|
+
*/
|
|
774
|
+
deviceCategoryPath(networkCode, deviceCategory) {
|
|
775
|
+
return this.pathTemplates.deviceCategoryPathTemplate.render({
|
|
776
|
+
network_code: networkCode,
|
|
777
|
+
device_category: deviceCategory,
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Parse the network_code from DeviceCategory resource.
|
|
782
|
+
*
|
|
783
|
+
* @param {string} deviceCategoryName
|
|
784
|
+
* A fully-qualified path representing DeviceCategory resource.
|
|
785
|
+
* @returns {string} A string representing the network_code.
|
|
786
|
+
*/
|
|
787
|
+
matchNetworkCodeFromDeviceCategoryName(deviceCategoryName) {
|
|
788
|
+
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).network_code;
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* Parse the device_category from DeviceCategory resource.
|
|
792
|
+
*
|
|
793
|
+
* @param {string} deviceCategoryName
|
|
794
|
+
* A fully-qualified path representing DeviceCategory resource.
|
|
795
|
+
* @returns {string} A string representing the device_category.
|
|
796
|
+
*/
|
|
797
|
+
matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
|
|
798
|
+
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
|
|
799
|
+
}
|
|
707
800
|
/**
|
|
708
801
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
709
802
|
*
|
|
@@ -737,6 +830,39 @@ class RoleServiceClient {
|
|
|
737
830
|
matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
|
|
738
831
|
return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
|
|
739
832
|
}
|
|
833
|
+
/**
|
|
834
|
+
* Return a fully-qualified geoTarget resource name string.
|
|
835
|
+
*
|
|
836
|
+
* @param {string} network_code
|
|
837
|
+
* @param {string} geo_target
|
|
838
|
+
* @returns {string} Resource name string.
|
|
839
|
+
*/
|
|
840
|
+
geoTargetPath(networkCode, geoTarget) {
|
|
841
|
+
return this.pathTemplates.geoTargetPathTemplate.render({
|
|
842
|
+
network_code: networkCode,
|
|
843
|
+
geo_target: geoTarget,
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Parse the network_code from GeoTarget resource.
|
|
848
|
+
*
|
|
849
|
+
* @param {string} geoTargetName
|
|
850
|
+
* A fully-qualified path representing GeoTarget resource.
|
|
851
|
+
* @returns {string} A string representing the network_code.
|
|
852
|
+
*/
|
|
853
|
+
matchNetworkCodeFromGeoTargetName(geoTargetName) {
|
|
854
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).network_code;
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* Parse the geo_target from GeoTarget resource.
|
|
858
|
+
*
|
|
859
|
+
* @param {string} geoTargetName
|
|
860
|
+
* A fully-qualified path representing GeoTarget resource.
|
|
861
|
+
* @returns {string} A string representing the geo_target.
|
|
862
|
+
*/
|
|
863
|
+
matchGeoTargetFromGeoTargetName(geoTargetName) {
|
|
864
|
+
return this.pathTemplates.geoTargetPathTemplate.match(geoTargetName).geo_target;
|
|
865
|
+
}
|
|
740
866
|
/**
|
|
741
867
|
* Return a fully-qualified label resource name string.
|
|
742
868
|
*
|
|
@@ -770,6 +896,39 @@ class RoleServiceClient {
|
|
|
770
896
|
matchLabelFromLabelName(labelName) {
|
|
771
897
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
772
898
|
}
|
|
899
|
+
/**
|
|
900
|
+
* Return a fully-qualified liveStreamEvent resource name string.
|
|
901
|
+
*
|
|
902
|
+
* @param {string} network_code
|
|
903
|
+
* @param {string} live_stream_event
|
|
904
|
+
* @returns {string} Resource name string.
|
|
905
|
+
*/
|
|
906
|
+
liveStreamEventPath(networkCode, liveStreamEvent) {
|
|
907
|
+
return this.pathTemplates.liveStreamEventPathTemplate.render({
|
|
908
|
+
network_code: networkCode,
|
|
909
|
+
live_stream_event: liveStreamEvent,
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Parse the network_code from LiveStreamEvent resource.
|
|
914
|
+
*
|
|
915
|
+
* @param {string} liveStreamEventName
|
|
916
|
+
* A fully-qualified path representing LiveStreamEvent resource.
|
|
917
|
+
* @returns {string} A string representing the network_code.
|
|
918
|
+
*/
|
|
919
|
+
matchNetworkCodeFromLiveStreamEventName(liveStreamEventName) {
|
|
920
|
+
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).network_code;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Parse the live_stream_event from LiveStreamEvent resource.
|
|
924
|
+
*
|
|
925
|
+
* @param {string} liveStreamEventName
|
|
926
|
+
* A fully-qualified path representing LiveStreamEvent resource.
|
|
927
|
+
* @returns {string} A string representing the live_stream_event.
|
|
928
|
+
*/
|
|
929
|
+
matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
|
|
930
|
+
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
|
|
931
|
+
}
|
|
773
932
|
/**
|
|
774
933
|
* Return a fully-qualified network resource name string.
|
|
775
934
|
*
|
|
@@ -789,8 +948,73 @@ class RoleServiceClient {
|
|
|
789
948
|
* @returns {string} A string representing the network_code.
|
|
790
949
|
*/
|
|
791
950
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
792
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
793
|
-
|
|
951
|
+
return this.pathTemplates.networkPathTemplate.match(networkName).network_code;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Return a fully-qualified operatingSystem resource name string.
|
|
955
|
+
*
|
|
956
|
+
* @param {string} network_code
|
|
957
|
+
* @param {string} operating_system
|
|
958
|
+
* @returns {string} Resource name string.
|
|
959
|
+
*/
|
|
960
|
+
operatingSystemPath(networkCode, operatingSystem) {
|
|
961
|
+
return this.pathTemplates.operatingSystemPathTemplate.render({
|
|
962
|
+
network_code: networkCode,
|
|
963
|
+
operating_system: operatingSystem,
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Parse the network_code from OperatingSystem resource.
|
|
968
|
+
*
|
|
969
|
+
* @param {string} operatingSystemName
|
|
970
|
+
* A fully-qualified path representing OperatingSystem resource.
|
|
971
|
+
* @returns {string} A string representing the network_code.
|
|
972
|
+
*/
|
|
973
|
+
matchNetworkCodeFromOperatingSystemName(operatingSystemName) {
|
|
974
|
+
return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).network_code;
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Parse the operating_system from OperatingSystem resource.
|
|
978
|
+
*
|
|
979
|
+
* @param {string} operatingSystemName
|
|
980
|
+
* A fully-qualified path representing OperatingSystem resource.
|
|
981
|
+
* @returns {string} A string representing the operating_system.
|
|
982
|
+
*/
|
|
983
|
+
matchOperatingSystemFromOperatingSystemName(operatingSystemName) {
|
|
984
|
+
return this.pathTemplates.operatingSystemPathTemplate.match(operatingSystemName).operating_system;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Return a fully-qualified operatingSystemVersion resource name string.
|
|
988
|
+
*
|
|
989
|
+
* @param {string} network_code
|
|
990
|
+
* @param {string} operating_system_version
|
|
991
|
+
* @returns {string} Resource name string.
|
|
992
|
+
*/
|
|
993
|
+
operatingSystemVersionPath(networkCode, operatingSystemVersion) {
|
|
994
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.render({
|
|
995
|
+
network_code: networkCode,
|
|
996
|
+
operating_system_version: operatingSystemVersion,
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Parse the network_code from OperatingSystemVersion resource.
|
|
1001
|
+
*
|
|
1002
|
+
* @param {string} operatingSystemVersionName
|
|
1003
|
+
* A fully-qualified path representing OperatingSystemVersion resource.
|
|
1004
|
+
* @returns {string} A string representing the network_code.
|
|
1005
|
+
*/
|
|
1006
|
+
matchNetworkCodeFromOperatingSystemVersionName(operatingSystemVersionName) {
|
|
1007
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).network_code;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Parse the operating_system_version from OperatingSystemVersion resource.
|
|
1011
|
+
*
|
|
1012
|
+
* @param {string} operatingSystemVersionName
|
|
1013
|
+
* A fully-qualified path representing OperatingSystemVersion resource.
|
|
1014
|
+
* @returns {string} A string representing the operating_system_version.
|
|
1015
|
+
*/
|
|
1016
|
+
matchOperatingSystemVersionFromOperatingSystemVersionName(operatingSystemVersionName) {
|
|
1017
|
+
return this.pathTemplates.operatingSystemVersionPathTemplate.match(operatingSystemVersionName).operating_system_version;
|
|
794
1018
|
}
|
|
795
1019
|
/**
|
|
796
1020
|
* Return a fully-qualified order resource name string.
|
|
@@ -846,8 +1070,7 @@ class RoleServiceClient {
|
|
|
846
1070
|
* @returns {string} A string representing the network_code.
|
|
847
1071
|
*/
|
|
848
1072
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
849
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
850
|
-
.network_code;
|
|
1073
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
|
|
851
1074
|
}
|
|
852
1075
|
/**
|
|
853
1076
|
* Parse the placement from Placement resource.
|
|
@@ -857,8 +1080,106 @@ class RoleServiceClient {
|
|
|
857
1080
|
* @returns {string} A string representing the placement.
|
|
858
1081
|
*/
|
|
859
1082
|
matchPlacementFromPlacementName(placementName) {
|
|
860
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
861
|
-
|
|
1083
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).placement;
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Return a fully-qualified privateAuction resource name string.
|
|
1087
|
+
*
|
|
1088
|
+
* @param {string} network_code
|
|
1089
|
+
* @param {string} private_auction
|
|
1090
|
+
* @returns {string} Resource name string.
|
|
1091
|
+
*/
|
|
1092
|
+
privateAuctionPath(networkCode, privateAuction) {
|
|
1093
|
+
return this.pathTemplates.privateAuctionPathTemplate.render({
|
|
1094
|
+
network_code: networkCode,
|
|
1095
|
+
private_auction: privateAuction,
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
/**
|
|
1099
|
+
* Parse the network_code from PrivateAuction resource.
|
|
1100
|
+
*
|
|
1101
|
+
* @param {string} privateAuctionName
|
|
1102
|
+
* A fully-qualified path representing PrivateAuction resource.
|
|
1103
|
+
* @returns {string} A string representing the network_code.
|
|
1104
|
+
*/
|
|
1105
|
+
matchNetworkCodeFromPrivateAuctionName(privateAuctionName) {
|
|
1106
|
+
return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).network_code;
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Parse the private_auction from PrivateAuction resource.
|
|
1110
|
+
*
|
|
1111
|
+
* @param {string} privateAuctionName
|
|
1112
|
+
* A fully-qualified path representing PrivateAuction resource.
|
|
1113
|
+
* @returns {string} A string representing the private_auction.
|
|
1114
|
+
*/
|
|
1115
|
+
matchPrivateAuctionFromPrivateAuctionName(privateAuctionName) {
|
|
1116
|
+
return this.pathTemplates.privateAuctionPathTemplate.match(privateAuctionName).private_auction;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Return a fully-qualified privateAuctionDeal resource name string.
|
|
1120
|
+
*
|
|
1121
|
+
* @param {string} network_code
|
|
1122
|
+
* @param {string} private_auction_deal
|
|
1123
|
+
* @returns {string} Resource name string.
|
|
1124
|
+
*/
|
|
1125
|
+
privateAuctionDealPath(networkCode, privateAuctionDeal) {
|
|
1126
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.render({
|
|
1127
|
+
network_code: networkCode,
|
|
1128
|
+
private_auction_deal: privateAuctionDeal,
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Parse the network_code from PrivateAuctionDeal resource.
|
|
1133
|
+
*
|
|
1134
|
+
* @param {string} privateAuctionDealName
|
|
1135
|
+
* A fully-qualified path representing PrivateAuctionDeal resource.
|
|
1136
|
+
* @returns {string} A string representing the network_code.
|
|
1137
|
+
*/
|
|
1138
|
+
matchNetworkCodeFromPrivateAuctionDealName(privateAuctionDealName) {
|
|
1139
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).network_code;
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Parse the private_auction_deal from PrivateAuctionDeal resource.
|
|
1143
|
+
*
|
|
1144
|
+
* @param {string} privateAuctionDealName
|
|
1145
|
+
* A fully-qualified path representing PrivateAuctionDeal resource.
|
|
1146
|
+
* @returns {string} A string representing the private_auction_deal.
|
|
1147
|
+
*/
|
|
1148
|
+
matchPrivateAuctionDealFromPrivateAuctionDealName(privateAuctionDealName) {
|
|
1149
|
+
return this.pathTemplates.privateAuctionDealPathTemplate.match(privateAuctionDealName).private_auction_deal;
|
|
1150
|
+
}
|
|
1151
|
+
/**
|
|
1152
|
+
* Return a fully-qualified programmaticBuyer resource name string.
|
|
1153
|
+
*
|
|
1154
|
+
* @param {string} network_code
|
|
1155
|
+
* @param {string} programmatic_buyer
|
|
1156
|
+
* @returns {string} Resource name string.
|
|
1157
|
+
*/
|
|
1158
|
+
programmaticBuyerPath(networkCode, programmaticBuyer) {
|
|
1159
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.render({
|
|
1160
|
+
network_code: networkCode,
|
|
1161
|
+
programmatic_buyer: programmaticBuyer,
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Parse the network_code from ProgrammaticBuyer resource.
|
|
1166
|
+
*
|
|
1167
|
+
* @param {string} programmaticBuyerName
|
|
1168
|
+
* A fully-qualified path representing ProgrammaticBuyer resource.
|
|
1169
|
+
* @returns {string} A string representing the network_code.
|
|
1170
|
+
*/
|
|
1171
|
+
matchNetworkCodeFromProgrammaticBuyerName(programmaticBuyerName) {
|
|
1172
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).network_code;
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Parse the programmatic_buyer from ProgrammaticBuyer resource.
|
|
1176
|
+
*
|
|
1177
|
+
* @param {string} programmaticBuyerName
|
|
1178
|
+
* A fully-qualified path representing ProgrammaticBuyer resource.
|
|
1179
|
+
* @returns {string} A string representing the programmatic_buyer.
|
|
1180
|
+
*/
|
|
1181
|
+
matchProgrammaticBuyerFromProgrammaticBuyerName(programmaticBuyerName) {
|
|
1182
|
+
return this.pathTemplates.programmaticBuyerPathTemplate.match(programmaticBuyerName).programmatic_buyer;
|
|
862
1183
|
}
|
|
863
1184
|
/**
|
|
864
1185
|
* Return a fully-qualified report resource name string.
|