@google-ads/admanager 0.2.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 +417 -95
- 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 +404 -75
- 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 +405 -79
- 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 +406 -82
- 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 +408 -84
- 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 +450 -114
- 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 +398 -62
- 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 +404 -75
- 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 +404 -75
- 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 +351 -111
- package/build/src/v1/report_service_client.js +477 -163
- 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 +404 -75
- 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 +406 -81
- 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 +389 -58
- 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 -33
|
@@ -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,11 +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
|
-
|
|
325
|
-
|
|
326
|
-
this.initialize();
|
|
327
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
328
|
+
'name': request.name ?? '',
|
|
329
|
+
});
|
|
330
|
+
this.initialize().catch(err => { throw err; });
|
|
327
331
|
this._log.info('getRole request %j', request);
|
|
328
332
|
const wrappedCallback = callback
|
|
329
333
|
? (error, response, options, rawResponse) => {
|
|
@@ -331,11 +335,16 @@ class RoleServiceClient {
|
|
|
331
335
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
332
336
|
}
|
|
333
337
|
: undefined;
|
|
334
|
-
return this.innerApiCalls
|
|
335
|
-
.getRole(request, options, wrappedCallback)
|
|
338
|
+
return this.innerApiCalls.getRole(request, options, wrappedCallback)
|
|
336
339
|
?.then(([response, options, rawResponse]) => {
|
|
337
340
|
this._log.info('getRole response %j', response);
|
|
338
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;
|
|
339
348
|
});
|
|
340
349
|
}
|
|
341
350
|
listRoles(request, optionsOrCallback, callback) {
|
|
@@ -351,11 +360,10 @@ class RoleServiceClient {
|
|
|
351
360
|
options = options || {};
|
|
352
361
|
options.otherArgs = options.otherArgs || {};
|
|
353
362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
354
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
this.initialize();
|
|
363
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
364
|
+
'parent': request.parent ?? '',
|
|
365
|
+
});
|
|
366
|
+
this.initialize().catch(err => { throw err; });
|
|
359
367
|
const wrappedCallback = callback
|
|
360
368
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
361
369
|
this._log.info('listRoles values %j', values);
|
|
@@ -413,13 +421,12 @@ class RoleServiceClient {
|
|
|
413
421
|
options = options || {};
|
|
414
422
|
options.otherArgs = options.otherArgs || {};
|
|
415
423
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
416
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
});
|
|
424
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
425
|
+
'parent': request.parent ?? '',
|
|
426
|
+
});
|
|
420
427
|
const defaultCallSettings = this._defaults['listRoles'];
|
|
421
428
|
const callSettings = defaultCallSettings.merge(options);
|
|
422
|
-
this.initialize();
|
|
429
|
+
this.initialize().catch(err => { throw err; });
|
|
423
430
|
this._log.info('listRoles stream %j', request);
|
|
424
431
|
return this.descriptors.page.listRoles.createStream(this.innerApiCalls.listRoles, request, callSettings);
|
|
425
432
|
}
|
|
@@ -469,19 +476,63 @@ class RoleServiceClient {
|
|
|
469
476
|
options = options || {};
|
|
470
477
|
options.otherArgs = options.otherArgs || {};
|
|
471
478
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
472
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
});
|
|
479
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
480
|
+
'parent': request.parent ?? '',
|
|
481
|
+
});
|
|
476
482
|
const defaultCallSettings = this._defaults['listRoles'];
|
|
477
483
|
const callSettings = defaultCallSettings.merge(options);
|
|
478
|
-
this.initialize();
|
|
484
|
+
this.initialize().catch(err => { throw err; });
|
|
479
485
|
this._log.info('listRoles iterate %j', request);
|
|
480
486
|
return this.descriptors.page.listRoles.asyncIterate(this.innerApiCalls['listRoles'], request, callSettings);
|
|
481
487
|
}
|
|
482
488
|
// --------------------
|
|
483
489
|
// -- Path templates --
|
|
484
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
|
+
}
|
|
485
536
|
/**
|
|
486
537
|
* Return a fully-qualified adUnit resource name string.
|
|
487
538
|
*
|
|
@@ -515,6 +566,39 @@ class RoleServiceClient {
|
|
|
515
566
|
matchAdUnitFromAdUnitName(adUnitName) {
|
|
516
567
|
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
517
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
|
+
}
|
|
518
602
|
/**
|
|
519
603
|
* Return a fully-qualified company resource name string.
|
|
520
604
|
*
|
|
@@ -536,8 +620,7 @@ class RoleServiceClient {
|
|
|
536
620
|
* @returns {string} A string representing the network_code.
|
|
537
621
|
*/
|
|
538
622
|
matchNetworkCodeFromCompanyName(companyName) {
|
|
539
|
-
return this.pathTemplates.companyPathTemplate.match(companyName)
|
|
540
|
-
.network_code;
|
|
623
|
+
return this.pathTemplates.companyPathTemplate.match(companyName).network_code;
|
|
541
624
|
}
|
|
542
625
|
/**
|
|
543
626
|
* Parse the company from Company resource.
|
|
@@ -570,8 +653,7 @@ class RoleServiceClient {
|
|
|
570
653
|
* @returns {string} A string representing the network_code.
|
|
571
654
|
*/
|
|
572
655
|
matchNetworkCodeFromContactName(contactName) {
|
|
573
|
-
return this.pathTemplates.contactPathTemplate.match(contactName)
|
|
574
|
-
.network_code;
|
|
656
|
+
return this.pathTemplates.contactPathTemplate.match(contactName).network_code;
|
|
575
657
|
}
|
|
576
658
|
/**
|
|
577
659
|
* Parse the contact from Contact resource.
|
|
@@ -604,8 +686,7 @@ class RoleServiceClient {
|
|
|
604
686
|
* @returns {string} A string representing the network_code.
|
|
605
687
|
*/
|
|
606
688
|
matchNetworkCodeFromCustomFieldName(customFieldName) {
|
|
607
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
608
|
-
.network_code;
|
|
689
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).network_code;
|
|
609
690
|
}
|
|
610
691
|
/**
|
|
611
692
|
* Parse the custom_field from CustomField resource.
|
|
@@ -615,8 +696,7 @@ class RoleServiceClient {
|
|
|
615
696
|
* @returns {string} A string representing the custom_field.
|
|
616
697
|
*/
|
|
617
698
|
matchCustomFieldFromCustomFieldName(customFieldName) {
|
|
618
|
-
return this.pathTemplates.customFieldPathTemplate.match(customFieldName)
|
|
619
|
-
.custom_field;
|
|
699
|
+
return this.pathTemplates.customFieldPathTemplate.match(customFieldName).custom_field;
|
|
620
700
|
}
|
|
621
701
|
/**
|
|
622
702
|
* Return a fully-qualified customTargetingKey resource name string.
|
|
@@ -655,14 +735,12 @@ class RoleServiceClient {
|
|
|
655
735
|
* Return a fully-qualified customTargetingValue resource name string.
|
|
656
736
|
*
|
|
657
737
|
* @param {string} network_code
|
|
658
|
-
* @param {string} custom_targeting_key
|
|
659
738
|
* @param {string} custom_targeting_value
|
|
660
739
|
* @returns {string} Resource name string.
|
|
661
740
|
*/
|
|
662
|
-
customTargetingValuePath(networkCode,
|
|
741
|
+
customTargetingValuePath(networkCode, customTargetingValue) {
|
|
663
742
|
return this.pathTemplates.customTargetingValuePathTemplate.render({
|
|
664
743
|
network_code: networkCode,
|
|
665
|
-
custom_targeting_key: customTargetingKey,
|
|
666
744
|
custom_targeting_value: customTargetingValue,
|
|
667
745
|
});
|
|
668
746
|
}
|
|
@@ -676,16 +754,6 @@ class RoleServiceClient {
|
|
|
676
754
|
matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName) {
|
|
677
755
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).network_code;
|
|
678
756
|
}
|
|
679
|
-
/**
|
|
680
|
-
* Parse the custom_targeting_key from CustomTargetingValue resource.
|
|
681
|
-
*
|
|
682
|
-
* @param {string} customTargetingValueName
|
|
683
|
-
* A fully-qualified path representing CustomTargetingValue resource.
|
|
684
|
-
* @returns {string} A string representing the custom_targeting_key.
|
|
685
|
-
*/
|
|
686
|
-
matchCustomTargetingKeyFromCustomTargetingValueName(customTargetingValueName) {
|
|
687
|
-
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_key;
|
|
688
|
-
}
|
|
689
757
|
/**
|
|
690
758
|
* Parse the custom_targeting_value from CustomTargetingValue resource.
|
|
691
759
|
*
|
|
@@ -696,6 +764,39 @@ class RoleServiceClient {
|
|
|
696
764
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
697
765
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
698
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
|
+
}
|
|
699
800
|
/**
|
|
700
801
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
701
802
|
*
|
|
@@ -729,6 +830,39 @@ class RoleServiceClient {
|
|
|
729
830
|
matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName) {
|
|
730
831
|
return this.pathTemplates.entitySignalsMappingPathTemplate.match(entitySignalsMappingName).entity_signals_mapping;
|
|
731
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
|
+
}
|
|
732
866
|
/**
|
|
733
867
|
* Return a fully-qualified label resource name string.
|
|
734
868
|
*
|
|
@@ -762,6 +896,39 @@ class RoleServiceClient {
|
|
|
762
896
|
matchLabelFromLabelName(labelName) {
|
|
763
897
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
764
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
|
+
}
|
|
765
932
|
/**
|
|
766
933
|
* Return a fully-qualified network resource name string.
|
|
767
934
|
*
|
|
@@ -781,8 +948,73 @@ class RoleServiceClient {
|
|
|
781
948
|
* @returns {string} A string representing the network_code.
|
|
782
949
|
*/
|
|
783
950
|
matchNetworkCodeFromNetworkName(networkName) {
|
|
784
|
-
return this.pathTemplates.networkPathTemplate.match(networkName)
|
|
785
|
-
|
|
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;
|
|
786
1018
|
}
|
|
787
1019
|
/**
|
|
788
1020
|
* Return a fully-qualified order resource name string.
|
|
@@ -838,8 +1070,7 @@ class RoleServiceClient {
|
|
|
838
1070
|
* @returns {string} A string representing the network_code.
|
|
839
1071
|
*/
|
|
840
1072
|
matchNetworkCodeFromPlacementName(placementName) {
|
|
841
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
842
|
-
.network_code;
|
|
1073
|
+
return this.pathTemplates.placementPathTemplate.match(placementName).network_code;
|
|
843
1074
|
}
|
|
844
1075
|
/**
|
|
845
1076
|
* Parse the placement from Placement resource.
|
|
@@ -849,8 +1080,106 @@ class RoleServiceClient {
|
|
|
849
1080
|
* @returns {string} A string representing the placement.
|
|
850
1081
|
*/
|
|
851
1082
|
matchPlacementFromPlacementName(placementName) {
|
|
852
|
-
return this.pathTemplates.placementPathTemplate.match(placementName)
|
|
853
|
-
|
|
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;
|
|
854
1183
|
}
|
|
855
1184
|
/**
|
|
856
1185
|
* Return a fully-qualified report resource name string.
|