| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis.dfareporting.v2_0; | 3 library googleapis.dfareporting.v2_0; |
| 2 | 4 |
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; |
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; |
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
| 7 | 9 |
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | |
| 11 import '../common/common.dart' as common; | |
| 12 | 13 |
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 16 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 17 ByteRange; |
| 18 |
| 19 const core.String USER_AGENT = 'dart-api-client dfareporting/v2.0'; |
| 15 | 20 |
| 16 /** Manage your DoubleClick Campaign Manager ad campaigns and reports. */ | 21 /** Manage your DoubleClick Campaign Manager ad campaigns and reports. */ |
| 17 class DfareportingApi { | 22 class DfareportingApi { |
| 18 /** View and manage DoubleClick for Advertisers reports */ | 23 /** View and manage DoubleClick for Advertisers reports */ |
| 19 static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting
"; | 24 static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting
"; |
| 20 | 25 |
| 21 /** | 26 /** |
| 22 * View and manage your DoubleClick Campaign Manager's (DCM) display ad | 27 * View and manage your DoubleClick Campaign Manager's (DCM) display ad |
| 23 * campaigns | 28 * campaigns |
| 24 */ | 29 */ |
| 25 static const DfatraffickingScope = "https://www.googleapis.com/auth/dfatraffic
king"; | 30 static const DfatraffickingScope = "https://www.googleapis.com/auth/dfatraffic
king"; |
| 26 | 31 |
| 27 | 32 |
| 28 final common_internal.ApiRequester _requester; | 33 final commons.ApiRequester _requester; |
| 29 | 34 |
| 30 AccountActiveAdSummariesResourceApi get accountActiveAdSummaries => new Accoun
tActiveAdSummariesResourceApi(_requester); | 35 AccountActiveAdSummariesResourceApi get accountActiveAdSummaries => new Accoun
tActiveAdSummariesResourceApi(_requester); |
| 31 AccountPermissionGroupsResourceApi get accountPermissionGroups => new AccountP
ermissionGroupsResourceApi(_requester); | 36 AccountPermissionGroupsResourceApi get accountPermissionGroups => new AccountP
ermissionGroupsResourceApi(_requester); |
| 32 AccountPermissionsResourceApi get accountPermissions => new AccountPermissions
ResourceApi(_requester); | 37 AccountPermissionsResourceApi get accountPermissions => new AccountPermissions
ResourceApi(_requester); |
| 33 AccountUserProfilesResourceApi get accountUserProfiles => new AccountUserProfi
lesResourceApi(_requester); | 38 AccountUserProfilesResourceApi get accountUserProfiles => new AccountUserProfi
lesResourceApi(_requester); |
| 34 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 39 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
| 35 AdsResourceApi get ads => new AdsResourceApi(_requester); | 40 AdsResourceApi get ads => new AdsResourceApi(_requester); |
| 36 AdvertiserGroupsResourceApi get advertiserGroups => new AdvertiserGroupsResour
ceApi(_requester); | 41 AdvertiserGroupsResourceApi get advertiserGroups => new AdvertiserGroupsResour
ceApi(_requester); |
| 37 AdvertisersResourceApi get advertisers => new AdvertisersResourceApi(_requeste
r); | 42 AdvertisersResourceApi get advertisers => new AdvertisersResourceApi(_requeste
r); |
| 38 BrowsersResourceApi get browsers => new BrowsersResourceApi(_requester); | 43 BrowsersResourceApi get browsers => new BrowsersResourceApi(_requester); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ReportsResourceApi get reports => new ReportsResourceApi(_requester); | 75 ReportsResourceApi get reports => new ReportsResourceApi(_requester); |
| 71 SitesResourceApi get sites => new SitesResourceApi(_requester); | 76 SitesResourceApi get sites => new SitesResourceApi(_requester); |
| 72 SizesResourceApi get sizes => new SizesResourceApi(_requester); | 77 SizesResourceApi get sizes => new SizesResourceApi(_requester); |
| 73 SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requeste
r); | 78 SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requeste
r); |
| 74 UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_reque
ster); | 79 UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_reque
ster); |
| 75 UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRo
lePermissionGroupsResourceApi(_requester); | 80 UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRo
lePermissionGroupsResourceApi(_requester); |
| 76 UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissi
onsResourceApi(_requester); | 81 UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissi
onsResourceApi(_requester); |
| 77 UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester); | 82 UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester); |
| 78 | 83 |
| 79 DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googlea
pis.com/", core.String servicePath: "dfareporting/v2.0/"}) : | 84 DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googlea
pis.com/", core.String servicePath: "dfareporting/v2.0/"}) : |
| 80 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 85 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 81 } | 86 } |
| 82 | 87 |
| 83 | 88 |
| 84 /** Not documented yet. */ | |
| 85 class AccountActiveAdSummariesResourceApi { | 89 class AccountActiveAdSummariesResourceApi { |
| 86 final common_internal.ApiRequester _requester; | 90 final commons.ApiRequester _requester; |
| 87 | 91 |
| 88 AccountActiveAdSummariesResourceApi(common_internal.ApiRequester client) : | 92 AccountActiveAdSummariesResourceApi(commons.ApiRequester client) : |
| 89 _requester = client; | 93 _requester = client; |
| 90 | 94 |
| 91 /** | 95 /** |
| 92 * Gets the account's active ad summary by account ID. | 96 * Gets the account's active ad summary by account ID. |
| 93 * | 97 * |
| 94 * Request parameters: | 98 * Request parameters: |
| 95 * | 99 * |
| 96 * [profileId] - User profile ID associated with this request. | 100 * [profileId] - User profile ID associated with this request. |
| 97 * | 101 * |
| 98 * [summaryAccountId] - Account ID. | 102 * [summaryAccountId] - Account ID. |
| 99 * | 103 * |
| 100 * Completes with a [AccountActiveAdSummary]. | 104 * Completes with a [AccountActiveAdSummary]. |
| 101 * | 105 * |
| 102 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 106 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 103 * error. | 107 * error. |
| 104 * | 108 * |
| 105 * If the used [http.Client] completes with an error when making a REST call, | 109 * If the used [http.Client] completes with an error when making a REST call, |
| 106 * this method will complete with the same error. | 110 * this method will complete with the same error. |
| 107 */ | 111 */ |
| 108 async.Future<AccountActiveAdSummary> get(core.String profileId, core.String su
mmaryAccountId) { | 112 async.Future<AccountActiveAdSummary> get(core.String profileId, core.String su
mmaryAccountId) { |
| 109 var _url = null; | 113 var _url = null; |
| 110 var _queryParams = new core.Map(); | 114 var _queryParams = new core.Map(); |
| 111 var _uploadMedia = null; | 115 var _uploadMedia = null; |
| 112 var _uploadOptions = null; | 116 var _uploadOptions = null; |
| 113 var _downloadOptions = common.DownloadOptions.Metadata; | 117 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 114 var _body = null; | 118 var _body = null; |
| 115 | 119 |
| 116 if (profileId == null) { | 120 if (profileId == null) { |
| 117 throw new core.ArgumentError("Parameter profileId is required."); | 121 throw new core.ArgumentError("Parameter profileId is required."); |
| 118 } | 122 } |
| 119 if (summaryAccountId == null) { | 123 if (summaryAccountId == null) { |
| 120 throw new core.ArgumentError("Parameter summaryAccountId is required."); | 124 throw new core.ArgumentError("Parameter summaryAccountId is required."); |
| 121 } | 125 } |
| 122 | 126 |
| 123 | 127 |
| 124 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountActiveAdSummaries/' + common_internal.Escaper.ecapeVariable('$summar
yAccountId'); | 128 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountActiveAdSummaries/' + commons.Escaper.ecapeVariable('$summaryAccountId'); |
| 125 | 129 |
| 126 var _response = _requester.request(_url, | 130 var _response = _requester.request(_url, |
| 127 "GET", | 131 "GET", |
| 128 body: _body, | 132 body: _body, |
| 129 queryParams: _queryParams, | 133 queryParams: _queryParams, |
| 130 uploadOptions: _uploadOptions, | 134 uploadOptions: _uploadOptions, |
| 131 uploadMedia: _uploadMedia, | 135 uploadMedia: _uploadMedia, |
| 132 downloadOptions: _downloadOptions); | 136 downloadOptions: _downloadOptions); |
| 133 return _response.then((data) => new AccountActiveAdSummary.fromJson(data)); | 137 return _response.then((data) => new AccountActiveAdSummary.fromJson(data)); |
| 134 } | 138 } |
| 135 | 139 |
| 136 } | 140 } |
| 137 | 141 |
| 138 | 142 |
| 139 /** Not documented yet. */ | |
| 140 class AccountPermissionGroupsResourceApi { | 143 class AccountPermissionGroupsResourceApi { |
| 141 final common_internal.ApiRequester _requester; | 144 final commons.ApiRequester _requester; |
| 142 | 145 |
| 143 AccountPermissionGroupsResourceApi(common_internal.ApiRequester client) : | 146 AccountPermissionGroupsResourceApi(commons.ApiRequester client) : |
| 144 _requester = client; | 147 _requester = client; |
| 145 | 148 |
| 146 /** | 149 /** |
| 147 * Gets one account permission group by ID. | 150 * Gets one account permission group by ID. |
| 148 * | 151 * |
| 149 * Request parameters: | 152 * Request parameters: |
| 150 * | 153 * |
| 151 * [profileId] - User profile ID associated with this request. | 154 * [profileId] - User profile ID associated with this request. |
| 152 * | 155 * |
| 153 * [id] - Account permission group ID. | 156 * [id] - Account permission group ID. |
| 154 * | 157 * |
| 155 * Completes with a [AccountPermissionGroup]. | 158 * Completes with a [AccountPermissionGroup]. |
| 156 * | 159 * |
| 157 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 158 * error. | 161 * error. |
| 159 * | 162 * |
| 160 * If the used [http.Client] completes with an error when making a REST call, | 163 * If the used [http.Client] completes with an error when making a REST call, |
| 161 * this method will complete with the same error. | 164 * this method will complete with the same error. |
| 162 */ | 165 */ |
| 163 async.Future<AccountPermissionGroup> get(core.String profileId, core.String id
) { | 166 async.Future<AccountPermissionGroup> get(core.String profileId, core.String id
) { |
| 164 var _url = null; | 167 var _url = null; |
| 165 var _queryParams = new core.Map(); | 168 var _queryParams = new core.Map(); |
| 166 var _uploadMedia = null; | 169 var _uploadMedia = null; |
| 167 var _uploadOptions = null; | 170 var _uploadOptions = null; |
| 168 var _downloadOptions = common.DownloadOptions.Metadata; | 171 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 169 var _body = null; | 172 var _body = null; |
| 170 | 173 |
| 171 if (profileId == null) { | 174 if (profileId == null) { |
| 172 throw new core.ArgumentError("Parameter profileId is required."); | 175 throw new core.ArgumentError("Parameter profileId is required."); |
| 173 } | 176 } |
| 174 if (id == null) { | 177 if (id == null) { |
| 175 throw new core.ArgumentError("Parameter id is required."); | 178 throw new core.ArgumentError("Parameter id is required."); |
| 176 } | 179 } |
| 177 | 180 |
| 178 | 181 |
| 179 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountPermissionGroups/' + common_internal.Escaper.ecapeVariable('$id'); | 182 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountPermissionGroups/' + commons.Escaper.ecapeVariable('$id'); |
| 180 | 183 |
| 181 var _response = _requester.request(_url, | 184 var _response = _requester.request(_url, |
| 182 "GET", | 185 "GET", |
| 183 body: _body, | 186 body: _body, |
| 184 queryParams: _queryParams, | 187 queryParams: _queryParams, |
| 185 uploadOptions: _uploadOptions, | 188 uploadOptions: _uploadOptions, |
| 186 uploadMedia: _uploadMedia, | 189 uploadMedia: _uploadMedia, |
| 187 downloadOptions: _downloadOptions); | 190 downloadOptions: _downloadOptions); |
| 188 return _response.then((data) => new AccountPermissionGroup.fromJson(data)); | 191 return _response.then((data) => new AccountPermissionGroup.fromJson(data)); |
| 189 } | 192 } |
| 190 | 193 |
| 191 /** | 194 /** |
| 192 * Retrieves the list of account permission groups. | 195 * Retrieves the list of account permission groups. |
| 193 * | 196 * |
| 194 * Request parameters: | 197 * Request parameters: |
| 195 * | 198 * |
| 196 * [profileId] - User profile ID associated with this request. | 199 * [profileId] - User profile ID associated with this request. |
| 197 * | 200 * |
| 198 * Completes with a [AccountPermissionGroupsListResponse]. | 201 * Completes with a [AccountPermissionGroupsListResponse]. |
| 199 * | 202 * |
| 200 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 203 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 201 * error. | 204 * error. |
| 202 * | 205 * |
| 203 * If the used [http.Client] completes with an error when making a REST call, | 206 * If the used [http.Client] completes with an error when making a REST call, |
| 204 * this method will complete with the same error. | 207 * this method will complete with the same error. |
| 205 */ | 208 */ |
| 206 async.Future<AccountPermissionGroupsListResponse> list(core.String profileId)
{ | 209 async.Future<AccountPermissionGroupsListResponse> list(core.String profileId)
{ |
| 207 var _url = null; | 210 var _url = null; |
| 208 var _queryParams = new core.Map(); | 211 var _queryParams = new core.Map(); |
| 209 var _uploadMedia = null; | 212 var _uploadMedia = null; |
| 210 var _uploadOptions = null; | 213 var _uploadOptions = null; |
| 211 var _downloadOptions = common.DownloadOptions.Metadata; | 214 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 212 var _body = null; | 215 var _body = null; |
| 213 | 216 |
| 214 if (profileId == null) { | 217 if (profileId == null) { |
| 215 throw new core.ArgumentError("Parameter profileId is required."); | 218 throw new core.ArgumentError("Parameter profileId is required."); |
| 216 } | 219 } |
| 217 | 220 |
| 218 | 221 |
| 219 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountPermissionGroups'; | 222 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountPermissionGroups'; |
| 220 | 223 |
| 221 var _response = _requester.request(_url, | 224 var _response = _requester.request(_url, |
| 222 "GET", | 225 "GET", |
| 223 body: _body, | 226 body: _body, |
| 224 queryParams: _queryParams, | 227 queryParams: _queryParams, |
| 225 uploadOptions: _uploadOptions, | 228 uploadOptions: _uploadOptions, |
| 226 uploadMedia: _uploadMedia, | 229 uploadMedia: _uploadMedia, |
| 227 downloadOptions: _downloadOptions); | 230 downloadOptions: _downloadOptions); |
| 228 return _response.then((data) => new AccountPermissionGroupsListResponse.from
Json(data)); | 231 return _response.then((data) => new AccountPermissionGroupsListResponse.from
Json(data)); |
| 229 } | 232 } |
| 230 | 233 |
| 231 } | 234 } |
| 232 | 235 |
| 233 | 236 |
| 234 /** Not documented yet. */ | |
| 235 class AccountPermissionsResourceApi { | 237 class AccountPermissionsResourceApi { |
| 236 final common_internal.ApiRequester _requester; | 238 final commons.ApiRequester _requester; |
| 237 | 239 |
| 238 AccountPermissionsResourceApi(common_internal.ApiRequester client) : | 240 AccountPermissionsResourceApi(commons.ApiRequester client) : |
| 239 _requester = client; | 241 _requester = client; |
| 240 | 242 |
| 241 /** | 243 /** |
| 242 * Gets one account permission by ID. | 244 * Gets one account permission by ID. |
| 243 * | 245 * |
| 244 * Request parameters: | 246 * Request parameters: |
| 245 * | 247 * |
| 246 * [profileId] - User profile ID associated with this request. | 248 * [profileId] - User profile ID associated with this request. |
| 247 * | 249 * |
| 248 * [id] - Account permission ID. | 250 * [id] - Account permission ID. |
| 249 * | 251 * |
| 250 * Completes with a [AccountPermission]. | 252 * Completes with a [AccountPermission]. |
| 251 * | 253 * |
| 252 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 254 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 253 * error. | 255 * error. |
| 254 * | 256 * |
| 255 * If the used [http.Client] completes with an error when making a REST call, | 257 * If the used [http.Client] completes with an error when making a REST call, |
| 256 * this method will complete with the same error. | 258 * this method will complete with the same error. |
| 257 */ | 259 */ |
| 258 async.Future<AccountPermission> get(core.String profileId, core.String id) { | 260 async.Future<AccountPermission> get(core.String profileId, core.String id) { |
| 259 var _url = null; | 261 var _url = null; |
| 260 var _queryParams = new core.Map(); | 262 var _queryParams = new core.Map(); |
| 261 var _uploadMedia = null; | 263 var _uploadMedia = null; |
| 262 var _uploadOptions = null; | 264 var _uploadOptions = null; |
| 263 var _downloadOptions = common.DownloadOptions.Metadata; | 265 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 264 var _body = null; | 266 var _body = null; |
| 265 | 267 |
| 266 if (profileId == null) { | 268 if (profileId == null) { |
| 267 throw new core.ArgumentError("Parameter profileId is required."); | 269 throw new core.ArgumentError("Parameter profileId is required."); |
| 268 } | 270 } |
| 269 if (id == null) { | 271 if (id == null) { |
| 270 throw new core.ArgumentError("Parameter id is required."); | 272 throw new core.ArgumentError("Parameter id is required."); |
| 271 } | 273 } |
| 272 | 274 |
| 273 | 275 |
| 274 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountPermissions/' + common_internal.Escaper.ecapeVariable('$id'); | 276 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountPermissions/' + commons.Escaper.ecapeVariable('$id'); |
| 275 | 277 |
| 276 var _response = _requester.request(_url, | 278 var _response = _requester.request(_url, |
| 277 "GET", | 279 "GET", |
| 278 body: _body, | 280 body: _body, |
| 279 queryParams: _queryParams, | 281 queryParams: _queryParams, |
| 280 uploadOptions: _uploadOptions, | 282 uploadOptions: _uploadOptions, |
| 281 uploadMedia: _uploadMedia, | 283 uploadMedia: _uploadMedia, |
| 282 downloadOptions: _downloadOptions); | 284 downloadOptions: _downloadOptions); |
| 283 return _response.then((data) => new AccountPermission.fromJson(data)); | 285 return _response.then((data) => new AccountPermission.fromJson(data)); |
| 284 } | 286 } |
| 285 | 287 |
| 286 /** | 288 /** |
| 287 * Retrieves the list of account permissions. | 289 * Retrieves the list of account permissions. |
| 288 * | 290 * |
| 289 * Request parameters: | 291 * Request parameters: |
| 290 * | 292 * |
| 291 * [profileId] - User profile ID associated with this request. | 293 * [profileId] - User profile ID associated with this request. |
| 292 * | 294 * |
| 293 * Completes with a [AccountPermissionsListResponse]. | 295 * Completes with a [AccountPermissionsListResponse]. |
| 294 * | 296 * |
| 295 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 297 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 296 * error. | 298 * error. |
| 297 * | 299 * |
| 298 * If the used [http.Client] completes with an error when making a REST call, | 300 * If the used [http.Client] completes with an error when making a REST call, |
| 299 * this method will complete with the same error. | 301 * this method will complete with the same error. |
| 300 */ | 302 */ |
| 301 async.Future<AccountPermissionsListResponse> list(core.String profileId) { | 303 async.Future<AccountPermissionsListResponse> list(core.String profileId) { |
| 302 var _url = null; | 304 var _url = null; |
| 303 var _queryParams = new core.Map(); | 305 var _queryParams = new core.Map(); |
| 304 var _uploadMedia = null; | 306 var _uploadMedia = null; |
| 305 var _uploadOptions = null; | 307 var _uploadOptions = null; |
| 306 var _downloadOptions = common.DownloadOptions.Metadata; | 308 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 307 var _body = null; | 309 var _body = null; |
| 308 | 310 |
| 309 if (profileId == null) { | 311 if (profileId == null) { |
| 310 throw new core.ArgumentError("Parameter profileId is required."); | 312 throw new core.ArgumentError("Parameter profileId is required."); |
| 311 } | 313 } |
| 312 | 314 |
| 313 | 315 |
| 314 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountPermissions'; | 316 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountPermissions'; |
| 315 | 317 |
| 316 var _response = _requester.request(_url, | 318 var _response = _requester.request(_url, |
| 317 "GET", | 319 "GET", |
| 318 body: _body, | 320 body: _body, |
| 319 queryParams: _queryParams, | 321 queryParams: _queryParams, |
| 320 uploadOptions: _uploadOptions, | 322 uploadOptions: _uploadOptions, |
| 321 uploadMedia: _uploadMedia, | 323 uploadMedia: _uploadMedia, |
| 322 downloadOptions: _downloadOptions); | 324 downloadOptions: _downloadOptions); |
| 323 return _response.then((data) => new AccountPermissionsListResponse.fromJson(
data)); | 325 return _response.then((data) => new AccountPermissionsListResponse.fromJson(
data)); |
| 324 } | 326 } |
| 325 | 327 |
| 326 } | 328 } |
| 327 | 329 |
| 328 | 330 |
| 329 /** Not documented yet. */ | |
| 330 class AccountUserProfilesResourceApi { | 331 class AccountUserProfilesResourceApi { |
| 331 final common_internal.ApiRequester _requester; | 332 final commons.ApiRequester _requester; |
| 332 | 333 |
| 333 AccountUserProfilesResourceApi(common_internal.ApiRequester client) : | 334 AccountUserProfilesResourceApi(commons.ApiRequester client) : |
| 334 _requester = client; | 335 _requester = client; |
| 335 | 336 |
| 336 /** | 337 /** |
| 337 * Gets one account user profile by ID. | 338 * Gets one account user profile by ID. |
| 338 * | 339 * |
| 339 * Request parameters: | 340 * Request parameters: |
| 340 * | 341 * |
| 341 * [profileId] - User profile ID associated with this request. | 342 * [profileId] - User profile ID associated with this request. |
| 342 * | 343 * |
| 343 * [id] - User profile ID. | 344 * [id] - User profile ID. |
| 344 * | 345 * |
| 345 * Completes with a [AccountUserProfile]. | 346 * Completes with a [AccountUserProfile]. |
| 346 * | 347 * |
| 347 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 348 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 348 * error. | 349 * error. |
| 349 * | 350 * |
| 350 * If the used [http.Client] completes with an error when making a REST call, | 351 * If the used [http.Client] completes with an error when making a REST call, |
| 351 * this method will complete with the same error. | 352 * this method will complete with the same error. |
| 352 */ | 353 */ |
| 353 async.Future<AccountUserProfile> get(core.String profileId, core.String id) { | 354 async.Future<AccountUserProfile> get(core.String profileId, core.String id) { |
| 354 var _url = null; | 355 var _url = null; |
| 355 var _queryParams = new core.Map(); | 356 var _queryParams = new core.Map(); |
| 356 var _uploadMedia = null; | 357 var _uploadMedia = null; |
| 357 var _uploadOptions = null; | 358 var _uploadOptions = null; |
| 358 var _downloadOptions = common.DownloadOptions.Metadata; | 359 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 359 var _body = null; | 360 var _body = null; |
| 360 | 361 |
| 361 if (profileId == null) { | 362 if (profileId == null) { |
| 362 throw new core.ArgumentError("Parameter profileId is required."); | 363 throw new core.ArgumentError("Parameter profileId is required."); |
| 363 } | 364 } |
| 364 if (id == null) { | 365 if (id == null) { |
| 365 throw new core.ArgumentError("Parameter id is required."); | 366 throw new core.ArgumentError("Parameter id is required."); |
| 366 } | 367 } |
| 367 | 368 |
| 368 | 369 |
| 369 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountUserProfiles/' + common_internal.Escaper.ecapeVariable('$id'); | 370 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountUserProfiles/' + commons.Escaper.ecapeVariable('$id'); |
| 370 | 371 |
| 371 var _response = _requester.request(_url, | 372 var _response = _requester.request(_url, |
| 372 "GET", | 373 "GET", |
| 373 body: _body, | 374 body: _body, |
| 374 queryParams: _queryParams, | 375 queryParams: _queryParams, |
| 375 uploadOptions: _uploadOptions, | 376 uploadOptions: _uploadOptions, |
| 376 uploadMedia: _uploadMedia, | 377 uploadMedia: _uploadMedia, |
| 377 downloadOptions: _downloadOptions); | 378 downloadOptions: _downloadOptions); |
| 378 return _response.then((data) => new AccountUserProfile.fromJson(data)); | 379 return _response.then((data) => new AccountUserProfile.fromJson(data)); |
| 379 } | 380 } |
| 380 | 381 |
| 381 /** | 382 /** |
| 382 * Retrieves a list of account user profiles, possibly filtered. | 383 * Retrieves a list of account user profiles, possibly filtered. |
| 383 * | 384 * |
| 384 * Request parameters: | 385 * Request parameters: |
| 385 * | 386 * |
| 386 * [profileId] - User profile ID associated with this request. | 387 * [profileId] - User profile ID associated with this request. |
| 387 * | 388 * |
| 388 * [active] - Select only active user profiles. | 389 * [active] - Select only active user profiles. |
| 389 * | 390 * |
| 390 * [ids] - Select only user profiles with these IDs. | 391 * [ids] - Select only user profiles with these IDs. |
| 391 * | 392 * |
| 392 * [maxResults] - Maximum number of results to return. | 393 * [maxResults] - Maximum number of results to return. |
| 393 * | 394 * |
| 394 * [pageToken] - Value of the nextPageToken from the previous result page. | 395 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 395 * | 396 * |
| 396 * [searchString] - Allows searching for objects by name, ID or email. | 397 * [searchString] - Allows searching for objects by name, ID or email. |
| 397 * Wildcards (*) are allowed. For example, "user profile*2015" will return | 398 * Wildcards (*) are allowed. For example, "user profile*2015" will return |
| 398 * objects with names like "user profile June 2015", "user profile April 2015" | 399 * objects with names like "user profile June 2015", "user profile April |
| 399 * or simply "user profile 2015". Most of the searches also add wildcards | 400 * 2015", or simply "user profile 2015". Most of the searches also add |
| 400 * implicitly at the start and the end of the search string. For example, a | 401 * wildcards implicitly at the start and the end of the search string. For |
| 401 * search string of "user profile" will match objects with name "my user | 402 * example, a search string of "user profile" will match objects with name "my |
| 402 * profile", "user profile 2015" or simply "user profile". | 403 * user profile", "user profile 2015", or simply "user profile". |
| 403 * | 404 * |
| 404 * [sortField] - Field by which to sort the list. | 405 * [sortField] - Field by which to sort the list. |
| 405 * Possible string values are: | 406 * Possible string values are: |
| 406 * - "ID" | 407 * - "ID" |
| 407 * - "NAME" | 408 * - "NAME" |
| 408 * | 409 * |
| 409 * [sortOrder] - Order of sorted results, default is ASCENDING. | 410 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 410 * Possible string values are: | 411 * Possible string values are: |
| 411 * - "ASCENDING" | 412 * - "ASCENDING" |
| 412 * - "DESCENDING" | 413 * - "DESCENDING" |
| 413 * | 414 * |
| 414 * [subaccountId] - Select only user profiles with the specified subaccount | 415 * [subaccountId] - Select only user profiles with the specified subaccount |
| 415 * ID. | 416 * ID. |
| 416 * | 417 * |
| 417 * [userRoleId] - Select only user profiles with the specified user role ID. | 418 * [userRoleId] - Select only user profiles with the specified user role ID. |
| 418 * | 419 * |
| 419 * Completes with a [AccountUserProfilesListResponse]. | 420 * Completes with a [AccountUserProfilesListResponse]. |
| 420 * | 421 * |
| 421 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 422 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 422 * error. | 423 * error. |
| 423 * | 424 * |
| 424 * If the used [http.Client] completes with an error when making a REST call, | 425 * If the used [http.Client] completes with an error when making a REST call, |
| 425 * this method will complete with the same error. | 426 * this method will complete with the same error. |
| 426 */ | 427 */ |
| 427 async.Future<AccountUserProfilesListResponse> list(core.String profileId, {cor
e.bool active, core.List<core.String> ids, core.int maxResults, core.String page
Token, core.String searchString, core.String sortField, core.String sortOrder, c
ore.String subaccountId, core.String userRoleId}) { | 428 async.Future<AccountUserProfilesListResponse> list(core.String profileId, {cor
e.bool active, core.List<core.String> ids, core.int maxResults, core.String page
Token, core.String searchString, core.String sortField, core.String sortOrder, c
ore.String subaccountId, core.String userRoleId}) { |
| 428 var _url = null; | 429 var _url = null; |
| 429 var _queryParams = new core.Map(); | 430 var _queryParams = new core.Map(); |
| 430 var _uploadMedia = null; | 431 var _uploadMedia = null; |
| 431 var _uploadOptions = null; | 432 var _uploadOptions = null; |
| 432 var _downloadOptions = common.DownloadOptions.Metadata; | 433 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 433 var _body = null; | 434 var _body = null; |
| 434 | 435 |
| 435 if (profileId == null) { | 436 if (profileId == null) { |
| 436 throw new core.ArgumentError("Parameter profileId is required."); | 437 throw new core.ArgumentError("Parameter profileId is required."); |
| 437 } | 438 } |
| 438 if (active != null) { | 439 if (active != null) { |
| 439 _queryParams["active"] = ["${active}"]; | 440 _queryParams["active"] = ["${active}"]; |
| 440 } | 441 } |
| 441 if (ids != null) { | 442 if (ids != null) { |
| 442 _queryParams["ids"] = ids; | 443 _queryParams["ids"] = ids; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 457 _queryParams["sortOrder"] = [sortOrder]; | 458 _queryParams["sortOrder"] = [sortOrder]; |
| 458 } | 459 } |
| 459 if (subaccountId != null) { | 460 if (subaccountId != null) { |
| 460 _queryParams["subaccountId"] = [subaccountId]; | 461 _queryParams["subaccountId"] = [subaccountId]; |
| 461 } | 462 } |
| 462 if (userRoleId != null) { | 463 if (userRoleId != null) { |
| 463 _queryParams["userRoleId"] = [userRoleId]; | 464 _queryParams["userRoleId"] = [userRoleId]; |
| 464 } | 465 } |
| 465 | 466 |
| 466 | 467 |
| 467 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountUserProfiles'; | 468 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountUserProfiles'; |
| 468 | 469 |
| 469 var _response = _requester.request(_url, | 470 var _response = _requester.request(_url, |
| 470 "GET", | 471 "GET", |
| 471 body: _body, | 472 body: _body, |
| 472 queryParams: _queryParams, | 473 queryParams: _queryParams, |
| 473 uploadOptions: _uploadOptions, | 474 uploadOptions: _uploadOptions, |
| 474 uploadMedia: _uploadMedia, | 475 uploadMedia: _uploadMedia, |
| 475 downloadOptions: _downloadOptions); | 476 downloadOptions: _downloadOptions); |
| 476 return _response.then((data) => new AccountUserProfilesListResponse.fromJson
(data)); | 477 return _response.then((data) => new AccountUserProfilesListResponse.fromJson
(data)); |
| 477 } | 478 } |
| 478 | 479 |
| 479 /** | 480 /** |
| 480 * Updates an existing account user profile. This method supports patch | 481 * Updates an existing account user profile. This method supports patch |
| 481 * semantics. | 482 * semantics. |
| 482 * | 483 * |
| 483 * [request] - The metadata request object. | 484 * [request] - The metadata request object. |
| 484 * | 485 * |
| 485 * Request parameters: | 486 * Request parameters: |
| 486 * | 487 * |
| 487 * [profileId] - User profile ID associated with this request. | 488 * [profileId] - User profile ID associated with this request. |
| 488 * | 489 * |
| 489 * [id] - User profile ID. | 490 * [id] - User profile ID. |
| 490 * | 491 * |
| 491 * Completes with a [AccountUserProfile]. | 492 * Completes with a [AccountUserProfile]. |
| 492 * | 493 * |
| 493 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 494 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 494 * error. | 495 * error. |
| 495 * | 496 * |
| 496 * If the used [http.Client] completes with an error when making a REST call, | 497 * If the used [http.Client] completes with an error when making a REST call, |
| 497 * this method will complete with the same error. | 498 * this method will complete with the same error. |
| 498 */ | 499 */ |
| 499 async.Future<AccountUserProfile> patch(AccountUserProfile request, core.String
profileId, core.String id) { | 500 async.Future<AccountUserProfile> patch(AccountUserProfile request, core.String
profileId, core.String id) { |
| 500 var _url = null; | 501 var _url = null; |
| 501 var _queryParams = new core.Map(); | 502 var _queryParams = new core.Map(); |
| 502 var _uploadMedia = null; | 503 var _uploadMedia = null; |
| 503 var _uploadOptions = null; | 504 var _uploadOptions = null; |
| 504 var _downloadOptions = common.DownloadOptions.Metadata; | 505 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 505 var _body = null; | 506 var _body = null; |
| 506 | 507 |
| 507 if (request != null) { | 508 if (request != null) { |
| 508 _body = convert.JSON.encode((request).toJson()); | 509 _body = convert.JSON.encode((request).toJson()); |
| 509 } | 510 } |
| 510 if (profileId == null) { | 511 if (profileId == null) { |
| 511 throw new core.ArgumentError("Parameter profileId is required."); | 512 throw new core.ArgumentError("Parameter profileId is required."); |
| 512 } | 513 } |
| 513 if (id == null) { | 514 if (id == null) { |
| 514 throw new core.ArgumentError("Parameter id is required."); | 515 throw new core.ArgumentError("Parameter id is required."); |
| 515 } | 516 } |
| 516 _queryParams["id"] = [id]; | 517 _queryParams["id"] = [id]; |
| 517 | 518 |
| 518 | 519 |
| 519 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountUserProfiles'; | 520 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountUserProfiles'; |
| 520 | 521 |
| 521 var _response = _requester.request(_url, | 522 var _response = _requester.request(_url, |
| 522 "PATCH", | 523 "PATCH", |
| 523 body: _body, | 524 body: _body, |
| 524 queryParams: _queryParams, | 525 queryParams: _queryParams, |
| 525 uploadOptions: _uploadOptions, | 526 uploadOptions: _uploadOptions, |
| 526 uploadMedia: _uploadMedia, | 527 uploadMedia: _uploadMedia, |
| 527 downloadOptions: _downloadOptions); | 528 downloadOptions: _downloadOptions); |
| 528 return _response.then((data) => new AccountUserProfile.fromJson(data)); | 529 return _response.then((data) => new AccountUserProfile.fromJson(data)); |
| 529 } | 530 } |
| 530 | 531 |
| 531 /** | 532 /** |
| 532 * Updates an existing account user profile. | 533 * Updates an existing account user profile. |
| 533 * | 534 * |
| 534 * [request] - The metadata request object. | 535 * [request] - The metadata request object. |
| 535 * | 536 * |
| 536 * Request parameters: | 537 * Request parameters: |
| 537 * | 538 * |
| 538 * [profileId] - User profile ID associated with this request. | 539 * [profileId] - User profile ID associated with this request. |
| 539 * | 540 * |
| 540 * Completes with a [AccountUserProfile]. | 541 * Completes with a [AccountUserProfile]. |
| 541 * | 542 * |
| 542 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 543 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 543 * error. | 544 * error. |
| 544 * | 545 * |
| 545 * If the used [http.Client] completes with an error when making a REST call, | 546 * If the used [http.Client] completes with an error when making a REST call, |
| 546 * this method will complete with the same error. | 547 * this method will complete with the same error. |
| 547 */ | 548 */ |
| 548 async.Future<AccountUserProfile> update(AccountUserProfile request, core.Strin
g profileId) { | 549 async.Future<AccountUserProfile> update(AccountUserProfile request, core.Strin
g profileId) { |
| 549 var _url = null; | 550 var _url = null; |
| 550 var _queryParams = new core.Map(); | 551 var _queryParams = new core.Map(); |
| 551 var _uploadMedia = null; | 552 var _uploadMedia = null; |
| 552 var _uploadOptions = null; | 553 var _uploadOptions = null; |
| 553 var _downloadOptions = common.DownloadOptions.Metadata; | 554 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 554 var _body = null; | 555 var _body = null; |
| 555 | 556 |
| 556 if (request != null) { | 557 if (request != null) { |
| 557 _body = convert.JSON.encode((request).toJson()); | 558 _body = convert.JSON.encode((request).toJson()); |
| 558 } | 559 } |
| 559 if (profileId == null) { | 560 if (profileId == null) { |
| 560 throw new core.ArgumentError("Parameter profileId is required."); | 561 throw new core.ArgumentError("Parameter profileId is required."); |
| 561 } | 562 } |
| 562 | 563 |
| 563 | 564 |
| 564 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accountUserProfiles'; | 565 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ountUserProfiles'; |
| 565 | 566 |
| 566 var _response = _requester.request(_url, | 567 var _response = _requester.request(_url, |
| 567 "PUT", | 568 "PUT", |
| 568 body: _body, | 569 body: _body, |
| 569 queryParams: _queryParams, | 570 queryParams: _queryParams, |
| 570 uploadOptions: _uploadOptions, | 571 uploadOptions: _uploadOptions, |
| 571 uploadMedia: _uploadMedia, | 572 uploadMedia: _uploadMedia, |
| 572 downloadOptions: _downloadOptions); | 573 downloadOptions: _downloadOptions); |
| 573 return _response.then((data) => new AccountUserProfile.fromJson(data)); | 574 return _response.then((data) => new AccountUserProfile.fromJson(data)); |
| 574 } | 575 } |
| 575 | 576 |
| 576 } | 577 } |
| 577 | 578 |
| 578 | 579 |
| 579 /** Not documented yet. */ | |
| 580 class AccountsResourceApi { | 580 class AccountsResourceApi { |
| 581 final common_internal.ApiRequester _requester; | 581 final commons.ApiRequester _requester; |
| 582 | 582 |
| 583 AccountsResourceApi(common_internal.ApiRequester client) : | 583 AccountsResourceApi(commons.ApiRequester client) : |
| 584 _requester = client; | 584 _requester = client; |
| 585 | 585 |
| 586 /** | 586 /** |
| 587 * Gets one account by ID. | 587 * Gets one account by ID. |
| 588 * | 588 * |
| 589 * Request parameters: | 589 * Request parameters: |
| 590 * | 590 * |
| 591 * [profileId] - User profile ID associated with this request. | 591 * [profileId] - User profile ID associated with this request. |
| 592 * | 592 * |
| 593 * [id] - Account ID. | 593 * [id] - Account ID. |
| 594 * | 594 * |
| 595 * Completes with a [Account]. | 595 * Completes with a [Account]. |
| 596 * | 596 * |
| 597 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 597 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 598 * error. | 598 * error. |
| 599 * | 599 * |
| 600 * If the used [http.Client] completes with an error when making a REST call, | 600 * If the used [http.Client] completes with an error when making a REST call, |
| 601 * this method will complete with the same error. | 601 * this method will complete with the same error. |
| 602 */ | 602 */ |
| 603 async.Future<Account> get(core.String profileId, core.String id) { | 603 async.Future<Account> get(core.String profileId, core.String id) { |
| 604 var _url = null; | 604 var _url = null; |
| 605 var _queryParams = new core.Map(); | 605 var _queryParams = new core.Map(); |
| 606 var _uploadMedia = null; | 606 var _uploadMedia = null; |
| 607 var _uploadOptions = null; | 607 var _uploadOptions = null; |
| 608 var _downloadOptions = common.DownloadOptions.Metadata; | 608 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 609 var _body = null; | 609 var _body = null; |
| 610 | 610 |
| 611 if (profileId == null) { | 611 if (profileId == null) { |
| 612 throw new core.ArgumentError("Parameter profileId is required."); | 612 throw new core.ArgumentError("Parameter profileId is required."); |
| 613 } | 613 } |
| 614 if (id == null) { | 614 if (id == null) { |
| 615 throw new core.ArgumentError("Parameter id is required."); | 615 throw new core.ArgumentError("Parameter id is required."); |
| 616 } | 616 } |
| 617 | 617 |
| 618 | 618 |
| 619 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accounts/' + common_internal.Escaper.ecapeVariable('$id'); | 619 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ounts/' + commons.Escaper.ecapeVariable('$id'); |
| 620 | 620 |
| 621 var _response = _requester.request(_url, | 621 var _response = _requester.request(_url, |
| 622 "GET", | 622 "GET", |
| 623 body: _body, | 623 body: _body, |
| 624 queryParams: _queryParams, | 624 queryParams: _queryParams, |
| 625 uploadOptions: _uploadOptions, | 625 uploadOptions: _uploadOptions, |
| 626 uploadMedia: _uploadMedia, | 626 uploadMedia: _uploadMedia, |
| 627 downloadOptions: _downloadOptions); | 627 downloadOptions: _downloadOptions); |
| 628 return _response.then((data) => new Account.fromJson(data)); | 628 return _response.then((data) => new Account.fromJson(data)); |
| 629 } | 629 } |
| 630 | 630 |
| 631 /** | 631 /** |
| 632 * Retrieves the list of accounts, possibly filtered. | 632 * Retrieves the list of accounts, possibly filtered. |
| 633 * | 633 * |
| 634 * Request parameters: | 634 * Request parameters: |
| 635 * | 635 * |
| 636 * [profileId] - User profile ID associated with this request. | 636 * [profileId] - User profile ID associated with this request. |
| 637 * | 637 * |
| 638 * [active] - Select only active accounts. Don't set this field to select both | 638 * [active] - Select only active accounts. Don't set this field to select both |
| 639 * active and non-active accounts. | 639 * active and non-active accounts. |
| 640 * | 640 * |
| 641 * [ids] - Select only accounts with these IDs. | 641 * [ids] - Select only accounts with these IDs. |
| 642 * | 642 * |
| 643 * [maxResults] - Maximum number of results to return. | 643 * [maxResults] - Maximum number of results to return. |
| 644 * | 644 * |
| 645 * [pageToken] - Value of the nextPageToken from the previous result page. | 645 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 646 * | 646 * |
| 647 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 647 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 648 * are allowed. For example, "account*2015" will return objects with names | 648 * are allowed. For example, "account*2015" will return objects with names |
| 649 * like "account June 2015", "account April 2015" or simply "account 2015". | 649 * like "account June 2015", "account April 2015", or simply "account 2015". |
| 650 * Most of the searches also add wildcards implicitly at the start and the end | 650 * Most of the searches also add wildcards implicitly at the start and the end |
| 651 * of the search string. For example, a search string of "account" will match | 651 * of the search string. For example, a search string of "account" will match |
| 652 * objects with name "my account", "account 2015" or simply "account". | 652 * objects with name "my account", "account 2015", or simply "account". |
| 653 * | 653 * |
| 654 * [sortField] - Field by which to sort the list. | 654 * [sortField] - Field by which to sort the list. |
| 655 * Possible string values are: | 655 * Possible string values are: |
| 656 * - "ID" | 656 * - "ID" |
| 657 * - "NAME" | 657 * - "NAME" |
| 658 * | 658 * |
| 659 * [sortOrder] - Order of sorted results, default is ASCENDING. | 659 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 660 * Possible string values are: | 660 * Possible string values are: |
| 661 * - "ASCENDING" | 661 * - "ASCENDING" |
| 662 * - "DESCENDING" | 662 * - "DESCENDING" |
| 663 * | 663 * |
| 664 * Completes with a [AccountsListResponse]. | 664 * Completes with a [AccountsListResponse]. |
| 665 * | 665 * |
| 666 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 666 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 667 * error. | 667 * error. |
| 668 * | 668 * |
| 669 * If the used [http.Client] completes with an error when making a REST call, | 669 * If the used [http.Client] completes with an error when making a REST call, |
| 670 * this method will complete with the same error. | 670 * this method will complete with the same error. |
| 671 */ | 671 */ |
| 672 async.Future<AccountsListResponse> list(core.String profileId, {core.bool acti
ve, core.List<core.String> ids, core.int maxResults, core.String pageToken, core
.String searchString, core.String sortField, core.String sortOrder}) { | 672 async.Future<AccountsListResponse> list(core.String profileId, {core.bool acti
ve, core.List<core.String> ids, core.int maxResults, core.String pageToken, core
.String searchString, core.String sortField, core.String sortOrder}) { |
| 673 var _url = null; | 673 var _url = null; |
| 674 var _queryParams = new core.Map(); | 674 var _queryParams = new core.Map(); |
| 675 var _uploadMedia = null; | 675 var _uploadMedia = null; |
| 676 var _uploadOptions = null; | 676 var _uploadOptions = null; |
| 677 var _downloadOptions = common.DownloadOptions.Metadata; | 677 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 678 var _body = null; | 678 var _body = null; |
| 679 | 679 |
| 680 if (profileId == null) { | 680 if (profileId == null) { |
| 681 throw new core.ArgumentError("Parameter profileId is required."); | 681 throw new core.ArgumentError("Parameter profileId is required."); |
| 682 } | 682 } |
| 683 if (active != null) { | 683 if (active != null) { |
| 684 _queryParams["active"] = ["${active}"]; | 684 _queryParams["active"] = ["${active}"]; |
| 685 } | 685 } |
| 686 if (ids != null) { | 686 if (ids != null) { |
| 687 _queryParams["ids"] = ids; | 687 _queryParams["ids"] = ids; |
| 688 } | 688 } |
| 689 if (maxResults != null) { | 689 if (maxResults != null) { |
| 690 _queryParams["maxResults"] = ["${maxResults}"]; | 690 _queryParams["maxResults"] = ["${maxResults}"]; |
| 691 } | 691 } |
| 692 if (pageToken != null) { | 692 if (pageToken != null) { |
| 693 _queryParams["pageToken"] = [pageToken]; | 693 _queryParams["pageToken"] = [pageToken]; |
| 694 } | 694 } |
| 695 if (searchString != null) { | 695 if (searchString != null) { |
| 696 _queryParams["searchString"] = [searchString]; | 696 _queryParams["searchString"] = [searchString]; |
| 697 } | 697 } |
| 698 if (sortField != null) { | 698 if (sortField != null) { |
| 699 _queryParams["sortField"] = [sortField]; | 699 _queryParams["sortField"] = [sortField]; |
| 700 } | 700 } |
| 701 if (sortOrder != null) { | 701 if (sortOrder != null) { |
| 702 _queryParams["sortOrder"] = [sortOrder]; | 702 _queryParams["sortOrder"] = [sortOrder]; |
| 703 } | 703 } |
| 704 | 704 |
| 705 | 705 |
| 706 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accounts'; | 706 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ounts'; |
| 707 | 707 |
| 708 var _response = _requester.request(_url, | 708 var _response = _requester.request(_url, |
| 709 "GET", | 709 "GET", |
| 710 body: _body, | 710 body: _body, |
| 711 queryParams: _queryParams, | 711 queryParams: _queryParams, |
| 712 uploadOptions: _uploadOptions, | 712 uploadOptions: _uploadOptions, |
| 713 uploadMedia: _uploadMedia, | 713 uploadMedia: _uploadMedia, |
| 714 downloadOptions: _downloadOptions); | 714 downloadOptions: _downloadOptions); |
| 715 return _response.then((data) => new AccountsListResponse.fromJson(data)); | 715 return _response.then((data) => new AccountsListResponse.fromJson(data)); |
| 716 } | 716 } |
| 717 | 717 |
| 718 /** | 718 /** |
| 719 * Updates an existing account. This method supports patch semantics. | 719 * Updates an existing account. This method supports patch semantics. |
| 720 * | 720 * |
| 721 * [request] - The metadata request object. | 721 * [request] - The metadata request object. |
| 722 * | 722 * |
| 723 * Request parameters: | 723 * Request parameters: |
| 724 * | 724 * |
| 725 * [profileId] - User profile ID associated with this request. | 725 * [profileId] - User profile ID associated with this request. |
| 726 * | 726 * |
| 727 * [id] - Account ID. | 727 * [id] - Account ID. |
| 728 * | 728 * |
| 729 * Completes with a [Account]. | 729 * Completes with a [Account]. |
| 730 * | 730 * |
| 731 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 731 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 732 * error. | 732 * error. |
| 733 * | 733 * |
| 734 * If the used [http.Client] completes with an error when making a REST call, | 734 * If the used [http.Client] completes with an error when making a REST call, |
| 735 * this method will complete with the same error. | 735 * this method will complete with the same error. |
| 736 */ | 736 */ |
| 737 async.Future<Account> patch(Account request, core.String profileId, core.Strin
g id) { | 737 async.Future<Account> patch(Account request, core.String profileId, core.Strin
g id) { |
| 738 var _url = null; | 738 var _url = null; |
| 739 var _queryParams = new core.Map(); | 739 var _queryParams = new core.Map(); |
| 740 var _uploadMedia = null; | 740 var _uploadMedia = null; |
| 741 var _uploadOptions = null; | 741 var _uploadOptions = null; |
| 742 var _downloadOptions = common.DownloadOptions.Metadata; | 742 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 743 var _body = null; | 743 var _body = null; |
| 744 | 744 |
| 745 if (request != null) { | 745 if (request != null) { |
| 746 _body = convert.JSON.encode((request).toJson()); | 746 _body = convert.JSON.encode((request).toJson()); |
| 747 } | 747 } |
| 748 if (profileId == null) { | 748 if (profileId == null) { |
| 749 throw new core.ArgumentError("Parameter profileId is required."); | 749 throw new core.ArgumentError("Parameter profileId is required."); |
| 750 } | 750 } |
| 751 if (id == null) { | 751 if (id == null) { |
| 752 throw new core.ArgumentError("Parameter id is required."); | 752 throw new core.ArgumentError("Parameter id is required."); |
| 753 } | 753 } |
| 754 _queryParams["id"] = [id]; | 754 _queryParams["id"] = [id]; |
| 755 | 755 |
| 756 | 756 |
| 757 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accounts'; | 757 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ounts'; |
| 758 | 758 |
| 759 var _response = _requester.request(_url, | 759 var _response = _requester.request(_url, |
| 760 "PATCH", | 760 "PATCH", |
| 761 body: _body, | 761 body: _body, |
| 762 queryParams: _queryParams, | 762 queryParams: _queryParams, |
| 763 uploadOptions: _uploadOptions, | 763 uploadOptions: _uploadOptions, |
| 764 uploadMedia: _uploadMedia, | 764 uploadMedia: _uploadMedia, |
| 765 downloadOptions: _downloadOptions); | 765 downloadOptions: _downloadOptions); |
| 766 return _response.then((data) => new Account.fromJson(data)); | 766 return _response.then((data) => new Account.fromJson(data)); |
| 767 } | 767 } |
| 768 | 768 |
| 769 /** | 769 /** |
| 770 * Updates an existing account. | 770 * Updates an existing account. |
| 771 * | 771 * |
| 772 * [request] - The metadata request object. | 772 * [request] - The metadata request object. |
| 773 * | 773 * |
| 774 * Request parameters: | 774 * Request parameters: |
| 775 * | 775 * |
| 776 * [profileId] - User profile ID associated with this request. | 776 * [profileId] - User profile ID associated with this request. |
| 777 * | 777 * |
| 778 * Completes with a [Account]. | 778 * Completes with a [Account]. |
| 779 * | 779 * |
| 780 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 780 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 781 * error. | 781 * error. |
| 782 * | 782 * |
| 783 * If the used [http.Client] completes with an error when making a REST call, | 783 * If the used [http.Client] completes with an error when making a REST call, |
| 784 * this method will complete with the same error. | 784 * this method will complete with the same error. |
| 785 */ | 785 */ |
| 786 async.Future<Account> update(Account request, core.String profileId) { | 786 async.Future<Account> update(Account request, core.String profileId) { |
| 787 var _url = null; | 787 var _url = null; |
| 788 var _queryParams = new core.Map(); | 788 var _queryParams = new core.Map(); |
| 789 var _uploadMedia = null; | 789 var _uploadMedia = null; |
| 790 var _uploadOptions = null; | 790 var _uploadOptions = null; |
| 791 var _downloadOptions = common.DownloadOptions.Metadata; | 791 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 792 var _body = null; | 792 var _body = null; |
| 793 | 793 |
| 794 if (request != null) { | 794 if (request != null) { |
| 795 _body = convert.JSON.encode((request).toJson()); | 795 _body = convert.JSON.encode((request).toJson()); |
| 796 } | 796 } |
| 797 if (profileId == null) { | 797 if (profileId == null) { |
| 798 throw new core.ArgumentError("Parameter profileId is required."); | 798 throw new core.ArgumentError("Parameter profileId is required."); |
| 799 } | 799 } |
| 800 | 800 |
| 801 | 801 |
| 802 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/accounts'; | 802 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/acc
ounts'; |
| 803 | 803 |
| 804 var _response = _requester.request(_url, | 804 var _response = _requester.request(_url, |
| 805 "PUT", | 805 "PUT", |
| 806 body: _body, | 806 body: _body, |
| 807 queryParams: _queryParams, | 807 queryParams: _queryParams, |
| 808 uploadOptions: _uploadOptions, | 808 uploadOptions: _uploadOptions, |
| 809 uploadMedia: _uploadMedia, | 809 uploadMedia: _uploadMedia, |
| 810 downloadOptions: _downloadOptions); | 810 downloadOptions: _downloadOptions); |
| 811 return _response.then((data) => new Account.fromJson(data)); | 811 return _response.then((data) => new Account.fromJson(data)); |
| 812 } | 812 } |
| 813 | 813 |
| 814 } | 814 } |
| 815 | 815 |
| 816 | 816 |
| 817 /** Not documented yet. */ | |
| 818 class AdsResourceApi { | 817 class AdsResourceApi { |
| 819 final common_internal.ApiRequester _requester; | 818 final commons.ApiRequester _requester; |
| 820 | 819 |
| 821 AdsResourceApi(common_internal.ApiRequester client) : | 820 AdsResourceApi(commons.ApiRequester client) : |
| 822 _requester = client; | 821 _requester = client; |
| 823 | 822 |
| 824 /** | 823 /** |
| 825 * Gets one ad by ID. | 824 * Gets one ad by ID. |
| 826 * | 825 * |
| 827 * Request parameters: | 826 * Request parameters: |
| 828 * | 827 * |
| 829 * [profileId] - User profile ID associated with this request. | 828 * [profileId] - User profile ID associated with this request. |
| 830 * | 829 * |
| 831 * [id] - Ad ID. | 830 * [id] - Ad ID. |
| 832 * | 831 * |
| 833 * Completes with a [Ad]. | 832 * Completes with a [Ad]. |
| 834 * | 833 * |
| 835 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 834 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 836 * error. | 835 * error. |
| 837 * | 836 * |
| 838 * If the used [http.Client] completes with an error when making a REST call, | 837 * If the used [http.Client] completes with an error when making a REST call, |
| 839 * this method will complete with the same error. | 838 * this method will complete with the same error. |
| 840 */ | 839 */ |
| 841 async.Future<Ad> get(core.String profileId, core.String id) { | 840 async.Future<Ad> get(core.String profileId, core.String id) { |
| 842 var _url = null; | 841 var _url = null; |
| 843 var _queryParams = new core.Map(); | 842 var _queryParams = new core.Map(); |
| 844 var _uploadMedia = null; | 843 var _uploadMedia = null; |
| 845 var _uploadOptions = null; | 844 var _uploadOptions = null; |
| 846 var _downloadOptions = common.DownloadOptions.Metadata; | 845 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 847 var _body = null; | 846 var _body = null; |
| 848 | 847 |
| 849 if (profileId == null) { | 848 if (profileId == null) { |
| 850 throw new core.ArgumentError("Parameter profileId is required."); | 849 throw new core.ArgumentError("Parameter profileId is required."); |
| 851 } | 850 } |
| 852 if (id == null) { | 851 if (id == null) { |
| 853 throw new core.ArgumentError("Parameter id is required."); | 852 throw new core.ArgumentError("Parameter id is required."); |
| 854 } | 853 } |
| 855 | 854 |
| 856 | 855 |
| 857 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/ads/' + common_internal.Escaper.ecapeVariable('$id'); | 856 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads
/' + commons.Escaper.ecapeVariable('$id'); |
| 858 | 857 |
| 859 var _response = _requester.request(_url, | 858 var _response = _requester.request(_url, |
| 860 "GET", | 859 "GET", |
| 861 body: _body, | 860 body: _body, |
| 862 queryParams: _queryParams, | 861 queryParams: _queryParams, |
| 863 uploadOptions: _uploadOptions, | 862 uploadOptions: _uploadOptions, |
| 864 uploadMedia: _uploadMedia, | 863 uploadMedia: _uploadMedia, |
| 865 downloadOptions: _downloadOptions); | 864 downloadOptions: _downloadOptions); |
| 866 return _response.then((data) => new Ad.fromJson(data)); | 865 return _response.then((data) => new Ad.fromJson(data)); |
| 867 } | 866 } |
| 868 | 867 |
| 869 /** | 868 /** |
| 870 * Inserts a new ad. | 869 * Inserts a new ad. |
| 871 * | 870 * |
| 872 * [request] - The metadata request object. | 871 * [request] - The metadata request object. |
| 873 * | 872 * |
| 874 * Request parameters: | 873 * Request parameters: |
| 875 * | 874 * |
| 876 * [profileId] - User profile ID associated with this request. | 875 * [profileId] - User profile ID associated with this request. |
| 877 * | 876 * |
| 878 * Completes with a [Ad]. | 877 * Completes with a [Ad]. |
| 879 * | 878 * |
| 880 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 879 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 881 * error. | 880 * error. |
| 882 * | 881 * |
| 883 * If the used [http.Client] completes with an error when making a REST call, | 882 * If the used [http.Client] completes with an error when making a REST call, |
| 884 * this method will complete with the same error. | 883 * this method will complete with the same error. |
| 885 */ | 884 */ |
| 886 async.Future<Ad> insert(Ad request, core.String profileId) { | 885 async.Future<Ad> insert(Ad request, core.String profileId) { |
| 887 var _url = null; | 886 var _url = null; |
| 888 var _queryParams = new core.Map(); | 887 var _queryParams = new core.Map(); |
| 889 var _uploadMedia = null; | 888 var _uploadMedia = null; |
| 890 var _uploadOptions = null; | 889 var _uploadOptions = null; |
| 891 var _downloadOptions = common.DownloadOptions.Metadata; | 890 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 892 var _body = null; | 891 var _body = null; |
| 893 | 892 |
| 894 if (request != null) { | 893 if (request != null) { |
| 895 _body = convert.JSON.encode((request).toJson()); | 894 _body = convert.JSON.encode((request).toJson()); |
| 896 } | 895 } |
| 897 if (profileId == null) { | 896 if (profileId == null) { |
| 898 throw new core.ArgumentError("Parameter profileId is required."); | 897 throw new core.ArgumentError("Parameter profileId is required."); |
| 899 } | 898 } |
| 900 | 899 |
| 901 | 900 |
| 902 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/ads'; | 901 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads
'; |
| 903 | 902 |
| 904 var _response = _requester.request(_url, | 903 var _response = _requester.request(_url, |
| 905 "POST", | 904 "POST", |
| 906 body: _body, | 905 body: _body, |
| 907 queryParams: _queryParams, | 906 queryParams: _queryParams, |
| 908 uploadOptions: _uploadOptions, | 907 uploadOptions: _uploadOptions, |
| 909 uploadMedia: _uploadMedia, | 908 uploadMedia: _uploadMedia, |
| 910 downloadOptions: _downloadOptions); | 909 downloadOptions: _downloadOptions); |
| 911 return _response.then((data) => new Ad.fromJson(data)); | 910 return _response.then((data) => new Ad.fromJson(data)); |
| 912 } | 911 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 * | 985 * |
| 987 * [pageToken] - Value of the nextPageToken from the previous result page. | 986 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 988 * | 987 * |
| 989 * [placementIds] - Select only ads with these placement IDs assigned. | 988 * [placementIds] - Select only ads with these placement IDs assigned. |
| 990 * | 989 * |
| 991 * [remarketingListIds] - Select only ads whose list targeting expression use | 990 * [remarketingListIds] - Select only ads whose list targeting expression use |
| 992 * these remarketing list IDs. | 991 * these remarketing list IDs. |
| 993 * | 992 * |
| 994 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 993 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 995 * are allowed. For example, "ad*2015" will return objects with names like "ad | 994 * are allowed. For example, "ad*2015" will return objects with names like "ad |
| 996 * June 2015", "ad April 2015" or simply "ad 2015". Most of the searches also | 995 * June 2015", "ad April 2015", or simply "ad 2015". Most of the searches also |
| 997 * add wildcards implicitly at the start and the end of the search string. For | 996 * add wildcards implicitly at the start and the end of the search string. For |
| 998 * example, a search string of "ad" will match objects with name "my ad", "ad | 997 * example, a search string of "ad" will match objects with name "my ad", "ad |
| 999 * 2015" or simply "ad". | 998 * 2015", or simply "ad". |
| 1000 * | 999 * |
| 1001 * [sizeIds] - Select only ads with these size IDs. | 1000 * [sizeIds] - Select only ads with these size IDs. |
| 1002 * | 1001 * |
| 1003 * [sortField] - Field by which to sort the list. | 1002 * [sortField] - Field by which to sort the list. |
| 1004 * Possible string values are: | 1003 * Possible string values are: |
| 1005 * - "ID" | 1004 * - "ID" |
| 1006 * - "NAME" | 1005 * - "NAME" |
| 1007 * | 1006 * |
| 1008 * [sortOrder] - Order of sorted results, default is ASCENDING. | 1007 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 1009 * Possible string values are: | 1008 * Possible string values are: |
| 1010 * - "ASCENDING" | 1009 * - "ASCENDING" |
| 1011 * - "DESCENDING" | 1010 * - "DESCENDING" |
| 1012 * | 1011 * |
| 1013 * [sslCompliant] - Select only ads that are SSL-compliant. | 1012 * [sslCompliant] - Select only ads that are SSL-compliant. |
| 1014 * | 1013 * |
| 1015 * [sslRequired] - Select only ads that require SSL. | 1014 * [sslRequired] - Select only ads that require SSL. |
| 1016 * | 1015 * |
| 1017 * [type] - Select only ads with these types. | 1016 * [type] - Select only ads with these types. |
| 1018 * | 1017 * |
| 1019 * Completes with a [AdsListResponse]. | 1018 * Completes with a [AdsListResponse]. |
| 1020 * | 1019 * |
| 1021 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1020 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1022 * error. | 1021 * error. |
| 1023 * | 1022 * |
| 1024 * If the used [http.Client] completes with an error when making a REST call, | 1023 * If the used [http.Client] completes with an error when making a REST call, |
| 1025 * this method will complete with the same error. | 1024 * this method will complete with the same error. |
| 1026 */ | 1025 */ |
| 1027 async.Future<AdsListResponse> list(core.String profileId, {core.bool active, c
ore.String advertiserId, core.bool archived, core.List<core.String> audienceSegm
entIds, core.List<core.String> campaignIds, core.String compatibility, core.List
<core.String> creativeIds, core.List<core.String> creativeOptimizationConfigurat
ionIds, core.String creativeType, core.bool dynamicClickTracker, core.List<core.
String> ids, core.List<core.String> landingPageIds, core.int maxResults, core.St
ring overriddenEventTagId, core.String pageToken, core.List<core.String> placeme
ntIds, core.List<core.String> remarketingListIds, core.String searchString, core
.List<core.String> sizeIds, core.String sortField, core.String sortOrder, core.b
ool sslCompliant, core.bool sslRequired, core.List<core.String> type}) { | 1026 async.Future<AdsListResponse> list(core.String profileId, {core.bool active, c
ore.String advertiserId, core.bool archived, core.List<core.String> audienceSegm
entIds, core.List<core.String> campaignIds, core.String compatibility, core.List
<core.String> creativeIds, core.List<core.String> creativeOptimizationConfigurat
ionIds, core.String creativeType, core.bool dynamicClickTracker, core.List<core.
String> ids, core.List<core.String> landingPageIds, core.int maxResults, core.St
ring overriddenEventTagId, core.String pageToken, core.List<core.String> placeme
ntIds, core.List<core.String> remarketingListIds, core.String searchString, core
.List<core.String> sizeIds, core.String sortField, core.String sortOrder, core.b
ool sslCompliant, core.bool sslRequired, core.List<core.String> type}) { |
| 1028 var _url = null; | 1027 var _url = null; |
| 1029 var _queryParams = new core.Map(); | 1028 var _queryParams = new core.Map(); |
| 1030 var _uploadMedia = null; | 1029 var _uploadMedia = null; |
| 1031 var _uploadOptions = null; | 1030 var _uploadOptions = null; |
| 1032 var _downloadOptions = common.DownloadOptions.Metadata; | 1031 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1033 var _body = null; | 1032 var _body = null; |
| 1034 | 1033 |
| 1035 if (profileId == null) { | 1034 if (profileId == null) { |
| 1036 throw new core.ArgumentError("Parameter profileId is required."); | 1035 throw new core.ArgumentError("Parameter profileId is required."); |
| 1037 } | 1036 } |
| 1038 if (active != null) { | 1037 if (active != null) { |
| 1039 _queryParams["active"] = ["${active}"]; | 1038 _queryParams["active"] = ["${active}"]; |
| 1040 } | 1039 } |
| 1041 if (advertiserId != null) { | 1040 if (advertiserId != null) { |
| 1042 _queryParams["advertiserId"] = [advertiserId]; | 1041 _queryParams["advertiserId"] = [advertiserId]; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 _queryParams["sslCompliant"] = ["${sslCompliant}"]; | 1101 _queryParams["sslCompliant"] = ["${sslCompliant}"]; |
| 1103 } | 1102 } |
| 1104 if (sslRequired != null) { | 1103 if (sslRequired != null) { |
| 1105 _queryParams["sslRequired"] = ["${sslRequired}"]; | 1104 _queryParams["sslRequired"] = ["${sslRequired}"]; |
| 1106 } | 1105 } |
| 1107 if (type != null) { | 1106 if (type != null) { |
| 1108 _queryParams["type"] = type; | 1107 _queryParams["type"] = type; |
| 1109 } | 1108 } |
| 1110 | 1109 |
| 1111 | 1110 |
| 1112 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/ads'; | 1111 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads
'; |
| 1113 | 1112 |
| 1114 var _response = _requester.request(_url, | 1113 var _response = _requester.request(_url, |
| 1115 "GET", | 1114 "GET", |
| 1116 body: _body, | 1115 body: _body, |
| 1117 queryParams: _queryParams, | 1116 queryParams: _queryParams, |
| 1118 uploadOptions: _uploadOptions, | 1117 uploadOptions: _uploadOptions, |
| 1119 uploadMedia: _uploadMedia, | 1118 uploadMedia: _uploadMedia, |
| 1120 downloadOptions: _downloadOptions); | 1119 downloadOptions: _downloadOptions); |
| 1121 return _response.then((data) => new AdsListResponse.fromJson(data)); | 1120 return _response.then((data) => new AdsListResponse.fromJson(data)); |
| 1122 } | 1121 } |
| 1123 | 1122 |
| 1124 /** | 1123 /** |
| 1125 * Updates an existing ad. This method supports patch semantics. | 1124 * Updates an existing ad. This method supports patch semantics. |
| 1126 * | 1125 * |
| 1127 * [request] - The metadata request object. | 1126 * [request] - The metadata request object. |
| 1128 * | 1127 * |
| 1129 * Request parameters: | 1128 * Request parameters: |
| 1130 * | 1129 * |
| 1131 * [profileId] - User profile ID associated with this request. | 1130 * [profileId] - User profile ID associated with this request. |
| 1132 * | 1131 * |
| 1133 * [id] - Ad ID. | 1132 * [id] - Ad ID. |
| 1134 * | 1133 * |
| 1135 * Completes with a [Ad]. | 1134 * Completes with a [Ad]. |
| 1136 * | 1135 * |
| 1137 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1138 * error. | 1137 * error. |
| 1139 * | 1138 * |
| 1140 * If the used [http.Client] completes with an error when making a REST call, | 1139 * If the used [http.Client] completes with an error when making a REST call, |
| 1141 * this method will complete with the same error. | 1140 * this method will complete with the same error. |
| 1142 */ | 1141 */ |
| 1143 async.Future<Ad> patch(Ad request, core.String profileId, core.String id) { | 1142 async.Future<Ad> patch(Ad request, core.String profileId, core.String id) { |
| 1144 var _url = null; | 1143 var _url = null; |
| 1145 var _queryParams = new core.Map(); | 1144 var _queryParams = new core.Map(); |
| 1146 var _uploadMedia = null; | 1145 var _uploadMedia = null; |
| 1147 var _uploadOptions = null; | 1146 var _uploadOptions = null; |
| 1148 var _downloadOptions = common.DownloadOptions.Metadata; | 1147 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1149 var _body = null; | 1148 var _body = null; |
| 1150 | 1149 |
| 1151 if (request != null) { | 1150 if (request != null) { |
| 1152 _body = convert.JSON.encode((request).toJson()); | 1151 _body = convert.JSON.encode((request).toJson()); |
| 1153 } | 1152 } |
| 1154 if (profileId == null) { | 1153 if (profileId == null) { |
| 1155 throw new core.ArgumentError("Parameter profileId is required."); | 1154 throw new core.ArgumentError("Parameter profileId is required."); |
| 1156 } | 1155 } |
| 1157 if (id == null) { | 1156 if (id == null) { |
| 1158 throw new core.ArgumentError("Parameter id is required."); | 1157 throw new core.ArgumentError("Parameter id is required."); |
| 1159 } | 1158 } |
| 1160 _queryParams["id"] = [id]; | 1159 _queryParams["id"] = [id]; |
| 1161 | 1160 |
| 1162 | 1161 |
| 1163 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/ads'; | 1162 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads
'; |
| 1164 | 1163 |
| 1165 var _response = _requester.request(_url, | 1164 var _response = _requester.request(_url, |
| 1166 "PATCH", | 1165 "PATCH", |
| 1167 body: _body, | 1166 body: _body, |
| 1168 queryParams: _queryParams, | 1167 queryParams: _queryParams, |
| 1169 uploadOptions: _uploadOptions, | 1168 uploadOptions: _uploadOptions, |
| 1170 uploadMedia: _uploadMedia, | 1169 uploadMedia: _uploadMedia, |
| 1171 downloadOptions: _downloadOptions); | 1170 downloadOptions: _downloadOptions); |
| 1172 return _response.then((data) => new Ad.fromJson(data)); | 1171 return _response.then((data) => new Ad.fromJson(data)); |
| 1173 } | 1172 } |
| 1174 | 1173 |
| 1175 /** | 1174 /** |
| 1176 * Updates an existing ad. | 1175 * Updates an existing ad. |
| 1177 * | 1176 * |
| 1178 * [request] - The metadata request object. | 1177 * [request] - The metadata request object. |
| 1179 * | 1178 * |
| 1180 * Request parameters: | 1179 * Request parameters: |
| 1181 * | 1180 * |
| 1182 * [profileId] - User profile ID associated with this request. | 1181 * [profileId] - User profile ID associated with this request. |
| 1183 * | 1182 * |
| 1184 * Completes with a [Ad]. | 1183 * Completes with a [Ad]. |
| 1185 * | 1184 * |
| 1186 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1185 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1187 * error. | 1186 * error. |
| 1188 * | 1187 * |
| 1189 * If the used [http.Client] completes with an error when making a REST call, | 1188 * If the used [http.Client] completes with an error when making a REST call, |
| 1190 * this method will complete with the same error. | 1189 * this method will complete with the same error. |
| 1191 */ | 1190 */ |
| 1192 async.Future<Ad> update(Ad request, core.String profileId) { | 1191 async.Future<Ad> update(Ad request, core.String profileId) { |
| 1193 var _url = null; | 1192 var _url = null; |
| 1194 var _queryParams = new core.Map(); | 1193 var _queryParams = new core.Map(); |
| 1195 var _uploadMedia = null; | 1194 var _uploadMedia = null; |
| 1196 var _uploadOptions = null; | 1195 var _uploadOptions = null; |
| 1197 var _downloadOptions = common.DownloadOptions.Metadata; | 1196 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1198 var _body = null; | 1197 var _body = null; |
| 1199 | 1198 |
| 1200 if (request != null) { | 1199 if (request != null) { |
| 1201 _body = convert.JSON.encode((request).toJson()); | 1200 _body = convert.JSON.encode((request).toJson()); |
| 1202 } | 1201 } |
| 1203 if (profileId == null) { | 1202 if (profileId == null) { |
| 1204 throw new core.ArgumentError("Parameter profileId is required."); | 1203 throw new core.ArgumentError("Parameter profileId is required."); |
| 1205 } | 1204 } |
| 1206 | 1205 |
| 1207 | 1206 |
| 1208 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/ads'; | 1207 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads
'; |
| 1209 | 1208 |
| 1210 var _response = _requester.request(_url, | 1209 var _response = _requester.request(_url, |
| 1211 "PUT", | 1210 "PUT", |
| 1212 body: _body, | 1211 body: _body, |
| 1213 queryParams: _queryParams, | 1212 queryParams: _queryParams, |
| 1214 uploadOptions: _uploadOptions, | 1213 uploadOptions: _uploadOptions, |
| 1215 uploadMedia: _uploadMedia, | 1214 uploadMedia: _uploadMedia, |
| 1216 downloadOptions: _downloadOptions); | 1215 downloadOptions: _downloadOptions); |
| 1217 return _response.then((data) => new Ad.fromJson(data)); | 1216 return _response.then((data) => new Ad.fromJson(data)); |
| 1218 } | 1217 } |
| 1219 | 1218 |
| 1220 } | 1219 } |
| 1221 | 1220 |
| 1222 | 1221 |
| 1223 /** Not documented yet. */ | |
| 1224 class AdvertiserGroupsResourceApi { | 1222 class AdvertiserGroupsResourceApi { |
| 1225 final common_internal.ApiRequester _requester; | 1223 final commons.ApiRequester _requester; |
| 1226 | 1224 |
| 1227 AdvertiserGroupsResourceApi(common_internal.ApiRequester client) : | 1225 AdvertiserGroupsResourceApi(commons.ApiRequester client) : |
| 1228 _requester = client; | 1226 _requester = client; |
| 1229 | 1227 |
| 1230 /** | 1228 /** |
| 1231 * Deletes an existing advertiser group. | 1229 * Deletes an existing advertiser group. |
| 1232 * | 1230 * |
| 1233 * Request parameters: | 1231 * Request parameters: |
| 1234 * | 1232 * |
| 1235 * [profileId] - User profile ID associated with this request. | 1233 * [profileId] - User profile ID associated with this request. |
| 1236 * | 1234 * |
| 1237 * [id] - Advertiser group ID. | 1235 * [id] - Advertiser group ID. |
| 1238 * | 1236 * |
| 1239 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1237 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1240 * error. | 1238 * error. |
| 1241 * | 1239 * |
| 1242 * If the used [http.Client] completes with an error when making a REST call, | 1240 * If the used [http.Client] completes with an error when making a REST call, |
| 1243 * this method will complete with the same error. | 1241 * this method will complete with the same error. |
| 1244 */ | 1242 */ |
| 1245 async.Future delete(core.String profileId, core.String id) { | 1243 async.Future delete(core.String profileId, core.String id) { |
| 1246 var _url = null; | 1244 var _url = null; |
| 1247 var _queryParams = new core.Map(); | 1245 var _queryParams = new core.Map(); |
| 1248 var _uploadMedia = null; | 1246 var _uploadMedia = null; |
| 1249 var _uploadOptions = null; | 1247 var _uploadOptions = null; |
| 1250 var _downloadOptions = common.DownloadOptions.Metadata; | 1248 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1251 var _body = null; | 1249 var _body = null; |
| 1252 | 1250 |
| 1253 if (profileId == null) { | 1251 if (profileId == null) { |
| 1254 throw new core.ArgumentError("Parameter profileId is required."); | 1252 throw new core.ArgumentError("Parameter profileId is required."); |
| 1255 } | 1253 } |
| 1256 if (id == null) { | 1254 if (id == null) { |
| 1257 throw new core.ArgumentError("Parameter id is required."); | 1255 throw new core.ArgumentError("Parameter id is required."); |
| 1258 } | 1256 } |
| 1259 | 1257 |
| 1260 _downloadOptions = null; | 1258 _downloadOptions = null; |
| 1261 | 1259 |
| 1262 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertiserGroups/' + common_internal.Escaper.ecapeVariable('$id'); | 1260 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertiserGroups/' + commons.Escaper.ecapeVariable('$id'); |
| 1263 | 1261 |
| 1264 var _response = _requester.request(_url, | 1262 var _response = _requester.request(_url, |
| 1265 "DELETE", | 1263 "DELETE", |
| 1266 body: _body, | 1264 body: _body, |
| 1267 queryParams: _queryParams, | 1265 queryParams: _queryParams, |
| 1268 uploadOptions: _uploadOptions, | 1266 uploadOptions: _uploadOptions, |
| 1269 uploadMedia: _uploadMedia, | 1267 uploadMedia: _uploadMedia, |
| 1270 downloadOptions: _downloadOptions); | 1268 downloadOptions: _downloadOptions); |
| 1271 return _response.then((data) => null); | 1269 return _response.then((data) => null); |
| 1272 } | 1270 } |
| 1273 | 1271 |
| 1274 /** | 1272 /** |
| 1275 * Gets one advertiser group by ID. | 1273 * Gets one advertiser group by ID. |
| 1276 * | 1274 * |
| 1277 * Request parameters: | 1275 * Request parameters: |
| 1278 * | 1276 * |
| 1279 * [profileId] - User profile ID associated with this request. | 1277 * [profileId] - User profile ID associated with this request. |
| 1280 * | 1278 * |
| 1281 * [id] - Advertiser group ID. | 1279 * [id] - Advertiser group ID. |
| 1282 * | 1280 * |
| 1283 * Completes with a [AdvertiserGroup]. | 1281 * Completes with a [AdvertiserGroup]. |
| 1284 * | 1282 * |
| 1285 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1286 * error. | 1284 * error. |
| 1287 * | 1285 * |
| 1288 * If the used [http.Client] completes with an error when making a REST call, | 1286 * If the used [http.Client] completes with an error when making a REST call, |
| 1289 * this method will complete with the same error. | 1287 * this method will complete with the same error. |
| 1290 */ | 1288 */ |
| 1291 async.Future<AdvertiserGroup> get(core.String profileId, core.String id) { | 1289 async.Future<AdvertiserGroup> get(core.String profileId, core.String id) { |
| 1292 var _url = null; | 1290 var _url = null; |
| 1293 var _queryParams = new core.Map(); | 1291 var _queryParams = new core.Map(); |
| 1294 var _uploadMedia = null; | 1292 var _uploadMedia = null; |
| 1295 var _uploadOptions = null; | 1293 var _uploadOptions = null; |
| 1296 var _downloadOptions = common.DownloadOptions.Metadata; | 1294 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1297 var _body = null; | 1295 var _body = null; |
| 1298 | 1296 |
| 1299 if (profileId == null) { | 1297 if (profileId == null) { |
| 1300 throw new core.ArgumentError("Parameter profileId is required."); | 1298 throw new core.ArgumentError("Parameter profileId is required."); |
| 1301 } | 1299 } |
| 1302 if (id == null) { | 1300 if (id == null) { |
| 1303 throw new core.ArgumentError("Parameter id is required."); | 1301 throw new core.ArgumentError("Parameter id is required."); |
| 1304 } | 1302 } |
| 1305 | 1303 |
| 1306 | 1304 |
| 1307 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertiserGroups/' + common_internal.Escaper.ecapeVariable('$id'); | 1305 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertiserGroups/' + commons.Escaper.ecapeVariable('$id'); |
| 1308 | 1306 |
| 1309 var _response = _requester.request(_url, | 1307 var _response = _requester.request(_url, |
| 1310 "GET", | 1308 "GET", |
| 1311 body: _body, | 1309 body: _body, |
| 1312 queryParams: _queryParams, | 1310 queryParams: _queryParams, |
| 1313 uploadOptions: _uploadOptions, | 1311 uploadOptions: _uploadOptions, |
| 1314 uploadMedia: _uploadMedia, | 1312 uploadMedia: _uploadMedia, |
| 1315 downloadOptions: _downloadOptions); | 1313 downloadOptions: _downloadOptions); |
| 1316 return _response.then((data) => new AdvertiserGroup.fromJson(data)); | 1314 return _response.then((data) => new AdvertiserGroup.fromJson(data)); |
| 1317 } | 1315 } |
| 1318 | 1316 |
| 1319 /** | 1317 /** |
| 1320 * Inserts a new advertiser group. | 1318 * Inserts a new advertiser group. |
| 1321 * | 1319 * |
| 1322 * [request] - The metadata request object. | 1320 * [request] - The metadata request object. |
| 1323 * | 1321 * |
| 1324 * Request parameters: | 1322 * Request parameters: |
| 1325 * | 1323 * |
| 1326 * [profileId] - User profile ID associated with this request. | 1324 * [profileId] - User profile ID associated with this request. |
| 1327 * | 1325 * |
| 1328 * Completes with a [AdvertiserGroup]. | 1326 * Completes with a [AdvertiserGroup]. |
| 1329 * | 1327 * |
| 1330 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1328 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1331 * error. | 1329 * error. |
| 1332 * | 1330 * |
| 1333 * If the used [http.Client] completes with an error when making a REST call, | 1331 * If the used [http.Client] completes with an error when making a REST call, |
| 1334 * this method will complete with the same error. | 1332 * this method will complete with the same error. |
| 1335 */ | 1333 */ |
| 1336 async.Future<AdvertiserGroup> insert(AdvertiserGroup request, core.String prof
ileId) { | 1334 async.Future<AdvertiserGroup> insert(AdvertiserGroup request, core.String prof
ileId) { |
| 1337 var _url = null; | 1335 var _url = null; |
| 1338 var _queryParams = new core.Map(); | 1336 var _queryParams = new core.Map(); |
| 1339 var _uploadMedia = null; | 1337 var _uploadMedia = null; |
| 1340 var _uploadOptions = null; | 1338 var _uploadOptions = null; |
| 1341 var _downloadOptions = common.DownloadOptions.Metadata; | 1339 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1342 var _body = null; | 1340 var _body = null; |
| 1343 | 1341 |
| 1344 if (request != null) { | 1342 if (request != null) { |
| 1345 _body = convert.JSON.encode((request).toJson()); | 1343 _body = convert.JSON.encode((request).toJson()); |
| 1346 } | 1344 } |
| 1347 if (profileId == null) { | 1345 if (profileId == null) { |
| 1348 throw new core.ArgumentError("Parameter profileId is required."); | 1346 throw new core.ArgumentError("Parameter profileId is required."); |
| 1349 } | 1347 } |
| 1350 | 1348 |
| 1351 | 1349 |
| 1352 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertiserGroups'; | 1350 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertiserGroups'; |
| 1353 | 1351 |
| 1354 var _response = _requester.request(_url, | 1352 var _response = _requester.request(_url, |
| 1355 "POST", | 1353 "POST", |
| 1356 body: _body, | 1354 body: _body, |
| 1357 queryParams: _queryParams, | 1355 queryParams: _queryParams, |
| 1358 uploadOptions: _uploadOptions, | 1356 uploadOptions: _uploadOptions, |
| 1359 uploadMedia: _uploadMedia, | 1357 uploadMedia: _uploadMedia, |
| 1360 downloadOptions: _downloadOptions); | 1358 downloadOptions: _downloadOptions); |
| 1361 return _response.then((data) => new AdvertiserGroup.fromJson(data)); | 1359 return _response.then((data) => new AdvertiserGroup.fromJson(data)); |
| 1362 } | 1360 } |
| 1363 | 1361 |
| 1364 /** | 1362 /** |
| 1365 * Retrieves a list of advertiser groups, possibly filtered. | 1363 * Retrieves a list of advertiser groups, possibly filtered. |
| 1366 * | 1364 * |
| 1367 * Request parameters: | 1365 * Request parameters: |
| 1368 * | 1366 * |
| 1369 * [profileId] - User profile ID associated with this request. | 1367 * [profileId] - User profile ID associated with this request. |
| 1370 * | 1368 * |
| 1371 * [ids] - Select only advertiser groups with these IDs. | 1369 * [ids] - Select only advertiser groups with these IDs. |
| 1372 * | 1370 * |
| 1373 * [maxResults] - Maximum number of results to return. | 1371 * [maxResults] - Maximum number of results to return. |
| 1374 * | 1372 * |
| 1375 * [pageToken] - Value of the nextPageToken from the previous result page. | 1373 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 1376 * | 1374 * |
| 1377 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 1375 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 1378 * are allowed. For example, "advertiser*2015" will return objects with names | 1376 * are allowed. For example, "advertiser*2015" will return objects with names |
| 1379 * like "advertiser group June 2015", "advertiser group April 2015" or simply | 1377 * like "advertiser group June 2015", "advertiser group April 2015", or simply |
| 1380 * "advertiser group 2015". Most of the searches also add wildcards implicitly | 1378 * "advertiser group 2015". Most of the searches also add wildcards implicitly |
| 1381 * at the start and the end of the search string. For example, a search string | 1379 * at the start and the end of the search string. For example, a search string |
| 1382 * of "advertisergroup" will match objects with name "my advertisergroup", | 1380 * of "advertisergroup" will match objects with name "my advertisergroup", |
| 1383 * "advertisergroup 2015" or simply "advertisergroup". | 1381 * "advertisergroup 2015", or simply "advertisergroup". |
| 1384 * | 1382 * |
| 1385 * [sortField] - Field by which to sort the list. | 1383 * [sortField] - Field by which to sort the list. |
| 1386 * Possible string values are: | 1384 * Possible string values are: |
| 1387 * - "ID" | 1385 * - "ID" |
| 1388 * - "NAME" | 1386 * - "NAME" |
| 1389 * | 1387 * |
| 1390 * [sortOrder] - Order of sorted results, default is ASCENDING. | 1388 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 1391 * Possible string values are: | 1389 * Possible string values are: |
| 1392 * - "ASCENDING" | 1390 * - "ASCENDING" |
| 1393 * - "DESCENDING" | 1391 * - "DESCENDING" |
| 1394 * | 1392 * |
| 1395 * Completes with a [AdvertiserGroupsListResponse]. | 1393 * Completes with a [AdvertiserGroupsListResponse]. |
| 1396 * | 1394 * |
| 1397 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1395 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1398 * error. | 1396 * error. |
| 1399 * | 1397 * |
| 1400 * If the used [http.Client] completes with an error when making a REST call, | 1398 * If the used [http.Client] completes with an error when making a REST call, |
| 1401 * this method will complete with the same error. | 1399 * this method will complete with the same error. |
| 1402 */ | 1400 */ |
| 1403 async.Future<AdvertiserGroupsListResponse> list(core.String profileId, {core.L
ist<core.String> ids, core.int maxResults, core.String pageToken, core.String se
archString, core.String sortField, core.String sortOrder}) { | 1401 async.Future<AdvertiserGroupsListResponse> list(core.String profileId, {core.L
ist<core.String> ids, core.int maxResults, core.String pageToken, core.String se
archString, core.String sortField, core.String sortOrder}) { |
| 1404 var _url = null; | 1402 var _url = null; |
| 1405 var _queryParams = new core.Map(); | 1403 var _queryParams = new core.Map(); |
| 1406 var _uploadMedia = null; | 1404 var _uploadMedia = null; |
| 1407 var _uploadOptions = null; | 1405 var _uploadOptions = null; |
| 1408 var _downloadOptions = common.DownloadOptions.Metadata; | 1406 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1409 var _body = null; | 1407 var _body = null; |
| 1410 | 1408 |
| 1411 if (profileId == null) { | 1409 if (profileId == null) { |
| 1412 throw new core.ArgumentError("Parameter profileId is required."); | 1410 throw new core.ArgumentError("Parameter profileId is required."); |
| 1413 } | 1411 } |
| 1414 if (ids != null) { | 1412 if (ids != null) { |
| 1415 _queryParams["ids"] = ids; | 1413 _queryParams["ids"] = ids; |
| 1416 } | 1414 } |
| 1417 if (maxResults != null) { | 1415 if (maxResults != null) { |
| 1418 _queryParams["maxResults"] = ["${maxResults}"]; | 1416 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1419 } | 1417 } |
| 1420 if (pageToken != null) { | 1418 if (pageToken != null) { |
| 1421 _queryParams["pageToken"] = [pageToken]; | 1419 _queryParams["pageToken"] = [pageToken]; |
| 1422 } | 1420 } |
| 1423 if (searchString != null) { | 1421 if (searchString != null) { |
| 1424 _queryParams["searchString"] = [searchString]; | 1422 _queryParams["searchString"] = [searchString]; |
| 1425 } | 1423 } |
| 1426 if (sortField != null) { | 1424 if (sortField != null) { |
| 1427 _queryParams["sortField"] = [sortField]; | 1425 _queryParams["sortField"] = [sortField]; |
| 1428 } | 1426 } |
| 1429 if (sortOrder != null) { | 1427 if (sortOrder != null) { |
| 1430 _queryParams["sortOrder"] = [sortOrder]; | 1428 _queryParams["sortOrder"] = [sortOrder]; |
| 1431 } | 1429 } |
| 1432 | 1430 |
| 1433 | 1431 |
| 1434 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertiserGroups'; | 1432 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertiserGroups'; |
| 1435 | 1433 |
| 1436 var _response = _requester.request(_url, | 1434 var _response = _requester.request(_url, |
| 1437 "GET", | 1435 "GET", |
| 1438 body: _body, | 1436 body: _body, |
| 1439 queryParams: _queryParams, | 1437 queryParams: _queryParams, |
| 1440 uploadOptions: _uploadOptions, | 1438 uploadOptions: _uploadOptions, |
| 1441 uploadMedia: _uploadMedia, | 1439 uploadMedia: _uploadMedia, |
| 1442 downloadOptions: _downloadOptions); | 1440 downloadOptions: _downloadOptions); |
| 1443 return _response.then((data) => new AdvertiserGroupsListResponse.fromJson(da
ta)); | 1441 return _response.then((data) => new AdvertiserGroupsListResponse.fromJson(da
ta)); |
| 1444 } | 1442 } |
| 1445 | 1443 |
| 1446 /** | 1444 /** |
| 1447 * Updates an existing advertiser group. This method supports patch semantics. | 1445 * Updates an existing advertiser group. This method supports patch semantics. |
| 1448 * | 1446 * |
| 1449 * [request] - The metadata request object. | 1447 * [request] - The metadata request object. |
| 1450 * | 1448 * |
| 1451 * Request parameters: | 1449 * Request parameters: |
| 1452 * | 1450 * |
| 1453 * [profileId] - User profile ID associated with this request. | 1451 * [profileId] - User profile ID associated with this request. |
| 1454 * | 1452 * |
| 1455 * [id] - Advertiser group ID. | 1453 * [id] - Advertiser group ID. |
| 1456 * | 1454 * |
| 1457 * Completes with a [AdvertiserGroup]. | 1455 * Completes with a [AdvertiserGroup]. |
| 1458 * | 1456 * |
| 1459 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1457 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1460 * error. | 1458 * error. |
| 1461 * | 1459 * |
| 1462 * If the used [http.Client] completes with an error when making a REST call, | 1460 * If the used [http.Client] completes with an error when making a REST call, |
| 1463 * this method will complete with the same error. | 1461 * this method will complete with the same error. |
| 1464 */ | 1462 */ |
| 1465 async.Future<AdvertiserGroup> patch(AdvertiserGroup request, core.String profi
leId, core.String id) { | 1463 async.Future<AdvertiserGroup> patch(AdvertiserGroup request, core.String profi
leId, core.String id) { |
| 1466 var _url = null; | 1464 var _url = null; |
| 1467 var _queryParams = new core.Map(); | 1465 var _queryParams = new core.Map(); |
| 1468 var _uploadMedia = null; | 1466 var _uploadMedia = null; |
| 1469 var _uploadOptions = null; | 1467 var _uploadOptions = null; |
| 1470 var _downloadOptions = common.DownloadOptions.Metadata; | 1468 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1471 var _body = null; | 1469 var _body = null; |
| 1472 | 1470 |
| 1473 if (request != null) { | 1471 if (request != null) { |
| 1474 _body = convert.JSON.encode((request).toJson()); | 1472 _body = convert.JSON.encode((request).toJson()); |
| 1475 } | 1473 } |
| 1476 if (profileId == null) { | 1474 if (profileId == null) { |
| 1477 throw new core.ArgumentError("Parameter profileId is required."); | 1475 throw new core.ArgumentError("Parameter profileId is required."); |
| 1478 } | 1476 } |
| 1479 if (id == null) { | 1477 if (id == null) { |
| 1480 throw new core.ArgumentError("Parameter id is required."); | 1478 throw new core.ArgumentError("Parameter id is required."); |
| 1481 } | 1479 } |
| 1482 _queryParams["id"] = [id]; | 1480 _queryParams["id"] = [id]; |
| 1483 | 1481 |
| 1484 | 1482 |
| 1485 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertiserGroups'; | 1483 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertiserGroups'; |
| 1486 | 1484 |
| 1487 var _response = _requester.request(_url, | 1485 var _response = _requester.request(_url, |
| 1488 "PATCH", | 1486 "PATCH", |
| 1489 body: _body, | 1487 body: _body, |
| 1490 queryParams: _queryParams, | 1488 queryParams: _queryParams, |
| 1491 uploadOptions: _uploadOptions, | 1489 uploadOptions: _uploadOptions, |
| 1492 uploadMedia: _uploadMedia, | 1490 uploadMedia: _uploadMedia, |
| 1493 downloadOptions: _downloadOptions); | 1491 downloadOptions: _downloadOptions); |
| 1494 return _response.then((data) => new AdvertiserGroup.fromJson(data)); | 1492 return _response.then((data) => new AdvertiserGroup.fromJson(data)); |
| 1495 } | 1493 } |
| 1496 | 1494 |
| 1497 /** | 1495 /** |
| 1498 * Updates an existing advertiser group. | 1496 * Updates an existing advertiser group. |
| 1499 * | 1497 * |
| 1500 * [request] - The metadata request object. | 1498 * [request] - The metadata request object. |
| 1501 * | 1499 * |
| 1502 * Request parameters: | 1500 * Request parameters: |
| 1503 * | 1501 * |
| 1504 * [profileId] - User profile ID associated with this request. | 1502 * [profileId] - User profile ID associated with this request. |
| 1505 * | 1503 * |
| 1506 * Completes with a [AdvertiserGroup]. | 1504 * Completes with a [AdvertiserGroup]. |
| 1507 * | 1505 * |
| 1508 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1506 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1509 * error. | 1507 * error. |
| 1510 * | 1508 * |
| 1511 * If the used [http.Client] completes with an error when making a REST call, | 1509 * If the used [http.Client] completes with an error when making a REST call, |
| 1512 * this method will complete with the same error. | 1510 * this method will complete with the same error. |
| 1513 */ | 1511 */ |
| 1514 async.Future<AdvertiserGroup> update(AdvertiserGroup request, core.String prof
ileId) { | 1512 async.Future<AdvertiserGroup> update(AdvertiserGroup request, core.String prof
ileId) { |
| 1515 var _url = null; | 1513 var _url = null; |
| 1516 var _queryParams = new core.Map(); | 1514 var _queryParams = new core.Map(); |
| 1517 var _uploadMedia = null; | 1515 var _uploadMedia = null; |
| 1518 var _uploadOptions = null; | 1516 var _uploadOptions = null; |
| 1519 var _downloadOptions = common.DownloadOptions.Metadata; | 1517 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1520 var _body = null; | 1518 var _body = null; |
| 1521 | 1519 |
| 1522 if (request != null) { | 1520 if (request != null) { |
| 1523 _body = convert.JSON.encode((request).toJson()); | 1521 _body = convert.JSON.encode((request).toJson()); |
| 1524 } | 1522 } |
| 1525 if (profileId == null) { | 1523 if (profileId == null) { |
| 1526 throw new core.ArgumentError("Parameter profileId is required."); | 1524 throw new core.ArgumentError("Parameter profileId is required."); |
| 1527 } | 1525 } |
| 1528 | 1526 |
| 1529 | 1527 |
| 1530 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertiserGroups'; | 1528 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertiserGroups'; |
| 1531 | 1529 |
| 1532 var _response = _requester.request(_url, | 1530 var _response = _requester.request(_url, |
| 1533 "PUT", | 1531 "PUT", |
| 1534 body: _body, | 1532 body: _body, |
| 1535 queryParams: _queryParams, | 1533 queryParams: _queryParams, |
| 1536 uploadOptions: _uploadOptions, | 1534 uploadOptions: _uploadOptions, |
| 1537 uploadMedia: _uploadMedia, | 1535 uploadMedia: _uploadMedia, |
| 1538 downloadOptions: _downloadOptions); | 1536 downloadOptions: _downloadOptions); |
| 1539 return _response.then((data) => new AdvertiserGroup.fromJson(data)); | 1537 return _response.then((data) => new AdvertiserGroup.fromJson(data)); |
| 1540 } | 1538 } |
| 1541 | 1539 |
| 1542 } | 1540 } |
| 1543 | 1541 |
| 1544 | 1542 |
| 1545 /** Not documented yet. */ | |
| 1546 class AdvertisersResourceApi { | 1543 class AdvertisersResourceApi { |
| 1547 final common_internal.ApiRequester _requester; | 1544 final commons.ApiRequester _requester; |
| 1548 | 1545 |
| 1549 AdvertisersResourceApi(common_internal.ApiRequester client) : | 1546 AdvertisersResourceApi(commons.ApiRequester client) : |
| 1550 _requester = client; | 1547 _requester = client; |
| 1551 | 1548 |
| 1552 /** | 1549 /** |
| 1553 * Gets one advertiser by ID. | 1550 * Gets one advertiser by ID. |
| 1554 * | 1551 * |
| 1555 * Request parameters: | 1552 * Request parameters: |
| 1556 * | 1553 * |
| 1557 * [profileId] - User profile ID associated with this request. | 1554 * [profileId] - User profile ID associated with this request. |
| 1558 * | 1555 * |
| 1559 * [id] - Advertiser ID. | 1556 * [id] - Advertiser ID. |
| 1560 * | 1557 * |
| 1561 * Completes with a [Advertiser]. | 1558 * Completes with a [Advertiser]. |
| 1562 * | 1559 * |
| 1563 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1560 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1564 * error. | 1561 * error. |
| 1565 * | 1562 * |
| 1566 * If the used [http.Client] completes with an error when making a REST call, | 1563 * If the used [http.Client] completes with an error when making a REST call, |
| 1567 * this method will complete with the same error. | 1564 * this method will complete with the same error. |
| 1568 */ | 1565 */ |
| 1569 async.Future<Advertiser> get(core.String profileId, core.String id) { | 1566 async.Future<Advertiser> get(core.String profileId, core.String id) { |
| 1570 var _url = null; | 1567 var _url = null; |
| 1571 var _queryParams = new core.Map(); | 1568 var _queryParams = new core.Map(); |
| 1572 var _uploadMedia = null; | 1569 var _uploadMedia = null; |
| 1573 var _uploadOptions = null; | 1570 var _uploadOptions = null; |
| 1574 var _downloadOptions = common.DownloadOptions.Metadata; | 1571 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1575 var _body = null; | 1572 var _body = null; |
| 1576 | 1573 |
| 1577 if (profileId == null) { | 1574 if (profileId == null) { |
| 1578 throw new core.ArgumentError("Parameter profileId is required."); | 1575 throw new core.ArgumentError("Parameter profileId is required."); |
| 1579 } | 1576 } |
| 1580 if (id == null) { | 1577 if (id == null) { |
| 1581 throw new core.ArgumentError("Parameter id is required."); | 1578 throw new core.ArgumentError("Parameter id is required."); |
| 1582 } | 1579 } |
| 1583 | 1580 |
| 1584 | 1581 |
| 1585 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertisers/' + common_internal.Escaper.ecapeVariable('$id'); | 1582 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertisers/' + commons.Escaper.ecapeVariable('$id'); |
| 1586 | 1583 |
| 1587 var _response = _requester.request(_url, | 1584 var _response = _requester.request(_url, |
| 1588 "GET", | 1585 "GET", |
| 1589 body: _body, | 1586 body: _body, |
| 1590 queryParams: _queryParams, | 1587 queryParams: _queryParams, |
| 1591 uploadOptions: _uploadOptions, | 1588 uploadOptions: _uploadOptions, |
| 1592 uploadMedia: _uploadMedia, | 1589 uploadMedia: _uploadMedia, |
| 1593 downloadOptions: _downloadOptions); | 1590 downloadOptions: _downloadOptions); |
| 1594 return _response.then((data) => new Advertiser.fromJson(data)); | 1591 return _response.then((data) => new Advertiser.fromJson(data)); |
| 1595 } | 1592 } |
| 1596 | 1593 |
| 1597 /** | 1594 /** |
| 1598 * Inserts a new advertiser. | 1595 * Inserts a new advertiser. |
| 1599 * | 1596 * |
| 1600 * [request] - The metadata request object. | 1597 * [request] - The metadata request object. |
| 1601 * | 1598 * |
| 1602 * Request parameters: | 1599 * Request parameters: |
| 1603 * | 1600 * |
| 1604 * [profileId] - User profile ID associated with this request. | 1601 * [profileId] - User profile ID associated with this request. |
| 1605 * | 1602 * |
| 1606 * Completes with a [Advertiser]. | 1603 * Completes with a [Advertiser]. |
| 1607 * | 1604 * |
| 1608 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1605 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1609 * error. | 1606 * error. |
| 1610 * | 1607 * |
| 1611 * If the used [http.Client] completes with an error when making a REST call, | 1608 * If the used [http.Client] completes with an error when making a REST call, |
| 1612 * this method will complete with the same error. | 1609 * this method will complete with the same error. |
| 1613 */ | 1610 */ |
| 1614 async.Future<Advertiser> insert(Advertiser request, core.String profileId) { | 1611 async.Future<Advertiser> insert(Advertiser request, core.String profileId) { |
| 1615 var _url = null; | 1612 var _url = null; |
| 1616 var _queryParams = new core.Map(); | 1613 var _queryParams = new core.Map(); |
| 1617 var _uploadMedia = null; | 1614 var _uploadMedia = null; |
| 1618 var _uploadOptions = null; | 1615 var _uploadOptions = null; |
| 1619 var _downloadOptions = common.DownloadOptions.Metadata; | 1616 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1620 var _body = null; | 1617 var _body = null; |
| 1621 | 1618 |
| 1622 if (request != null) { | 1619 if (request != null) { |
| 1623 _body = convert.JSON.encode((request).toJson()); | 1620 _body = convert.JSON.encode((request).toJson()); |
| 1624 } | 1621 } |
| 1625 if (profileId == null) { | 1622 if (profileId == null) { |
| 1626 throw new core.ArgumentError("Parameter profileId is required."); | 1623 throw new core.ArgumentError("Parameter profileId is required."); |
| 1627 } | 1624 } |
| 1628 | 1625 |
| 1629 | 1626 |
| 1630 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertisers'; | 1627 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertisers'; |
| 1631 | 1628 |
| 1632 var _response = _requester.request(_url, | 1629 var _response = _requester.request(_url, |
| 1633 "POST", | 1630 "POST", |
| 1634 body: _body, | 1631 body: _body, |
| 1635 queryParams: _queryParams, | 1632 queryParams: _queryParams, |
| 1636 uploadOptions: _uploadOptions, | 1633 uploadOptions: _uploadOptions, |
| 1637 uploadMedia: _uploadMedia, | 1634 uploadMedia: _uploadMedia, |
| 1638 downloadOptions: _downloadOptions); | 1635 downloadOptions: _downloadOptions); |
| 1639 return _response.then((data) => new Advertiser.fromJson(data)); | 1636 return _response.then((data) => new Advertiser.fromJson(data)); |
| 1640 } | 1637 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1659 * | 1656 * |
| 1660 * [maxResults] - Maximum number of results to return. | 1657 * [maxResults] - Maximum number of results to return. |
| 1661 * | 1658 * |
| 1662 * [onlyParent] - Select only advertisers which use another advertiser's | 1659 * [onlyParent] - Select only advertisers which use another advertiser's |
| 1663 * floodlight configuration. | 1660 * floodlight configuration. |
| 1664 * | 1661 * |
| 1665 * [pageToken] - Value of the nextPageToken from the previous result page. | 1662 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 1666 * | 1663 * |
| 1667 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 1664 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 1668 * are allowed. For example, "advertiser*2015" will return objects with names | 1665 * are allowed. For example, "advertiser*2015" will return objects with names |
| 1669 * like "advertiser June 2015", "advertiser April 2015" or simply "advertiser | 1666 * like "advertiser June 2015", "advertiser April 2015", or simply "advertiser |
| 1670 * 2015". Most of the searches also add wildcards implicitly at the start and | 1667 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 1671 * the end of the search string. For example, a search string of "advertiser" | 1668 * the end of the search string. For example, a search string of "advertiser" |
| 1672 * will match objects with name "my advertiser", "advertiser 2015" or simply | 1669 * will match objects with name "my advertiser", "advertiser 2015", or simply |
| 1673 * "advertiser". | 1670 * "advertiser". |
| 1674 * | 1671 * |
| 1675 * [sortField] - Field by which to sort the list. | 1672 * [sortField] - Field by which to sort the list. |
| 1676 * Possible string values are: | 1673 * Possible string values are: |
| 1677 * - "ID" | 1674 * - "ID" |
| 1678 * - "NAME" | 1675 * - "NAME" |
| 1679 * | 1676 * |
| 1680 * [sortOrder] - Order of sorted results, default is ASCENDING. | 1677 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 1681 * Possible string values are: | 1678 * Possible string values are: |
| 1682 * - "ASCENDING" | 1679 * - "ASCENDING" |
| 1683 * - "DESCENDING" | 1680 * - "DESCENDING" |
| 1684 * | 1681 * |
| 1685 * [status] - Select only advertisers with the specified status. | 1682 * [status] - Select only advertisers with the specified status. |
| 1686 * Possible string values are: | 1683 * Possible string values are: |
| 1687 * - "APPROVED" | 1684 * - "APPROVED" |
| 1688 * - "ON_HOLD" | 1685 * - "ON_HOLD" |
| 1689 * | 1686 * |
| 1690 * [subaccountId] - Select only advertisers with these subaccount IDs. | 1687 * [subaccountId] - Select only advertisers with these subaccount IDs. |
| 1691 * | 1688 * |
| 1692 * Completes with a [AdvertisersListResponse]. | 1689 * Completes with a [AdvertisersListResponse]. |
| 1693 * | 1690 * |
| 1694 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1691 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1695 * error. | 1692 * error. |
| 1696 * | 1693 * |
| 1697 * If the used [http.Client] completes with an error when making a REST call, | 1694 * If the used [http.Client] completes with an error when making a REST call, |
| 1698 * this method will complete with the same error. | 1695 * this method will complete with the same error. |
| 1699 */ | 1696 */ |
| 1700 async.Future<AdvertisersListResponse> list(core.String profileId, {core.List<c
ore.String> advertiserGroupIds, core.List<core.String> floodlightConfigurationId
s, core.List<core.String> ids, core.bool includeAdvertisersWithoutGroupsOnly, co
re.int maxResults, core.bool onlyParent, core.String pageToken, core.String sear
chString, core.String sortField, core.String sortOrder, core.String status, core
.String subaccountId}) { | 1697 async.Future<AdvertisersListResponse> list(core.String profileId, {core.List<c
ore.String> advertiserGroupIds, core.List<core.String> floodlightConfigurationId
s, core.List<core.String> ids, core.bool includeAdvertisersWithoutGroupsOnly, co
re.int maxResults, core.bool onlyParent, core.String pageToken, core.String sear
chString, core.String sortField, core.String sortOrder, core.String status, core
.String subaccountId}) { |
| 1701 var _url = null; | 1698 var _url = null; |
| 1702 var _queryParams = new core.Map(); | 1699 var _queryParams = new core.Map(); |
| 1703 var _uploadMedia = null; | 1700 var _uploadMedia = null; |
| 1704 var _uploadOptions = null; | 1701 var _uploadOptions = null; |
| 1705 var _downloadOptions = common.DownloadOptions.Metadata; | 1702 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1706 var _body = null; | 1703 var _body = null; |
| 1707 | 1704 |
| 1708 if (profileId == null) { | 1705 if (profileId == null) { |
| 1709 throw new core.ArgumentError("Parameter profileId is required."); | 1706 throw new core.ArgumentError("Parameter profileId is required."); |
| 1710 } | 1707 } |
| 1711 if (advertiserGroupIds != null) { | 1708 if (advertiserGroupIds != null) { |
| 1712 _queryParams["advertiserGroupIds"] = advertiserGroupIds; | 1709 _queryParams["advertiserGroupIds"] = advertiserGroupIds; |
| 1713 } | 1710 } |
| 1714 if (floodlightConfigurationIds != null) { | 1711 if (floodlightConfigurationIds != null) { |
| 1715 _queryParams["floodlightConfigurationIds"] = floodlightConfigurationIds; | 1712 _queryParams["floodlightConfigurationIds"] = floodlightConfigurationIds; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1739 _queryParams["sortOrder"] = [sortOrder]; | 1736 _queryParams["sortOrder"] = [sortOrder]; |
| 1740 } | 1737 } |
| 1741 if (status != null) { | 1738 if (status != null) { |
| 1742 _queryParams["status"] = [status]; | 1739 _queryParams["status"] = [status]; |
| 1743 } | 1740 } |
| 1744 if (subaccountId != null) { | 1741 if (subaccountId != null) { |
| 1745 _queryParams["subaccountId"] = [subaccountId]; | 1742 _queryParams["subaccountId"] = [subaccountId]; |
| 1746 } | 1743 } |
| 1747 | 1744 |
| 1748 | 1745 |
| 1749 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertisers'; | 1746 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertisers'; |
| 1750 | 1747 |
| 1751 var _response = _requester.request(_url, | 1748 var _response = _requester.request(_url, |
| 1752 "GET", | 1749 "GET", |
| 1753 body: _body, | 1750 body: _body, |
| 1754 queryParams: _queryParams, | 1751 queryParams: _queryParams, |
| 1755 uploadOptions: _uploadOptions, | 1752 uploadOptions: _uploadOptions, |
| 1756 uploadMedia: _uploadMedia, | 1753 uploadMedia: _uploadMedia, |
| 1757 downloadOptions: _downloadOptions); | 1754 downloadOptions: _downloadOptions); |
| 1758 return _response.then((data) => new AdvertisersListResponse.fromJson(data)); | 1755 return _response.then((data) => new AdvertisersListResponse.fromJson(data)); |
| 1759 } | 1756 } |
| 1760 | 1757 |
| 1761 /** | 1758 /** |
| 1762 * Updates an existing advertiser. This method supports patch semantics. | 1759 * Updates an existing advertiser. This method supports patch semantics. |
| 1763 * | 1760 * |
| 1764 * [request] - The metadata request object. | 1761 * [request] - The metadata request object. |
| 1765 * | 1762 * |
| 1766 * Request parameters: | 1763 * Request parameters: |
| 1767 * | 1764 * |
| 1768 * [profileId] - User profile ID associated with this request. | 1765 * [profileId] - User profile ID associated with this request. |
| 1769 * | 1766 * |
| 1770 * [id] - Advertiser ID. | 1767 * [id] - Advertiser ID. |
| 1771 * | 1768 * |
| 1772 * Completes with a [Advertiser]. | 1769 * Completes with a [Advertiser]. |
| 1773 * | 1770 * |
| 1774 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1775 * error. | 1772 * error. |
| 1776 * | 1773 * |
| 1777 * If the used [http.Client] completes with an error when making a REST call, | 1774 * If the used [http.Client] completes with an error when making a REST call, |
| 1778 * this method will complete with the same error. | 1775 * this method will complete with the same error. |
| 1779 */ | 1776 */ |
| 1780 async.Future<Advertiser> patch(Advertiser request, core.String profileId, core
.String id) { | 1777 async.Future<Advertiser> patch(Advertiser request, core.String profileId, core
.String id) { |
| 1781 var _url = null; | 1778 var _url = null; |
| 1782 var _queryParams = new core.Map(); | 1779 var _queryParams = new core.Map(); |
| 1783 var _uploadMedia = null; | 1780 var _uploadMedia = null; |
| 1784 var _uploadOptions = null; | 1781 var _uploadOptions = null; |
| 1785 var _downloadOptions = common.DownloadOptions.Metadata; | 1782 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1786 var _body = null; | 1783 var _body = null; |
| 1787 | 1784 |
| 1788 if (request != null) { | 1785 if (request != null) { |
| 1789 _body = convert.JSON.encode((request).toJson()); | 1786 _body = convert.JSON.encode((request).toJson()); |
| 1790 } | 1787 } |
| 1791 if (profileId == null) { | 1788 if (profileId == null) { |
| 1792 throw new core.ArgumentError("Parameter profileId is required."); | 1789 throw new core.ArgumentError("Parameter profileId is required."); |
| 1793 } | 1790 } |
| 1794 if (id == null) { | 1791 if (id == null) { |
| 1795 throw new core.ArgumentError("Parameter id is required."); | 1792 throw new core.ArgumentError("Parameter id is required."); |
| 1796 } | 1793 } |
| 1797 _queryParams["id"] = [id]; | 1794 _queryParams["id"] = [id]; |
| 1798 | 1795 |
| 1799 | 1796 |
| 1800 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertisers'; | 1797 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertisers'; |
| 1801 | 1798 |
| 1802 var _response = _requester.request(_url, | 1799 var _response = _requester.request(_url, |
| 1803 "PATCH", | 1800 "PATCH", |
| 1804 body: _body, | 1801 body: _body, |
| 1805 queryParams: _queryParams, | 1802 queryParams: _queryParams, |
| 1806 uploadOptions: _uploadOptions, | 1803 uploadOptions: _uploadOptions, |
| 1807 uploadMedia: _uploadMedia, | 1804 uploadMedia: _uploadMedia, |
| 1808 downloadOptions: _downloadOptions); | 1805 downloadOptions: _downloadOptions); |
| 1809 return _response.then((data) => new Advertiser.fromJson(data)); | 1806 return _response.then((data) => new Advertiser.fromJson(data)); |
| 1810 } | 1807 } |
| 1811 | 1808 |
| 1812 /** | 1809 /** |
| 1813 * Updates an existing advertiser. | 1810 * Updates an existing advertiser. |
| 1814 * | 1811 * |
| 1815 * [request] - The metadata request object. | 1812 * [request] - The metadata request object. |
| 1816 * | 1813 * |
| 1817 * Request parameters: | 1814 * Request parameters: |
| 1818 * | 1815 * |
| 1819 * [profileId] - User profile ID associated with this request. | 1816 * [profileId] - User profile ID associated with this request. |
| 1820 * | 1817 * |
| 1821 * Completes with a [Advertiser]. | 1818 * Completes with a [Advertiser]. |
| 1822 * | 1819 * |
| 1823 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1820 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1824 * error. | 1821 * error. |
| 1825 * | 1822 * |
| 1826 * If the used [http.Client] completes with an error when making a REST call, | 1823 * If the used [http.Client] completes with an error when making a REST call, |
| 1827 * this method will complete with the same error. | 1824 * this method will complete with the same error. |
| 1828 */ | 1825 */ |
| 1829 async.Future<Advertiser> update(Advertiser request, core.String profileId) { | 1826 async.Future<Advertiser> update(Advertiser request, core.String profileId) { |
| 1830 var _url = null; | 1827 var _url = null; |
| 1831 var _queryParams = new core.Map(); | 1828 var _queryParams = new core.Map(); |
| 1832 var _uploadMedia = null; | 1829 var _uploadMedia = null; |
| 1833 var _uploadOptions = null; | 1830 var _uploadOptions = null; |
| 1834 var _downloadOptions = common.DownloadOptions.Metadata; | 1831 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1835 var _body = null; | 1832 var _body = null; |
| 1836 | 1833 |
| 1837 if (request != null) { | 1834 if (request != null) { |
| 1838 _body = convert.JSON.encode((request).toJson()); | 1835 _body = convert.JSON.encode((request).toJson()); |
| 1839 } | 1836 } |
| 1840 if (profileId == null) { | 1837 if (profileId == null) { |
| 1841 throw new core.ArgumentError("Parameter profileId is required."); | 1838 throw new core.ArgumentError("Parameter profileId is required."); |
| 1842 } | 1839 } |
| 1843 | 1840 |
| 1844 | 1841 |
| 1845 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/advertisers'; | 1842 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/adv
ertisers'; |
| 1846 | 1843 |
| 1847 var _response = _requester.request(_url, | 1844 var _response = _requester.request(_url, |
| 1848 "PUT", | 1845 "PUT", |
| 1849 body: _body, | 1846 body: _body, |
| 1850 queryParams: _queryParams, | 1847 queryParams: _queryParams, |
| 1851 uploadOptions: _uploadOptions, | 1848 uploadOptions: _uploadOptions, |
| 1852 uploadMedia: _uploadMedia, | 1849 uploadMedia: _uploadMedia, |
| 1853 downloadOptions: _downloadOptions); | 1850 downloadOptions: _downloadOptions); |
| 1854 return _response.then((data) => new Advertiser.fromJson(data)); | 1851 return _response.then((data) => new Advertiser.fromJson(data)); |
| 1855 } | 1852 } |
| 1856 | 1853 |
| 1857 } | 1854 } |
| 1858 | 1855 |
| 1859 | 1856 |
| 1860 /** Not documented yet. */ | |
| 1861 class BrowsersResourceApi { | 1857 class BrowsersResourceApi { |
| 1862 final common_internal.ApiRequester _requester; | 1858 final commons.ApiRequester _requester; |
| 1863 | 1859 |
| 1864 BrowsersResourceApi(common_internal.ApiRequester client) : | 1860 BrowsersResourceApi(commons.ApiRequester client) : |
| 1865 _requester = client; | 1861 _requester = client; |
| 1866 | 1862 |
| 1867 /** | 1863 /** |
| 1868 * Retrieves a list of browsers. | 1864 * Retrieves a list of browsers. |
| 1869 * | 1865 * |
| 1870 * Request parameters: | 1866 * Request parameters: |
| 1871 * | 1867 * |
| 1872 * [profileId] - User profile ID associated with this request. | 1868 * [profileId] - User profile ID associated with this request. |
| 1873 * | 1869 * |
| 1874 * Completes with a [BrowsersListResponse]. | 1870 * Completes with a [BrowsersListResponse]. |
| 1875 * | 1871 * |
| 1876 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1872 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1877 * error. | 1873 * error. |
| 1878 * | 1874 * |
| 1879 * If the used [http.Client] completes with an error when making a REST call, | 1875 * If the used [http.Client] completes with an error when making a REST call, |
| 1880 * this method will complete with the same error. | 1876 * this method will complete with the same error. |
| 1881 */ | 1877 */ |
| 1882 async.Future<BrowsersListResponse> list(core.String profileId) { | 1878 async.Future<BrowsersListResponse> list(core.String profileId) { |
| 1883 var _url = null; | 1879 var _url = null; |
| 1884 var _queryParams = new core.Map(); | 1880 var _queryParams = new core.Map(); |
| 1885 var _uploadMedia = null; | 1881 var _uploadMedia = null; |
| 1886 var _uploadOptions = null; | 1882 var _uploadOptions = null; |
| 1887 var _downloadOptions = common.DownloadOptions.Metadata; | 1883 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1888 var _body = null; | 1884 var _body = null; |
| 1889 | 1885 |
| 1890 if (profileId == null) { | 1886 if (profileId == null) { |
| 1891 throw new core.ArgumentError("Parameter profileId is required."); | 1887 throw new core.ArgumentError("Parameter profileId is required."); |
| 1892 } | 1888 } |
| 1893 | 1889 |
| 1894 | 1890 |
| 1895 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/browsers'; | 1891 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/bro
wsers'; |
| 1896 | 1892 |
| 1897 var _response = _requester.request(_url, | 1893 var _response = _requester.request(_url, |
| 1898 "GET", | 1894 "GET", |
| 1899 body: _body, | 1895 body: _body, |
| 1900 queryParams: _queryParams, | 1896 queryParams: _queryParams, |
| 1901 uploadOptions: _uploadOptions, | 1897 uploadOptions: _uploadOptions, |
| 1902 uploadMedia: _uploadMedia, | 1898 uploadMedia: _uploadMedia, |
| 1903 downloadOptions: _downloadOptions); | 1899 downloadOptions: _downloadOptions); |
| 1904 return _response.then((data) => new BrowsersListResponse.fromJson(data)); | 1900 return _response.then((data) => new BrowsersListResponse.fromJson(data)); |
| 1905 } | 1901 } |
| 1906 | 1902 |
| 1907 } | 1903 } |
| 1908 | 1904 |
| 1909 | 1905 |
| 1910 /** Not documented yet. */ | |
| 1911 class CampaignCreativeAssociationsResourceApi { | 1906 class CampaignCreativeAssociationsResourceApi { |
| 1912 final common_internal.ApiRequester _requester; | 1907 final commons.ApiRequester _requester; |
| 1913 | 1908 |
| 1914 CampaignCreativeAssociationsResourceApi(common_internal.ApiRequester client) :
| 1909 CampaignCreativeAssociationsResourceApi(commons.ApiRequester client) : |
| 1915 _requester = client; | 1910 _requester = client; |
| 1916 | 1911 |
| 1917 /** | 1912 /** |
| 1918 * Associates a creative with the specified campaign. This method creates a | 1913 * Associates a creative with the specified campaign. This method creates a |
| 1919 * default ad with dimensions matching the creative in the campaign if such a | 1914 * default ad with dimensions matching the creative in the campaign if such a |
| 1920 * default ad does not exist already. | 1915 * default ad does not exist already. |
| 1921 * | 1916 * |
| 1922 * [request] - The metadata request object. | 1917 * [request] - The metadata request object. |
| 1923 * | 1918 * |
| 1924 * Request parameters: | 1919 * Request parameters: |
| 1925 * | 1920 * |
| 1926 * [profileId] - User profile ID associated with this request. | 1921 * [profileId] - User profile ID associated with this request. |
| 1927 * | 1922 * |
| 1928 * [campaignId] - Campaign ID in this association. | 1923 * [campaignId] - Campaign ID in this association. |
| 1929 * | 1924 * |
| 1930 * Completes with a [CampaignCreativeAssociation]. | 1925 * Completes with a [CampaignCreativeAssociation]. |
| 1931 * | 1926 * |
| 1932 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1927 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1933 * error. | 1928 * error. |
| 1934 * | 1929 * |
| 1935 * If the used [http.Client] completes with an error when making a REST call, | 1930 * If the used [http.Client] completes with an error when making a REST call, |
| 1936 * this method will complete with the same error. | 1931 * this method will complete with the same error. |
| 1937 */ | 1932 */ |
| 1938 async.Future<CampaignCreativeAssociation> insert(CampaignCreativeAssociation r
equest, core.String profileId, core.String campaignId) { | 1933 async.Future<CampaignCreativeAssociation> insert(CampaignCreativeAssociation r
equest, core.String profileId, core.String campaignId) { |
| 1939 var _url = null; | 1934 var _url = null; |
| 1940 var _queryParams = new core.Map(); | 1935 var _queryParams = new core.Map(); |
| 1941 var _uploadMedia = null; | 1936 var _uploadMedia = null; |
| 1942 var _uploadOptions = null; | 1937 var _uploadOptions = null; |
| 1943 var _downloadOptions = common.DownloadOptions.Metadata; | 1938 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1944 var _body = null; | 1939 var _body = null; |
| 1945 | 1940 |
| 1946 if (request != null) { | 1941 if (request != null) { |
| 1947 _body = convert.JSON.encode((request).toJson()); | 1942 _body = convert.JSON.encode((request).toJson()); |
| 1948 } | 1943 } |
| 1949 if (profileId == null) { | 1944 if (profileId == null) { |
| 1950 throw new core.ArgumentError("Parameter profileId is required."); | 1945 throw new core.ArgumentError("Parameter profileId is required."); |
| 1951 } | 1946 } |
| 1952 if (campaignId == null) { | 1947 if (campaignId == null) { |
| 1953 throw new core.ArgumentError("Parameter campaignId is required."); | 1948 throw new core.ArgumentError("Parameter campaignId is required."); |
| 1954 } | 1949 } |
| 1955 | 1950 |
| 1956 | 1951 |
| 1957 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$campaignId') + '/camp
aignCreativeAssociations'; | 1952 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/campaignCreativeAsso
ciations'; |
| 1958 | 1953 |
| 1959 var _response = _requester.request(_url, | 1954 var _response = _requester.request(_url, |
| 1960 "POST", | 1955 "POST", |
| 1961 body: _body, | 1956 body: _body, |
| 1962 queryParams: _queryParams, | 1957 queryParams: _queryParams, |
| 1963 uploadOptions: _uploadOptions, | 1958 uploadOptions: _uploadOptions, |
| 1964 uploadMedia: _uploadMedia, | 1959 uploadMedia: _uploadMedia, |
| 1965 downloadOptions: _downloadOptions); | 1960 downloadOptions: _downloadOptions); |
| 1966 return _response.then((data) => new CampaignCreativeAssociation.fromJson(dat
a)); | 1961 return _response.then((data) => new CampaignCreativeAssociation.fromJson(dat
a)); |
| 1967 } | 1962 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1979 * | 1974 * |
| 1980 * [pageToken] - Value of the nextPageToken from the previous result page. | 1975 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 1981 * | 1976 * |
| 1982 * [sortOrder] - Order of sorted results, default is ASCENDING. | 1977 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 1983 * Possible string values are: | 1978 * Possible string values are: |
| 1984 * - "ASCENDING" | 1979 * - "ASCENDING" |
| 1985 * - "DESCENDING" | 1980 * - "DESCENDING" |
| 1986 * | 1981 * |
| 1987 * Completes with a [CampaignCreativeAssociationsListResponse]. | 1982 * Completes with a [CampaignCreativeAssociationsListResponse]. |
| 1988 * | 1983 * |
| 1989 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1984 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1990 * error. | 1985 * error. |
| 1991 * | 1986 * |
| 1992 * If the used [http.Client] completes with an error when making a REST call, | 1987 * If the used [http.Client] completes with an error when making a REST call, |
| 1993 * this method will complete with the same error. | 1988 * this method will complete with the same error. |
| 1994 */ | 1989 */ |
| 1995 async.Future<CampaignCreativeAssociationsListResponse> list(core.String profil
eId, core.String campaignId, {core.int maxResults, core.String pageToken, core.S
tring sortOrder}) { | 1990 async.Future<CampaignCreativeAssociationsListResponse> list(core.String profil
eId, core.String campaignId, {core.int maxResults, core.String pageToken, core.S
tring sortOrder}) { |
| 1996 var _url = null; | 1991 var _url = null; |
| 1997 var _queryParams = new core.Map(); | 1992 var _queryParams = new core.Map(); |
| 1998 var _uploadMedia = null; | 1993 var _uploadMedia = null; |
| 1999 var _uploadOptions = null; | 1994 var _uploadOptions = null; |
| 2000 var _downloadOptions = common.DownloadOptions.Metadata; | 1995 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2001 var _body = null; | 1996 var _body = null; |
| 2002 | 1997 |
| 2003 if (profileId == null) { | 1998 if (profileId == null) { |
| 2004 throw new core.ArgumentError("Parameter profileId is required."); | 1999 throw new core.ArgumentError("Parameter profileId is required."); |
| 2005 } | 2000 } |
| 2006 if (campaignId == null) { | 2001 if (campaignId == null) { |
| 2007 throw new core.ArgumentError("Parameter campaignId is required."); | 2002 throw new core.ArgumentError("Parameter campaignId is required."); |
| 2008 } | 2003 } |
| 2009 if (maxResults != null) { | 2004 if (maxResults != null) { |
| 2010 _queryParams["maxResults"] = ["${maxResults}"]; | 2005 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2011 } | 2006 } |
| 2012 if (pageToken != null) { | 2007 if (pageToken != null) { |
| 2013 _queryParams["pageToken"] = [pageToken]; | 2008 _queryParams["pageToken"] = [pageToken]; |
| 2014 } | 2009 } |
| 2015 if (sortOrder != null) { | 2010 if (sortOrder != null) { |
| 2016 _queryParams["sortOrder"] = [sortOrder]; | 2011 _queryParams["sortOrder"] = [sortOrder]; |
| 2017 } | 2012 } |
| 2018 | 2013 |
| 2019 | 2014 |
| 2020 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$campaignId') + '/camp
aignCreativeAssociations'; | 2015 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/campaignCreativeAsso
ciations'; |
| 2021 | 2016 |
| 2022 var _response = _requester.request(_url, | 2017 var _response = _requester.request(_url, |
| 2023 "GET", | 2018 "GET", |
| 2024 body: _body, | 2019 body: _body, |
| 2025 queryParams: _queryParams, | 2020 queryParams: _queryParams, |
| 2026 uploadOptions: _uploadOptions, | 2021 uploadOptions: _uploadOptions, |
| 2027 uploadMedia: _uploadMedia, | 2022 uploadMedia: _uploadMedia, |
| 2028 downloadOptions: _downloadOptions); | 2023 downloadOptions: _downloadOptions); |
| 2029 return _response.then((data) => new CampaignCreativeAssociationsListResponse
.fromJson(data)); | 2024 return _response.then((data) => new CampaignCreativeAssociationsListResponse
.fromJson(data)); |
| 2030 } | 2025 } |
| 2031 | 2026 |
| 2032 } | 2027 } |
| 2033 | 2028 |
| 2034 | 2029 |
| 2035 /** Not documented yet. */ | |
| 2036 class CampaignsResourceApi { | 2030 class CampaignsResourceApi { |
| 2037 final common_internal.ApiRequester _requester; | 2031 final commons.ApiRequester _requester; |
| 2038 | 2032 |
| 2039 CampaignsResourceApi(common_internal.ApiRequester client) : | 2033 CampaignsResourceApi(commons.ApiRequester client) : |
| 2040 _requester = client; | 2034 _requester = client; |
| 2041 | 2035 |
| 2042 /** | 2036 /** |
| 2043 * Gets one campaign by ID. | 2037 * Gets one campaign by ID. |
| 2044 * | 2038 * |
| 2045 * Request parameters: | 2039 * Request parameters: |
| 2046 * | 2040 * |
| 2047 * [profileId] - User profile ID associated with this request. | 2041 * [profileId] - User profile ID associated with this request. |
| 2048 * | 2042 * |
| 2049 * [id] - Campaign ID. | 2043 * [id] - Campaign ID. |
| 2050 * | 2044 * |
| 2051 * Completes with a [Campaign]. | 2045 * Completes with a [Campaign]. |
| 2052 * | 2046 * |
| 2053 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2047 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2054 * error. | 2048 * error. |
| 2055 * | 2049 * |
| 2056 * If the used [http.Client] completes with an error when making a REST call, | 2050 * If the used [http.Client] completes with an error when making a REST call, |
| 2057 * this method will complete with the same error. | 2051 * this method will complete with the same error. |
| 2058 */ | 2052 */ |
| 2059 async.Future<Campaign> get(core.String profileId, core.String id) { | 2053 async.Future<Campaign> get(core.String profileId, core.String id) { |
| 2060 var _url = null; | 2054 var _url = null; |
| 2061 var _queryParams = new core.Map(); | 2055 var _queryParams = new core.Map(); |
| 2062 var _uploadMedia = null; | 2056 var _uploadMedia = null; |
| 2063 var _uploadOptions = null; | 2057 var _uploadOptions = null; |
| 2064 var _downloadOptions = common.DownloadOptions.Metadata; | 2058 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2065 var _body = null; | 2059 var _body = null; |
| 2066 | 2060 |
| 2067 if (profileId == null) { | 2061 if (profileId == null) { |
| 2068 throw new core.ArgumentError("Parameter profileId is required."); | 2062 throw new core.ArgumentError("Parameter profileId is required."); |
| 2069 } | 2063 } |
| 2070 if (id == null) { | 2064 if (id == null) { |
| 2071 throw new core.ArgumentError("Parameter id is required."); | 2065 throw new core.ArgumentError("Parameter id is required."); |
| 2072 } | 2066 } |
| 2073 | 2067 |
| 2074 | 2068 |
| 2075 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$id'); | 2069 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$id'); |
| 2076 | 2070 |
| 2077 var _response = _requester.request(_url, | 2071 var _response = _requester.request(_url, |
| 2078 "GET", | 2072 "GET", |
| 2079 body: _body, | 2073 body: _body, |
| 2080 queryParams: _queryParams, | 2074 queryParams: _queryParams, |
| 2081 uploadOptions: _uploadOptions, | 2075 uploadOptions: _uploadOptions, |
| 2082 uploadMedia: _uploadMedia, | 2076 uploadMedia: _uploadMedia, |
| 2083 downloadOptions: _downloadOptions); | 2077 downloadOptions: _downloadOptions); |
| 2084 return _response.then((data) => new Campaign.fromJson(data)); | 2078 return _response.then((data) => new Campaign.fromJson(data)); |
| 2085 } | 2079 } |
| 2086 | 2080 |
| 2087 /** | 2081 /** |
| 2088 * Inserts a new campaign. | 2082 * Inserts a new campaign. |
| 2089 * | 2083 * |
| 2090 * [request] - The metadata request object. | 2084 * [request] - The metadata request object. |
| 2091 * | 2085 * |
| 2092 * Request parameters: | 2086 * Request parameters: |
| 2093 * | 2087 * |
| 2094 * [profileId] - User profile ID associated with this request. | 2088 * [profileId] - User profile ID associated with this request. |
| 2095 * | 2089 * |
| 2096 * [defaultLandingPageName] - Default landing page name for this new campaign. | 2090 * [defaultLandingPageName] - Default landing page name for this new campaign. |
| 2097 * Must be less than 256 characters long. | 2091 * Must be less than 256 characters long. |
| 2098 * | 2092 * |
| 2099 * [defaultLandingPageUrl] - Default landing page URL for this new campaign. | 2093 * [defaultLandingPageUrl] - Default landing page URL for this new campaign. |
| 2100 * | 2094 * |
| 2101 * Completes with a [Campaign]. | 2095 * Completes with a [Campaign]. |
| 2102 * | 2096 * |
| 2103 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2097 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2104 * error. | 2098 * error. |
| 2105 * | 2099 * |
| 2106 * If the used [http.Client] completes with an error when making a REST call, | 2100 * If the used [http.Client] completes with an error when making a REST call, |
| 2107 * this method will complete with the same error. | 2101 * this method will complete with the same error. |
| 2108 */ | 2102 */ |
| 2109 async.Future<Campaign> insert(Campaign request, core.String profileId, core.St
ring defaultLandingPageName, core.String defaultLandingPageUrl) { | 2103 async.Future<Campaign> insert(Campaign request, core.String profileId, core.St
ring defaultLandingPageName, core.String defaultLandingPageUrl) { |
| 2110 var _url = null; | 2104 var _url = null; |
| 2111 var _queryParams = new core.Map(); | 2105 var _queryParams = new core.Map(); |
| 2112 var _uploadMedia = null; | 2106 var _uploadMedia = null; |
| 2113 var _uploadOptions = null; | 2107 var _uploadOptions = null; |
| 2114 var _downloadOptions = common.DownloadOptions.Metadata; | 2108 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2115 var _body = null; | 2109 var _body = null; |
| 2116 | 2110 |
| 2117 if (request != null) { | 2111 if (request != null) { |
| 2118 _body = convert.JSON.encode((request).toJson()); | 2112 _body = convert.JSON.encode((request).toJson()); |
| 2119 } | 2113 } |
| 2120 if (profileId == null) { | 2114 if (profileId == null) { |
| 2121 throw new core.ArgumentError("Parameter profileId is required."); | 2115 throw new core.ArgumentError("Parameter profileId is required."); |
| 2122 } | 2116 } |
| 2123 if (defaultLandingPageName == null) { | 2117 if (defaultLandingPageName == null) { |
| 2124 throw new core.ArgumentError("Parameter defaultLandingPageName is required
."); | 2118 throw new core.ArgumentError("Parameter defaultLandingPageName is required
."); |
| 2125 } | 2119 } |
| 2126 _queryParams["defaultLandingPageName"] = [defaultLandingPageName]; | 2120 _queryParams["defaultLandingPageName"] = [defaultLandingPageName]; |
| 2127 if (defaultLandingPageUrl == null) { | 2121 if (defaultLandingPageUrl == null) { |
| 2128 throw new core.ArgumentError("Parameter defaultLandingPageUrl is required.
"); | 2122 throw new core.ArgumentError("Parameter defaultLandingPageUrl is required.
"); |
| 2129 } | 2123 } |
| 2130 _queryParams["defaultLandingPageUrl"] = [defaultLandingPageUrl]; | 2124 _queryParams["defaultLandingPageUrl"] = [defaultLandingPageUrl]; |
| 2131 | 2125 |
| 2132 | 2126 |
| 2133 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns'; | 2127 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns'; |
| 2134 | 2128 |
| 2135 var _response = _requester.request(_url, | 2129 var _response = _requester.request(_url, |
| 2136 "POST", | 2130 "POST", |
| 2137 body: _body, | 2131 body: _body, |
| 2138 queryParams: _queryParams, | 2132 queryParams: _queryParams, |
| 2139 uploadOptions: _uploadOptions, | 2133 uploadOptions: _uploadOptions, |
| 2140 uploadMedia: _uploadMedia, | 2134 uploadMedia: _uploadMedia, |
| 2141 downloadOptions: _downloadOptions); | 2135 downloadOptions: _downloadOptions); |
| 2142 return _response.then((data) => new Campaign.fromJson(data)); | 2136 return _response.then((data) => new Campaign.fromJson(data)); |
| 2143 } | 2137 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 2166 * | 2160 * |
| 2167 * [maxResults] - Maximum number of results to return. | 2161 * [maxResults] - Maximum number of results to return. |
| 2168 * | 2162 * |
| 2169 * [overriddenEventTagId] - Select only campaigns that have overridden this | 2163 * [overriddenEventTagId] - Select only campaigns that have overridden this |
| 2170 * event tag ID. | 2164 * event tag ID. |
| 2171 * | 2165 * |
| 2172 * [pageToken] - Value of the nextPageToken from the previous result page. | 2166 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 2173 * | 2167 * |
| 2174 * [searchString] - Allows searching for campaigns by name or ID. Wildcards | 2168 * [searchString] - Allows searching for campaigns by name or ID. Wildcards |
| 2175 * (*) are allowed. For example, "campaign*2015" will return campaigns with | 2169 * (*) are allowed. For example, "campaign*2015" will return campaigns with |
| 2176 * names like "campaign June 2015", "campaign April 2015" or simply "campaign | 2170 * names like "campaign June 2015", "campaign April 2015", or simply "campaign |
| 2177 * 2015". Most of the searches also add wildcards implicitly at the start and | 2171 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 2178 * the end of the search string. For example, a search string of "campaign" | 2172 * the end of the search string. For example, a search string of "campaign" |
| 2179 * will match campaigns with name "my campaign", "campaign 2015" or simply | 2173 * will match campaigns with name "my campaign", "campaign 2015", or simply |
| 2180 * "campaign". | 2174 * "campaign". |
| 2181 * | 2175 * |
| 2182 * [sortField] - Field by which to sort the list. | 2176 * [sortField] - Field by which to sort the list. |
| 2183 * Possible string values are: | 2177 * Possible string values are: |
| 2184 * - "ID" | 2178 * - "ID" |
| 2185 * - "NAME" | 2179 * - "NAME" |
| 2186 * | 2180 * |
| 2187 * [sortOrder] - Order of sorted results, default is ASCENDING. | 2181 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 2188 * Possible string values are: | 2182 * Possible string values are: |
| 2189 * - "ASCENDING" | 2183 * - "ASCENDING" |
| 2190 * - "DESCENDING" | 2184 * - "DESCENDING" |
| 2191 * | 2185 * |
| 2192 * [subaccountId] - Select only campaigns that belong to this subaccount. | 2186 * [subaccountId] - Select only campaigns that belong to this subaccount. |
| 2193 * | 2187 * |
| 2194 * Completes with a [CampaignsListResponse]. | 2188 * Completes with a [CampaignsListResponse]. |
| 2195 * | 2189 * |
| 2196 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2190 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2197 * error. | 2191 * error. |
| 2198 * | 2192 * |
| 2199 * If the used [http.Client] completes with an error when making a REST call, | 2193 * If the used [http.Client] completes with an error when making a REST call, |
| 2200 * this method will complete with the same error. | 2194 * this method will complete with the same error. |
| 2201 */ | 2195 */ |
| 2202 async.Future<CampaignsListResponse> list(core.String profileId, {core.List<cor
e.String> advertiserGroupIds, core.List<core.String> advertiserIds, core.bool ar
chived, core.bool atLeastOneOptimizationActivity, core.List<core.String> exclude
dIds, core.List<core.String> ids, core.int maxResults, core.String overriddenEve
ntTagId, core.String pageToken, core.String searchString, core.String sortField,
core.String sortOrder, core.String subaccountId}) { | 2196 async.Future<CampaignsListResponse> list(core.String profileId, {core.List<cor
e.String> advertiserGroupIds, core.List<core.String> advertiserIds, core.bool ar
chived, core.bool atLeastOneOptimizationActivity, core.List<core.String> exclude
dIds, core.List<core.String> ids, core.int maxResults, core.String overriddenEve
ntTagId, core.String pageToken, core.String searchString, core.String sortField,
core.String sortOrder, core.String subaccountId}) { |
| 2203 var _url = null; | 2197 var _url = null; |
| 2204 var _queryParams = new core.Map(); | 2198 var _queryParams = new core.Map(); |
| 2205 var _uploadMedia = null; | 2199 var _uploadMedia = null; |
| 2206 var _uploadOptions = null; | 2200 var _uploadOptions = null; |
| 2207 var _downloadOptions = common.DownloadOptions.Metadata; | 2201 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2208 var _body = null; | 2202 var _body = null; |
| 2209 | 2203 |
| 2210 if (profileId == null) { | 2204 if (profileId == null) { |
| 2211 throw new core.ArgumentError("Parameter profileId is required."); | 2205 throw new core.ArgumentError("Parameter profileId is required."); |
| 2212 } | 2206 } |
| 2213 if (advertiserGroupIds != null) { | 2207 if (advertiserGroupIds != null) { |
| 2214 _queryParams["advertiserGroupIds"] = advertiserGroupIds; | 2208 _queryParams["advertiserGroupIds"] = advertiserGroupIds; |
| 2215 } | 2209 } |
| 2216 if (advertiserIds != null) { | 2210 if (advertiserIds != null) { |
| 2217 _queryParams["advertiserIds"] = advertiserIds; | 2211 _queryParams["advertiserIds"] = advertiserIds; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2244 _queryParams["sortField"] = [sortField]; | 2238 _queryParams["sortField"] = [sortField]; |
| 2245 } | 2239 } |
| 2246 if (sortOrder != null) { | 2240 if (sortOrder != null) { |
| 2247 _queryParams["sortOrder"] = [sortOrder]; | 2241 _queryParams["sortOrder"] = [sortOrder]; |
| 2248 } | 2242 } |
| 2249 if (subaccountId != null) { | 2243 if (subaccountId != null) { |
| 2250 _queryParams["subaccountId"] = [subaccountId]; | 2244 _queryParams["subaccountId"] = [subaccountId]; |
| 2251 } | 2245 } |
| 2252 | 2246 |
| 2253 | 2247 |
| 2254 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns'; | 2248 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns'; |
| 2255 | 2249 |
| 2256 var _response = _requester.request(_url, | 2250 var _response = _requester.request(_url, |
| 2257 "GET", | 2251 "GET", |
| 2258 body: _body, | 2252 body: _body, |
| 2259 queryParams: _queryParams, | 2253 queryParams: _queryParams, |
| 2260 uploadOptions: _uploadOptions, | 2254 uploadOptions: _uploadOptions, |
| 2261 uploadMedia: _uploadMedia, | 2255 uploadMedia: _uploadMedia, |
| 2262 downloadOptions: _downloadOptions); | 2256 downloadOptions: _downloadOptions); |
| 2263 return _response.then((data) => new CampaignsListResponse.fromJson(data)); | 2257 return _response.then((data) => new CampaignsListResponse.fromJson(data)); |
| 2264 } | 2258 } |
| 2265 | 2259 |
| 2266 /** | 2260 /** |
| 2267 * Updates an existing campaign. This method supports patch semantics. | 2261 * Updates an existing campaign. This method supports patch semantics. |
| 2268 * | 2262 * |
| 2269 * [request] - The metadata request object. | 2263 * [request] - The metadata request object. |
| 2270 * | 2264 * |
| 2271 * Request parameters: | 2265 * Request parameters: |
| 2272 * | 2266 * |
| 2273 * [profileId] - User profile ID associated with this request. | 2267 * [profileId] - User profile ID associated with this request. |
| 2274 * | 2268 * |
| 2275 * [id] - Campaign ID. | 2269 * [id] - Campaign ID. |
| 2276 * | 2270 * |
| 2277 * Completes with a [Campaign]. | 2271 * Completes with a [Campaign]. |
| 2278 * | 2272 * |
| 2279 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2273 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2280 * error. | 2274 * error. |
| 2281 * | 2275 * |
| 2282 * If the used [http.Client] completes with an error when making a REST call, | 2276 * If the used [http.Client] completes with an error when making a REST call, |
| 2283 * this method will complete with the same error. | 2277 * this method will complete with the same error. |
| 2284 */ | 2278 */ |
| 2285 async.Future<Campaign> patch(Campaign request, core.String profileId, core.Str
ing id) { | 2279 async.Future<Campaign> patch(Campaign request, core.String profileId, core.Str
ing id) { |
| 2286 var _url = null; | 2280 var _url = null; |
| 2287 var _queryParams = new core.Map(); | 2281 var _queryParams = new core.Map(); |
| 2288 var _uploadMedia = null; | 2282 var _uploadMedia = null; |
| 2289 var _uploadOptions = null; | 2283 var _uploadOptions = null; |
| 2290 var _downloadOptions = common.DownloadOptions.Metadata; | 2284 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2291 var _body = null; | 2285 var _body = null; |
| 2292 | 2286 |
| 2293 if (request != null) { | 2287 if (request != null) { |
| 2294 _body = convert.JSON.encode((request).toJson()); | 2288 _body = convert.JSON.encode((request).toJson()); |
| 2295 } | 2289 } |
| 2296 if (profileId == null) { | 2290 if (profileId == null) { |
| 2297 throw new core.ArgumentError("Parameter profileId is required."); | 2291 throw new core.ArgumentError("Parameter profileId is required."); |
| 2298 } | 2292 } |
| 2299 if (id == null) { | 2293 if (id == null) { |
| 2300 throw new core.ArgumentError("Parameter id is required."); | 2294 throw new core.ArgumentError("Parameter id is required."); |
| 2301 } | 2295 } |
| 2302 _queryParams["id"] = [id]; | 2296 _queryParams["id"] = [id]; |
| 2303 | 2297 |
| 2304 | 2298 |
| 2305 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns'; | 2299 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns'; |
| 2306 | 2300 |
| 2307 var _response = _requester.request(_url, | 2301 var _response = _requester.request(_url, |
| 2308 "PATCH", | 2302 "PATCH", |
| 2309 body: _body, | 2303 body: _body, |
| 2310 queryParams: _queryParams, | 2304 queryParams: _queryParams, |
| 2311 uploadOptions: _uploadOptions, | 2305 uploadOptions: _uploadOptions, |
| 2312 uploadMedia: _uploadMedia, | 2306 uploadMedia: _uploadMedia, |
| 2313 downloadOptions: _downloadOptions); | 2307 downloadOptions: _downloadOptions); |
| 2314 return _response.then((data) => new Campaign.fromJson(data)); | 2308 return _response.then((data) => new Campaign.fromJson(data)); |
| 2315 } | 2309 } |
| 2316 | 2310 |
| 2317 /** | 2311 /** |
| 2318 * Updates an existing campaign. | 2312 * Updates an existing campaign. |
| 2319 * | 2313 * |
| 2320 * [request] - The metadata request object. | 2314 * [request] - The metadata request object. |
| 2321 * | 2315 * |
| 2322 * Request parameters: | 2316 * Request parameters: |
| 2323 * | 2317 * |
| 2324 * [profileId] - User profile ID associated with this request. | 2318 * [profileId] - User profile ID associated with this request. |
| 2325 * | 2319 * |
| 2326 * Completes with a [Campaign]. | 2320 * Completes with a [Campaign]. |
| 2327 * | 2321 * |
| 2328 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2322 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2329 * error. | 2323 * error. |
| 2330 * | 2324 * |
| 2331 * If the used [http.Client] completes with an error when making a REST call, | 2325 * If the used [http.Client] completes with an error when making a REST call, |
| 2332 * this method will complete with the same error. | 2326 * this method will complete with the same error. |
| 2333 */ | 2327 */ |
| 2334 async.Future<Campaign> update(Campaign request, core.String profileId) { | 2328 async.Future<Campaign> update(Campaign request, core.String profileId) { |
| 2335 var _url = null; | 2329 var _url = null; |
| 2336 var _queryParams = new core.Map(); | 2330 var _queryParams = new core.Map(); |
| 2337 var _uploadMedia = null; | 2331 var _uploadMedia = null; |
| 2338 var _uploadOptions = null; | 2332 var _uploadOptions = null; |
| 2339 var _downloadOptions = common.DownloadOptions.Metadata; | 2333 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2340 var _body = null; | 2334 var _body = null; |
| 2341 | 2335 |
| 2342 if (request != null) { | 2336 if (request != null) { |
| 2343 _body = convert.JSON.encode((request).toJson()); | 2337 _body = convert.JSON.encode((request).toJson()); |
| 2344 } | 2338 } |
| 2345 if (profileId == null) { | 2339 if (profileId == null) { |
| 2346 throw new core.ArgumentError("Parameter profileId is required."); | 2340 throw new core.ArgumentError("Parameter profileId is required."); |
| 2347 } | 2341 } |
| 2348 | 2342 |
| 2349 | 2343 |
| 2350 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns'; | 2344 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns'; |
| 2351 | 2345 |
| 2352 var _response = _requester.request(_url, | 2346 var _response = _requester.request(_url, |
| 2353 "PUT", | 2347 "PUT", |
| 2354 body: _body, | 2348 body: _body, |
| 2355 queryParams: _queryParams, | 2349 queryParams: _queryParams, |
| 2356 uploadOptions: _uploadOptions, | 2350 uploadOptions: _uploadOptions, |
| 2357 uploadMedia: _uploadMedia, | 2351 uploadMedia: _uploadMedia, |
| 2358 downloadOptions: _downloadOptions); | 2352 downloadOptions: _downloadOptions); |
| 2359 return _response.then((data) => new Campaign.fromJson(data)); | 2353 return _response.then((data) => new Campaign.fromJson(data)); |
| 2360 } | 2354 } |
| 2361 | 2355 |
| 2362 } | 2356 } |
| 2363 | 2357 |
| 2364 | 2358 |
| 2365 /** Not documented yet. */ | |
| 2366 class ChangeLogsResourceApi { | 2359 class ChangeLogsResourceApi { |
| 2367 final common_internal.ApiRequester _requester; | 2360 final commons.ApiRequester _requester; |
| 2368 | 2361 |
| 2369 ChangeLogsResourceApi(common_internal.ApiRequester client) : | 2362 ChangeLogsResourceApi(commons.ApiRequester client) : |
| 2370 _requester = client; | 2363 _requester = client; |
| 2371 | 2364 |
| 2372 /** | 2365 /** |
| 2373 * Gets one change log by ID. | 2366 * Gets one change log by ID. |
| 2374 * | 2367 * |
| 2375 * Request parameters: | 2368 * Request parameters: |
| 2376 * | 2369 * |
| 2377 * [profileId] - User profile ID associated with this request. | 2370 * [profileId] - User profile ID associated with this request. |
| 2378 * | 2371 * |
| 2379 * [id] - Change log ID. | 2372 * [id] - Change log ID. |
| 2380 * | 2373 * |
| 2381 * Completes with a [ChangeLog]. | 2374 * Completes with a [ChangeLog]. |
| 2382 * | 2375 * |
| 2383 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2384 * error. | 2377 * error. |
| 2385 * | 2378 * |
| 2386 * If the used [http.Client] completes with an error when making a REST call, | 2379 * If the used [http.Client] completes with an error when making a REST call, |
| 2387 * this method will complete with the same error. | 2380 * this method will complete with the same error. |
| 2388 */ | 2381 */ |
| 2389 async.Future<ChangeLog> get(core.String profileId, core.String id) { | 2382 async.Future<ChangeLog> get(core.String profileId, core.String id) { |
| 2390 var _url = null; | 2383 var _url = null; |
| 2391 var _queryParams = new core.Map(); | 2384 var _queryParams = new core.Map(); |
| 2392 var _uploadMedia = null; | 2385 var _uploadMedia = null; |
| 2393 var _uploadOptions = null; | 2386 var _uploadOptions = null; |
| 2394 var _downloadOptions = common.DownloadOptions.Metadata; | 2387 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2395 var _body = null; | 2388 var _body = null; |
| 2396 | 2389 |
| 2397 if (profileId == null) { | 2390 if (profileId == null) { |
| 2398 throw new core.ArgumentError("Parameter profileId is required."); | 2391 throw new core.ArgumentError("Parameter profileId is required."); |
| 2399 } | 2392 } |
| 2400 if (id == null) { | 2393 if (id == null) { |
| 2401 throw new core.ArgumentError("Parameter id is required."); | 2394 throw new core.ArgumentError("Parameter id is required."); |
| 2402 } | 2395 } |
| 2403 | 2396 |
| 2404 | 2397 |
| 2405 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/changeLogs/' + common_internal.Escaper.ecapeVariable('$id'); | 2398 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cha
ngeLogs/' + commons.Escaper.ecapeVariable('$id'); |
| 2406 | 2399 |
| 2407 var _response = _requester.request(_url, | 2400 var _response = _requester.request(_url, |
| 2408 "GET", | 2401 "GET", |
| 2409 body: _body, | 2402 body: _body, |
| 2410 queryParams: _queryParams, | 2403 queryParams: _queryParams, |
| 2411 uploadOptions: _uploadOptions, | 2404 uploadOptions: _uploadOptions, |
| 2412 uploadMedia: _uploadMedia, | 2405 uploadMedia: _uploadMedia, |
| 2413 downloadOptions: _downloadOptions); | 2406 downloadOptions: _downloadOptions); |
| 2414 return _response.then((data) => new ChangeLog.fromJson(data)); | 2407 return _response.then((data) => new ChangeLog.fromJson(data)); |
| 2415 } | 2408 } |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2501 * | 2494 * |
| 2502 * [pageToken] - Value of the nextPageToken from the previous result page. | 2495 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 2503 * | 2496 * |
| 2504 * [searchString] - Select only change logs whose object ID, user name, old or | 2497 * [searchString] - Select only change logs whose object ID, user name, old or |
| 2505 * new values match the search string. | 2498 * new values match the search string. |
| 2506 * | 2499 * |
| 2507 * [userProfileIds] - Select only change logs with these user profile IDs. | 2500 * [userProfileIds] - Select only change logs with these user profile IDs. |
| 2508 * | 2501 * |
| 2509 * Completes with a [ChangeLogsListResponse]. | 2502 * Completes with a [ChangeLogsListResponse]. |
| 2510 * | 2503 * |
| 2511 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2504 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2512 * error. | 2505 * error. |
| 2513 * | 2506 * |
| 2514 * If the used [http.Client] completes with an error when making a REST call, | 2507 * If the used [http.Client] completes with an error when making a REST call, |
| 2515 * this method will complete with the same error. | 2508 * this method will complete with the same error. |
| 2516 */ | 2509 */ |
| 2517 async.Future<ChangeLogsListResponse> list(core.String profileId, {core.String
action, core.List<core.String> ids, core.String maxChangeTime, core.int maxResul
ts, core.String minChangeTime, core.List<core.String> objectIds, core.String obj
ectType, core.String pageToken, core.String searchString, core.List<core.String>
userProfileIds}) { | 2510 async.Future<ChangeLogsListResponse> list(core.String profileId, {core.String
action, core.List<core.String> ids, core.String maxChangeTime, core.int maxResul
ts, core.String minChangeTime, core.List<core.String> objectIds, core.String obj
ectType, core.String pageToken, core.String searchString, core.List<core.String>
userProfileIds}) { |
| 2518 var _url = null; | 2511 var _url = null; |
| 2519 var _queryParams = new core.Map(); | 2512 var _queryParams = new core.Map(); |
| 2520 var _uploadMedia = null; | 2513 var _uploadMedia = null; |
| 2521 var _uploadOptions = null; | 2514 var _uploadOptions = null; |
| 2522 var _downloadOptions = common.DownloadOptions.Metadata; | 2515 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2523 var _body = null; | 2516 var _body = null; |
| 2524 | 2517 |
| 2525 if (profileId == null) { | 2518 if (profileId == null) { |
| 2526 throw new core.ArgumentError("Parameter profileId is required."); | 2519 throw new core.ArgumentError("Parameter profileId is required."); |
| 2527 } | 2520 } |
| 2528 if (action != null) { | 2521 if (action != null) { |
| 2529 _queryParams["action"] = [action]; | 2522 _queryParams["action"] = [action]; |
| 2530 } | 2523 } |
| 2531 if (ids != null) { | 2524 if (ids != null) { |
| 2532 _queryParams["ids"] = ids; | 2525 _queryParams["ids"] = ids; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2550 _queryParams["pageToken"] = [pageToken]; | 2543 _queryParams["pageToken"] = [pageToken]; |
| 2551 } | 2544 } |
| 2552 if (searchString != null) { | 2545 if (searchString != null) { |
| 2553 _queryParams["searchString"] = [searchString]; | 2546 _queryParams["searchString"] = [searchString]; |
| 2554 } | 2547 } |
| 2555 if (userProfileIds != null) { | 2548 if (userProfileIds != null) { |
| 2556 _queryParams["userProfileIds"] = userProfileIds; | 2549 _queryParams["userProfileIds"] = userProfileIds; |
| 2557 } | 2550 } |
| 2558 | 2551 |
| 2559 | 2552 |
| 2560 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/changeLogs'; | 2553 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cha
ngeLogs'; |
| 2561 | 2554 |
| 2562 var _response = _requester.request(_url, | 2555 var _response = _requester.request(_url, |
| 2563 "GET", | 2556 "GET", |
| 2564 body: _body, | 2557 body: _body, |
| 2565 queryParams: _queryParams, | 2558 queryParams: _queryParams, |
| 2566 uploadOptions: _uploadOptions, | 2559 uploadOptions: _uploadOptions, |
| 2567 uploadMedia: _uploadMedia, | 2560 uploadMedia: _uploadMedia, |
| 2568 downloadOptions: _downloadOptions); | 2561 downloadOptions: _downloadOptions); |
| 2569 return _response.then((data) => new ChangeLogsListResponse.fromJson(data)); | 2562 return _response.then((data) => new ChangeLogsListResponse.fromJson(data)); |
| 2570 } | 2563 } |
| 2571 | 2564 |
| 2572 } | 2565 } |
| 2573 | 2566 |
| 2574 | 2567 |
| 2575 /** Not documented yet. */ | |
| 2576 class CitiesResourceApi { | 2568 class CitiesResourceApi { |
| 2577 final common_internal.ApiRequester _requester; | 2569 final commons.ApiRequester _requester; |
| 2578 | 2570 |
| 2579 CitiesResourceApi(common_internal.ApiRequester client) : | 2571 CitiesResourceApi(commons.ApiRequester client) : |
| 2580 _requester = client; | 2572 _requester = client; |
| 2581 | 2573 |
| 2582 /** | 2574 /** |
| 2583 * Retrieves a list of cities, possibly filtered. | 2575 * Retrieves a list of cities, possibly filtered. |
| 2584 * | 2576 * |
| 2585 * Request parameters: | 2577 * Request parameters: |
| 2586 * | 2578 * |
| 2587 * [profileId] - User profile ID associated with this request. | 2579 * [profileId] - User profile ID associated with this request. |
| 2588 * | 2580 * |
| 2589 * [countryDartIds] - Select only cities from these countries. | 2581 * [countryDartIds] - Select only cities from these countries. |
| 2590 * | 2582 * |
| 2591 * [dartIds] - Select only cities with these DART IDs. | 2583 * [dartIds] - Select only cities with these DART IDs. |
| 2592 * | 2584 * |
| 2593 * [namePrefix] - Select only cities with names starting with this prefix. | 2585 * [namePrefix] - Select only cities with names starting with this prefix. |
| 2594 * | 2586 * |
| 2595 * [regionDartIds] - Select only cities from these regions. | 2587 * [regionDartIds] - Select only cities from these regions. |
| 2596 * | 2588 * |
| 2597 * Completes with a [CitiesListResponse]. | 2589 * Completes with a [CitiesListResponse]. |
| 2598 * | 2590 * |
| 2599 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2600 * error. | 2592 * error. |
| 2601 * | 2593 * |
| 2602 * If the used [http.Client] completes with an error when making a REST call, | 2594 * If the used [http.Client] completes with an error when making a REST call, |
| 2603 * this method will complete with the same error. | 2595 * this method will complete with the same error. |
| 2604 */ | 2596 */ |
| 2605 async.Future<CitiesListResponse> list(core.String profileId, {core.List<core.S
tring> countryDartIds, core.List<core.String> dartIds, core.String namePrefix, c
ore.List<core.String> regionDartIds}) { | 2597 async.Future<CitiesListResponse> list(core.String profileId, {core.List<core.S
tring> countryDartIds, core.List<core.String> dartIds, core.String namePrefix, c
ore.List<core.String> regionDartIds}) { |
| 2606 var _url = null; | 2598 var _url = null; |
| 2607 var _queryParams = new core.Map(); | 2599 var _queryParams = new core.Map(); |
| 2608 var _uploadMedia = null; | 2600 var _uploadMedia = null; |
| 2609 var _uploadOptions = null; | 2601 var _uploadOptions = null; |
| 2610 var _downloadOptions = common.DownloadOptions.Metadata; | 2602 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2611 var _body = null; | 2603 var _body = null; |
| 2612 | 2604 |
| 2613 if (profileId == null) { | 2605 if (profileId == null) { |
| 2614 throw new core.ArgumentError("Parameter profileId is required."); | 2606 throw new core.ArgumentError("Parameter profileId is required."); |
| 2615 } | 2607 } |
| 2616 if (countryDartIds != null) { | 2608 if (countryDartIds != null) { |
| 2617 _queryParams["countryDartIds"] = countryDartIds; | 2609 _queryParams["countryDartIds"] = countryDartIds; |
| 2618 } | 2610 } |
| 2619 if (dartIds != null) { | 2611 if (dartIds != null) { |
| 2620 _queryParams["dartIds"] = dartIds; | 2612 _queryParams["dartIds"] = dartIds; |
| 2621 } | 2613 } |
| 2622 if (namePrefix != null) { | 2614 if (namePrefix != null) { |
| 2623 _queryParams["namePrefix"] = [namePrefix]; | 2615 _queryParams["namePrefix"] = [namePrefix]; |
| 2624 } | 2616 } |
| 2625 if (regionDartIds != null) { | 2617 if (regionDartIds != null) { |
| 2626 _queryParams["regionDartIds"] = regionDartIds; | 2618 _queryParams["regionDartIds"] = regionDartIds; |
| 2627 } | 2619 } |
| 2628 | 2620 |
| 2629 | 2621 |
| 2630 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/cities'; | 2622 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cit
ies'; |
| 2631 | 2623 |
| 2632 var _response = _requester.request(_url, | 2624 var _response = _requester.request(_url, |
| 2633 "GET", | 2625 "GET", |
| 2634 body: _body, | 2626 body: _body, |
| 2635 queryParams: _queryParams, | 2627 queryParams: _queryParams, |
| 2636 uploadOptions: _uploadOptions, | 2628 uploadOptions: _uploadOptions, |
| 2637 uploadMedia: _uploadMedia, | 2629 uploadMedia: _uploadMedia, |
| 2638 downloadOptions: _downloadOptions); | 2630 downloadOptions: _downloadOptions); |
| 2639 return _response.then((data) => new CitiesListResponse.fromJson(data)); | 2631 return _response.then((data) => new CitiesListResponse.fromJson(data)); |
| 2640 } | 2632 } |
| 2641 | 2633 |
| 2642 } | 2634 } |
| 2643 | 2635 |
| 2644 | 2636 |
| 2645 /** Not documented yet. */ | |
| 2646 class ConnectionTypesResourceApi { | 2637 class ConnectionTypesResourceApi { |
| 2647 final common_internal.ApiRequester _requester; | 2638 final commons.ApiRequester _requester; |
| 2648 | 2639 |
| 2649 ConnectionTypesResourceApi(common_internal.ApiRequester client) : | 2640 ConnectionTypesResourceApi(commons.ApiRequester client) : |
| 2650 _requester = client; | 2641 _requester = client; |
| 2651 | 2642 |
| 2652 /** | 2643 /** |
| 2653 * Retrieves a list of connection types. | 2644 * Retrieves a list of connection types. |
| 2654 * | 2645 * |
| 2655 * Request parameters: | 2646 * Request parameters: |
| 2656 * | 2647 * |
| 2657 * [profileId] - User profile ID associated with this request. | 2648 * [profileId] - User profile ID associated with this request. |
| 2658 * | 2649 * |
| 2659 * Completes with a [ConnectionTypesListResponse]. | 2650 * Completes with a [ConnectionTypesListResponse]. |
| 2660 * | 2651 * |
| 2661 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2652 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2662 * error. | 2653 * error. |
| 2663 * | 2654 * |
| 2664 * If the used [http.Client] completes with an error when making a REST call, | 2655 * If the used [http.Client] completes with an error when making a REST call, |
| 2665 * this method will complete with the same error. | 2656 * this method will complete with the same error. |
| 2666 */ | 2657 */ |
| 2667 async.Future<ConnectionTypesListResponse> list(core.String profileId) { | 2658 async.Future<ConnectionTypesListResponse> list(core.String profileId) { |
| 2668 var _url = null; | 2659 var _url = null; |
| 2669 var _queryParams = new core.Map(); | 2660 var _queryParams = new core.Map(); |
| 2670 var _uploadMedia = null; | 2661 var _uploadMedia = null; |
| 2671 var _uploadOptions = null; | 2662 var _uploadOptions = null; |
| 2672 var _downloadOptions = common.DownloadOptions.Metadata; | 2663 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2673 var _body = null; | 2664 var _body = null; |
| 2674 | 2665 |
| 2675 if (profileId == null) { | 2666 if (profileId == null) { |
| 2676 throw new core.ArgumentError("Parameter profileId is required."); | 2667 throw new core.ArgumentError("Parameter profileId is required."); |
| 2677 } | 2668 } |
| 2678 | 2669 |
| 2679 | 2670 |
| 2680 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/connectionTypes'; | 2671 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/con
nectionTypes'; |
| 2681 | 2672 |
| 2682 var _response = _requester.request(_url, | 2673 var _response = _requester.request(_url, |
| 2683 "GET", | 2674 "GET", |
| 2684 body: _body, | 2675 body: _body, |
| 2685 queryParams: _queryParams, | 2676 queryParams: _queryParams, |
| 2686 uploadOptions: _uploadOptions, | 2677 uploadOptions: _uploadOptions, |
| 2687 uploadMedia: _uploadMedia, | 2678 uploadMedia: _uploadMedia, |
| 2688 downloadOptions: _downloadOptions); | 2679 downloadOptions: _downloadOptions); |
| 2689 return _response.then((data) => new ConnectionTypesListResponse.fromJson(dat
a)); | 2680 return _response.then((data) => new ConnectionTypesListResponse.fromJson(dat
a)); |
| 2690 } | 2681 } |
| 2691 | 2682 |
| 2692 } | 2683 } |
| 2693 | 2684 |
| 2694 | 2685 |
| 2695 /** Not documented yet. */ | |
| 2696 class ContentCategoriesResourceApi { | 2686 class ContentCategoriesResourceApi { |
| 2697 final common_internal.ApiRequester _requester; | 2687 final commons.ApiRequester _requester; |
| 2698 | 2688 |
| 2699 ContentCategoriesResourceApi(common_internal.ApiRequester client) : | 2689 ContentCategoriesResourceApi(commons.ApiRequester client) : |
| 2700 _requester = client; | 2690 _requester = client; |
| 2701 | 2691 |
| 2702 /** | 2692 /** |
| 2703 * Deletes an existing content category. | 2693 * Deletes an existing content category. |
| 2704 * | 2694 * |
| 2705 * Request parameters: | 2695 * Request parameters: |
| 2706 * | 2696 * |
| 2707 * [profileId] - User profile ID associated with this request. | 2697 * [profileId] - User profile ID associated with this request. |
| 2708 * | 2698 * |
| 2709 * [id] - Content category ID. | 2699 * [id] - Content category ID. |
| 2710 * | 2700 * |
| 2711 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2701 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2712 * error. | 2702 * error. |
| 2713 * | 2703 * |
| 2714 * If the used [http.Client] completes with an error when making a REST call, | 2704 * If the used [http.Client] completes with an error when making a REST call, |
| 2715 * this method will complete with the same error. | 2705 * this method will complete with the same error. |
| 2716 */ | 2706 */ |
| 2717 async.Future delete(core.String profileId, core.String id) { | 2707 async.Future delete(core.String profileId, core.String id) { |
| 2718 var _url = null; | 2708 var _url = null; |
| 2719 var _queryParams = new core.Map(); | 2709 var _queryParams = new core.Map(); |
| 2720 var _uploadMedia = null; | 2710 var _uploadMedia = null; |
| 2721 var _uploadOptions = null; | 2711 var _uploadOptions = null; |
| 2722 var _downloadOptions = common.DownloadOptions.Metadata; | 2712 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2723 var _body = null; | 2713 var _body = null; |
| 2724 | 2714 |
| 2725 if (profileId == null) { | 2715 if (profileId == null) { |
| 2726 throw new core.ArgumentError("Parameter profileId is required."); | 2716 throw new core.ArgumentError("Parameter profileId is required."); |
| 2727 } | 2717 } |
| 2728 if (id == null) { | 2718 if (id == null) { |
| 2729 throw new core.ArgumentError("Parameter id is required."); | 2719 throw new core.ArgumentError("Parameter id is required."); |
| 2730 } | 2720 } |
| 2731 | 2721 |
| 2732 _downloadOptions = null; | 2722 _downloadOptions = null; |
| 2733 | 2723 |
| 2734 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/contentCategories/' + common_internal.Escaper.ecapeVariable('$id'); | 2724 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/con
tentCategories/' + commons.Escaper.ecapeVariable('$id'); |
| 2735 | 2725 |
| 2736 var _response = _requester.request(_url, | 2726 var _response = _requester.request(_url, |
| 2737 "DELETE", | 2727 "DELETE", |
| 2738 body: _body, | 2728 body: _body, |
| 2739 queryParams: _queryParams, | 2729 queryParams: _queryParams, |
| 2740 uploadOptions: _uploadOptions, | 2730 uploadOptions: _uploadOptions, |
| 2741 uploadMedia: _uploadMedia, | 2731 uploadMedia: _uploadMedia, |
| 2742 downloadOptions: _downloadOptions); | 2732 downloadOptions: _downloadOptions); |
| 2743 return _response.then((data) => null); | 2733 return _response.then((data) => null); |
| 2744 } | 2734 } |
| 2745 | 2735 |
| 2746 /** | 2736 /** |
| 2747 * Gets one content category by ID. | 2737 * Gets one content category by ID. |
| 2748 * | 2738 * |
| 2749 * Request parameters: | 2739 * Request parameters: |
| 2750 * | 2740 * |
| 2751 * [profileId] - User profile ID associated with this request. | 2741 * [profileId] - User profile ID associated with this request. |
| 2752 * | 2742 * |
| 2753 * [id] - Content category ID. | 2743 * [id] - Content category ID. |
| 2754 * | 2744 * |
| 2755 * Completes with a [ContentCategory]. | 2745 * Completes with a [ContentCategory]. |
| 2756 * | 2746 * |
| 2757 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2747 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2758 * error. | 2748 * error. |
| 2759 * | 2749 * |
| 2760 * If the used [http.Client] completes with an error when making a REST call, | 2750 * If the used [http.Client] completes with an error when making a REST call, |
| 2761 * this method will complete with the same error. | 2751 * this method will complete with the same error. |
| 2762 */ | 2752 */ |
| 2763 async.Future<ContentCategory> get(core.String profileId, core.String id) { | 2753 async.Future<ContentCategory> get(core.String profileId, core.String id) { |
| 2764 var _url = null; | 2754 var _url = null; |
| 2765 var _queryParams = new core.Map(); | 2755 var _queryParams = new core.Map(); |
| 2766 var _uploadMedia = null; | 2756 var _uploadMedia = null; |
| 2767 var _uploadOptions = null; | 2757 var _uploadOptions = null; |
| 2768 var _downloadOptions = common.DownloadOptions.Metadata; | 2758 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2769 var _body = null; | 2759 var _body = null; |
| 2770 | 2760 |
| 2771 if (profileId == null) { | 2761 if (profileId == null) { |
| 2772 throw new core.ArgumentError("Parameter profileId is required."); | 2762 throw new core.ArgumentError("Parameter profileId is required."); |
| 2773 } | 2763 } |
| 2774 if (id == null) { | 2764 if (id == null) { |
| 2775 throw new core.ArgumentError("Parameter id is required."); | 2765 throw new core.ArgumentError("Parameter id is required."); |
| 2776 } | 2766 } |
| 2777 | 2767 |
| 2778 | 2768 |
| 2779 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/contentCategories/' + common_internal.Escaper.ecapeVariable('$id'); | 2769 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/con
tentCategories/' + commons.Escaper.ecapeVariable('$id'); |
| 2780 | 2770 |
| 2781 var _response = _requester.request(_url, | 2771 var _response = _requester.request(_url, |
| 2782 "GET", | 2772 "GET", |
| 2783 body: _body, | 2773 body: _body, |
| 2784 queryParams: _queryParams, | 2774 queryParams: _queryParams, |
| 2785 uploadOptions: _uploadOptions, | 2775 uploadOptions: _uploadOptions, |
| 2786 uploadMedia: _uploadMedia, | 2776 uploadMedia: _uploadMedia, |
| 2787 downloadOptions: _downloadOptions); | 2777 downloadOptions: _downloadOptions); |
| 2788 return _response.then((data) => new ContentCategory.fromJson(data)); | 2778 return _response.then((data) => new ContentCategory.fromJson(data)); |
| 2789 } | 2779 } |
| 2790 | 2780 |
| 2791 /** | 2781 /** |
| 2792 * Inserts a new content category. | 2782 * Inserts a new content category. |
| 2793 * | 2783 * |
| 2794 * [request] - The metadata request object. | 2784 * [request] - The metadata request object. |
| 2795 * | 2785 * |
| 2796 * Request parameters: | 2786 * Request parameters: |
| 2797 * | 2787 * |
| 2798 * [profileId] - User profile ID associated with this request. | 2788 * [profileId] - User profile ID associated with this request. |
| 2799 * | 2789 * |
| 2800 * Completes with a [ContentCategory]. | 2790 * Completes with a [ContentCategory]. |
| 2801 * | 2791 * |
| 2802 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2792 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2803 * error. | 2793 * error. |
| 2804 * | 2794 * |
| 2805 * If the used [http.Client] completes with an error when making a REST call, | 2795 * If the used [http.Client] completes with an error when making a REST call, |
| 2806 * this method will complete with the same error. | 2796 * this method will complete with the same error. |
| 2807 */ | 2797 */ |
| 2808 async.Future<ContentCategory> insert(ContentCategory request, core.String prof
ileId) { | 2798 async.Future<ContentCategory> insert(ContentCategory request, core.String prof
ileId) { |
| 2809 var _url = null; | 2799 var _url = null; |
| 2810 var _queryParams = new core.Map(); | 2800 var _queryParams = new core.Map(); |
| 2811 var _uploadMedia = null; | 2801 var _uploadMedia = null; |
| 2812 var _uploadOptions = null; | 2802 var _uploadOptions = null; |
| 2813 var _downloadOptions = common.DownloadOptions.Metadata; | 2803 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2814 var _body = null; | 2804 var _body = null; |
| 2815 | 2805 |
| 2816 if (request != null) { | 2806 if (request != null) { |
| 2817 _body = convert.JSON.encode((request).toJson()); | 2807 _body = convert.JSON.encode((request).toJson()); |
| 2818 } | 2808 } |
| 2819 if (profileId == null) { | 2809 if (profileId == null) { |
| 2820 throw new core.ArgumentError("Parameter profileId is required."); | 2810 throw new core.ArgumentError("Parameter profileId is required."); |
| 2821 } | 2811 } |
| 2822 | 2812 |
| 2823 | 2813 |
| 2824 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/contentCategories'; | 2814 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/con
tentCategories'; |
| 2825 | 2815 |
| 2826 var _response = _requester.request(_url, | 2816 var _response = _requester.request(_url, |
| 2827 "POST", | 2817 "POST", |
| 2828 body: _body, | 2818 body: _body, |
| 2829 queryParams: _queryParams, | 2819 queryParams: _queryParams, |
| 2830 uploadOptions: _uploadOptions, | 2820 uploadOptions: _uploadOptions, |
| 2831 uploadMedia: _uploadMedia, | 2821 uploadMedia: _uploadMedia, |
| 2832 downloadOptions: _downloadOptions); | 2822 downloadOptions: _downloadOptions); |
| 2833 return _response.then((data) => new ContentCategory.fromJson(data)); | 2823 return _response.then((data) => new ContentCategory.fromJson(data)); |
| 2834 } | 2824 } |
| 2835 | 2825 |
| 2836 /** | 2826 /** |
| 2837 * Retrieves a list of content categories, possibly filtered. | 2827 * Retrieves a list of content categories, possibly filtered. |
| 2838 * | 2828 * |
| 2839 * Request parameters: | 2829 * Request parameters: |
| 2840 * | 2830 * |
| 2841 * [profileId] - User profile ID associated with this request. | 2831 * [profileId] - User profile ID associated with this request. |
| 2842 * | 2832 * |
| 2843 * [ids] - Select only content categories with these IDs. | 2833 * [ids] - Select only content categories with these IDs. |
| 2844 * | 2834 * |
| 2845 * [maxResults] - Maximum number of results to return. | 2835 * [maxResults] - Maximum number of results to return. |
| 2846 * | 2836 * |
| 2847 * [pageToken] - Value of the nextPageToken from the previous result page. | 2837 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 2848 * | 2838 * |
| 2849 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 2839 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 2850 * are allowed. For example, "contentcategory*2015" will return objects with | 2840 * are allowed. For example, "contentcategory*2015" will return objects with |
| 2851 * names like "contentcategory June 2015", "contentcategory April 2015" or | 2841 * names like "contentcategory June 2015", "contentcategory April 2015", or |
| 2852 * simply "contentcategory 2015". Most of the searches also add wildcards | 2842 * simply "contentcategory 2015". Most of the searches also add wildcards |
| 2853 * implicitly at the start and the end of the search string. For example, a | 2843 * implicitly at the start and the end of the search string. For example, a |
| 2854 * search string of "contentcategory" will match objects with name "my | 2844 * search string of "contentcategory" will match objects with name "my |
| 2855 * contentcategory", "contentcategory 2015" or simply "contentcategory". | 2845 * contentcategory", "contentcategory 2015", or simply "contentcategory". |
| 2856 * | 2846 * |
| 2857 * [sortField] - Field by which to sort the list. | 2847 * [sortField] - Field by which to sort the list. |
| 2858 * Possible string values are: | 2848 * Possible string values are: |
| 2859 * - "ID" | 2849 * - "ID" |
| 2860 * - "NAME" | 2850 * - "NAME" |
| 2861 * | 2851 * |
| 2862 * [sortOrder] - Order of sorted results, default is ASCENDING. | 2852 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 2863 * Possible string values are: | 2853 * Possible string values are: |
| 2864 * - "ASCENDING" | 2854 * - "ASCENDING" |
| 2865 * - "DESCENDING" | 2855 * - "DESCENDING" |
| 2866 * | 2856 * |
| 2867 * Completes with a [ContentCategoriesListResponse]. | 2857 * Completes with a [ContentCategoriesListResponse]. |
| 2868 * | 2858 * |
| 2869 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2859 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2870 * error. | 2860 * error. |
| 2871 * | 2861 * |
| 2872 * If the used [http.Client] completes with an error when making a REST call, | 2862 * If the used [http.Client] completes with an error when making a REST call, |
| 2873 * this method will complete with the same error. | 2863 * this method will complete with the same error. |
| 2874 */ | 2864 */ |
| 2875 async.Future<ContentCategoriesListResponse> list(core.String profileId, {core.
List<core.String> ids, core.int maxResults, core.String pageToken, core.String s
earchString, core.String sortField, core.String sortOrder}) { | 2865 async.Future<ContentCategoriesListResponse> list(core.String profileId, {core.
List<core.String> ids, core.int maxResults, core.String pageToken, core.String s
earchString, core.String sortField, core.String sortOrder}) { |
| 2876 var _url = null; | 2866 var _url = null; |
| 2877 var _queryParams = new core.Map(); | 2867 var _queryParams = new core.Map(); |
| 2878 var _uploadMedia = null; | 2868 var _uploadMedia = null; |
| 2879 var _uploadOptions = null; | 2869 var _uploadOptions = null; |
| 2880 var _downloadOptions = common.DownloadOptions.Metadata; | 2870 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2881 var _body = null; | 2871 var _body = null; |
| 2882 | 2872 |
| 2883 if (profileId == null) { | 2873 if (profileId == null) { |
| 2884 throw new core.ArgumentError("Parameter profileId is required."); | 2874 throw new core.ArgumentError("Parameter profileId is required."); |
| 2885 } | 2875 } |
| 2886 if (ids != null) { | 2876 if (ids != null) { |
| 2887 _queryParams["ids"] = ids; | 2877 _queryParams["ids"] = ids; |
| 2888 } | 2878 } |
| 2889 if (maxResults != null) { | 2879 if (maxResults != null) { |
| 2890 _queryParams["maxResults"] = ["${maxResults}"]; | 2880 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2891 } | 2881 } |
| 2892 if (pageToken != null) { | 2882 if (pageToken != null) { |
| 2893 _queryParams["pageToken"] = [pageToken]; | 2883 _queryParams["pageToken"] = [pageToken]; |
| 2894 } | 2884 } |
| 2895 if (searchString != null) { | 2885 if (searchString != null) { |
| 2896 _queryParams["searchString"] = [searchString]; | 2886 _queryParams["searchString"] = [searchString]; |
| 2897 } | 2887 } |
| 2898 if (sortField != null) { | 2888 if (sortField != null) { |
| 2899 _queryParams["sortField"] = [sortField]; | 2889 _queryParams["sortField"] = [sortField]; |
| 2900 } | 2890 } |
| 2901 if (sortOrder != null) { | 2891 if (sortOrder != null) { |
| 2902 _queryParams["sortOrder"] = [sortOrder]; | 2892 _queryParams["sortOrder"] = [sortOrder]; |
| 2903 } | 2893 } |
| 2904 | 2894 |
| 2905 | 2895 |
| 2906 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/contentCategories'; | 2896 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/con
tentCategories'; |
| 2907 | 2897 |
| 2908 var _response = _requester.request(_url, | 2898 var _response = _requester.request(_url, |
| 2909 "GET", | 2899 "GET", |
| 2910 body: _body, | 2900 body: _body, |
| 2911 queryParams: _queryParams, | 2901 queryParams: _queryParams, |
| 2912 uploadOptions: _uploadOptions, | 2902 uploadOptions: _uploadOptions, |
| 2913 uploadMedia: _uploadMedia, | 2903 uploadMedia: _uploadMedia, |
| 2914 downloadOptions: _downloadOptions); | 2904 downloadOptions: _downloadOptions); |
| 2915 return _response.then((data) => new ContentCategoriesListResponse.fromJson(d
ata)); | 2905 return _response.then((data) => new ContentCategoriesListResponse.fromJson(d
ata)); |
| 2916 } | 2906 } |
| 2917 | 2907 |
| 2918 /** | 2908 /** |
| 2919 * Updates an existing content category. This method supports patch semantics. | 2909 * Updates an existing content category. This method supports patch semantics. |
| 2920 * | 2910 * |
| 2921 * [request] - The metadata request object. | 2911 * [request] - The metadata request object. |
| 2922 * | 2912 * |
| 2923 * Request parameters: | 2913 * Request parameters: |
| 2924 * | 2914 * |
| 2925 * [profileId] - User profile ID associated with this request. | 2915 * [profileId] - User profile ID associated with this request. |
| 2926 * | 2916 * |
| 2927 * [id] - Content category ID. | 2917 * [id] - Content category ID. |
| 2928 * | 2918 * |
| 2929 * Completes with a [ContentCategory]. | 2919 * Completes with a [ContentCategory]. |
| 2930 * | 2920 * |
| 2931 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2921 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2932 * error. | 2922 * error. |
| 2933 * | 2923 * |
| 2934 * If the used [http.Client] completes with an error when making a REST call, | 2924 * If the used [http.Client] completes with an error when making a REST call, |
| 2935 * this method will complete with the same error. | 2925 * this method will complete with the same error. |
| 2936 */ | 2926 */ |
| 2937 async.Future<ContentCategory> patch(ContentCategory request, core.String profi
leId, core.String id) { | 2927 async.Future<ContentCategory> patch(ContentCategory request, core.String profi
leId, core.String id) { |
| 2938 var _url = null; | 2928 var _url = null; |
| 2939 var _queryParams = new core.Map(); | 2929 var _queryParams = new core.Map(); |
| 2940 var _uploadMedia = null; | 2930 var _uploadMedia = null; |
| 2941 var _uploadOptions = null; | 2931 var _uploadOptions = null; |
| 2942 var _downloadOptions = common.DownloadOptions.Metadata; | 2932 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2943 var _body = null; | 2933 var _body = null; |
| 2944 | 2934 |
| 2945 if (request != null) { | 2935 if (request != null) { |
| 2946 _body = convert.JSON.encode((request).toJson()); | 2936 _body = convert.JSON.encode((request).toJson()); |
| 2947 } | 2937 } |
| 2948 if (profileId == null) { | 2938 if (profileId == null) { |
| 2949 throw new core.ArgumentError("Parameter profileId is required."); | 2939 throw new core.ArgumentError("Parameter profileId is required."); |
| 2950 } | 2940 } |
| 2951 if (id == null) { | 2941 if (id == null) { |
| 2952 throw new core.ArgumentError("Parameter id is required."); | 2942 throw new core.ArgumentError("Parameter id is required."); |
| 2953 } | 2943 } |
| 2954 _queryParams["id"] = [id]; | 2944 _queryParams["id"] = [id]; |
| 2955 | 2945 |
| 2956 | 2946 |
| 2957 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/contentCategories'; | 2947 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/con
tentCategories'; |
| 2958 | 2948 |
| 2959 var _response = _requester.request(_url, | 2949 var _response = _requester.request(_url, |
| 2960 "PATCH", | 2950 "PATCH", |
| 2961 body: _body, | 2951 body: _body, |
| 2962 queryParams: _queryParams, | 2952 queryParams: _queryParams, |
| 2963 uploadOptions: _uploadOptions, | 2953 uploadOptions: _uploadOptions, |
| 2964 uploadMedia: _uploadMedia, | 2954 uploadMedia: _uploadMedia, |
| 2965 downloadOptions: _downloadOptions); | 2955 downloadOptions: _downloadOptions); |
| 2966 return _response.then((data) => new ContentCategory.fromJson(data)); | 2956 return _response.then((data) => new ContentCategory.fromJson(data)); |
| 2967 } | 2957 } |
| 2968 | 2958 |
| 2969 /** | 2959 /** |
| 2970 * Updates an existing content category. | 2960 * Updates an existing content category. |
| 2971 * | 2961 * |
| 2972 * [request] - The metadata request object. | 2962 * [request] - The metadata request object. |
| 2973 * | 2963 * |
| 2974 * Request parameters: | 2964 * Request parameters: |
| 2975 * | 2965 * |
| 2976 * [profileId] - User profile ID associated with this request. | 2966 * [profileId] - User profile ID associated with this request. |
| 2977 * | 2967 * |
| 2978 * Completes with a [ContentCategory]. | 2968 * Completes with a [ContentCategory]. |
| 2979 * | 2969 * |
| 2980 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2970 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2981 * error. | 2971 * error. |
| 2982 * | 2972 * |
| 2983 * If the used [http.Client] completes with an error when making a REST call, | 2973 * If the used [http.Client] completes with an error when making a REST call, |
| 2984 * this method will complete with the same error. | 2974 * this method will complete with the same error. |
| 2985 */ | 2975 */ |
| 2986 async.Future<ContentCategory> update(ContentCategory request, core.String prof
ileId) { | 2976 async.Future<ContentCategory> update(ContentCategory request, core.String prof
ileId) { |
| 2987 var _url = null; | 2977 var _url = null; |
| 2988 var _queryParams = new core.Map(); | 2978 var _queryParams = new core.Map(); |
| 2989 var _uploadMedia = null; | 2979 var _uploadMedia = null; |
| 2990 var _uploadOptions = null; | 2980 var _uploadOptions = null; |
| 2991 var _downloadOptions = common.DownloadOptions.Metadata; | 2981 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2992 var _body = null; | 2982 var _body = null; |
| 2993 | 2983 |
| 2994 if (request != null) { | 2984 if (request != null) { |
| 2995 _body = convert.JSON.encode((request).toJson()); | 2985 _body = convert.JSON.encode((request).toJson()); |
| 2996 } | 2986 } |
| 2997 if (profileId == null) { | 2987 if (profileId == null) { |
| 2998 throw new core.ArgumentError("Parameter profileId is required."); | 2988 throw new core.ArgumentError("Parameter profileId is required."); |
| 2999 } | 2989 } |
| 3000 | 2990 |
| 3001 | 2991 |
| 3002 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/contentCategories'; | 2992 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/con
tentCategories'; |
| 3003 | 2993 |
| 3004 var _response = _requester.request(_url, | 2994 var _response = _requester.request(_url, |
| 3005 "PUT", | 2995 "PUT", |
| 3006 body: _body, | 2996 body: _body, |
| 3007 queryParams: _queryParams, | 2997 queryParams: _queryParams, |
| 3008 uploadOptions: _uploadOptions, | 2998 uploadOptions: _uploadOptions, |
| 3009 uploadMedia: _uploadMedia, | 2999 uploadMedia: _uploadMedia, |
| 3010 downloadOptions: _downloadOptions); | 3000 downloadOptions: _downloadOptions); |
| 3011 return _response.then((data) => new ContentCategory.fromJson(data)); | 3001 return _response.then((data) => new ContentCategory.fromJson(data)); |
| 3012 } | 3002 } |
| 3013 | 3003 |
| 3014 } | 3004 } |
| 3015 | 3005 |
| 3016 | 3006 |
| 3017 /** Not documented yet. */ | |
| 3018 class CountriesResourceApi { | 3007 class CountriesResourceApi { |
| 3019 final common_internal.ApiRequester _requester; | 3008 final commons.ApiRequester _requester; |
| 3020 | 3009 |
| 3021 CountriesResourceApi(common_internal.ApiRequester client) : | 3010 CountriesResourceApi(commons.ApiRequester client) : |
| 3022 _requester = client; | 3011 _requester = client; |
| 3023 | 3012 |
| 3024 /** | 3013 /** |
| 3025 * Gets one country by ID. | 3014 * Gets one country by ID. |
| 3026 * | 3015 * |
| 3027 * Request parameters: | 3016 * Request parameters: |
| 3028 * | 3017 * |
| 3029 * [profileId] - User profile ID associated with this request. | 3018 * [profileId] - User profile ID associated with this request. |
| 3030 * | 3019 * |
| 3031 * [dartId] - Country DART ID. | 3020 * [dartId] - Country DART ID. |
| 3032 * | 3021 * |
| 3033 * Completes with a [Country]. | 3022 * Completes with a [Country]. |
| 3034 * | 3023 * |
| 3035 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3024 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3036 * error. | 3025 * error. |
| 3037 * | 3026 * |
| 3038 * If the used [http.Client] completes with an error when making a REST call, | 3027 * If the used [http.Client] completes with an error when making a REST call, |
| 3039 * this method will complete with the same error. | 3028 * this method will complete with the same error. |
| 3040 */ | 3029 */ |
| 3041 async.Future<Country> get(core.String profileId, core.String dartId) { | 3030 async.Future<Country> get(core.String profileId, core.String dartId) { |
| 3042 var _url = null; | 3031 var _url = null; |
| 3043 var _queryParams = new core.Map(); | 3032 var _queryParams = new core.Map(); |
| 3044 var _uploadMedia = null; | 3033 var _uploadMedia = null; |
| 3045 var _uploadOptions = null; | 3034 var _uploadOptions = null; |
| 3046 var _downloadOptions = common.DownloadOptions.Metadata; | 3035 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3047 var _body = null; | 3036 var _body = null; |
| 3048 | 3037 |
| 3049 if (profileId == null) { | 3038 if (profileId == null) { |
| 3050 throw new core.ArgumentError("Parameter profileId is required."); | 3039 throw new core.ArgumentError("Parameter profileId is required."); |
| 3051 } | 3040 } |
| 3052 if (dartId == null) { | 3041 if (dartId == null) { |
| 3053 throw new core.ArgumentError("Parameter dartId is required."); | 3042 throw new core.ArgumentError("Parameter dartId is required."); |
| 3054 } | 3043 } |
| 3055 | 3044 |
| 3056 | 3045 |
| 3057 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/countries/' + common_internal.Escaper.ecapeVariable('$dartId'); | 3046 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cou
ntries/' + commons.Escaper.ecapeVariable('$dartId'); |
| 3058 | 3047 |
| 3059 var _response = _requester.request(_url, | 3048 var _response = _requester.request(_url, |
| 3060 "GET", | 3049 "GET", |
| 3061 body: _body, | 3050 body: _body, |
| 3062 queryParams: _queryParams, | 3051 queryParams: _queryParams, |
| 3063 uploadOptions: _uploadOptions, | 3052 uploadOptions: _uploadOptions, |
| 3064 uploadMedia: _uploadMedia, | 3053 uploadMedia: _uploadMedia, |
| 3065 downloadOptions: _downloadOptions); | 3054 downloadOptions: _downloadOptions); |
| 3066 return _response.then((data) => new Country.fromJson(data)); | 3055 return _response.then((data) => new Country.fromJson(data)); |
| 3067 } | 3056 } |
| 3068 | 3057 |
| 3069 /** | 3058 /** |
| 3070 * Retrieves a list of countries. | 3059 * Retrieves a list of countries. |
| 3071 * | 3060 * |
| 3072 * Request parameters: | 3061 * Request parameters: |
| 3073 * | 3062 * |
| 3074 * [profileId] - User profile ID associated with this request. | 3063 * [profileId] - User profile ID associated with this request. |
| 3075 * | 3064 * |
| 3076 * Completes with a [CountriesListResponse]. | 3065 * Completes with a [CountriesListResponse]. |
| 3077 * | 3066 * |
| 3078 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3067 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3079 * error. | 3068 * error. |
| 3080 * | 3069 * |
| 3081 * If the used [http.Client] completes with an error when making a REST call, | 3070 * If the used [http.Client] completes with an error when making a REST call, |
| 3082 * this method will complete with the same error. | 3071 * this method will complete with the same error. |
| 3083 */ | 3072 */ |
| 3084 async.Future<CountriesListResponse> list(core.String profileId) { | 3073 async.Future<CountriesListResponse> list(core.String profileId) { |
| 3085 var _url = null; | 3074 var _url = null; |
| 3086 var _queryParams = new core.Map(); | 3075 var _queryParams = new core.Map(); |
| 3087 var _uploadMedia = null; | 3076 var _uploadMedia = null; |
| 3088 var _uploadOptions = null; | 3077 var _uploadOptions = null; |
| 3089 var _downloadOptions = common.DownloadOptions.Metadata; | 3078 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3090 var _body = null; | 3079 var _body = null; |
| 3091 | 3080 |
| 3092 if (profileId == null) { | 3081 if (profileId == null) { |
| 3093 throw new core.ArgumentError("Parameter profileId is required."); | 3082 throw new core.ArgumentError("Parameter profileId is required."); |
| 3094 } | 3083 } |
| 3095 | 3084 |
| 3096 | 3085 |
| 3097 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/countries'; | 3086 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cou
ntries'; |
| 3098 | 3087 |
| 3099 var _response = _requester.request(_url, | 3088 var _response = _requester.request(_url, |
| 3100 "GET", | 3089 "GET", |
| 3101 body: _body, | 3090 body: _body, |
| 3102 queryParams: _queryParams, | 3091 queryParams: _queryParams, |
| 3103 uploadOptions: _uploadOptions, | 3092 uploadOptions: _uploadOptions, |
| 3104 uploadMedia: _uploadMedia, | 3093 uploadMedia: _uploadMedia, |
| 3105 downloadOptions: _downloadOptions); | 3094 downloadOptions: _downloadOptions); |
| 3106 return _response.then((data) => new CountriesListResponse.fromJson(data)); | 3095 return _response.then((data) => new CountriesListResponse.fromJson(data)); |
| 3107 } | 3096 } |
| 3108 | 3097 |
| 3109 } | 3098 } |
| 3110 | 3099 |
| 3111 | 3100 |
| 3112 /** Not documented yet. */ | |
| 3113 class CreativeAssetsResourceApi { | 3101 class CreativeAssetsResourceApi { |
| 3114 final common_internal.ApiRequester _requester; | 3102 final commons.ApiRequester _requester; |
| 3115 | 3103 |
| 3116 CreativeAssetsResourceApi(common_internal.ApiRequester client) : | 3104 CreativeAssetsResourceApi(commons.ApiRequester client) : |
| 3117 _requester = client; | 3105 _requester = client; |
| 3118 | 3106 |
| 3119 /** | 3107 /** |
| 3120 * Inserts a new creative asset. | 3108 * Inserts a new creative asset. |
| 3121 * | 3109 * |
| 3122 * [request] - The metadata request object. | 3110 * [request] - The metadata request object. |
| 3123 * | 3111 * |
| 3124 * Request parameters: | 3112 * Request parameters: |
| 3125 * | 3113 * |
| 3126 * [profileId] - User profile ID associated with this request. | 3114 * [profileId] - User profile ID associated with this request. |
| 3127 * | 3115 * |
| 3128 * [advertiserId] - Advertiser ID of this creative. This is a required field. | 3116 * [advertiserId] - Advertiser ID of this creative. This is a required field. |
| 3129 * | 3117 * |
| 3130 * [uploadMedia] - The media to upload. | 3118 * [uploadMedia] - The media to upload. |
| 3131 * | 3119 * |
| 3132 * [uploadOptions] - Options for the media upload. Streaming Media without the | 3120 * [uploadOptions] - Options for the media upload. Streaming Media without the |
| 3133 * length being known ahead of time is only supported via resumable uploads. | 3121 * length being known ahead of time is only supported via resumable uploads. |
| 3134 * | 3122 * |
| 3135 * Completes with a [CreativeAssetMetadata]. | 3123 * Completes with a [CreativeAssetMetadata]. |
| 3136 * | 3124 * |
| 3137 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3125 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3138 * error. | 3126 * error. |
| 3139 * | 3127 * |
| 3140 * If the used [http.Client] completes with an error when making a REST call, | 3128 * If the used [http.Client] completes with an error when making a REST call, |
| 3141 * this method will complete with the same error. | 3129 * this method will complete with the same error. |
| 3142 */ | 3130 */ |
| 3143 async.Future<CreativeAssetMetadata> insert(CreativeAssetMetadata request, core
.String profileId, core.String advertiserId, {common.UploadOptions uploadOptions
: common.UploadOptions.Default, common.Media uploadMedia}) { | 3131 async.Future<CreativeAssetMetadata> insert(CreativeAssetMetadata request, core
.String profileId, core.String advertiserId, {commons.UploadOptions uploadOption
s : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
| 3144 var _url = null; | 3132 var _url = null; |
| 3145 var _queryParams = new core.Map(); | 3133 var _queryParams = new core.Map(); |
| 3146 var _uploadMedia = null; | 3134 var _uploadMedia = null; |
| 3147 var _uploadOptions = null; | 3135 var _uploadOptions = null; |
| 3148 var _downloadOptions = common.DownloadOptions.Metadata; | 3136 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3149 var _body = null; | 3137 var _body = null; |
| 3150 | 3138 |
| 3151 if (request != null) { | 3139 if (request != null) { |
| 3152 _body = convert.JSON.encode((request).toJson()); | 3140 _body = convert.JSON.encode((request).toJson()); |
| 3153 } | 3141 } |
| 3154 if (profileId == null) { | 3142 if (profileId == null) { |
| 3155 throw new core.ArgumentError("Parameter profileId is required."); | 3143 throw new core.ArgumentError("Parameter profileId is required."); |
| 3156 } | 3144 } |
| 3157 if (advertiserId == null) { | 3145 if (advertiserId == null) { |
| 3158 throw new core.ArgumentError("Parameter advertiserId is required."); | 3146 throw new core.ArgumentError("Parameter advertiserId is required."); |
| 3159 } | 3147 } |
| 3160 | 3148 |
| 3161 _uploadMedia = uploadMedia; | 3149 _uploadMedia = uploadMedia; |
| 3162 _uploadOptions = uploadOptions; | 3150 _uploadOptions = uploadOptions; |
| 3163 | 3151 |
| 3164 if (_uploadMedia == null) { | 3152 if (_uploadMedia == null) { |
| 3165 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId
') + '/creativeAssets/' + common_internal.Escaper.ecapeVariable('$advertiserId')
+ '/creativeAssets'; | 3153 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/c
reativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAss
ets'; |
| 3166 } else if (_uploadOptions is common.ResumableUploadOptions) { | 3154 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 3167 _url = '/resumable/upload/dfareporting/v2.0/userprofiles/' + common_intern
al.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + common_internal.Es
caper.ecapeVariable('$advertiserId') + '/creativeAssets'; | 3155 _url = '/resumable/upload/dfareporting/v2.0/userprofiles/' + commons.Escap
er.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVaria
ble('$advertiserId') + '/creativeAssets'; |
| 3168 } else { | 3156 } else { |
| 3169 _url = '/upload/dfareporting/v2.0/userprofiles/' + common_internal.Escaper
.ecapeVariable('$profileId') + '/creativeAssets/' + common_internal.Escaper.ecap
eVariable('$advertiserId') + '/creativeAssets'; | 3157 _url = '/upload/dfareporting/v2.0/userprofiles/' + commons.Escaper.ecapeVa
riable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$adve
rtiserId') + '/creativeAssets'; |
| 3170 } | 3158 } |
| 3171 | 3159 |
| 3172 | 3160 |
| 3173 var _response = _requester.request(_url, | 3161 var _response = _requester.request(_url, |
| 3174 "POST", | 3162 "POST", |
| 3175 body: _body, | 3163 body: _body, |
| 3176 queryParams: _queryParams, | 3164 queryParams: _queryParams, |
| 3177 uploadOptions: _uploadOptions, | 3165 uploadOptions: _uploadOptions, |
| 3178 uploadMedia: _uploadMedia, | 3166 uploadMedia: _uploadMedia, |
| 3179 downloadOptions: _downloadOptions); | 3167 downloadOptions: _downloadOptions); |
| 3180 return _response.then((data) => new CreativeAssetMetadata.fromJson(data)); | 3168 return _response.then((data) => new CreativeAssetMetadata.fromJson(data)); |
| 3181 } | 3169 } |
| 3182 | 3170 |
| 3183 } | 3171 } |
| 3184 | 3172 |
| 3185 | 3173 |
| 3186 /** Not documented yet. */ | |
| 3187 class CreativeFieldValuesResourceApi { | 3174 class CreativeFieldValuesResourceApi { |
| 3188 final common_internal.ApiRequester _requester; | 3175 final commons.ApiRequester _requester; |
| 3189 | 3176 |
| 3190 CreativeFieldValuesResourceApi(common_internal.ApiRequester client) : | 3177 CreativeFieldValuesResourceApi(commons.ApiRequester client) : |
| 3191 _requester = client; | 3178 _requester = client; |
| 3192 | 3179 |
| 3193 /** | 3180 /** |
| 3194 * Deletes an existing creative field value. | 3181 * Deletes an existing creative field value. |
| 3195 * | 3182 * |
| 3196 * Request parameters: | 3183 * Request parameters: |
| 3197 * | 3184 * |
| 3198 * [profileId] - User profile ID associated with this request. | 3185 * [profileId] - User profile ID associated with this request. |
| 3199 * | 3186 * |
| 3200 * [creativeFieldId] - Creative field ID for this creative field value. | 3187 * [creativeFieldId] - Creative field ID for this creative field value. |
| 3201 * | 3188 * |
| 3202 * [id] - Creative Field Value ID | 3189 * [id] - Creative Field Value ID |
| 3203 * | 3190 * |
| 3204 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3191 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3205 * error. | 3192 * error. |
| 3206 * | 3193 * |
| 3207 * If the used [http.Client] completes with an error when making a REST call, | 3194 * If the used [http.Client] completes with an error when making a REST call, |
| 3208 * this method will complete with the same error. | 3195 * this method will complete with the same error. |
| 3209 */ | 3196 */ |
| 3210 async.Future delete(core.String profileId, core.String creativeFieldId, core.S
tring id) { | 3197 async.Future delete(core.String profileId, core.String creativeFieldId, core.S
tring id) { |
| 3211 var _url = null; | 3198 var _url = null; |
| 3212 var _queryParams = new core.Map(); | 3199 var _queryParams = new core.Map(); |
| 3213 var _uploadMedia = null; | 3200 var _uploadMedia = null; |
| 3214 var _uploadOptions = null; | 3201 var _uploadOptions = null; |
| 3215 var _downloadOptions = common.DownloadOptions.Metadata; | 3202 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3216 var _body = null; | 3203 var _body = null; |
| 3217 | 3204 |
| 3218 if (profileId == null) { | 3205 if (profileId == null) { |
| 3219 throw new core.ArgumentError("Parameter profileId is required."); | 3206 throw new core.ArgumentError("Parameter profileId is required."); |
| 3220 } | 3207 } |
| 3221 if (creativeFieldId == null) { | 3208 if (creativeFieldId == null) { |
| 3222 throw new core.ArgumentError("Parameter creativeFieldId is required."); | 3209 throw new core.ArgumentError("Parameter creativeFieldId is required."); |
| 3223 } | 3210 } |
| 3224 if (id == null) { | 3211 if (id == null) { |
| 3225 throw new core.ArgumentError("Parameter id is required."); | 3212 throw new core.ArgumentError("Parameter id is required."); |
| 3226 } | 3213 } |
| 3227 | 3214 |
| 3228 _downloadOptions = null; | 3215 _downloadOptions = null; |
| 3229 | 3216 |
| 3230 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields/' + common_internal.Escaper.ecapeVariable('$creativeFieldId'
) + '/creativeFieldValues/' + common_internal.Escaper.ecapeVariable('$id'); | 3217 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFi
eldValues/' + commons.Escaper.ecapeVariable('$id'); |
| 3231 | 3218 |
| 3232 var _response = _requester.request(_url, | 3219 var _response = _requester.request(_url, |
| 3233 "DELETE", | 3220 "DELETE", |
| 3234 body: _body, | 3221 body: _body, |
| 3235 queryParams: _queryParams, | 3222 queryParams: _queryParams, |
| 3236 uploadOptions: _uploadOptions, | 3223 uploadOptions: _uploadOptions, |
| 3237 uploadMedia: _uploadMedia, | 3224 uploadMedia: _uploadMedia, |
| 3238 downloadOptions: _downloadOptions); | 3225 downloadOptions: _downloadOptions); |
| 3239 return _response.then((data) => null); | 3226 return _response.then((data) => null); |
| 3240 } | 3227 } |
| 3241 | 3228 |
| 3242 /** | 3229 /** |
| 3243 * Gets one creative field value by ID. | 3230 * Gets one creative field value by ID. |
| 3244 * | 3231 * |
| 3245 * Request parameters: | 3232 * Request parameters: |
| 3246 * | 3233 * |
| 3247 * [profileId] - User profile ID associated with this request. | 3234 * [profileId] - User profile ID associated with this request. |
| 3248 * | 3235 * |
| 3249 * [creativeFieldId] - Creative field ID for this creative field value. | 3236 * [creativeFieldId] - Creative field ID for this creative field value. |
| 3250 * | 3237 * |
| 3251 * [id] - Creative Field Value ID | 3238 * [id] - Creative Field Value ID |
| 3252 * | 3239 * |
| 3253 * Completes with a [CreativeFieldValue]. | 3240 * Completes with a [CreativeFieldValue]. |
| 3254 * | 3241 * |
| 3255 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3242 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3256 * error. | 3243 * error. |
| 3257 * | 3244 * |
| 3258 * If the used [http.Client] completes with an error when making a REST call, | 3245 * If the used [http.Client] completes with an error when making a REST call, |
| 3259 * this method will complete with the same error. | 3246 * this method will complete with the same error. |
| 3260 */ | 3247 */ |
| 3261 async.Future<CreativeFieldValue> get(core.String profileId, core.String creati
veFieldId, core.String id) { | 3248 async.Future<CreativeFieldValue> get(core.String profileId, core.String creati
veFieldId, core.String id) { |
| 3262 var _url = null; | 3249 var _url = null; |
| 3263 var _queryParams = new core.Map(); | 3250 var _queryParams = new core.Map(); |
| 3264 var _uploadMedia = null; | 3251 var _uploadMedia = null; |
| 3265 var _uploadOptions = null; | 3252 var _uploadOptions = null; |
| 3266 var _downloadOptions = common.DownloadOptions.Metadata; | 3253 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3267 var _body = null; | 3254 var _body = null; |
| 3268 | 3255 |
| 3269 if (profileId == null) { | 3256 if (profileId == null) { |
| 3270 throw new core.ArgumentError("Parameter profileId is required."); | 3257 throw new core.ArgumentError("Parameter profileId is required."); |
| 3271 } | 3258 } |
| 3272 if (creativeFieldId == null) { | 3259 if (creativeFieldId == null) { |
| 3273 throw new core.ArgumentError("Parameter creativeFieldId is required."); | 3260 throw new core.ArgumentError("Parameter creativeFieldId is required."); |
| 3274 } | 3261 } |
| 3275 if (id == null) { | 3262 if (id == null) { |
| 3276 throw new core.ArgumentError("Parameter id is required."); | 3263 throw new core.ArgumentError("Parameter id is required."); |
| 3277 } | 3264 } |
| 3278 | 3265 |
| 3279 | 3266 |
| 3280 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields/' + common_internal.Escaper.ecapeVariable('$creativeFieldId'
) + '/creativeFieldValues/' + common_internal.Escaper.ecapeVariable('$id'); | 3267 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFi
eldValues/' + commons.Escaper.ecapeVariable('$id'); |
| 3281 | 3268 |
| 3282 var _response = _requester.request(_url, | 3269 var _response = _requester.request(_url, |
| 3283 "GET", | 3270 "GET", |
| 3284 body: _body, | 3271 body: _body, |
| 3285 queryParams: _queryParams, | 3272 queryParams: _queryParams, |
| 3286 uploadOptions: _uploadOptions, | 3273 uploadOptions: _uploadOptions, |
| 3287 uploadMedia: _uploadMedia, | 3274 uploadMedia: _uploadMedia, |
| 3288 downloadOptions: _downloadOptions); | 3275 downloadOptions: _downloadOptions); |
| 3289 return _response.then((data) => new CreativeFieldValue.fromJson(data)); | 3276 return _response.then((data) => new CreativeFieldValue.fromJson(data)); |
| 3290 } | 3277 } |
| 3291 | 3278 |
| 3292 /** | 3279 /** |
| 3293 * Inserts a new creative field value. | 3280 * Inserts a new creative field value. |
| 3294 * | 3281 * |
| 3295 * [request] - The metadata request object. | 3282 * [request] - The metadata request object. |
| 3296 * | 3283 * |
| 3297 * Request parameters: | 3284 * Request parameters: |
| 3298 * | 3285 * |
| 3299 * [profileId] - User profile ID associated with this request. | 3286 * [profileId] - User profile ID associated with this request. |
| 3300 * | 3287 * |
| 3301 * [creativeFieldId] - Creative field ID for this creative field value. | 3288 * [creativeFieldId] - Creative field ID for this creative field value. |
| 3302 * | 3289 * |
| 3303 * Completes with a [CreativeFieldValue]. | 3290 * Completes with a [CreativeFieldValue]. |
| 3304 * | 3291 * |
| 3305 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3292 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3306 * error. | 3293 * error. |
| 3307 * | 3294 * |
| 3308 * If the used [http.Client] completes with an error when making a REST call, | 3295 * If the used [http.Client] completes with an error when making a REST call, |
| 3309 * this method will complete with the same error. | 3296 * this method will complete with the same error. |
| 3310 */ | 3297 */ |
| 3311 async.Future<CreativeFieldValue> insert(CreativeFieldValue request, core.Strin
g profileId, core.String creativeFieldId) { | 3298 async.Future<CreativeFieldValue> insert(CreativeFieldValue request, core.Strin
g profileId, core.String creativeFieldId) { |
| 3312 var _url = null; | 3299 var _url = null; |
| 3313 var _queryParams = new core.Map(); | 3300 var _queryParams = new core.Map(); |
| 3314 var _uploadMedia = null; | 3301 var _uploadMedia = null; |
| 3315 var _uploadOptions = null; | 3302 var _uploadOptions = null; |
| 3316 var _downloadOptions = common.DownloadOptions.Metadata; | 3303 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3317 var _body = null; | 3304 var _body = null; |
| 3318 | 3305 |
| 3319 if (request != null) { | 3306 if (request != null) { |
| 3320 _body = convert.JSON.encode((request).toJson()); | 3307 _body = convert.JSON.encode((request).toJson()); |
| 3321 } | 3308 } |
| 3322 if (profileId == null) { | 3309 if (profileId == null) { |
| 3323 throw new core.ArgumentError("Parameter profileId is required."); | 3310 throw new core.ArgumentError("Parameter profileId is required."); |
| 3324 } | 3311 } |
| 3325 if (creativeFieldId == null) { | 3312 if (creativeFieldId == null) { |
| 3326 throw new core.ArgumentError("Parameter creativeFieldId is required."); | 3313 throw new core.ArgumentError("Parameter creativeFieldId is required."); |
| 3327 } | 3314 } |
| 3328 | 3315 |
| 3329 | 3316 |
| 3330 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields/' + common_internal.Escaper.ecapeVariable('$creativeFieldId'
) + '/creativeFieldValues'; | 3317 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFi
eldValues'; |
| 3331 | 3318 |
| 3332 var _response = _requester.request(_url, | 3319 var _response = _requester.request(_url, |
| 3333 "POST", | 3320 "POST", |
| 3334 body: _body, | 3321 body: _body, |
| 3335 queryParams: _queryParams, | 3322 queryParams: _queryParams, |
| 3336 uploadOptions: _uploadOptions, | 3323 uploadOptions: _uploadOptions, |
| 3337 uploadMedia: _uploadMedia, | 3324 uploadMedia: _uploadMedia, |
| 3338 downloadOptions: _downloadOptions); | 3325 downloadOptions: _downloadOptions); |
| 3339 return _response.then((data) => new CreativeFieldValue.fromJson(data)); | 3326 return _response.then((data) => new CreativeFieldValue.fromJson(data)); |
| 3340 } | 3327 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3362 * - "ID" | 3349 * - "ID" |
| 3363 * - "VALUE" | 3350 * - "VALUE" |
| 3364 * | 3351 * |
| 3365 * [sortOrder] - Order of sorted results, default is ASCENDING. | 3352 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 3366 * Possible string values are: | 3353 * Possible string values are: |
| 3367 * - "ASCENDING" | 3354 * - "ASCENDING" |
| 3368 * - "DESCENDING" | 3355 * - "DESCENDING" |
| 3369 * | 3356 * |
| 3370 * Completes with a [CreativeFieldValuesListResponse]. | 3357 * Completes with a [CreativeFieldValuesListResponse]. |
| 3371 * | 3358 * |
| 3372 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3359 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3373 * error. | 3360 * error. |
| 3374 * | 3361 * |
| 3375 * If the used [http.Client] completes with an error when making a REST call, | 3362 * If the used [http.Client] completes with an error when making a REST call, |
| 3376 * this method will complete with the same error. | 3363 * this method will complete with the same error. |
| 3377 */ | 3364 */ |
| 3378 async.Future<CreativeFieldValuesListResponse> list(core.String profileId, core
.String creativeFieldId, {core.List<core.String> ids, core.int maxResults, core.
String pageToken, core.String searchString, core.String sortField, core.String s
ortOrder}) { | 3365 async.Future<CreativeFieldValuesListResponse> list(core.String profileId, core
.String creativeFieldId, {core.List<core.String> ids, core.int maxResults, core.
String pageToken, core.String searchString, core.String sortField, core.String s
ortOrder}) { |
| 3379 var _url = null; | 3366 var _url = null; |
| 3380 var _queryParams = new core.Map(); | 3367 var _queryParams = new core.Map(); |
| 3381 var _uploadMedia = null; | 3368 var _uploadMedia = null; |
| 3382 var _uploadOptions = null; | 3369 var _uploadOptions = null; |
| 3383 var _downloadOptions = common.DownloadOptions.Metadata; | 3370 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3384 var _body = null; | 3371 var _body = null; |
| 3385 | 3372 |
| 3386 if (profileId == null) { | 3373 if (profileId == null) { |
| 3387 throw new core.ArgumentError("Parameter profileId is required."); | 3374 throw new core.ArgumentError("Parameter profileId is required."); |
| 3388 } | 3375 } |
| 3389 if (creativeFieldId == null) { | 3376 if (creativeFieldId == null) { |
| 3390 throw new core.ArgumentError("Parameter creativeFieldId is required."); | 3377 throw new core.ArgumentError("Parameter creativeFieldId is required."); |
| 3391 } | 3378 } |
| 3392 if (ids != null) { | 3379 if (ids != null) { |
| 3393 _queryParams["ids"] = ids; | 3380 _queryParams["ids"] = ids; |
| 3394 } | 3381 } |
| 3395 if (maxResults != null) { | 3382 if (maxResults != null) { |
| 3396 _queryParams["maxResults"] = ["${maxResults}"]; | 3383 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3397 } | 3384 } |
| 3398 if (pageToken != null) { | 3385 if (pageToken != null) { |
| 3399 _queryParams["pageToken"] = [pageToken]; | 3386 _queryParams["pageToken"] = [pageToken]; |
| 3400 } | 3387 } |
| 3401 if (searchString != null) { | 3388 if (searchString != null) { |
| 3402 _queryParams["searchString"] = [searchString]; | 3389 _queryParams["searchString"] = [searchString]; |
| 3403 } | 3390 } |
| 3404 if (sortField != null) { | 3391 if (sortField != null) { |
| 3405 _queryParams["sortField"] = [sortField]; | 3392 _queryParams["sortField"] = [sortField]; |
| 3406 } | 3393 } |
| 3407 if (sortOrder != null) { | 3394 if (sortOrder != null) { |
| 3408 _queryParams["sortOrder"] = [sortOrder]; | 3395 _queryParams["sortOrder"] = [sortOrder]; |
| 3409 } | 3396 } |
| 3410 | 3397 |
| 3411 | 3398 |
| 3412 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields/' + common_internal.Escaper.ecapeVariable('$creativeFieldId'
) + '/creativeFieldValues'; | 3399 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFi
eldValues'; |
| 3413 | 3400 |
| 3414 var _response = _requester.request(_url, | 3401 var _response = _requester.request(_url, |
| 3415 "GET", | 3402 "GET", |
| 3416 body: _body, | 3403 body: _body, |
| 3417 queryParams: _queryParams, | 3404 queryParams: _queryParams, |
| 3418 uploadOptions: _uploadOptions, | 3405 uploadOptions: _uploadOptions, |
| 3419 uploadMedia: _uploadMedia, | 3406 uploadMedia: _uploadMedia, |
| 3420 downloadOptions: _downloadOptions); | 3407 downloadOptions: _downloadOptions); |
| 3421 return _response.then((data) => new CreativeFieldValuesListResponse.fromJson
(data)); | 3408 return _response.then((data) => new CreativeFieldValuesListResponse.fromJson
(data)); |
| 3422 } | 3409 } |
| 3423 | 3410 |
| 3424 /** | 3411 /** |
| 3425 * Updates an existing creative field value. This method supports patch | 3412 * Updates an existing creative field value. This method supports patch |
| 3426 * semantics. | 3413 * semantics. |
| 3427 * | 3414 * |
| 3428 * [request] - The metadata request object. | 3415 * [request] - The metadata request object. |
| 3429 * | 3416 * |
| 3430 * Request parameters: | 3417 * Request parameters: |
| 3431 * | 3418 * |
| 3432 * [profileId] - User profile ID associated with this request. | 3419 * [profileId] - User profile ID associated with this request. |
| 3433 * | 3420 * |
| 3434 * [creativeFieldId] - Creative field ID for this creative field value. | 3421 * [creativeFieldId] - Creative field ID for this creative field value. |
| 3435 * | 3422 * |
| 3436 * [id] - Creative Field Value ID | 3423 * [id] - Creative Field Value ID |
| 3437 * | 3424 * |
| 3438 * Completes with a [CreativeFieldValue]. | 3425 * Completes with a [CreativeFieldValue]. |
| 3439 * | 3426 * |
| 3440 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3427 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3441 * error. | 3428 * error. |
| 3442 * | 3429 * |
| 3443 * If the used [http.Client] completes with an error when making a REST call, | 3430 * If the used [http.Client] completes with an error when making a REST call, |
| 3444 * this method will complete with the same error. | 3431 * this method will complete with the same error. |
| 3445 */ | 3432 */ |
| 3446 async.Future<CreativeFieldValue> patch(CreativeFieldValue request, core.String
profileId, core.String creativeFieldId, core.String id) { | 3433 async.Future<CreativeFieldValue> patch(CreativeFieldValue request, core.String
profileId, core.String creativeFieldId, core.String id) { |
| 3447 var _url = null; | 3434 var _url = null; |
| 3448 var _queryParams = new core.Map(); | 3435 var _queryParams = new core.Map(); |
| 3449 var _uploadMedia = null; | 3436 var _uploadMedia = null; |
| 3450 var _uploadOptions = null; | 3437 var _uploadOptions = null; |
| 3451 var _downloadOptions = common.DownloadOptions.Metadata; | 3438 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3452 var _body = null; | 3439 var _body = null; |
| 3453 | 3440 |
| 3454 if (request != null) { | 3441 if (request != null) { |
| 3455 _body = convert.JSON.encode((request).toJson()); | 3442 _body = convert.JSON.encode((request).toJson()); |
| 3456 } | 3443 } |
| 3457 if (profileId == null) { | 3444 if (profileId == null) { |
| 3458 throw new core.ArgumentError("Parameter profileId is required."); | 3445 throw new core.ArgumentError("Parameter profileId is required."); |
| 3459 } | 3446 } |
| 3460 if (creativeFieldId == null) { | 3447 if (creativeFieldId == null) { |
| 3461 throw new core.ArgumentError("Parameter creativeFieldId is required."); | 3448 throw new core.ArgumentError("Parameter creativeFieldId is required."); |
| 3462 } | 3449 } |
| 3463 if (id == null) { | 3450 if (id == null) { |
| 3464 throw new core.ArgumentError("Parameter id is required."); | 3451 throw new core.ArgumentError("Parameter id is required."); |
| 3465 } | 3452 } |
| 3466 _queryParams["id"] = [id]; | 3453 _queryParams["id"] = [id]; |
| 3467 | 3454 |
| 3468 | 3455 |
| 3469 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields/' + common_internal.Escaper.ecapeVariable('$creativeFieldId'
) + '/creativeFieldValues'; | 3456 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFi
eldValues'; |
| 3470 | 3457 |
| 3471 var _response = _requester.request(_url, | 3458 var _response = _requester.request(_url, |
| 3472 "PATCH", | 3459 "PATCH", |
| 3473 body: _body, | 3460 body: _body, |
| 3474 queryParams: _queryParams, | 3461 queryParams: _queryParams, |
| 3475 uploadOptions: _uploadOptions, | 3462 uploadOptions: _uploadOptions, |
| 3476 uploadMedia: _uploadMedia, | 3463 uploadMedia: _uploadMedia, |
| 3477 downloadOptions: _downloadOptions); | 3464 downloadOptions: _downloadOptions); |
| 3478 return _response.then((data) => new CreativeFieldValue.fromJson(data)); | 3465 return _response.then((data) => new CreativeFieldValue.fromJson(data)); |
| 3479 } | 3466 } |
| 3480 | 3467 |
| 3481 /** | 3468 /** |
| 3482 * Updates an existing creative field value. | 3469 * Updates an existing creative field value. |
| 3483 * | 3470 * |
| 3484 * [request] - The metadata request object. | 3471 * [request] - The metadata request object. |
| 3485 * | 3472 * |
| 3486 * Request parameters: | 3473 * Request parameters: |
| 3487 * | 3474 * |
| 3488 * [profileId] - User profile ID associated with this request. | 3475 * [profileId] - User profile ID associated with this request. |
| 3489 * | 3476 * |
| 3490 * [creativeFieldId] - Creative field ID for this creative field value. | 3477 * [creativeFieldId] - Creative field ID for this creative field value. |
| 3491 * | 3478 * |
| 3492 * Completes with a [CreativeFieldValue]. | 3479 * Completes with a [CreativeFieldValue]. |
| 3493 * | 3480 * |
| 3494 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3481 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3495 * error. | 3482 * error. |
| 3496 * | 3483 * |
| 3497 * If the used [http.Client] completes with an error when making a REST call, | 3484 * If the used [http.Client] completes with an error when making a REST call, |
| 3498 * this method will complete with the same error. | 3485 * this method will complete with the same error. |
| 3499 */ | 3486 */ |
| 3500 async.Future<CreativeFieldValue> update(CreativeFieldValue request, core.Strin
g profileId, core.String creativeFieldId) { | 3487 async.Future<CreativeFieldValue> update(CreativeFieldValue request, core.Strin
g profileId, core.String creativeFieldId) { |
| 3501 var _url = null; | 3488 var _url = null; |
| 3502 var _queryParams = new core.Map(); | 3489 var _queryParams = new core.Map(); |
| 3503 var _uploadMedia = null; | 3490 var _uploadMedia = null; |
| 3504 var _uploadOptions = null; | 3491 var _uploadOptions = null; |
| 3505 var _downloadOptions = common.DownloadOptions.Metadata; | 3492 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3506 var _body = null; | 3493 var _body = null; |
| 3507 | 3494 |
| 3508 if (request != null) { | 3495 if (request != null) { |
| 3509 _body = convert.JSON.encode((request).toJson()); | 3496 _body = convert.JSON.encode((request).toJson()); |
| 3510 } | 3497 } |
| 3511 if (profileId == null) { | 3498 if (profileId == null) { |
| 3512 throw new core.ArgumentError("Parameter profileId is required."); | 3499 throw new core.ArgumentError("Parameter profileId is required."); |
| 3513 } | 3500 } |
| 3514 if (creativeFieldId == null) { | 3501 if (creativeFieldId == null) { |
| 3515 throw new core.ArgumentError("Parameter creativeFieldId is required."); | 3502 throw new core.ArgumentError("Parameter creativeFieldId is required."); |
| 3516 } | 3503 } |
| 3517 | 3504 |
| 3518 | 3505 |
| 3519 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields/' + common_internal.Escaper.ecapeVariable('$creativeFieldId'
) + '/creativeFieldValues'; | 3506 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFi
eldValues'; |
| 3520 | 3507 |
| 3521 var _response = _requester.request(_url, | 3508 var _response = _requester.request(_url, |
| 3522 "PUT", | 3509 "PUT", |
| 3523 body: _body, | 3510 body: _body, |
| 3524 queryParams: _queryParams, | 3511 queryParams: _queryParams, |
| 3525 uploadOptions: _uploadOptions, | 3512 uploadOptions: _uploadOptions, |
| 3526 uploadMedia: _uploadMedia, | 3513 uploadMedia: _uploadMedia, |
| 3527 downloadOptions: _downloadOptions); | 3514 downloadOptions: _downloadOptions); |
| 3528 return _response.then((data) => new CreativeFieldValue.fromJson(data)); | 3515 return _response.then((data) => new CreativeFieldValue.fromJson(data)); |
| 3529 } | 3516 } |
| 3530 | 3517 |
| 3531 } | 3518 } |
| 3532 | 3519 |
| 3533 | 3520 |
| 3534 /** Not documented yet. */ | |
| 3535 class CreativeFieldsResourceApi { | 3521 class CreativeFieldsResourceApi { |
| 3536 final common_internal.ApiRequester _requester; | 3522 final commons.ApiRequester _requester; |
| 3537 | 3523 |
| 3538 CreativeFieldsResourceApi(common_internal.ApiRequester client) : | 3524 CreativeFieldsResourceApi(commons.ApiRequester client) : |
| 3539 _requester = client; | 3525 _requester = client; |
| 3540 | 3526 |
| 3541 /** | 3527 /** |
| 3542 * Deletes an existing creative field. | 3528 * Deletes an existing creative field. |
| 3543 * | 3529 * |
| 3544 * Request parameters: | 3530 * Request parameters: |
| 3545 * | 3531 * |
| 3546 * [profileId] - User profile ID associated with this request. | 3532 * [profileId] - User profile ID associated with this request. |
| 3547 * | 3533 * |
| 3548 * [id] - Creative Field ID | 3534 * [id] - Creative Field ID |
| 3549 * | 3535 * |
| 3550 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3536 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3551 * error. | 3537 * error. |
| 3552 * | 3538 * |
| 3553 * If the used [http.Client] completes with an error when making a REST call, | 3539 * If the used [http.Client] completes with an error when making a REST call, |
| 3554 * this method will complete with the same error. | 3540 * this method will complete with the same error. |
| 3555 */ | 3541 */ |
| 3556 async.Future delete(core.String profileId, core.String id) { | 3542 async.Future delete(core.String profileId, core.String id) { |
| 3557 var _url = null; | 3543 var _url = null; |
| 3558 var _queryParams = new core.Map(); | 3544 var _queryParams = new core.Map(); |
| 3559 var _uploadMedia = null; | 3545 var _uploadMedia = null; |
| 3560 var _uploadOptions = null; | 3546 var _uploadOptions = null; |
| 3561 var _downloadOptions = common.DownloadOptions.Metadata; | 3547 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3562 var _body = null; | 3548 var _body = null; |
| 3563 | 3549 |
| 3564 if (profileId == null) { | 3550 if (profileId == null) { |
| 3565 throw new core.ArgumentError("Parameter profileId is required."); | 3551 throw new core.ArgumentError("Parameter profileId is required."); |
| 3566 } | 3552 } |
| 3567 if (id == null) { | 3553 if (id == null) { |
| 3568 throw new core.ArgumentError("Parameter id is required."); | 3554 throw new core.ArgumentError("Parameter id is required."); |
| 3569 } | 3555 } |
| 3570 | 3556 |
| 3571 _downloadOptions = null; | 3557 _downloadOptions = null; |
| 3572 | 3558 |
| 3573 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields/' + common_internal.Escaper.ecapeVariable('$id'); | 3559 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields/' + commons.Escaper.ecapeVariable('$id'); |
| 3574 | 3560 |
| 3575 var _response = _requester.request(_url, | 3561 var _response = _requester.request(_url, |
| 3576 "DELETE", | 3562 "DELETE", |
| 3577 body: _body, | 3563 body: _body, |
| 3578 queryParams: _queryParams, | 3564 queryParams: _queryParams, |
| 3579 uploadOptions: _uploadOptions, | 3565 uploadOptions: _uploadOptions, |
| 3580 uploadMedia: _uploadMedia, | 3566 uploadMedia: _uploadMedia, |
| 3581 downloadOptions: _downloadOptions); | 3567 downloadOptions: _downloadOptions); |
| 3582 return _response.then((data) => null); | 3568 return _response.then((data) => null); |
| 3583 } | 3569 } |
| 3584 | 3570 |
| 3585 /** | 3571 /** |
| 3586 * Gets one creative field by ID. | 3572 * Gets one creative field by ID. |
| 3587 * | 3573 * |
| 3588 * Request parameters: | 3574 * Request parameters: |
| 3589 * | 3575 * |
| 3590 * [profileId] - User profile ID associated with this request. | 3576 * [profileId] - User profile ID associated with this request. |
| 3591 * | 3577 * |
| 3592 * [id] - Creative Field ID | 3578 * [id] - Creative Field ID |
| 3593 * | 3579 * |
| 3594 * Completes with a [CreativeField]. | 3580 * Completes with a [CreativeField]. |
| 3595 * | 3581 * |
| 3596 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3582 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3597 * error. | 3583 * error. |
| 3598 * | 3584 * |
| 3599 * If the used [http.Client] completes with an error when making a REST call, | 3585 * If the used [http.Client] completes with an error when making a REST call, |
| 3600 * this method will complete with the same error. | 3586 * this method will complete with the same error. |
| 3601 */ | 3587 */ |
| 3602 async.Future<CreativeField> get(core.String profileId, core.String id) { | 3588 async.Future<CreativeField> get(core.String profileId, core.String id) { |
| 3603 var _url = null; | 3589 var _url = null; |
| 3604 var _queryParams = new core.Map(); | 3590 var _queryParams = new core.Map(); |
| 3605 var _uploadMedia = null; | 3591 var _uploadMedia = null; |
| 3606 var _uploadOptions = null; | 3592 var _uploadOptions = null; |
| 3607 var _downloadOptions = common.DownloadOptions.Metadata; | 3593 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3608 var _body = null; | 3594 var _body = null; |
| 3609 | 3595 |
| 3610 if (profileId == null) { | 3596 if (profileId == null) { |
| 3611 throw new core.ArgumentError("Parameter profileId is required."); | 3597 throw new core.ArgumentError("Parameter profileId is required."); |
| 3612 } | 3598 } |
| 3613 if (id == null) { | 3599 if (id == null) { |
| 3614 throw new core.ArgumentError("Parameter id is required."); | 3600 throw new core.ArgumentError("Parameter id is required."); |
| 3615 } | 3601 } |
| 3616 | 3602 |
| 3617 | 3603 |
| 3618 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields/' + common_internal.Escaper.ecapeVariable('$id'); | 3604 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields/' + commons.Escaper.ecapeVariable('$id'); |
| 3619 | 3605 |
| 3620 var _response = _requester.request(_url, | 3606 var _response = _requester.request(_url, |
| 3621 "GET", | 3607 "GET", |
| 3622 body: _body, | 3608 body: _body, |
| 3623 queryParams: _queryParams, | 3609 queryParams: _queryParams, |
| 3624 uploadOptions: _uploadOptions, | 3610 uploadOptions: _uploadOptions, |
| 3625 uploadMedia: _uploadMedia, | 3611 uploadMedia: _uploadMedia, |
| 3626 downloadOptions: _downloadOptions); | 3612 downloadOptions: _downloadOptions); |
| 3627 return _response.then((data) => new CreativeField.fromJson(data)); | 3613 return _response.then((data) => new CreativeField.fromJson(data)); |
| 3628 } | 3614 } |
| 3629 | 3615 |
| 3630 /** | 3616 /** |
| 3631 * Inserts a new creative field. | 3617 * Inserts a new creative field. |
| 3632 * | 3618 * |
| 3633 * [request] - The metadata request object. | 3619 * [request] - The metadata request object. |
| 3634 * | 3620 * |
| 3635 * Request parameters: | 3621 * Request parameters: |
| 3636 * | 3622 * |
| 3637 * [profileId] - User profile ID associated with this request. | 3623 * [profileId] - User profile ID associated with this request. |
| 3638 * | 3624 * |
| 3639 * Completes with a [CreativeField]. | 3625 * Completes with a [CreativeField]. |
| 3640 * | 3626 * |
| 3641 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3627 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3642 * error. | 3628 * error. |
| 3643 * | 3629 * |
| 3644 * If the used [http.Client] completes with an error when making a REST call, | 3630 * If the used [http.Client] completes with an error when making a REST call, |
| 3645 * this method will complete with the same error. | 3631 * this method will complete with the same error. |
| 3646 */ | 3632 */ |
| 3647 async.Future<CreativeField> insert(CreativeField request, core.String profileI
d) { | 3633 async.Future<CreativeField> insert(CreativeField request, core.String profileI
d) { |
| 3648 var _url = null; | 3634 var _url = null; |
| 3649 var _queryParams = new core.Map(); | 3635 var _queryParams = new core.Map(); |
| 3650 var _uploadMedia = null; | 3636 var _uploadMedia = null; |
| 3651 var _uploadOptions = null; | 3637 var _uploadOptions = null; |
| 3652 var _downloadOptions = common.DownloadOptions.Metadata; | 3638 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3653 var _body = null; | 3639 var _body = null; |
| 3654 | 3640 |
| 3655 if (request != null) { | 3641 if (request != null) { |
| 3656 _body = convert.JSON.encode((request).toJson()); | 3642 _body = convert.JSON.encode((request).toJson()); |
| 3657 } | 3643 } |
| 3658 if (profileId == null) { | 3644 if (profileId == null) { |
| 3659 throw new core.ArgumentError("Parameter profileId is required."); | 3645 throw new core.ArgumentError("Parameter profileId is required."); |
| 3660 } | 3646 } |
| 3661 | 3647 |
| 3662 | 3648 |
| 3663 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields'; | 3649 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields'; |
| 3664 | 3650 |
| 3665 var _response = _requester.request(_url, | 3651 var _response = _requester.request(_url, |
| 3666 "POST", | 3652 "POST", |
| 3667 body: _body, | 3653 body: _body, |
| 3668 queryParams: _queryParams, | 3654 queryParams: _queryParams, |
| 3669 uploadOptions: _uploadOptions, | 3655 uploadOptions: _uploadOptions, |
| 3670 uploadMedia: _uploadMedia, | 3656 uploadMedia: _uploadMedia, |
| 3671 downloadOptions: _downloadOptions); | 3657 downloadOptions: _downloadOptions); |
| 3672 return _response.then((data) => new CreativeField.fromJson(data)); | 3658 return _response.then((data) => new CreativeField.fromJson(data)); |
| 3673 } | 3659 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3684 * | 3670 * |
| 3685 * [ids] - Select only creative fields with these IDs. | 3671 * [ids] - Select only creative fields with these IDs. |
| 3686 * | 3672 * |
| 3687 * [maxResults] - Maximum number of results to return. | 3673 * [maxResults] - Maximum number of results to return. |
| 3688 * | 3674 * |
| 3689 * [pageToken] - Value of the nextPageToken from the previous result page. | 3675 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 3690 * | 3676 * |
| 3691 * [searchString] - Allows searching for creative fields by name or ID. | 3677 * [searchString] - Allows searching for creative fields by name or ID. |
| 3692 * Wildcards (*) are allowed. For example, "creativefield*2015" will return | 3678 * Wildcards (*) are allowed. For example, "creativefield*2015" will return |
| 3693 * creative fields with names like "creativefield June 2015", "creativefield | 3679 * creative fields with names like "creativefield June 2015", "creativefield |
| 3694 * April 2015" or simply "creativefield 2015". Most of the searches also add | 3680 * April 2015", or simply "creativefield 2015". Most of the searches also add |
| 3695 * wild-cards implicitly at the start and the end of the search string. For | 3681 * wild-cards implicitly at the start and the end of the search string. For |
| 3696 * example, a search string of "creativefield" will match creative fields with | 3682 * example, a search string of "creativefield" will match creative fields with |
| 3697 * the name "my creativefield", "creativefield 2015" or simply | 3683 * the name "my creativefield", "creativefield 2015", or simply |
| 3698 * "creativefield". | 3684 * "creativefield". |
| 3699 * | 3685 * |
| 3700 * [sortField] - Field by which to sort the list. | 3686 * [sortField] - Field by which to sort the list. |
| 3701 * Possible string values are: | 3687 * Possible string values are: |
| 3702 * - "ID" | 3688 * - "ID" |
| 3703 * - "NAME" | 3689 * - "NAME" |
| 3704 * | 3690 * |
| 3705 * [sortOrder] - Order of sorted results, default is ASCENDING. | 3691 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 3706 * Possible string values are: | 3692 * Possible string values are: |
| 3707 * - "ASCENDING" | 3693 * - "ASCENDING" |
| 3708 * - "DESCENDING" | 3694 * - "DESCENDING" |
| 3709 * | 3695 * |
| 3710 * Completes with a [CreativeFieldsListResponse]. | 3696 * Completes with a [CreativeFieldsListResponse]. |
| 3711 * | 3697 * |
| 3712 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3698 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3713 * error. | 3699 * error. |
| 3714 * | 3700 * |
| 3715 * If the used [http.Client] completes with an error when making a REST call, | 3701 * If the used [http.Client] completes with an error when making a REST call, |
| 3716 * this method will complete with the same error. | 3702 * this method will complete with the same error. |
| 3717 */ | 3703 */ |
| 3718 async.Future<CreativeFieldsListResponse> list(core.String profileId, {core.Lis
t<core.String> advertiserIds, core.List<core.String> ids, core.int maxResults, c
ore.String pageToken, core.String searchString, core.String sortField, core.Stri
ng sortOrder}) { | 3704 async.Future<CreativeFieldsListResponse> list(core.String profileId, {core.Lis
t<core.String> advertiserIds, core.List<core.String> ids, core.int maxResults, c
ore.String pageToken, core.String searchString, core.String sortField, core.Stri
ng sortOrder}) { |
| 3719 var _url = null; | 3705 var _url = null; |
| 3720 var _queryParams = new core.Map(); | 3706 var _queryParams = new core.Map(); |
| 3721 var _uploadMedia = null; | 3707 var _uploadMedia = null; |
| 3722 var _uploadOptions = null; | 3708 var _uploadOptions = null; |
| 3723 var _downloadOptions = common.DownloadOptions.Metadata; | 3709 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3724 var _body = null; | 3710 var _body = null; |
| 3725 | 3711 |
| 3726 if (profileId == null) { | 3712 if (profileId == null) { |
| 3727 throw new core.ArgumentError("Parameter profileId is required."); | 3713 throw new core.ArgumentError("Parameter profileId is required."); |
| 3728 } | 3714 } |
| 3729 if (advertiserIds != null) { | 3715 if (advertiserIds != null) { |
| 3730 _queryParams["advertiserIds"] = advertiserIds; | 3716 _queryParams["advertiserIds"] = advertiserIds; |
| 3731 } | 3717 } |
| 3732 if (ids != null) { | 3718 if (ids != null) { |
| 3733 _queryParams["ids"] = ids; | 3719 _queryParams["ids"] = ids; |
| 3734 } | 3720 } |
| 3735 if (maxResults != null) { | 3721 if (maxResults != null) { |
| 3736 _queryParams["maxResults"] = ["${maxResults}"]; | 3722 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3737 } | 3723 } |
| 3738 if (pageToken != null) { | 3724 if (pageToken != null) { |
| 3739 _queryParams["pageToken"] = [pageToken]; | 3725 _queryParams["pageToken"] = [pageToken]; |
| 3740 } | 3726 } |
| 3741 if (searchString != null) { | 3727 if (searchString != null) { |
| 3742 _queryParams["searchString"] = [searchString]; | 3728 _queryParams["searchString"] = [searchString]; |
| 3743 } | 3729 } |
| 3744 if (sortField != null) { | 3730 if (sortField != null) { |
| 3745 _queryParams["sortField"] = [sortField]; | 3731 _queryParams["sortField"] = [sortField]; |
| 3746 } | 3732 } |
| 3747 if (sortOrder != null) { | 3733 if (sortOrder != null) { |
| 3748 _queryParams["sortOrder"] = [sortOrder]; | 3734 _queryParams["sortOrder"] = [sortOrder]; |
| 3749 } | 3735 } |
| 3750 | 3736 |
| 3751 | 3737 |
| 3752 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields'; | 3738 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields'; |
| 3753 | 3739 |
| 3754 var _response = _requester.request(_url, | 3740 var _response = _requester.request(_url, |
| 3755 "GET", | 3741 "GET", |
| 3756 body: _body, | 3742 body: _body, |
| 3757 queryParams: _queryParams, | 3743 queryParams: _queryParams, |
| 3758 uploadOptions: _uploadOptions, | 3744 uploadOptions: _uploadOptions, |
| 3759 uploadMedia: _uploadMedia, | 3745 uploadMedia: _uploadMedia, |
| 3760 downloadOptions: _downloadOptions); | 3746 downloadOptions: _downloadOptions); |
| 3761 return _response.then((data) => new CreativeFieldsListResponse.fromJson(data
)); | 3747 return _response.then((data) => new CreativeFieldsListResponse.fromJson(data
)); |
| 3762 } | 3748 } |
| 3763 | 3749 |
| 3764 /** | 3750 /** |
| 3765 * Updates an existing creative field. This method supports patch semantics. | 3751 * Updates an existing creative field. This method supports patch semantics. |
| 3766 * | 3752 * |
| 3767 * [request] - The metadata request object. | 3753 * [request] - The metadata request object. |
| 3768 * | 3754 * |
| 3769 * Request parameters: | 3755 * Request parameters: |
| 3770 * | 3756 * |
| 3771 * [profileId] - User profile ID associated with this request. | 3757 * [profileId] - User profile ID associated with this request. |
| 3772 * | 3758 * |
| 3773 * [id] - Creative Field ID | 3759 * [id] - Creative Field ID |
| 3774 * | 3760 * |
| 3775 * Completes with a [CreativeField]. | 3761 * Completes with a [CreativeField]. |
| 3776 * | 3762 * |
| 3777 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3763 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3778 * error. | 3764 * error. |
| 3779 * | 3765 * |
| 3780 * If the used [http.Client] completes with an error when making a REST call, | 3766 * If the used [http.Client] completes with an error when making a REST call, |
| 3781 * this method will complete with the same error. | 3767 * this method will complete with the same error. |
| 3782 */ | 3768 */ |
| 3783 async.Future<CreativeField> patch(CreativeField request, core.String profileId
, core.String id) { | 3769 async.Future<CreativeField> patch(CreativeField request, core.String profileId
, core.String id) { |
| 3784 var _url = null; | 3770 var _url = null; |
| 3785 var _queryParams = new core.Map(); | 3771 var _queryParams = new core.Map(); |
| 3786 var _uploadMedia = null; | 3772 var _uploadMedia = null; |
| 3787 var _uploadOptions = null; | 3773 var _uploadOptions = null; |
| 3788 var _downloadOptions = common.DownloadOptions.Metadata; | 3774 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3789 var _body = null; | 3775 var _body = null; |
| 3790 | 3776 |
| 3791 if (request != null) { | 3777 if (request != null) { |
| 3792 _body = convert.JSON.encode((request).toJson()); | 3778 _body = convert.JSON.encode((request).toJson()); |
| 3793 } | 3779 } |
| 3794 if (profileId == null) { | 3780 if (profileId == null) { |
| 3795 throw new core.ArgumentError("Parameter profileId is required."); | 3781 throw new core.ArgumentError("Parameter profileId is required."); |
| 3796 } | 3782 } |
| 3797 if (id == null) { | 3783 if (id == null) { |
| 3798 throw new core.ArgumentError("Parameter id is required."); | 3784 throw new core.ArgumentError("Parameter id is required."); |
| 3799 } | 3785 } |
| 3800 _queryParams["id"] = [id]; | 3786 _queryParams["id"] = [id]; |
| 3801 | 3787 |
| 3802 | 3788 |
| 3803 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields'; | 3789 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields'; |
| 3804 | 3790 |
| 3805 var _response = _requester.request(_url, | 3791 var _response = _requester.request(_url, |
| 3806 "PATCH", | 3792 "PATCH", |
| 3807 body: _body, | 3793 body: _body, |
| 3808 queryParams: _queryParams, | 3794 queryParams: _queryParams, |
| 3809 uploadOptions: _uploadOptions, | 3795 uploadOptions: _uploadOptions, |
| 3810 uploadMedia: _uploadMedia, | 3796 uploadMedia: _uploadMedia, |
| 3811 downloadOptions: _downloadOptions); | 3797 downloadOptions: _downloadOptions); |
| 3812 return _response.then((data) => new CreativeField.fromJson(data)); | 3798 return _response.then((data) => new CreativeField.fromJson(data)); |
| 3813 } | 3799 } |
| 3814 | 3800 |
| 3815 /** | 3801 /** |
| 3816 * Updates an existing creative field. | 3802 * Updates an existing creative field. |
| 3817 * | 3803 * |
| 3818 * [request] - The metadata request object. | 3804 * [request] - The metadata request object. |
| 3819 * | 3805 * |
| 3820 * Request parameters: | 3806 * Request parameters: |
| 3821 * | 3807 * |
| 3822 * [profileId] - User profile ID associated with this request. | 3808 * [profileId] - User profile ID associated with this request. |
| 3823 * | 3809 * |
| 3824 * Completes with a [CreativeField]. | 3810 * Completes with a [CreativeField]. |
| 3825 * | 3811 * |
| 3826 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3812 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3827 * error. | 3813 * error. |
| 3828 * | 3814 * |
| 3829 * If the used [http.Client] completes with an error when making a REST call, | 3815 * If the used [http.Client] completes with an error when making a REST call, |
| 3830 * this method will complete with the same error. | 3816 * this method will complete with the same error. |
| 3831 */ | 3817 */ |
| 3832 async.Future<CreativeField> update(CreativeField request, core.String profileI
d) { | 3818 async.Future<CreativeField> update(CreativeField request, core.String profileI
d) { |
| 3833 var _url = null; | 3819 var _url = null; |
| 3834 var _queryParams = new core.Map(); | 3820 var _queryParams = new core.Map(); |
| 3835 var _uploadMedia = null; | 3821 var _uploadMedia = null; |
| 3836 var _uploadOptions = null; | 3822 var _uploadOptions = null; |
| 3837 var _downloadOptions = common.DownloadOptions.Metadata; | 3823 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3838 var _body = null; | 3824 var _body = null; |
| 3839 | 3825 |
| 3840 if (request != null) { | 3826 if (request != null) { |
| 3841 _body = convert.JSON.encode((request).toJson()); | 3827 _body = convert.JSON.encode((request).toJson()); |
| 3842 } | 3828 } |
| 3843 if (profileId == null) { | 3829 if (profileId == null) { |
| 3844 throw new core.ArgumentError("Parameter profileId is required."); | 3830 throw new core.ArgumentError("Parameter profileId is required."); |
| 3845 } | 3831 } |
| 3846 | 3832 |
| 3847 | 3833 |
| 3848 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeFields'; | 3834 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeFields'; |
| 3849 | 3835 |
| 3850 var _response = _requester.request(_url, | 3836 var _response = _requester.request(_url, |
| 3851 "PUT", | 3837 "PUT", |
| 3852 body: _body, | 3838 body: _body, |
| 3853 queryParams: _queryParams, | 3839 queryParams: _queryParams, |
| 3854 uploadOptions: _uploadOptions, | 3840 uploadOptions: _uploadOptions, |
| 3855 uploadMedia: _uploadMedia, | 3841 uploadMedia: _uploadMedia, |
| 3856 downloadOptions: _downloadOptions); | 3842 downloadOptions: _downloadOptions); |
| 3857 return _response.then((data) => new CreativeField.fromJson(data)); | 3843 return _response.then((data) => new CreativeField.fromJson(data)); |
| 3858 } | 3844 } |
| 3859 | 3845 |
| 3860 } | 3846 } |
| 3861 | 3847 |
| 3862 | 3848 |
| 3863 /** Not documented yet. */ | |
| 3864 class CreativeGroupsResourceApi { | 3849 class CreativeGroupsResourceApi { |
| 3865 final common_internal.ApiRequester _requester; | 3850 final commons.ApiRequester _requester; |
| 3866 | 3851 |
| 3867 CreativeGroupsResourceApi(common_internal.ApiRequester client) : | 3852 CreativeGroupsResourceApi(commons.ApiRequester client) : |
| 3868 _requester = client; | 3853 _requester = client; |
| 3869 | 3854 |
| 3870 /** | 3855 /** |
| 3871 * Gets one creative group by ID. | 3856 * Gets one creative group by ID. |
| 3872 * | 3857 * |
| 3873 * Request parameters: | 3858 * Request parameters: |
| 3874 * | 3859 * |
| 3875 * [profileId] - User profile ID associated with this request. | 3860 * [profileId] - User profile ID associated with this request. |
| 3876 * | 3861 * |
| 3877 * [id] - Creative group ID. | 3862 * [id] - Creative group ID. |
| 3878 * | 3863 * |
| 3879 * Completes with a [CreativeGroup]. | 3864 * Completes with a [CreativeGroup]. |
| 3880 * | 3865 * |
| 3881 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3866 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3882 * error. | 3867 * error. |
| 3883 * | 3868 * |
| 3884 * If the used [http.Client] completes with an error when making a REST call, | 3869 * If the used [http.Client] completes with an error when making a REST call, |
| 3885 * this method will complete with the same error. | 3870 * this method will complete with the same error. |
| 3886 */ | 3871 */ |
| 3887 async.Future<CreativeGroup> get(core.String profileId, core.String id) { | 3872 async.Future<CreativeGroup> get(core.String profileId, core.String id) { |
| 3888 var _url = null; | 3873 var _url = null; |
| 3889 var _queryParams = new core.Map(); | 3874 var _queryParams = new core.Map(); |
| 3890 var _uploadMedia = null; | 3875 var _uploadMedia = null; |
| 3891 var _uploadOptions = null; | 3876 var _uploadOptions = null; |
| 3892 var _downloadOptions = common.DownloadOptions.Metadata; | 3877 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3893 var _body = null; | 3878 var _body = null; |
| 3894 | 3879 |
| 3895 if (profileId == null) { | 3880 if (profileId == null) { |
| 3896 throw new core.ArgumentError("Parameter profileId is required."); | 3881 throw new core.ArgumentError("Parameter profileId is required."); |
| 3897 } | 3882 } |
| 3898 if (id == null) { | 3883 if (id == null) { |
| 3899 throw new core.ArgumentError("Parameter id is required."); | 3884 throw new core.ArgumentError("Parameter id is required."); |
| 3900 } | 3885 } |
| 3901 | 3886 |
| 3902 | 3887 |
| 3903 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeGroups/' + common_internal.Escaper.ecapeVariable('$id'); | 3888 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeGroups/' + commons.Escaper.ecapeVariable('$id'); |
| 3904 | 3889 |
| 3905 var _response = _requester.request(_url, | 3890 var _response = _requester.request(_url, |
| 3906 "GET", | 3891 "GET", |
| 3907 body: _body, | 3892 body: _body, |
| 3908 queryParams: _queryParams, | 3893 queryParams: _queryParams, |
| 3909 uploadOptions: _uploadOptions, | 3894 uploadOptions: _uploadOptions, |
| 3910 uploadMedia: _uploadMedia, | 3895 uploadMedia: _uploadMedia, |
| 3911 downloadOptions: _downloadOptions); | 3896 downloadOptions: _downloadOptions); |
| 3912 return _response.then((data) => new CreativeGroup.fromJson(data)); | 3897 return _response.then((data) => new CreativeGroup.fromJson(data)); |
| 3913 } | 3898 } |
| 3914 | 3899 |
| 3915 /** | 3900 /** |
| 3916 * Inserts a new creative group. | 3901 * Inserts a new creative group. |
| 3917 * | 3902 * |
| 3918 * [request] - The metadata request object. | 3903 * [request] - The metadata request object. |
| 3919 * | 3904 * |
| 3920 * Request parameters: | 3905 * Request parameters: |
| 3921 * | 3906 * |
| 3922 * [profileId] - User profile ID associated with this request. | 3907 * [profileId] - User profile ID associated with this request. |
| 3923 * | 3908 * |
| 3924 * Completes with a [CreativeGroup]. | 3909 * Completes with a [CreativeGroup]. |
| 3925 * | 3910 * |
| 3926 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3911 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3927 * error. | 3912 * error. |
| 3928 * | 3913 * |
| 3929 * If the used [http.Client] completes with an error when making a REST call, | 3914 * If the used [http.Client] completes with an error when making a REST call, |
| 3930 * this method will complete with the same error. | 3915 * this method will complete with the same error. |
| 3931 */ | 3916 */ |
| 3932 async.Future<CreativeGroup> insert(CreativeGroup request, core.String profileI
d) { | 3917 async.Future<CreativeGroup> insert(CreativeGroup request, core.String profileI
d) { |
| 3933 var _url = null; | 3918 var _url = null; |
| 3934 var _queryParams = new core.Map(); | 3919 var _queryParams = new core.Map(); |
| 3935 var _uploadMedia = null; | 3920 var _uploadMedia = null; |
| 3936 var _uploadOptions = null; | 3921 var _uploadOptions = null; |
| 3937 var _downloadOptions = common.DownloadOptions.Metadata; | 3922 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3938 var _body = null; | 3923 var _body = null; |
| 3939 | 3924 |
| 3940 if (request != null) { | 3925 if (request != null) { |
| 3941 _body = convert.JSON.encode((request).toJson()); | 3926 _body = convert.JSON.encode((request).toJson()); |
| 3942 } | 3927 } |
| 3943 if (profileId == null) { | 3928 if (profileId == null) { |
| 3944 throw new core.ArgumentError("Parameter profileId is required."); | 3929 throw new core.ArgumentError("Parameter profileId is required."); |
| 3945 } | 3930 } |
| 3946 | 3931 |
| 3947 | 3932 |
| 3948 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeGroups'; | 3933 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeGroups'; |
| 3949 | 3934 |
| 3950 var _response = _requester.request(_url, | 3935 var _response = _requester.request(_url, |
| 3951 "POST", | 3936 "POST", |
| 3952 body: _body, | 3937 body: _body, |
| 3953 queryParams: _queryParams, | 3938 queryParams: _queryParams, |
| 3954 uploadOptions: _uploadOptions, | 3939 uploadOptions: _uploadOptions, |
| 3955 uploadMedia: _uploadMedia, | 3940 uploadMedia: _uploadMedia, |
| 3956 downloadOptions: _downloadOptions); | 3941 downloadOptions: _downloadOptions); |
| 3957 return _response.then((data) => new CreativeGroup.fromJson(data)); | 3942 return _response.then((data) => new CreativeGroup.fromJson(data)); |
| 3958 } | 3943 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3971 * | 3956 * |
| 3972 * [ids] - Select only creative groups with these IDs. | 3957 * [ids] - Select only creative groups with these IDs. |
| 3973 * | 3958 * |
| 3974 * [maxResults] - Maximum number of results to return. | 3959 * [maxResults] - Maximum number of results to return. |
| 3975 * | 3960 * |
| 3976 * [pageToken] - Value of the nextPageToken from the previous result page. | 3961 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 3977 * | 3962 * |
| 3978 * [searchString] - Allows searching for creative groups by name or ID. | 3963 * [searchString] - Allows searching for creative groups by name or ID. |
| 3979 * Wildcards (*) are allowed. For example, "creativegroup*2015" will return | 3964 * Wildcards (*) are allowed. For example, "creativegroup*2015" will return |
| 3980 * creative groups with names like "creativegroup June 2015", "creativegroup | 3965 * creative groups with names like "creativegroup June 2015", "creativegroup |
| 3981 * April 2015" or simply "creativegroup 2015". Most of the searches also add | 3966 * April 2015", or simply "creativegroup 2015". Most of the searches also add |
| 3982 * wild-cards implicitly at the start and the end of the search string. For | 3967 * wild-cards implicitly at the start and the end of the search string. For |
| 3983 * example, a search string of "creativegroup" will match creative groups with | 3968 * example, a search string of "creativegroup" will match creative groups with |
| 3984 * the name "my creativegroup", "creativegroup 2015" or simply | 3969 * the name "my creativegroup", "creativegroup 2015", or simply |
| 3985 * "creativegroup". | 3970 * "creativegroup". |
| 3986 * | 3971 * |
| 3987 * [sortField] - Field by which to sort the list. | 3972 * [sortField] - Field by which to sort the list. |
| 3988 * Possible string values are: | 3973 * Possible string values are: |
| 3989 * - "ID" | 3974 * - "ID" |
| 3990 * - "NAME" | 3975 * - "NAME" |
| 3991 * | 3976 * |
| 3992 * [sortOrder] - Order of sorted results, default is ASCENDING. | 3977 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 3993 * Possible string values are: | 3978 * Possible string values are: |
| 3994 * - "ASCENDING" | 3979 * - "ASCENDING" |
| 3995 * - "DESCENDING" | 3980 * - "DESCENDING" |
| 3996 * | 3981 * |
| 3997 * Completes with a [CreativeGroupsListResponse]. | 3982 * Completes with a [CreativeGroupsListResponse]. |
| 3998 * | 3983 * |
| 3999 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3984 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4000 * error. | 3985 * error. |
| 4001 * | 3986 * |
| 4002 * If the used [http.Client] completes with an error when making a REST call, | 3987 * If the used [http.Client] completes with an error when making a REST call, |
| 4003 * this method will complete with the same error. | 3988 * this method will complete with the same error. |
| 4004 */ | 3989 */ |
| 4005 async.Future<CreativeGroupsListResponse> list(core.String profileId, {core.Lis
t<core.String> advertiserIds, core.int groupNumber, core.List<core.String> ids,
core.int maxResults, core.String pageToken, core.String searchString, core.Strin
g sortField, core.String sortOrder}) { | 3990 async.Future<CreativeGroupsListResponse> list(core.String profileId, {core.Lis
t<core.String> advertiserIds, core.int groupNumber, core.List<core.String> ids,
core.int maxResults, core.String pageToken, core.String searchString, core.Strin
g sortField, core.String sortOrder}) { |
| 4006 var _url = null; | 3991 var _url = null; |
| 4007 var _queryParams = new core.Map(); | 3992 var _queryParams = new core.Map(); |
| 4008 var _uploadMedia = null; | 3993 var _uploadMedia = null; |
| 4009 var _uploadOptions = null; | 3994 var _uploadOptions = null; |
| 4010 var _downloadOptions = common.DownloadOptions.Metadata; | 3995 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4011 var _body = null; | 3996 var _body = null; |
| 4012 | 3997 |
| 4013 if (profileId == null) { | 3998 if (profileId == null) { |
| 4014 throw new core.ArgumentError("Parameter profileId is required."); | 3999 throw new core.ArgumentError("Parameter profileId is required."); |
| 4015 } | 4000 } |
| 4016 if (advertiserIds != null) { | 4001 if (advertiserIds != null) { |
| 4017 _queryParams["advertiserIds"] = advertiserIds; | 4002 _queryParams["advertiserIds"] = advertiserIds; |
| 4018 } | 4003 } |
| 4019 if (groupNumber != null) { | 4004 if (groupNumber != null) { |
| 4020 _queryParams["groupNumber"] = ["${groupNumber}"]; | 4005 _queryParams["groupNumber"] = ["${groupNumber}"]; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4032 _queryParams["searchString"] = [searchString]; | 4017 _queryParams["searchString"] = [searchString]; |
| 4033 } | 4018 } |
| 4034 if (sortField != null) { | 4019 if (sortField != null) { |
| 4035 _queryParams["sortField"] = [sortField]; | 4020 _queryParams["sortField"] = [sortField]; |
| 4036 } | 4021 } |
| 4037 if (sortOrder != null) { | 4022 if (sortOrder != null) { |
| 4038 _queryParams["sortOrder"] = [sortOrder]; | 4023 _queryParams["sortOrder"] = [sortOrder]; |
| 4039 } | 4024 } |
| 4040 | 4025 |
| 4041 | 4026 |
| 4042 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeGroups'; | 4027 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeGroups'; |
| 4043 | 4028 |
| 4044 var _response = _requester.request(_url, | 4029 var _response = _requester.request(_url, |
| 4045 "GET", | 4030 "GET", |
| 4046 body: _body, | 4031 body: _body, |
| 4047 queryParams: _queryParams, | 4032 queryParams: _queryParams, |
| 4048 uploadOptions: _uploadOptions, | 4033 uploadOptions: _uploadOptions, |
| 4049 uploadMedia: _uploadMedia, | 4034 uploadMedia: _uploadMedia, |
| 4050 downloadOptions: _downloadOptions); | 4035 downloadOptions: _downloadOptions); |
| 4051 return _response.then((data) => new CreativeGroupsListResponse.fromJson(data
)); | 4036 return _response.then((data) => new CreativeGroupsListResponse.fromJson(data
)); |
| 4052 } | 4037 } |
| 4053 | 4038 |
| 4054 /** | 4039 /** |
| 4055 * Updates an existing creative group. This method supports patch semantics. | 4040 * Updates an existing creative group. This method supports patch semantics. |
| 4056 * | 4041 * |
| 4057 * [request] - The metadata request object. | 4042 * [request] - The metadata request object. |
| 4058 * | 4043 * |
| 4059 * Request parameters: | 4044 * Request parameters: |
| 4060 * | 4045 * |
| 4061 * [profileId] - User profile ID associated with this request. | 4046 * [profileId] - User profile ID associated with this request. |
| 4062 * | 4047 * |
| 4063 * [id] - Creative group ID. | 4048 * [id] - Creative group ID. |
| 4064 * | 4049 * |
| 4065 * Completes with a [CreativeGroup]. | 4050 * Completes with a [CreativeGroup]. |
| 4066 * | 4051 * |
| 4067 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4052 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4068 * error. | 4053 * error. |
| 4069 * | 4054 * |
| 4070 * If the used [http.Client] completes with an error when making a REST call, | 4055 * If the used [http.Client] completes with an error when making a REST call, |
| 4071 * this method will complete with the same error. | 4056 * this method will complete with the same error. |
| 4072 */ | 4057 */ |
| 4073 async.Future<CreativeGroup> patch(CreativeGroup request, core.String profileId
, core.String id) { | 4058 async.Future<CreativeGroup> patch(CreativeGroup request, core.String profileId
, core.String id) { |
| 4074 var _url = null; | 4059 var _url = null; |
| 4075 var _queryParams = new core.Map(); | 4060 var _queryParams = new core.Map(); |
| 4076 var _uploadMedia = null; | 4061 var _uploadMedia = null; |
| 4077 var _uploadOptions = null; | 4062 var _uploadOptions = null; |
| 4078 var _downloadOptions = common.DownloadOptions.Metadata; | 4063 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4079 var _body = null; | 4064 var _body = null; |
| 4080 | 4065 |
| 4081 if (request != null) { | 4066 if (request != null) { |
| 4082 _body = convert.JSON.encode((request).toJson()); | 4067 _body = convert.JSON.encode((request).toJson()); |
| 4083 } | 4068 } |
| 4084 if (profileId == null) { | 4069 if (profileId == null) { |
| 4085 throw new core.ArgumentError("Parameter profileId is required."); | 4070 throw new core.ArgumentError("Parameter profileId is required."); |
| 4086 } | 4071 } |
| 4087 if (id == null) { | 4072 if (id == null) { |
| 4088 throw new core.ArgumentError("Parameter id is required."); | 4073 throw new core.ArgumentError("Parameter id is required."); |
| 4089 } | 4074 } |
| 4090 _queryParams["id"] = [id]; | 4075 _queryParams["id"] = [id]; |
| 4091 | 4076 |
| 4092 | 4077 |
| 4093 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeGroups'; | 4078 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeGroups'; |
| 4094 | 4079 |
| 4095 var _response = _requester.request(_url, | 4080 var _response = _requester.request(_url, |
| 4096 "PATCH", | 4081 "PATCH", |
| 4097 body: _body, | 4082 body: _body, |
| 4098 queryParams: _queryParams, | 4083 queryParams: _queryParams, |
| 4099 uploadOptions: _uploadOptions, | 4084 uploadOptions: _uploadOptions, |
| 4100 uploadMedia: _uploadMedia, | 4085 uploadMedia: _uploadMedia, |
| 4101 downloadOptions: _downloadOptions); | 4086 downloadOptions: _downloadOptions); |
| 4102 return _response.then((data) => new CreativeGroup.fromJson(data)); | 4087 return _response.then((data) => new CreativeGroup.fromJson(data)); |
| 4103 } | 4088 } |
| 4104 | 4089 |
| 4105 /** | 4090 /** |
| 4106 * Updates an existing creative group. | 4091 * Updates an existing creative group. |
| 4107 * | 4092 * |
| 4108 * [request] - The metadata request object. | 4093 * [request] - The metadata request object. |
| 4109 * | 4094 * |
| 4110 * Request parameters: | 4095 * Request parameters: |
| 4111 * | 4096 * |
| 4112 * [profileId] - User profile ID associated with this request. | 4097 * [profileId] - User profile ID associated with this request. |
| 4113 * | 4098 * |
| 4114 * Completes with a [CreativeGroup]. | 4099 * Completes with a [CreativeGroup]. |
| 4115 * | 4100 * |
| 4116 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4101 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4117 * error. | 4102 * error. |
| 4118 * | 4103 * |
| 4119 * If the used [http.Client] completes with an error when making a REST call, | 4104 * If the used [http.Client] completes with an error when making a REST call, |
| 4120 * this method will complete with the same error. | 4105 * this method will complete with the same error. |
| 4121 */ | 4106 */ |
| 4122 async.Future<CreativeGroup> update(CreativeGroup request, core.String profileI
d) { | 4107 async.Future<CreativeGroup> update(CreativeGroup request, core.String profileI
d) { |
| 4123 var _url = null; | 4108 var _url = null; |
| 4124 var _queryParams = new core.Map(); | 4109 var _queryParams = new core.Map(); |
| 4125 var _uploadMedia = null; | 4110 var _uploadMedia = null; |
| 4126 var _uploadOptions = null; | 4111 var _uploadOptions = null; |
| 4127 var _downloadOptions = common.DownloadOptions.Metadata; | 4112 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4128 var _body = null; | 4113 var _body = null; |
| 4129 | 4114 |
| 4130 if (request != null) { | 4115 if (request != null) { |
| 4131 _body = convert.JSON.encode((request).toJson()); | 4116 _body = convert.JSON.encode((request).toJson()); |
| 4132 } | 4117 } |
| 4133 if (profileId == null) { | 4118 if (profileId == null) { |
| 4134 throw new core.ArgumentError("Parameter profileId is required."); | 4119 throw new core.ArgumentError("Parameter profileId is required."); |
| 4135 } | 4120 } |
| 4136 | 4121 |
| 4137 | 4122 |
| 4138 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creativeGroups'; | 4123 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
ativeGroups'; |
| 4139 | 4124 |
| 4140 var _response = _requester.request(_url, | 4125 var _response = _requester.request(_url, |
| 4141 "PUT", | 4126 "PUT", |
| 4142 body: _body, | 4127 body: _body, |
| 4143 queryParams: _queryParams, | 4128 queryParams: _queryParams, |
| 4144 uploadOptions: _uploadOptions, | 4129 uploadOptions: _uploadOptions, |
| 4145 uploadMedia: _uploadMedia, | 4130 uploadMedia: _uploadMedia, |
| 4146 downloadOptions: _downloadOptions); | 4131 downloadOptions: _downloadOptions); |
| 4147 return _response.then((data) => new CreativeGroup.fromJson(data)); | 4132 return _response.then((data) => new CreativeGroup.fromJson(data)); |
| 4148 } | 4133 } |
| 4149 | 4134 |
| 4150 } | 4135 } |
| 4151 | 4136 |
| 4152 | 4137 |
| 4153 /** Not documented yet. */ | |
| 4154 class CreativesResourceApi { | 4138 class CreativesResourceApi { |
| 4155 final common_internal.ApiRequester _requester; | 4139 final commons.ApiRequester _requester; |
| 4156 | 4140 |
| 4157 CreativesResourceApi(common_internal.ApiRequester client) : | 4141 CreativesResourceApi(commons.ApiRequester client) : |
| 4158 _requester = client; | 4142 _requester = client; |
| 4159 | 4143 |
| 4160 /** | 4144 /** |
| 4161 * Gets one creative by ID. | 4145 * Gets one creative by ID. |
| 4162 * | 4146 * |
| 4163 * Request parameters: | 4147 * Request parameters: |
| 4164 * | 4148 * |
| 4165 * [profileId] - User profile ID associated with this request. | 4149 * [profileId] - User profile ID associated with this request. |
| 4166 * | 4150 * |
| 4167 * [id] - Creative ID. | 4151 * [id] - Creative ID. |
| 4168 * | 4152 * |
| 4169 * Completes with a [Creative]. | 4153 * Completes with a [Creative]. |
| 4170 * | 4154 * |
| 4171 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4172 * error. | 4156 * error. |
| 4173 * | 4157 * |
| 4174 * If the used [http.Client] completes with an error when making a REST call, | 4158 * If the used [http.Client] completes with an error when making a REST call, |
| 4175 * this method will complete with the same error. | 4159 * this method will complete with the same error. |
| 4176 */ | 4160 */ |
| 4177 async.Future<Creative> get(core.String profileId, core.String id) { | 4161 async.Future<Creative> get(core.String profileId, core.String id) { |
| 4178 var _url = null; | 4162 var _url = null; |
| 4179 var _queryParams = new core.Map(); | 4163 var _queryParams = new core.Map(); |
| 4180 var _uploadMedia = null; | 4164 var _uploadMedia = null; |
| 4181 var _uploadOptions = null; | 4165 var _uploadOptions = null; |
| 4182 var _downloadOptions = common.DownloadOptions.Metadata; | 4166 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4183 var _body = null; | 4167 var _body = null; |
| 4184 | 4168 |
| 4185 if (profileId == null) { | 4169 if (profileId == null) { |
| 4186 throw new core.ArgumentError("Parameter profileId is required."); | 4170 throw new core.ArgumentError("Parameter profileId is required."); |
| 4187 } | 4171 } |
| 4188 if (id == null) { | 4172 if (id == null) { |
| 4189 throw new core.ArgumentError("Parameter id is required."); | 4173 throw new core.ArgumentError("Parameter id is required."); |
| 4190 } | 4174 } |
| 4191 | 4175 |
| 4192 | 4176 |
| 4193 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creatives/' + common_internal.Escaper.ecapeVariable('$id'); | 4177 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
atives/' + commons.Escaper.ecapeVariable('$id'); |
| 4194 | 4178 |
| 4195 var _response = _requester.request(_url, | 4179 var _response = _requester.request(_url, |
| 4196 "GET", | 4180 "GET", |
| 4197 body: _body, | 4181 body: _body, |
| 4198 queryParams: _queryParams, | 4182 queryParams: _queryParams, |
| 4199 uploadOptions: _uploadOptions, | 4183 uploadOptions: _uploadOptions, |
| 4200 uploadMedia: _uploadMedia, | 4184 uploadMedia: _uploadMedia, |
| 4201 downloadOptions: _downloadOptions); | 4185 downloadOptions: _downloadOptions); |
| 4202 return _response.then((data) => new Creative.fromJson(data)); | 4186 return _response.then((data) => new Creative.fromJson(data)); |
| 4203 } | 4187 } |
| 4204 | 4188 |
| 4205 /** | 4189 /** |
| 4206 * Inserts a new creative. | 4190 * Inserts a new creative. |
| 4207 * | 4191 * |
| 4208 * [request] - The metadata request object. | 4192 * [request] - The metadata request object. |
| 4209 * | 4193 * |
| 4210 * Request parameters: | 4194 * Request parameters: |
| 4211 * | 4195 * |
| 4212 * [profileId] - User profile ID associated with this request. | 4196 * [profileId] - User profile ID associated with this request. |
| 4213 * | 4197 * |
| 4214 * Completes with a [Creative]. | 4198 * Completes with a [Creative]. |
| 4215 * | 4199 * |
| 4216 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4217 * error. | 4201 * error. |
| 4218 * | 4202 * |
| 4219 * If the used [http.Client] completes with an error when making a REST call, | 4203 * If the used [http.Client] completes with an error when making a REST call, |
| 4220 * this method will complete with the same error. | 4204 * this method will complete with the same error. |
| 4221 */ | 4205 */ |
| 4222 async.Future<Creative> insert(Creative request, core.String profileId) { | 4206 async.Future<Creative> insert(Creative request, core.String profileId) { |
| 4223 var _url = null; | 4207 var _url = null; |
| 4224 var _queryParams = new core.Map(); | 4208 var _queryParams = new core.Map(); |
| 4225 var _uploadMedia = null; | 4209 var _uploadMedia = null; |
| 4226 var _uploadOptions = null; | 4210 var _uploadOptions = null; |
| 4227 var _downloadOptions = common.DownloadOptions.Metadata; | 4211 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4228 var _body = null; | 4212 var _body = null; |
| 4229 | 4213 |
| 4230 if (request != null) { | 4214 if (request != null) { |
| 4231 _body = convert.JSON.encode((request).toJson()); | 4215 _body = convert.JSON.encode((request).toJson()); |
| 4232 } | 4216 } |
| 4233 if (profileId == null) { | 4217 if (profileId == null) { |
| 4234 throw new core.ArgumentError("Parameter profileId is required."); | 4218 throw new core.ArgumentError("Parameter profileId is required."); |
| 4235 } | 4219 } |
| 4236 | 4220 |
| 4237 | 4221 |
| 4238 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creatives'; | 4222 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
atives'; |
| 4239 | 4223 |
| 4240 var _response = _requester.request(_url, | 4224 var _response = _requester.request(_url, |
| 4241 "POST", | 4225 "POST", |
| 4242 body: _body, | 4226 body: _body, |
| 4243 queryParams: _queryParams, | 4227 queryParams: _queryParams, |
| 4244 uploadOptions: _uploadOptions, | 4228 uploadOptions: _uploadOptions, |
| 4245 uploadMedia: _uploadMedia, | 4229 uploadMedia: _uploadMedia, |
| 4246 downloadOptions: _downloadOptions); | 4230 downloadOptions: _downloadOptions); |
| 4247 return _response.then((data) => new Creative.fromJson(data)); | 4231 return _response.then((data) => new Creative.fromJson(data)); |
| 4248 } | 4232 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4272 * [ids] - Select only creatives with these IDs. | 4256 * [ids] - Select only creatives with these IDs. |
| 4273 * | 4257 * |
| 4274 * [maxResults] - Maximum number of results to return. | 4258 * [maxResults] - Maximum number of results to return. |
| 4275 * | 4259 * |
| 4276 * [pageToken] - Value of the nextPageToken from the previous result page. | 4260 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 4277 * | 4261 * |
| 4278 * [renderingIds] - Select only creatives with these rendering IDs. | 4262 * [renderingIds] - Select only creatives with these rendering IDs. |
| 4279 * | 4263 * |
| 4280 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 4264 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 4281 * are allowed. For example, "creative*2015" will return objects with names | 4265 * are allowed. For example, "creative*2015" will return objects with names |
| 4282 * like "creative June 2015", "creative April 2015" or simply "creative 2015". | 4266 * like "creative June 2015", "creative April 2015", or simply "creative |
| 4283 * Most of the searches also add wildcards implicitly at the start and the end | 4267 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 4284 * of the search string. For example, a search string of "creative" will match | 4268 * the end of the search string. For example, a search string of "creative" |
| 4285 * objects with name "my creative", "creative 2015" or simply "creative". | 4269 * will match objects with name "my creative", "creative 2015", or simply |
| 4270 * "creative". |
| 4286 * | 4271 * |
| 4287 * [sizeIds] - Select only creatives with these size IDs. | 4272 * [sizeIds] - Select only creatives with these size IDs. |
| 4288 * | 4273 * |
| 4289 * [sortField] - Field by which to sort the list. | 4274 * [sortField] - Field by which to sort the list. |
| 4290 * Possible string values are: | 4275 * Possible string values are: |
| 4291 * - "ID" | 4276 * - "ID" |
| 4292 * - "NAME" | 4277 * - "NAME" |
| 4293 * | 4278 * |
| 4294 * [sortOrder] - Order of sorted results, default is ASCENDING. | 4279 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 4295 * Possible string values are: | 4280 * Possible string values are: |
| 4296 * - "ASCENDING" | 4281 * - "ASCENDING" |
| 4297 * - "DESCENDING" | 4282 * - "DESCENDING" |
| 4298 * | 4283 * |
| 4299 * [studioCreativeId] - Select only creatives corresponding to this Studio | 4284 * [studioCreativeId] - Select only creatives corresponding to this Studio |
| 4300 * creative ID. | 4285 * creative ID. |
| 4301 * | 4286 * |
| 4302 * [types] - Select only creatives with these creative types. | 4287 * [types] - Select only creatives with these creative types. |
| 4303 * | 4288 * |
| 4304 * Completes with a [CreativesListResponse]. | 4289 * Completes with a [CreativesListResponse]. |
| 4305 * | 4290 * |
| 4306 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4291 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4307 * error. | 4292 * error. |
| 4308 * | 4293 * |
| 4309 * If the used [http.Client] completes with an error when making a REST call, | 4294 * If the used [http.Client] completes with an error when making a REST call, |
| 4310 * this method will complete with the same error. | 4295 * this method will complete with the same error. |
| 4311 */ | 4296 */ |
| 4312 async.Future<CreativesListResponse> list(core.String profileId, {core.bool act
ive, core.String advertiserId, core.bool archived, core.String campaignId, core.
List<core.String> companionCreativeIds, core.List<core.String> creativeFieldIds,
core.List<core.String> ids, core.int maxResults, core.String pageToken, core.Li
st<core.String> renderingIds, core.String searchString, core.List<core.String> s
izeIds, core.String sortField, core.String sortOrder, core.String studioCreative
Id, core.List<core.String> types}) { | 4297 async.Future<CreativesListResponse> list(core.String profileId, {core.bool act
ive, core.String advertiserId, core.bool archived, core.String campaignId, core.
List<core.String> companionCreativeIds, core.List<core.String> creativeFieldIds,
core.List<core.String> ids, core.int maxResults, core.String pageToken, core.Li
st<core.String> renderingIds, core.String searchString, core.List<core.String> s
izeIds, core.String sortField, core.String sortOrder, core.String studioCreative
Id, core.List<core.String> types}) { |
| 4313 var _url = null; | 4298 var _url = null; |
| 4314 var _queryParams = new core.Map(); | 4299 var _queryParams = new core.Map(); |
| 4315 var _uploadMedia = null; | 4300 var _uploadMedia = null; |
| 4316 var _uploadOptions = null; | 4301 var _uploadOptions = null; |
| 4317 var _downloadOptions = common.DownloadOptions.Metadata; | 4302 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4318 var _body = null; | 4303 var _body = null; |
| 4319 | 4304 |
| 4320 if (profileId == null) { | 4305 if (profileId == null) { |
| 4321 throw new core.ArgumentError("Parameter profileId is required."); | 4306 throw new core.ArgumentError("Parameter profileId is required."); |
| 4322 } | 4307 } |
| 4323 if (active != null) { | 4308 if (active != null) { |
| 4324 _queryParams["active"] = ["${active}"]; | 4309 _queryParams["active"] = ["${active}"]; |
| 4325 } | 4310 } |
| 4326 if (advertiserId != null) { | 4311 if (advertiserId != null) { |
| 4327 _queryParams["advertiserId"] = [advertiserId]; | 4312 _queryParams["advertiserId"] = [advertiserId]; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4363 _queryParams["sortOrder"] = [sortOrder]; | 4348 _queryParams["sortOrder"] = [sortOrder]; |
| 4364 } | 4349 } |
| 4365 if (studioCreativeId != null) { | 4350 if (studioCreativeId != null) { |
| 4366 _queryParams["studioCreativeId"] = [studioCreativeId]; | 4351 _queryParams["studioCreativeId"] = [studioCreativeId]; |
| 4367 } | 4352 } |
| 4368 if (types != null) { | 4353 if (types != null) { |
| 4369 _queryParams["types"] = types; | 4354 _queryParams["types"] = types; |
| 4370 } | 4355 } |
| 4371 | 4356 |
| 4372 | 4357 |
| 4373 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creatives'; | 4358 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
atives'; |
| 4374 | 4359 |
| 4375 var _response = _requester.request(_url, | 4360 var _response = _requester.request(_url, |
| 4376 "GET", | 4361 "GET", |
| 4377 body: _body, | 4362 body: _body, |
| 4378 queryParams: _queryParams, | 4363 queryParams: _queryParams, |
| 4379 uploadOptions: _uploadOptions, | 4364 uploadOptions: _uploadOptions, |
| 4380 uploadMedia: _uploadMedia, | 4365 uploadMedia: _uploadMedia, |
| 4381 downloadOptions: _downloadOptions); | 4366 downloadOptions: _downloadOptions); |
| 4382 return _response.then((data) => new CreativesListResponse.fromJson(data)); | 4367 return _response.then((data) => new CreativesListResponse.fromJson(data)); |
| 4383 } | 4368 } |
| 4384 | 4369 |
| 4385 /** | 4370 /** |
| 4386 * Updates an existing creative. This method supports patch semantics. | 4371 * Updates an existing creative. This method supports patch semantics. |
| 4387 * | 4372 * |
| 4388 * [request] - The metadata request object. | 4373 * [request] - The metadata request object. |
| 4389 * | 4374 * |
| 4390 * Request parameters: | 4375 * Request parameters: |
| 4391 * | 4376 * |
| 4392 * [profileId] - User profile ID associated with this request. | 4377 * [profileId] - User profile ID associated with this request. |
| 4393 * | 4378 * |
| 4394 * [id] - Creative ID. | 4379 * [id] - Creative ID. |
| 4395 * | 4380 * |
| 4396 * Completes with a [Creative]. | 4381 * Completes with a [Creative]. |
| 4397 * | 4382 * |
| 4398 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4383 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4399 * error. | 4384 * error. |
| 4400 * | 4385 * |
| 4401 * If the used [http.Client] completes with an error when making a REST call, | 4386 * If the used [http.Client] completes with an error when making a REST call, |
| 4402 * this method will complete with the same error. | 4387 * this method will complete with the same error. |
| 4403 */ | 4388 */ |
| 4404 async.Future<Creative> patch(Creative request, core.String profileId, core.Str
ing id) { | 4389 async.Future<Creative> patch(Creative request, core.String profileId, core.Str
ing id) { |
| 4405 var _url = null; | 4390 var _url = null; |
| 4406 var _queryParams = new core.Map(); | 4391 var _queryParams = new core.Map(); |
| 4407 var _uploadMedia = null; | 4392 var _uploadMedia = null; |
| 4408 var _uploadOptions = null; | 4393 var _uploadOptions = null; |
| 4409 var _downloadOptions = common.DownloadOptions.Metadata; | 4394 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4410 var _body = null; | 4395 var _body = null; |
| 4411 | 4396 |
| 4412 if (request != null) { | 4397 if (request != null) { |
| 4413 _body = convert.JSON.encode((request).toJson()); | 4398 _body = convert.JSON.encode((request).toJson()); |
| 4414 } | 4399 } |
| 4415 if (profileId == null) { | 4400 if (profileId == null) { |
| 4416 throw new core.ArgumentError("Parameter profileId is required."); | 4401 throw new core.ArgumentError("Parameter profileId is required."); |
| 4417 } | 4402 } |
| 4418 if (id == null) { | 4403 if (id == null) { |
| 4419 throw new core.ArgumentError("Parameter id is required."); | 4404 throw new core.ArgumentError("Parameter id is required."); |
| 4420 } | 4405 } |
| 4421 _queryParams["id"] = [id]; | 4406 _queryParams["id"] = [id]; |
| 4422 | 4407 |
| 4423 | 4408 |
| 4424 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creatives'; | 4409 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
atives'; |
| 4425 | 4410 |
| 4426 var _response = _requester.request(_url, | 4411 var _response = _requester.request(_url, |
| 4427 "PATCH", | 4412 "PATCH", |
| 4428 body: _body, | 4413 body: _body, |
| 4429 queryParams: _queryParams, | 4414 queryParams: _queryParams, |
| 4430 uploadOptions: _uploadOptions, | 4415 uploadOptions: _uploadOptions, |
| 4431 uploadMedia: _uploadMedia, | 4416 uploadMedia: _uploadMedia, |
| 4432 downloadOptions: _downloadOptions); | 4417 downloadOptions: _downloadOptions); |
| 4433 return _response.then((data) => new Creative.fromJson(data)); | 4418 return _response.then((data) => new Creative.fromJson(data)); |
| 4434 } | 4419 } |
| 4435 | 4420 |
| 4436 /** | 4421 /** |
| 4437 * Updates an existing creative. | 4422 * Updates an existing creative. |
| 4438 * | 4423 * |
| 4439 * [request] - The metadata request object. | 4424 * [request] - The metadata request object. |
| 4440 * | 4425 * |
| 4441 * Request parameters: | 4426 * Request parameters: |
| 4442 * | 4427 * |
| 4443 * [profileId] - User profile ID associated with this request. | 4428 * [profileId] - User profile ID associated with this request. |
| 4444 * | 4429 * |
| 4445 * Completes with a [Creative]. | 4430 * Completes with a [Creative]. |
| 4446 * | 4431 * |
| 4447 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4432 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4448 * error. | 4433 * error. |
| 4449 * | 4434 * |
| 4450 * If the used [http.Client] completes with an error when making a REST call, | 4435 * If the used [http.Client] completes with an error when making a REST call, |
| 4451 * this method will complete with the same error. | 4436 * this method will complete with the same error. |
| 4452 */ | 4437 */ |
| 4453 async.Future<Creative> update(Creative request, core.String profileId) { | 4438 async.Future<Creative> update(Creative request, core.String profileId) { |
| 4454 var _url = null; | 4439 var _url = null; |
| 4455 var _queryParams = new core.Map(); | 4440 var _queryParams = new core.Map(); |
| 4456 var _uploadMedia = null; | 4441 var _uploadMedia = null; |
| 4457 var _uploadOptions = null; | 4442 var _uploadOptions = null; |
| 4458 var _downloadOptions = common.DownloadOptions.Metadata; | 4443 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4459 var _body = null; | 4444 var _body = null; |
| 4460 | 4445 |
| 4461 if (request != null) { | 4446 if (request != null) { |
| 4462 _body = convert.JSON.encode((request).toJson()); | 4447 _body = convert.JSON.encode((request).toJson()); |
| 4463 } | 4448 } |
| 4464 if (profileId == null) { | 4449 if (profileId == null) { |
| 4465 throw new core.ArgumentError("Parameter profileId is required."); | 4450 throw new core.ArgumentError("Parameter profileId is required."); |
| 4466 } | 4451 } |
| 4467 | 4452 |
| 4468 | 4453 |
| 4469 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/creatives'; | 4454 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cre
atives'; |
| 4470 | 4455 |
| 4471 var _response = _requester.request(_url, | 4456 var _response = _requester.request(_url, |
| 4472 "PUT", | 4457 "PUT", |
| 4473 body: _body, | 4458 body: _body, |
| 4474 queryParams: _queryParams, | 4459 queryParams: _queryParams, |
| 4475 uploadOptions: _uploadOptions, | 4460 uploadOptions: _uploadOptions, |
| 4476 uploadMedia: _uploadMedia, | 4461 uploadMedia: _uploadMedia, |
| 4477 downloadOptions: _downloadOptions); | 4462 downloadOptions: _downloadOptions); |
| 4478 return _response.then((data) => new Creative.fromJson(data)); | 4463 return _response.then((data) => new Creative.fromJson(data)); |
| 4479 } | 4464 } |
| 4480 | 4465 |
| 4481 } | 4466 } |
| 4482 | 4467 |
| 4483 | 4468 |
| 4484 /** Not documented yet. */ | |
| 4485 class DimensionValuesResourceApi { | 4469 class DimensionValuesResourceApi { |
| 4486 final common_internal.ApiRequester _requester; | 4470 final commons.ApiRequester _requester; |
| 4487 | 4471 |
| 4488 DimensionValuesResourceApi(common_internal.ApiRequester client) : | 4472 DimensionValuesResourceApi(commons.ApiRequester client) : |
| 4489 _requester = client; | 4473 _requester = client; |
| 4490 | 4474 |
| 4491 /** | 4475 /** |
| 4492 * Retrieves list of report dimension values for a list of filters. | 4476 * Retrieves list of report dimension values for a list of filters. |
| 4493 * | 4477 * |
| 4494 * [request] - The metadata request object. | 4478 * [request] - The metadata request object. |
| 4495 * | 4479 * |
| 4496 * Request parameters: | 4480 * Request parameters: |
| 4497 * | 4481 * |
| 4498 * [profileId] - The DFA user profile ID. | 4482 * [profileId] - The DFA user profile ID. |
| 4499 * | 4483 * |
| 4500 * [maxResults] - Maximum number of results to return. | 4484 * [maxResults] - Maximum number of results to return. |
| 4501 * Value must be between "0" and "100". | 4485 * Value must be between "0" and "100". |
| 4502 * | 4486 * |
| 4503 * [pageToken] - The value of the nextToken from the previous result page. | 4487 * [pageToken] - The value of the nextToken from the previous result page. |
| 4504 * | 4488 * |
| 4505 * Completes with a [DimensionValueList]. | 4489 * Completes with a [DimensionValueList]. |
| 4506 * | 4490 * |
| 4507 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4491 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4508 * error. | 4492 * error. |
| 4509 * | 4493 * |
| 4510 * If the used [http.Client] completes with an error when making a REST call, | 4494 * If the used [http.Client] completes with an error when making a REST call, |
| 4511 * this method will complete with the same error. | 4495 * this method will complete with the same error. |
| 4512 */ | 4496 */ |
| 4513 async.Future<DimensionValueList> query(DimensionValueRequest request, core.Str
ing profileId, {core.int maxResults, core.String pageToken}) { | 4497 async.Future<DimensionValueList> query(DimensionValueRequest request, core.Str
ing profileId, {core.int maxResults, core.String pageToken}) { |
| 4514 var _url = null; | 4498 var _url = null; |
| 4515 var _queryParams = new core.Map(); | 4499 var _queryParams = new core.Map(); |
| 4516 var _uploadMedia = null; | 4500 var _uploadMedia = null; |
| 4517 var _uploadOptions = null; | 4501 var _uploadOptions = null; |
| 4518 var _downloadOptions = common.DownloadOptions.Metadata; | 4502 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4519 var _body = null; | 4503 var _body = null; |
| 4520 | 4504 |
| 4521 if (request != null) { | 4505 if (request != null) { |
| 4522 _body = convert.JSON.encode((request).toJson()); | 4506 _body = convert.JSON.encode((request).toJson()); |
| 4523 } | 4507 } |
| 4524 if (profileId == null) { | 4508 if (profileId == null) { |
| 4525 throw new core.ArgumentError("Parameter profileId is required."); | 4509 throw new core.ArgumentError("Parameter profileId is required."); |
| 4526 } | 4510 } |
| 4527 if (maxResults != null) { | 4511 if (maxResults != null) { |
| 4528 _queryParams["maxResults"] = ["${maxResults}"]; | 4512 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4529 } | 4513 } |
| 4530 if (pageToken != null) { | 4514 if (pageToken != null) { |
| 4531 _queryParams["pageToken"] = [pageToken]; | 4515 _queryParams["pageToken"] = [pageToken]; |
| 4532 } | 4516 } |
| 4533 | 4517 |
| 4534 | 4518 |
| 4535 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/dimensionvalues/query'; | 4519 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dim
ensionvalues/query'; |
| 4536 | 4520 |
| 4537 var _response = _requester.request(_url, | 4521 var _response = _requester.request(_url, |
| 4538 "POST", | 4522 "POST", |
| 4539 body: _body, | 4523 body: _body, |
| 4540 queryParams: _queryParams, | 4524 queryParams: _queryParams, |
| 4541 uploadOptions: _uploadOptions, | 4525 uploadOptions: _uploadOptions, |
| 4542 uploadMedia: _uploadMedia, | 4526 uploadMedia: _uploadMedia, |
| 4543 downloadOptions: _downloadOptions); | 4527 downloadOptions: _downloadOptions); |
| 4544 return _response.then((data) => new DimensionValueList.fromJson(data)); | 4528 return _response.then((data) => new DimensionValueList.fromJson(data)); |
| 4545 } | 4529 } |
| 4546 | 4530 |
| 4547 } | 4531 } |
| 4548 | 4532 |
| 4549 | 4533 |
| 4550 /** Not documented yet. */ | |
| 4551 class DirectorySiteContactsResourceApi { | 4534 class DirectorySiteContactsResourceApi { |
| 4552 final common_internal.ApiRequester _requester; | 4535 final commons.ApiRequester _requester; |
| 4553 | 4536 |
| 4554 DirectorySiteContactsResourceApi(common_internal.ApiRequester client) : | 4537 DirectorySiteContactsResourceApi(commons.ApiRequester client) : |
| 4555 _requester = client; | 4538 _requester = client; |
| 4556 | 4539 |
| 4557 /** | 4540 /** |
| 4558 * Gets one directory site contact by ID. | 4541 * Gets one directory site contact by ID. |
| 4559 * | 4542 * |
| 4560 * Request parameters: | 4543 * Request parameters: |
| 4561 * | 4544 * |
| 4562 * [profileId] - User profile ID associated with this request. | 4545 * [profileId] - User profile ID associated with this request. |
| 4563 * | 4546 * |
| 4564 * [id] - Directory site contact ID. | 4547 * [id] - Directory site contact ID. |
| 4565 * | 4548 * |
| 4566 * Completes with a [DirectorySiteContact]. | 4549 * Completes with a [DirectorySiteContact]. |
| 4567 * | 4550 * |
| 4568 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4551 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4569 * error. | 4552 * error. |
| 4570 * | 4553 * |
| 4571 * If the used [http.Client] completes with an error when making a REST call, | 4554 * If the used [http.Client] completes with an error when making a REST call, |
| 4572 * this method will complete with the same error. | 4555 * this method will complete with the same error. |
| 4573 */ | 4556 */ |
| 4574 async.Future<DirectorySiteContact> get(core.String profileId, core.String id)
{ | 4557 async.Future<DirectorySiteContact> get(core.String profileId, core.String id)
{ |
| 4575 var _url = null; | 4558 var _url = null; |
| 4576 var _queryParams = new core.Map(); | 4559 var _queryParams = new core.Map(); |
| 4577 var _uploadMedia = null; | 4560 var _uploadMedia = null; |
| 4578 var _uploadOptions = null; | 4561 var _uploadOptions = null; |
| 4579 var _downloadOptions = common.DownloadOptions.Metadata; | 4562 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4580 var _body = null; | 4563 var _body = null; |
| 4581 | 4564 |
| 4582 if (profileId == null) { | 4565 if (profileId == null) { |
| 4583 throw new core.ArgumentError("Parameter profileId is required."); | 4566 throw new core.ArgumentError("Parameter profileId is required."); |
| 4584 } | 4567 } |
| 4585 if (id == null) { | 4568 if (id == null) { |
| 4586 throw new core.ArgumentError("Parameter id is required."); | 4569 throw new core.ArgumentError("Parameter id is required."); |
| 4587 } | 4570 } |
| 4588 | 4571 |
| 4589 | 4572 |
| 4590 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/directorySiteContacts/' + common_internal.Escaper.ecapeVariable('$id'); | 4573 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dir
ectorySiteContacts/' + commons.Escaper.ecapeVariable('$id'); |
| 4591 | 4574 |
| 4592 var _response = _requester.request(_url, | 4575 var _response = _requester.request(_url, |
| 4593 "GET", | 4576 "GET", |
| 4594 body: _body, | 4577 body: _body, |
| 4595 queryParams: _queryParams, | 4578 queryParams: _queryParams, |
| 4596 uploadOptions: _uploadOptions, | 4579 uploadOptions: _uploadOptions, |
| 4597 uploadMedia: _uploadMedia, | 4580 uploadMedia: _uploadMedia, |
| 4598 downloadOptions: _downloadOptions); | 4581 downloadOptions: _downloadOptions); |
| 4599 return _response.then((data) => new DirectorySiteContact.fromJson(data)); | 4582 return _response.then((data) => new DirectorySiteContact.fromJson(data)); |
| 4600 } | 4583 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4611 * | 4594 * |
| 4612 * [ids] - Select only directory site contacts with these IDs. | 4595 * [ids] - Select only directory site contacts with these IDs. |
| 4613 * | 4596 * |
| 4614 * [maxResults] - Maximum number of results to return. | 4597 * [maxResults] - Maximum number of results to return. |
| 4615 * | 4598 * |
| 4616 * [pageToken] - Value of the nextPageToken from the previous result page. | 4599 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 4617 * | 4600 * |
| 4618 * [searchString] - Allows searching for objects by name, ID or email. | 4601 * [searchString] - Allows searching for objects by name, ID or email. |
| 4619 * Wildcards (*) are allowed. For example, "directory site contact*2015" will | 4602 * Wildcards (*) are allowed. For example, "directory site contact*2015" will |
| 4620 * return objects with names like "directory site contact June 2015", | 4603 * return objects with names like "directory site contact June 2015", |
| 4621 * "directory site contact April 2015" or simply "directory site contact | 4604 * "directory site contact April 2015", or simply "directory site contact |
| 4622 * 2015". Most of the searches also add wildcards implicitly at the start and | 4605 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 4623 * the end of the search string. For example, a search string of "directory | 4606 * the end of the search string. For example, a search string of "directory |
| 4624 * site contact" will match objects with name "my directory site contact", | 4607 * site contact" will match objects with name "my directory site contact", |
| 4625 * "directory site contact 2015" or simply "directory site contact". | 4608 * "directory site contact 2015", or simply "directory site contact". |
| 4626 * | 4609 * |
| 4627 * [sortField] - Field by which to sort the list. | 4610 * [sortField] - Field by which to sort the list. |
| 4628 * Possible string values are: | 4611 * Possible string values are: |
| 4629 * - "ID" | 4612 * - "ID" |
| 4630 * - "NAME" | 4613 * - "NAME" |
| 4631 * | 4614 * |
| 4632 * [sortOrder] - Order of sorted results, default is ASCENDING. | 4615 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 4633 * Possible string values are: | 4616 * Possible string values are: |
| 4634 * - "ASCENDING" | 4617 * - "ASCENDING" |
| 4635 * - "DESCENDING" | 4618 * - "DESCENDING" |
| 4636 * | 4619 * |
| 4637 * Completes with a [DirectorySiteContactsListResponse]. | 4620 * Completes with a [DirectorySiteContactsListResponse]. |
| 4638 * | 4621 * |
| 4639 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4622 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4640 * error. | 4623 * error. |
| 4641 * | 4624 * |
| 4642 * If the used [http.Client] completes with an error when making a REST call, | 4625 * If the used [http.Client] completes with an error when making a REST call, |
| 4643 * this method will complete with the same error. | 4626 * this method will complete with the same error. |
| 4644 */ | 4627 */ |
| 4645 async.Future<DirectorySiteContactsListResponse> list(core.String profileId, {c
ore.List<core.String> directorySiteIds, core.List<core.String> ids, core.int max
Results, core.String pageToken, core.String searchString, core.String sortField,
core.String sortOrder}) { | 4628 async.Future<DirectorySiteContactsListResponse> list(core.String profileId, {c
ore.List<core.String> directorySiteIds, core.List<core.String> ids, core.int max
Results, core.String pageToken, core.String searchString, core.String sortField,
core.String sortOrder}) { |
| 4646 var _url = null; | 4629 var _url = null; |
| 4647 var _queryParams = new core.Map(); | 4630 var _queryParams = new core.Map(); |
| 4648 var _uploadMedia = null; | 4631 var _uploadMedia = null; |
| 4649 var _uploadOptions = null; | 4632 var _uploadOptions = null; |
| 4650 var _downloadOptions = common.DownloadOptions.Metadata; | 4633 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4651 var _body = null; | 4634 var _body = null; |
| 4652 | 4635 |
| 4653 if (profileId == null) { | 4636 if (profileId == null) { |
| 4654 throw new core.ArgumentError("Parameter profileId is required."); | 4637 throw new core.ArgumentError("Parameter profileId is required."); |
| 4655 } | 4638 } |
| 4656 if (directorySiteIds != null) { | 4639 if (directorySiteIds != null) { |
| 4657 _queryParams["directorySiteIds"] = directorySiteIds; | 4640 _queryParams["directorySiteIds"] = directorySiteIds; |
| 4658 } | 4641 } |
| 4659 if (ids != null) { | 4642 if (ids != null) { |
| 4660 _queryParams["ids"] = ids; | 4643 _queryParams["ids"] = ids; |
| 4661 } | 4644 } |
| 4662 if (maxResults != null) { | 4645 if (maxResults != null) { |
| 4663 _queryParams["maxResults"] = ["${maxResults}"]; | 4646 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4664 } | 4647 } |
| 4665 if (pageToken != null) { | 4648 if (pageToken != null) { |
| 4666 _queryParams["pageToken"] = [pageToken]; | 4649 _queryParams["pageToken"] = [pageToken]; |
| 4667 } | 4650 } |
| 4668 if (searchString != null) { | 4651 if (searchString != null) { |
| 4669 _queryParams["searchString"] = [searchString]; | 4652 _queryParams["searchString"] = [searchString]; |
| 4670 } | 4653 } |
| 4671 if (sortField != null) { | 4654 if (sortField != null) { |
| 4672 _queryParams["sortField"] = [sortField]; | 4655 _queryParams["sortField"] = [sortField]; |
| 4673 } | 4656 } |
| 4674 if (sortOrder != null) { | 4657 if (sortOrder != null) { |
| 4675 _queryParams["sortOrder"] = [sortOrder]; | 4658 _queryParams["sortOrder"] = [sortOrder]; |
| 4676 } | 4659 } |
| 4677 | 4660 |
| 4678 | 4661 |
| 4679 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/directorySiteContacts'; | 4662 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dir
ectorySiteContacts'; |
| 4680 | 4663 |
| 4681 var _response = _requester.request(_url, | 4664 var _response = _requester.request(_url, |
| 4682 "GET", | 4665 "GET", |
| 4683 body: _body, | 4666 body: _body, |
| 4684 queryParams: _queryParams, | 4667 queryParams: _queryParams, |
| 4685 uploadOptions: _uploadOptions, | 4668 uploadOptions: _uploadOptions, |
| 4686 uploadMedia: _uploadMedia, | 4669 uploadMedia: _uploadMedia, |
| 4687 downloadOptions: _downloadOptions); | 4670 downloadOptions: _downloadOptions); |
| 4688 return _response.then((data) => new DirectorySiteContactsListResponse.fromJs
on(data)); | 4671 return _response.then((data) => new DirectorySiteContactsListResponse.fromJs
on(data)); |
| 4689 } | 4672 } |
| 4690 | 4673 |
| 4691 } | 4674 } |
| 4692 | 4675 |
| 4693 | 4676 |
| 4694 /** Not documented yet. */ | |
| 4695 class DirectorySitesResourceApi { | 4677 class DirectorySitesResourceApi { |
| 4696 final common_internal.ApiRequester _requester; | 4678 final commons.ApiRequester _requester; |
| 4697 | 4679 |
| 4698 DirectorySitesResourceApi(common_internal.ApiRequester client) : | 4680 DirectorySitesResourceApi(commons.ApiRequester client) : |
| 4699 _requester = client; | 4681 _requester = client; |
| 4700 | 4682 |
| 4701 /** | 4683 /** |
| 4702 * Gets one directory site by ID. | 4684 * Gets one directory site by ID. |
| 4703 * | 4685 * |
| 4704 * Request parameters: | 4686 * Request parameters: |
| 4705 * | 4687 * |
| 4706 * [profileId] - User profile ID associated with this request. | 4688 * [profileId] - User profile ID associated with this request. |
| 4707 * | 4689 * |
| 4708 * [id] - Directory site ID. | 4690 * [id] - Directory site ID. |
| 4709 * | 4691 * |
| 4710 * Completes with a [DirectorySite]. | 4692 * Completes with a [DirectorySite]. |
| 4711 * | 4693 * |
| 4712 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4694 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4713 * error. | 4695 * error. |
| 4714 * | 4696 * |
| 4715 * If the used [http.Client] completes with an error when making a REST call, | 4697 * If the used [http.Client] completes with an error when making a REST call, |
| 4716 * this method will complete with the same error. | 4698 * this method will complete with the same error. |
| 4717 */ | 4699 */ |
| 4718 async.Future<DirectorySite> get(core.String profileId, core.String id) { | 4700 async.Future<DirectorySite> get(core.String profileId, core.String id) { |
| 4719 var _url = null; | 4701 var _url = null; |
| 4720 var _queryParams = new core.Map(); | 4702 var _queryParams = new core.Map(); |
| 4721 var _uploadMedia = null; | 4703 var _uploadMedia = null; |
| 4722 var _uploadOptions = null; | 4704 var _uploadOptions = null; |
| 4723 var _downloadOptions = common.DownloadOptions.Metadata; | 4705 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4724 var _body = null; | 4706 var _body = null; |
| 4725 | 4707 |
| 4726 if (profileId == null) { | 4708 if (profileId == null) { |
| 4727 throw new core.ArgumentError("Parameter profileId is required."); | 4709 throw new core.ArgumentError("Parameter profileId is required."); |
| 4728 } | 4710 } |
| 4729 if (id == null) { | 4711 if (id == null) { |
| 4730 throw new core.ArgumentError("Parameter id is required."); | 4712 throw new core.ArgumentError("Parameter id is required."); |
| 4731 } | 4713 } |
| 4732 | 4714 |
| 4733 | 4715 |
| 4734 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/directorySites/' + common_internal.Escaper.ecapeVariable('$id'); | 4716 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dir
ectorySites/' + commons.Escaper.ecapeVariable('$id'); |
| 4735 | 4717 |
| 4736 var _response = _requester.request(_url, | 4718 var _response = _requester.request(_url, |
| 4737 "GET", | 4719 "GET", |
| 4738 body: _body, | 4720 body: _body, |
| 4739 queryParams: _queryParams, | 4721 queryParams: _queryParams, |
| 4740 uploadOptions: _uploadOptions, | 4722 uploadOptions: _uploadOptions, |
| 4741 uploadMedia: _uploadMedia, | 4723 uploadMedia: _uploadMedia, |
| 4742 downloadOptions: _downloadOptions); | 4724 downloadOptions: _downloadOptions); |
| 4743 return _response.then((data) => new DirectorySite.fromJson(data)); | 4725 return _response.then((data) => new DirectorySite.fromJson(data)); |
| 4744 } | 4726 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 4769 * [ids] - Select only directory sites with these IDs. | 4751 * [ids] - Select only directory sites with these IDs. |
| 4770 * | 4752 * |
| 4771 * [maxResults] - Maximum number of results to return. | 4753 * [maxResults] - Maximum number of results to return. |
| 4772 * | 4754 * |
| 4773 * [pageToken] - Value of the nextPageToken from the previous result page. | 4755 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 4774 * | 4756 * |
| 4775 * [parentId] - Select only directory sites with this parent ID. | 4757 * [parentId] - Select only directory sites with this parent ID. |
| 4776 * | 4758 * |
| 4777 * [searchString] - Allows searching for objects by name, ID or URL. Wildcards | 4759 * [searchString] - Allows searching for objects by name, ID or URL. Wildcards |
| 4778 * (*) are allowed. For example, "directory site*2015" will return objects | 4760 * (*) are allowed. For example, "directory site*2015" will return objects |
| 4779 * with names like "directory site June 2015", "directory site April 2015" or | 4761 * with names like "directory site June 2015", "directory site April 2015", or |
| 4780 * simply "directory site 2015". Most of the searches also add wildcards | 4762 * simply "directory site 2015". Most of the searches also add wildcards |
| 4781 * implicitly at the start and the end of the search string. For example, a | 4763 * implicitly at the start and the end of the search string. For example, a |
| 4782 * search string of "directory site" will match objects with name "my | 4764 * search string of "directory site" will match objects with name "my |
| 4783 * directory site", "directory site 2015" or simply "directory site". | 4765 * directory site", "directory site 2015" or simply, "directory site". |
| 4784 * | 4766 * |
| 4785 * [sortField] - Field by which to sort the list. | 4767 * [sortField] - Field by which to sort the list. |
| 4786 * Possible string values are: | 4768 * Possible string values are: |
| 4787 * - "ID" | 4769 * - "ID" |
| 4788 * - "NAME" | 4770 * - "NAME" |
| 4789 * | 4771 * |
| 4790 * [sortOrder] - Order of sorted results, default is ASCENDING. | 4772 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 4791 * Possible string values are: | 4773 * Possible string values are: |
| 4792 * - "ASCENDING" | 4774 * - "ASCENDING" |
| 4793 * - "DESCENDING" | 4775 * - "DESCENDING" |
| 4794 * | 4776 * |
| 4795 * Completes with a [DirectorySitesListResponse]. | 4777 * Completes with a [DirectorySitesListResponse]. |
| 4796 * | 4778 * |
| 4797 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4779 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4798 * error. | 4780 * error. |
| 4799 * | 4781 * |
| 4800 * If the used [http.Client] completes with an error when making a REST call, | 4782 * If the used [http.Client] completes with an error when making a REST call, |
| 4801 * this method will complete with the same error. | 4783 * this method will complete with the same error. |
| 4802 */ | 4784 */ |
| 4803 async.Future<DirectorySitesListResponse> list(core.String profileId, {core.boo
l acceptsInStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.
bool acceptsPublisherPaidPlacements, core.bool active, core.String countryId, co
re.String dfpNetworkCode, core.List<core.String> ids, core.int maxResults, core.
String pageToken, core.String parentId, core.String searchString, core.String so
rtField, core.String sortOrder}) { | 4785 async.Future<DirectorySitesListResponse> list(core.String profileId, {core.boo
l acceptsInStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.
bool acceptsPublisherPaidPlacements, core.bool active, core.String countryId, co
re.String dfpNetworkCode, core.List<core.String> ids, core.int maxResults, core.
String pageToken, core.String parentId, core.String searchString, core.String so
rtField, core.String sortOrder}) { |
| 4804 var _url = null; | 4786 var _url = null; |
| 4805 var _queryParams = new core.Map(); | 4787 var _queryParams = new core.Map(); |
| 4806 var _uploadMedia = null; | 4788 var _uploadMedia = null; |
| 4807 var _uploadOptions = null; | 4789 var _uploadOptions = null; |
| 4808 var _downloadOptions = common.DownloadOptions.Metadata; | 4790 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4809 var _body = null; | 4791 var _body = null; |
| 4810 | 4792 |
| 4811 if (profileId == null) { | 4793 if (profileId == null) { |
| 4812 throw new core.ArgumentError("Parameter profileId is required."); | 4794 throw new core.ArgumentError("Parameter profileId is required."); |
| 4813 } | 4795 } |
| 4814 if (acceptsInStreamVideoPlacements != null) { | 4796 if (acceptsInStreamVideoPlacements != null) { |
| 4815 _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoP
lacements}"]; | 4797 _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoP
lacements}"]; |
| 4816 } | 4798 } |
| 4817 if (acceptsInterstitialPlacements != null) { | 4799 if (acceptsInterstitialPlacements != null) { |
| 4818 _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPla
cements}"]; | 4800 _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPla
cements}"]; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 4845 _queryParams["searchString"] = [searchString]; | 4827 _queryParams["searchString"] = [searchString]; |
| 4846 } | 4828 } |
| 4847 if (sortField != null) { | 4829 if (sortField != null) { |
| 4848 _queryParams["sortField"] = [sortField]; | 4830 _queryParams["sortField"] = [sortField]; |
| 4849 } | 4831 } |
| 4850 if (sortOrder != null) { | 4832 if (sortOrder != null) { |
| 4851 _queryParams["sortOrder"] = [sortOrder]; | 4833 _queryParams["sortOrder"] = [sortOrder]; |
| 4852 } | 4834 } |
| 4853 | 4835 |
| 4854 | 4836 |
| 4855 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/directorySites'; | 4837 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dir
ectorySites'; |
| 4856 | 4838 |
| 4857 var _response = _requester.request(_url, | 4839 var _response = _requester.request(_url, |
| 4858 "GET", | 4840 "GET", |
| 4859 body: _body, | 4841 body: _body, |
| 4860 queryParams: _queryParams, | 4842 queryParams: _queryParams, |
| 4861 uploadOptions: _uploadOptions, | 4843 uploadOptions: _uploadOptions, |
| 4862 uploadMedia: _uploadMedia, | 4844 uploadMedia: _uploadMedia, |
| 4863 downloadOptions: _downloadOptions); | 4845 downloadOptions: _downloadOptions); |
| 4864 return _response.then((data) => new DirectorySitesListResponse.fromJson(data
)); | 4846 return _response.then((data) => new DirectorySitesListResponse.fromJson(data
)); |
| 4865 } | 4847 } |
| 4866 | 4848 |
| 4867 } | 4849 } |
| 4868 | 4850 |
| 4869 | 4851 |
| 4870 /** Not documented yet. */ | |
| 4871 class EventTagsResourceApi { | 4852 class EventTagsResourceApi { |
| 4872 final common_internal.ApiRequester _requester; | 4853 final commons.ApiRequester _requester; |
| 4873 | 4854 |
| 4874 EventTagsResourceApi(common_internal.ApiRequester client) : | 4855 EventTagsResourceApi(commons.ApiRequester client) : |
| 4875 _requester = client; | 4856 _requester = client; |
| 4876 | 4857 |
| 4877 /** | 4858 /** |
| 4878 * Deletes an existing event tag. | 4859 * Deletes an existing event tag. |
| 4879 * | 4860 * |
| 4880 * Request parameters: | 4861 * Request parameters: |
| 4881 * | 4862 * |
| 4882 * [profileId] - User profile ID associated with this request. | 4863 * [profileId] - User profile ID associated with this request. |
| 4883 * | 4864 * |
| 4884 * [id] - Event tag ID. | 4865 * [id] - Event tag ID. |
| 4885 * | 4866 * |
| 4886 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4867 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4887 * error. | 4868 * error. |
| 4888 * | 4869 * |
| 4889 * If the used [http.Client] completes with an error when making a REST call, | 4870 * If the used [http.Client] completes with an error when making a REST call, |
| 4890 * this method will complete with the same error. | 4871 * this method will complete with the same error. |
| 4891 */ | 4872 */ |
| 4892 async.Future delete(core.String profileId, core.String id) { | 4873 async.Future delete(core.String profileId, core.String id) { |
| 4893 var _url = null; | 4874 var _url = null; |
| 4894 var _queryParams = new core.Map(); | 4875 var _queryParams = new core.Map(); |
| 4895 var _uploadMedia = null; | 4876 var _uploadMedia = null; |
| 4896 var _uploadOptions = null; | 4877 var _uploadOptions = null; |
| 4897 var _downloadOptions = common.DownloadOptions.Metadata; | 4878 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4898 var _body = null; | 4879 var _body = null; |
| 4899 | 4880 |
| 4900 if (profileId == null) { | 4881 if (profileId == null) { |
| 4901 throw new core.ArgumentError("Parameter profileId is required."); | 4882 throw new core.ArgumentError("Parameter profileId is required."); |
| 4902 } | 4883 } |
| 4903 if (id == null) { | 4884 if (id == null) { |
| 4904 throw new core.ArgumentError("Parameter id is required."); | 4885 throw new core.ArgumentError("Parameter id is required."); |
| 4905 } | 4886 } |
| 4906 | 4887 |
| 4907 _downloadOptions = null; | 4888 _downloadOptions = null; |
| 4908 | 4889 |
| 4909 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/eventTags/' + common_internal.Escaper.ecapeVariable('$id'); | 4890 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eve
ntTags/' + commons.Escaper.ecapeVariable('$id'); |
| 4910 | 4891 |
| 4911 var _response = _requester.request(_url, | 4892 var _response = _requester.request(_url, |
| 4912 "DELETE", | 4893 "DELETE", |
| 4913 body: _body, | 4894 body: _body, |
| 4914 queryParams: _queryParams, | 4895 queryParams: _queryParams, |
| 4915 uploadOptions: _uploadOptions, | 4896 uploadOptions: _uploadOptions, |
| 4916 uploadMedia: _uploadMedia, | 4897 uploadMedia: _uploadMedia, |
| 4917 downloadOptions: _downloadOptions); | 4898 downloadOptions: _downloadOptions); |
| 4918 return _response.then((data) => null); | 4899 return _response.then((data) => null); |
| 4919 } | 4900 } |
| 4920 | 4901 |
| 4921 /** | 4902 /** |
| 4922 * Gets one event tag by ID. | 4903 * Gets one event tag by ID. |
| 4923 * | 4904 * |
| 4924 * Request parameters: | 4905 * Request parameters: |
| 4925 * | 4906 * |
| 4926 * [profileId] - User profile ID associated with this request. | 4907 * [profileId] - User profile ID associated with this request. |
| 4927 * | 4908 * |
| 4928 * [id] - Event tag ID. | 4909 * [id] - Event tag ID. |
| 4929 * | 4910 * |
| 4930 * Completes with a [EventTag]. | 4911 * Completes with a [EventTag]. |
| 4931 * | 4912 * |
| 4932 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4913 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4933 * error. | 4914 * error. |
| 4934 * | 4915 * |
| 4935 * If the used [http.Client] completes with an error when making a REST call, | 4916 * If the used [http.Client] completes with an error when making a REST call, |
| 4936 * this method will complete with the same error. | 4917 * this method will complete with the same error. |
| 4937 */ | 4918 */ |
| 4938 async.Future<EventTag> get(core.String profileId, core.String id) { | 4919 async.Future<EventTag> get(core.String profileId, core.String id) { |
| 4939 var _url = null; | 4920 var _url = null; |
| 4940 var _queryParams = new core.Map(); | 4921 var _queryParams = new core.Map(); |
| 4941 var _uploadMedia = null; | 4922 var _uploadMedia = null; |
| 4942 var _uploadOptions = null; | 4923 var _uploadOptions = null; |
| 4943 var _downloadOptions = common.DownloadOptions.Metadata; | 4924 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4944 var _body = null; | 4925 var _body = null; |
| 4945 | 4926 |
| 4946 if (profileId == null) { | 4927 if (profileId == null) { |
| 4947 throw new core.ArgumentError("Parameter profileId is required."); | 4928 throw new core.ArgumentError("Parameter profileId is required."); |
| 4948 } | 4929 } |
| 4949 if (id == null) { | 4930 if (id == null) { |
| 4950 throw new core.ArgumentError("Parameter id is required."); | 4931 throw new core.ArgumentError("Parameter id is required."); |
| 4951 } | 4932 } |
| 4952 | 4933 |
| 4953 | 4934 |
| 4954 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/eventTags/' + common_internal.Escaper.ecapeVariable('$id'); | 4935 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eve
ntTags/' + commons.Escaper.ecapeVariable('$id'); |
| 4955 | 4936 |
| 4956 var _response = _requester.request(_url, | 4937 var _response = _requester.request(_url, |
| 4957 "GET", | 4938 "GET", |
| 4958 body: _body, | 4939 body: _body, |
| 4959 queryParams: _queryParams, | 4940 queryParams: _queryParams, |
| 4960 uploadOptions: _uploadOptions, | 4941 uploadOptions: _uploadOptions, |
| 4961 uploadMedia: _uploadMedia, | 4942 uploadMedia: _uploadMedia, |
| 4962 downloadOptions: _downloadOptions); | 4943 downloadOptions: _downloadOptions); |
| 4963 return _response.then((data) => new EventTag.fromJson(data)); | 4944 return _response.then((data) => new EventTag.fromJson(data)); |
| 4964 } | 4945 } |
| 4965 | 4946 |
| 4966 /** | 4947 /** |
| 4967 * Inserts a new event tag. | 4948 * Inserts a new event tag. |
| 4968 * | 4949 * |
| 4969 * [request] - The metadata request object. | 4950 * [request] - The metadata request object. |
| 4970 * | 4951 * |
| 4971 * Request parameters: | 4952 * Request parameters: |
| 4972 * | 4953 * |
| 4973 * [profileId] - User profile ID associated with this request. | 4954 * [profileId] - User profile ID associated with this request. |
| 4974 * | 4955 * |
| 4975 * Completes with a [EventTag]. | 4956 * Completes with a [EventTag]. |
| 4976 * | 4957 * |
| 4977 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4958 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 4978 * error. | 4959 * error. |
| 4979 * | 4960 * |
| 4980 * If the used [http.Client] completes with an error when making a REST call, | 4961 * If the used [http.Client] completes with an error when making a REST call, |
| 4981 * this method will complete with the same error. | 4962 * this method will complete with the same error. |
| 4982 */ | 4963 */ |
| 4983 async.Future<EventTag> insert(EventTag request, core.String profileId) { | 4964 async.Future<EventTag> insert(EventTag request, core.String profileId) { |
| 4984 var _url = null; | 4965 var _url = null; |
| 4985 var _queryParams = new core.Map(); | 4966 var _queryParams = new core.Map(); |
| 4986 var _uploadMedia = null; | 4967 var _uploadMedia = null; |
| 4987 var _uploadOptions = null; | 4968 var _uploadOptions = null; |
| 4988 var _downloadOptions = common.DownloadOptions.Metadata; | 4969 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4989 var _body = null; | 4970 var _body = null; |
| 4990 | 4971 |
| 4991 if (request != null) { | 4972 if (request != null) { |
| 4992 _body = convert.JSON.encode((request).toJson()); | 4973 _body = convert.JSON.encode((request).toJson()); |
| 4993 } | 4974 } |
| 4994 if (profileId == null) { | 4975 if (profileId == null) { |
| 4995 throw new core.ArgumentError("Parameter profileId is required."); | 4976 throw new core.ArgumentError("Parameter profileId is required."); |
| 4996 } | 4977 } |
| 4997 | 4978 |
| 4998 | 4979 |
| 4999 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/eventTags'; | 4980 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eve
ntTags'; |
| 5000 | 4981 |
| 5001 var _response = _requester.request(_url, | 4982 var _response = _requester.request(_url, |
| 5002 "POST", | 4983 "POST", |
| 5003 body: _body, | 4984 body: _body, |
| 5004 queryParams: _queryParams, | 4985 queryParams: _queryParams, |
| 5005 uploadOptions: _uploadOptions, | 4986 uploadOptions: _uploadOptions, |
| 5006 uploadMedia: _uploadMedia, | 4987 uploadMedia: _uploadMedia, |
| 5007 downloadOptions: _downloadOptions); | 4988 downloadOptions: _downloadOptions); |
| 5008 return _response.then((data) => new EventTag.fromJson(data)); | 4989 return _response.then((data) => new EventTag.fromJson(data)); |
| 5009 } | 4990 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 5036 * | 5017 * |
| 5037 * [eventTagTypes] - Select only event tags with the specified event tag | 5018 * [eventTagTypes] - Select only event tags with the specified event tag |
| 5038 * types. Event tag types can be used to specify whether to use a third-party | 5019 * types. Event tag types can be used to specify whether to use a third-party |
| 5039 * pixel, a third-party JavaScript URL, or a third-party click-through URL for | 5020 * pixel, a third-party JavaScript URL, or a third-party click-through URL for |
| 5040 * either impression or click tracking. | 5021 * either impression or click tracking. |
| 5041 * | 5022 * |
| 5042 * [ids] - Select only event tags with these IDs. | 5023 * [ids] - Select only event tags with these IDs. |
| 5043 * | 5024 * |
| 5044 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 5025 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 5045 * are allowed. For example, "eventtag*2015" will return objects with names | 5026 * are allowed. For example, "eventtag*2015" will return objects with names |
| 5046 * like "eventtag June 2015", "eventtag April 2015" or simply "eventtag 2015". | 5027 * like "eventtag June 2015", "eventtag April 2015", or simply "eventtag |
| 5047 * Most of the searches also add wildcards implicitly at the start and the end | 5028 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 5048 * of the search string. For example, a search string of "eventtag" will match | 5029 * the end of the search string. For example, a search string of "eventtag" |
| 5049 * objects with name "my eventtag", "eventtag 2015" or simply "eventtag". | 5030 * will match objects with name "my eventtag", "eventtag 2015", or simply |
| 5031 * "eventtag". |
| 5050 * | 5032 * |
| 5051 * [sortField] - Field by which to sort the list. | 5033 * [sortField] - Field by which to sort the list. |
| 5052 * Possible string values are: | 5034 * Possible string values are: |
| 5053 * - "ID" | 5035 * - "ID" |
| 5054 * - "NAME" | 5036 * - "NAME" |
| 5055 * | 5037 * |
| 5056 * [sortOrder] - Order of sorted results, default is ASCENDING. | 5038 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 5057 * Possible string values are: | 5039 * Possible string values are: |
| 5058 * - "ASCENDING" | 5040 * - "ASCENDING" |
| 5059 * - "DESCENDING" | 5041 * - "DESCENDING" |
| 5060 * | 5042 * |
| 5061 * Completes with a [EventTagsListResponse]. | 5043 * Completes with a [EventTagsListResponse]. |
| 5062 * | 5044 * |
| 5063 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5045 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5064 * error. | 5046 * error. |
| 5065 * | 5047 * |
| 5066 * If the used [http.Client] completes with an error when making a REST call, | 5048 * If the used [http.Client] completes with an error when making a REST call, |
| 5067 * this method will complete with the same error. | 5049 * this method will complete with the same error. |
| 5068 */ | 5050 */ |
| 5069 async.Future<EventTagsListResponse> list(core.String profileId, {core.String a
dId, core.String advertiserId, core.String campaignId, core.bool definitionsOnly
, core.bool enabled, core.List<core.String> eventTagTypes, core.List<core.String
> ids, core.String searchString, core.String sortField, core.String sortOrder})
{ | 5051 async.Future<EventTagsListResponse> list(core.String profileId, {core.String a
dId, core.String advertiserId, core.String campaignId, core.bool definitionsOnly
, core.bool enabled, core.List<core.String> eventTagTypes, core.List<core.String
> ids, core.String searchString, core.String sortField, core.String sortOrder})
{ |
| 5070 var _url = null; | 5052 var _url = null; |
| 5071 var _queryParams = new core.Map(); | 5053 var _queryParams = new core.Map(); |
| 5072 var _uploadMedia = null; | 5054 var _uploadMedia = null; |
| 5073 var _uploadOptions = null; | 5055 var _uploadOptions = null; |
| 5074 var _downloadOptions = common.DownloadOptions.Metadata; | 5056 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5075 var _body = null; | 5057 var _body = null; |
| 5076 | 5058 |
| 5077 if (profileId == null) { | 5059 if (profileId == null) { |
| 5078 throw new core.ArgumentError("Parameter profileId is required."); | 5060 throw new core.ArgumentError("Parameter profileId is required."); |
| 5079 } | 5061 } |
| 5080 if (adId != null) { | 5062 if (adId != null) { |
| 5081 _queryParams["adId"] = [adId]; | 5063 _queryParams["adId"] = [adId]; |
| 5082 } | 5064 } |
| 5083 if (advertiserId != null) { | 5065 if (advertiserId != null) { |
| 5084 _queryParams["advertiserId"] = [advertiserId]; | 5066 _queryParams["advertiserId"] = [advertiserId]; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5102 _queryParams["searchString"] = [searchString]; | 5084 _queryParams["searchString"] = [searchString]; |
| 5103 } | 5085 } |
| 5104 if (sortField != null) { | 5086 if (sortField != null) { |
| 5105 _queryParams["sortField"] = [sortField]; | 5087 _queryParams["sortField"] = [sortField]; |
| 5106 } | 5088 } |
| 5107 if (sortOrder != null) { | 5089 if (sortOrder != null) { |
| 5108 _queryParams["sortOrder"] = [sortOrder]; | 5090 _queryParams["sortOrder"] = [sortOrder]; |
| 5109 } | 5091 } |
| 5110 | 5092 |
| 5111 | 5093 |
| 5112 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/eventTags'; | 5094 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eve
ntTags'; |
| 5113 | 5095 |
| 5114 var _response = _requester.request(_url, | 5096 var _response = _requester.request(_url, |
| 5115 "GET", | 5097 "GET", |
| 5116 body: _body, | 5098 body: _body, |
| 5117 queryParams: _queryParams, | 5099 queryParams: _queryParams, |
| 5118 uploadOptions: _uploadOptions, | 5100 uploadOptions: _uploadOptions, |
| 5119 uploadMedia: _uploadMedia, | 5101 uploadMedia: _uploadMedia, |
| 5120 downloadOptions: _downloadOptions); | 5102 downloadOptions: _downloadOptions); |
| 5121 return _response.then((data) => new EventTagsListResponse.fromJson(data)); | 5103 return _response.then((data) => new EventTagsListResponse.fromJson(data)); |
| 5122 } | 5104 } |
| 5123 | 5105 |
| 5124 /** | 5106 /** |
| 5125 * Updates an existing event tag. This method supports patch semantics. | 5107 * Updates an existing event tag. This method supports patch semantics. |
| 5126 * | 5108 * |
| 5127 * [request] - The metadata request object. | 5109 * [request] - The metadata request object. |
| 5128 * | 5110 * |
| 5129 * Request parameters: | 5111 * Request parameters: |
| 5130 * | 5112 * |
| 5131 * [profileId] - User profile ID associated with this request. | 5113 * [profileId] - User profile ID associated with this request. |
| 5132 * | 5114 * |
| 5133 * [id] - Event tag ID. | 5115 * [id] - Event tag ID. |
| 5134 * | 5116 * |
| 5135 * Completes with a [EventTag]. | 5117 * Completes with a [EventTag]. |
| 5136 * | 5118 * |
| 5137 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5119 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5138 * error. | 5120 * error. |
| 5139 * | 5121 * |
| 5140 * If the used [http.Client] completes with an error when making a REST call, | 5122 * If the used [http.Client] completes with an error when making a REST call, |
| 5141 * this method will complete with the same error. | 5123 * this method will complete with the same error. |
| 5142 */ | 5124 */ |
| 5143 async.Future<EventTag> patch(EventTag request, core.String profileId, core.Str
ing id) { | 5125 async.Future<EventTag> patch(EventTag request, core.String profileId, core.Str
ing id) { |
| 5144 var _url = null; | 5126 var _url = null; |
| 5145 var _queryParams = new core.Map(); | 5127 var _queryParams = new core.Map(); |
| 5146 var _uploadMedia = null; | 5128 var _uploadMedia = null; |
| 5147 var _uploadOptions = null; | 5129 var _uploadOptions = null; |
| 5148 var _downloadOptions = common.DownloadOptions.Metadata; | 5130 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5149 var _body = null; | 5131 var _body = null; |
| 5150 | 5132 |
| 5151 if (request != null) { | 5133 if (request != null) { |
| 5152 _body = convert.JSON.encode((request).toJson()); | 5134 _body = convert.JSON.encode((request).toJson()); |
| 5153 } | 5135 } |
| 5154 if (profileId == null) { | 5136 if (profileId == null) { |
| 5155 throw new core.ArgumentError("Parameter profileId is required."); | 5137 throw new core.ArgumentError("Parameter profileId is required."); |
| 5156 } | 5138 } |
| 5157 if (id == null) { | 5139 if (id == null) { |
| 5158 throw new core.ArgumentError("Parameter id is required."); | 5140 throw new core.ArgumentError("Parameter id is required."); |
| 5159 } | 5141 } |
| 5160 _queryParams["id"] = [id]; | 5142 _queryParams["id"] = [id]; |
| 5161 | 5143 |
| 5162 | 5144 |
| 5163 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/eventTags'; | 5145 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eve
ntTags'; |
| 5164 | 5146 |
| 5165 var _response = _requester.request(_url, | 5147 var _response = _requester.request(_url, |
| 5166 "PATCH", | 5148 "PATCH", |
| 5167 body: _body, | 5149 body: _body, |
| 5168 queryParams: _queryParams, | 5150 queryParams: _queryParams, |
| 5169 uploadOptions: _uploadOptions, | 5151 uploadOptions: _uploadOptions, |
| 5170 uploadMedia: _uploadMedia, | 5152 uploadMedia: _uploadMedia, |
| 5171 downloadOptions: _downloadOptions); | 5153 downloadOptions: _downloadOptions); |
| 5172 return _response.then((data) => new EventTag.fromJson(data)); | 5154 return _response.then((data) => new EventTag.fromJson(data)); |
| 5173 } | 5155 } |
| 5174 | 5156 |
| 5175 /** | 5157 /** |
| 5176 * Updates an existing event tag. | 5158 * Updates an existing event tag. |
| 5177 * | 5159 * |
| 5178 * [request] - The metadata request object. | 5160 * [request] - The metadata request object. |
| 5179 * | 5161 * |
| 5180 * Request parameters: | 5162 * Request parameters: |
| 5181 * | 5163 * |
| 5182 * [profileId] - User profile ID associated with this request. | 5164 * [profileId] - User profile ID associated with this request. |
| 5183 * | 5165 * |
| 5184 * Completes with a [EventTag]. | 5166 * Completes with a [EventTag]. |
| 5185 * | 5167 * |
| 5186 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5168 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5187 * error. | 5169 * error. |
| 5188 * | 5170 * |
| 5189 * If the used [http.Client] completes with an error when making a REST call, | 5171 * If the used [http.Client] completes with an error when making a REST call, |
| 5190 * this method will complete with the same error. | 5172 * this method will complete with the same error. |
| 5191 */ | 5173 */ |
| 5192 async.Future<EventTag> update(EventTag request, core.String profileId) { | 5174 async.Future<EventTag> update(EventTag request, core.String profileId) { |
| 5193 var _url = null; | 5175 var _url = null; |
| 5194 var _queryParams = new core.Map(); | 5176 var _queryParams = new core.Map(); |
| 5195 var _uploadMedia = null; | 5177 var _uploadMedia = null; |
| 5196 var _uploadOptions = null; | 5178 var _uploadOptions = null; |
| 5197 var _downloadOptions = common.DownloadOptions.Metadata; | 5179 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5198 var _body = null; | 5180 var _body = null; |
| 5199 | 5181 |
| 5200 if (request != null) { | 5182 if (request != null) { |
| 5201 _body = convert.JSON.encode((request).toJson()); | 5183 _body = convert.JSON.encode((request).toJson()); |
| 5202 } | 5184 } |
| 5203 if (profileId == null) { | 5185 if (profileId == null) { |
| 5204 throw new core.ArgumentError("Parameter profileId is required."); | 5186 throw new core.ArgumentError("Parameter profileId is required."); |
| 5205 } | 5187 } |
| 5206 | 5188 |
| 5207 | 5189 |
| 5208 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/eventTags'; | 5190 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eve
ntTags'; |
| 5209 | 5191 |
| 5210 var _response = _requester.request(_url, | 5192 var _response = _requester.request(_url, |
| 5211 "PUT", | 5193 "PUT", |
| 5212 body: _body, | 5194 body: _body, |
| 5213 queryParams: _queryParams, | 5195 queryParams: _queryParams, |
| 5214 uploadOptions: _uploadOptions, | 5196 uploadOptions: _uploadOptions, |
| 5215 uploadMedia: _uploadMedia, | 5197 uploadMedia: _uploadMedia, |
| 5216 downloadOptions: _downloadOptions); | 5198 downloadOptions: _downloadOptions); |
| 5217 return _response.then((data) => new EventTag.fromJson(data)); | 5199 return _response.then((data) => new EventTag.fromJson(data)); |
| 5218 } | 5200 } |
| 5219 | 5201 |
| 5220 } | 5202 } |
| 5221 | 5203 |
| 5222 | 5204 |
| 5223 /** Not documented yet. */ | |
| 5224 class FilesResourceApi { | 5205 class FilesResourceApi { |
| 5225 final common_internal.ApiRequester _requester; | 5206 final commons.ApiRequester _requester; |
| 5226 | 5207 |
| 5227 FilesResourceApi(common_internal.ApiRequester client) : | 5208 FilesResourceApi(commons.ApiRequester client) : |
| 5228 _requester = client; | 5209 _requester = client; |
| 5229 | 5210 |
| 5230 /** | 5211 /** |
| 5231 * Retrieves a report file by its report ID and file ID. | 5212 * Retrieves a report file by its report ID and file ID. |
| 5232 * | 5213 * |
| 5233 * Request parameters: | 5214 * Request parameters: |
| 5234 * | 5215 * |
| 5235 * [reportId] - The ID of the report. | 5216 * [reportId] - The ID of the report. |
| 5236 * | 5217 * |
| 5237 * [fileId] - The ID of the report file. | 5218 * [fileId] - The ID of the report file. |
| 5238 * | 5219 * |
| 5239 * [downloadOptions] - Options for downloading. A download can be either a | 5220 * [downloadOptions] - Options for downloading. A download can be either a |
| 5240 * Metadata (default) or Media download. Partial Media downloads are possible | 5221 * Metadata (default) or Media download. Partial Media downloads are possible |
| 5241 * as well. | 5222 * as well. |
| 5242 * | 5223 * |
| 5243 * Completes with a | 5224 * Completes with a |
| 5244 * | 5225 * |
| 5245 * - [File] for Metadata downloads (see [downloadOptions]). | 5226 * - [File] for Metadata downloads (see [downloadOptions]). |
| 5246 * | 5227 * |
| 5247 * - [common.Media] for Media downloads (see [downloadOptions]). | 5228 * - [commons.Media] for Media downloads (see [downloadOptions]). |
| 5248 * | 5229 * |
| 5249 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5230 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5250 * error. | 5231 * error. |
| 5251 * | 5232 * |
| 5252 * If the used [http.Client] completes with an error when making a REST call, | 5233 * If the used [http.Client] completes with an error when making a REST call, |
| 5253 * this method will complete with the same error. | 5234 * this method will complete with the same error. |
| 5254 */ | 5235 */ |
| 5255 async.Future get(core.String reportId, core.String fileId, {common.DownloadOpt
ions downloadOptions: common.DownloadOptions.Metadata}) { | 5236 async.Future get(core.String reportId, core.String fileId, {commons.DownloadOp
tions downloadOptions: commons.DownloadOptions.Metadata}) { |
| 5256 var _url = null; | 5237 var _url = null; |
| 5257 var _queryParams = new core.Map(); | 5238 var _queryParams = new core.Map(); |
| 5258 var _uploadMedia = null; | 5239 var _uploadMedia = null; |
| 5259 var _uploadOptions = null; | 5240 var _uploadOptions = null; |
| 5260 var _downloadOptions = common.DownloadOptions.Metadata; | 5241 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5261 var _body = null; | 5242 var _body = null; |
| 5262 | 5243 |
| 5263 if (reportId == null) { | 5244 if (reportId == null) { |
| 5264 throw new core.ArgumentError("Parameter reportId is required."); | 5245 throw new core.ArgumentError("Parameter reportId is required."); |
| 5265 } | 5246 } |
| 5266 if (fileId == null) { | 5247 if (fileId == null) { |
| 5267 throw new core.ArgumentError("Parameter fileId is required."); | 5248 throw new core.ArgumentError("Parameter fileId is required."); |
| 5268 } | 5249 } |
| 5269 | 5250 |
| 5270 _downloadOptions = downloadOptions; | 5251 _downloadOptions = downloadOptions; |
| 5271 | 5252 |
| 5272 _url = 'reports/' + common_internal.Escaper.ecapeVariable('$reportId') + '/f
iles/' + common_internal.Escaper.ecapeVariable('$fileId'); | 5253 _url = 'reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' +
commons.Escaper.ecapeVariable('$fileId'); |
| 5273 | 5254 |
| 5274 var _response = _requester.request(_url, | 5255 var _response = _requester.request(_url, |
| 5275 "GET", | 5256 "GET", |
| 5276 body: _body, | 5257 body: _body, |
| 5277 queryParams: _queryParams, | 5258 queryParams: _queryParams, |
| 5278 uploadOptions: _uploadOptions, | 5259 uploadOptions: _uploadOptions, |
| 5279 uploadMedia: _uploadMedia, | 5260 uploadMedia: _uploadMedia, |
| 5280 downloadOptions: _downloadOptions); | 5261 downloadOptions: _downloadOptions); |
| 5281 if (_downloadOptions == null || | 5262 if (_downloadOptions == null || |
| 5282 _downloadOptions == common.DownloadOptions.Metadata) { | 5263 _downloadOptions == commons.DownloadOptions.Metadata) { |
| 5283 return _response.then((data) => new File.fromJson(data)); | 5264 return _response.then((data) => new File.fromJson(data)); |
| 5284 } else { | 5265 } else { |
| 5285 return _response; | 5266 return _response; |
| 5286 } | 5267 } |
| 5287 } | 5268 } |
| 5288 | 5269 |
| 5289 /** | 5270 /** |
| 5290 * Lists files for a user profile. | 5271 * Lists files for a user profile. |
| 5291 * | 5272 * |
| 5292 * Request parameters: | 5273 * Request parameters: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5310 * - "ID" : Sort by file ID. | 5291 * - "ID" : Sort by file ID. |
| 5311 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. | 5292 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. |
| 5312 * | 5293 * |
| 5313 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. | 5294 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. |
| 5314 * Possible string values are: | 5295 * Possible string values are: |
| 5315 * - "ASCENDING" : Ascending order. | 5296 * - "ASCENDING" : Ascending order. |
| 5316 * - "DESCENDING" : Descending order. | 5297 * - "DESCENDING" : Descending order. |
| 5317 * | 5298 * |
| 5318 * Completes with a [FileList]. | 5299 * Completes with a [FileList]. |
| 5319 * | 5300 * |
| 5320 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5301 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5321 * error. | 5302 * error. |
| 5322 * | 5303 * |
| 5323 * If the used [http.Client] completes with an error when making a REST call, | 5304 * If the used [http.Client] completes with an error when making a REST call, |
| 5324 * this method will complete with the same error. | 5305 * this method will complete with the same error. |
| 5325 */ | 5306 */ |
| 5326 async.Future<FileList> list(core.String profileId, {core.int maxResults, core.
String pageToken, core.String scope, core.String sortField, core.String sortOrde
r}) { | 5307 async.Future<FileList> list(core.String profileId, {core.int maxResults, core.
String pageToken, core.String scope, core.String sortField, core.String sortOrde
r}) { |
| 5327 var _url = null; | 5308 var _url = null; |
| 5328 var _queryParams = new core.Map(); | 5309 var _queryParams = new core.Map(); |
| 5329 var _uploadMedia = null; | 5310 var _uploadMedia = null; |
| 5330 var _uploadOptions = null; | 5311 var _uploadOptions = null; |
| 5331 var _downloadOptions = common.DownloadOptions.Metadata; | 5312 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5332 var _body = null; | 5313 var _body = null; |
| 5333 | 5314 |
| 5334 if (profileId == null) { | 5315 if (profileId == null) { |
| 5335 throw new core.ArgumentError("Parameter profileId is required."); | 5316 throw new core.ArgumentError("Parameter profileId is required."); |
| 5336 } | 5317 } |
| 5337 if (maxResults != null) { | 5318 if (maxResults != null) { |
| 5338 _queryParams["maxResults"] = ["${maxResults}"]; | 5319 _queryParams["maxResults"] = ["${maxResults}"]; |
| 5339 } | 5320 } |
| 5340 if (pageToken != null) { | 5321 if (pageToken != null) { |
| 5341 _queryParams["pageToken"] = [pageToken]; | 5322 _queryParams["pageToken"] = [pageToken]; |
| 5342 } | 5323 } |
| 5343 if (scope != null) { | 5324 if (scope != null) { |
| 5344 _queryParams["scope"] = [scope]; | 5325 _queryParams["scope"] = [scope]; |
| 5345 } | 5326 } |
| 5346 if (sortField != null) { | 5327 if (sortField != null) { |
| 5347 _queryParams["sortField"] = [sortField]; | 5328 _queryParams["sortField"] = [sortField]; |
| 5348 } | 5329 } |
| 5349 if (sortOrder != null) { | 5330 if (sortOrder != null) { |
| 5350 _queryParams["sortOrder"] = [sortOrder]; | 5331 _queryParams["sortOrder"] = [sortOrder]; |
| 5351 } | 5332 } |
| 5352 | 5333 |
| 5353 | 5334 |
| 5354 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/files'; | 5335 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/fil
es'; |
| 5355 | 5336 |
| 5356 var _response = _requester.request(_url, | 5337 var _response = _requester.request(_url, |
| 5357 "GET", | 5338 "GET", |
| 5358 body: _body, | 5339 body: _body, |
| 5359 queryParams: _queryParams, | 5340 queryParams: _queryParams, |
| 5360 uploadOptions: _uploadOptions, | 5341 uploadOptions: _uploadOptions, |
| 5361 uploadMedia: _uploadMedia, | 5342 uploadMedia: _uploadMedia, |
| 5362 downloadOptions: _downloadOptions); | 5343 downloadOptions: _downloadOptions); |
| 5363 return _response.then((data) => new FileList.fromJson(data)); | 5344 return _response.then((data) => new FileList.fromJson(data)); |
| 5364 } | 5345 } |
| 5365 | 5346 |
| 5366 } | 5347 } |
| 5367 | 5348 |
| 5368 | 5349 |
| 5369 /** Not documented yet. */ | |
| 5370 class FloodlightActivitiesResourceApi { | 5350 class FloodlightActivitiesResourceApi { |
| 5371 final common_internal.ApiRequester _requester; | 5351 final commons.ApiRequester _requester; |
| 5372 | 5352 |
| 5373 FloodlightActivitiesResourceApi(common_internal.ApiRequester client) : | 5353 FloodlightActivitiesResourceApi(commons.ApiRequester client) : |
| 5374 _requester = client; | 5354 _requester = client; |
| 5375 | 5355 |
| 5376 /** | 5356 /** |
| 5377 * Deletes an existing floodlight activity. | 5357 * Deletes an existing floodlight activity. |
| 5378 * | 5358 * |
| 5379 * Request parameters: | 5359 * Request parameters: |
| 5380 * | 5360 * |
| 5381 * [profileId] - User profile ID associated with this request. | 5361 * [profileId] - User profile ID associated with this request. |
| 5382 * | 5362 * |
| 5383 * [id] - Floodlight activity ID. | 5363 * [id] - Floodlight activity ID. |
| 5384 * | 5364 * |
| 5385 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5365 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5386 * error. | 5366 * error. |
| 5387 * | 5367 * |
| 5388 * If the used [http.Client] completes with an error when making a REST call, | 5368 * If the used [http.Client] completes with an error when making a REST call, |
| 5389 * this method will complete with the same error. | 5369 * this method will complete with the same error. |
| 5390 */ | 5370 */ |
| 5391 async.Future delete(core.String profileId, core.String id) { | 5371 async.Future delete(core.String profileId, core.String id) { |
| 5392 var _url = null; | 5372 var _url = null; |
| 5393 var _queryParams = new core.Map(); | 5373 var _queryParams = new core.Map(); |
| 5394 var _uploadMedia = null; | 5374 var _uploadMedia = null; |
| 5395 var _uploadOptions = null; | 5375 var _uploadOptions = null; |
| 5396 var _downloadOptions = common.DownloadOptions.Metadata; | 5376 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5397 var _body = null; | 5377 var _body = null; |
| 5398 | 5378 |
| 5399 if (profileId == null) { | 5379 if (profileId == null) { |
| 5400 throw new core.ArgumentError("Parameter profileId is required."); | 5380 throw new core.ArgumentError("Parameter profileId is required."); |
| 5401 } | 5381 } |
| 5402 if (id == null) { | 5382 if (id == null) { |
| 5403 throw new core.ArgumentError("Parameter id is required."); | 5383 throw new core.ArgumentError("Parameter id is required."); |
| 5404 } | 5384 } |
| 5405 | 5385 |
| 5406 _downloadOptions = null; | 5386 _downloadOptions = null; |
| 5407 | 5387 |
| 5408 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivities/' + common_internal.Escaper.ecapeVariable('$id'); | 5388 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivities/' + commons.Escaper.ecapeVariable('$id'); |
| 5409 | 5389 |
| 5410 var _response = _requester.request(_url, | 5390 var _response = _requester.request(_url, |
| 5411 "DELETE", | 5391 "DELETE", |
| 5412 body: _body, | 5392 body: _body, |
| 5413 queryParams: _queryParams, | 5393 queryParams: _queryParams, |
| 5414 uploadOptions: _uploadOptions, | 5394 uploadOptions: _uploadOptions, |
| 5415 uploadMedia: _uploadMedia, | 5395 uploadMedia: _uploadMedia, |
| 5416 downloadOptions: _downloadOptions); | 5396 downloadOptions: _downloadOptions); |
| 5417 return _response.then((data) => null); | 5397 return _response.then((data) => null); |
| 5418 } | 5398 } |
| 5419 | 5399 |
| 5420 /** | 5400 /** |
| 5421 * Generates a tag for a floodlight activity. | 5401 * Generates a tag for a floodlight activity. |
| 5422 * | 5402 * |
| 5423 * Request parameters: | 5403 * Request parameters: |
| 5424 * | 5404 * |
| 5425 * [profileId] - User profile ID associated with this request. | 5405 * [profileId] - User profile ID associated with this request. |
| 5426 * | 5406 * |
| 5427 * [floodlightActivityId] - Floodlight activity ID for which we want to | 5407 * [floodlightActivityId] - Floodlight activity ID for which we want to |
| 5428 * generate a tag. | 5408 * generate a tag. |
| 5429 * | 5409 * |
| 5430 * Completes with a [FloodlightActivitiesGenerateTagResponse]. | 5410 * Completes with a [FloodlightActivitiesGenerateTagResponse]. |
| 5431 * | 5411 * |
| 5432 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5412 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5433 * error. | 5413 * error. |
| 5434 * | 5414 * |
| 5435 * If the used [http.Client] completes with an error when making a REST call, | 5415 * If the used [http.Client] completes with an error when making a REST call, |
| 5436 * this method will complete with the same error. | 5416 * this method will complete with the same error. |
| 5437 */ | 5417 */ |
| 5438 async.Future<FloodlightActivitiesGenerateTagResponse> generatetag(core.String
profileId, {core.String floodlightActivityId}) { | 5418 async.Future<FloodlightActivitiesGenerateTagResponse> generatetag(core.String
profileId, {core.String floodlightActivityId}) { |
| 5439 var _url = null; | 5419 var _url = null; |
| 5440 var _queryParams = new core.Map(); | 5420 var _queryParams = new core.Map(); |
| 5441 var _uploadMedia = null; | 5421 var _uploadMedia = null; |
| 5442 var _uploadOptions = null; | 5422 var _uploadOptions = null; |
| 5443 var _downloadOptions = common.DownloadOptions.Metadata; | 5423 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5444 var _body = null; | 5424 var _body = null; |
| 5445 | 5425 |
| 5446 if (profileId == null) { | 5426 if (profileId == null) { |
| 5447 throw new core.ArgumentError("Parameter profileId is required."); | 5427 throw new core.ArgumentError("Parameter profileId is required."); |
| 5448 } | 5428 } |
| 5449 if (floodlightActivityId != null) { | 5429 if (floodlightActivityId != null) { |
| 5450 _queryParams["floodlightActivityId"] = [floodlightActivityId]; | 5430 _queryParams["floodlightActivityId"] = [floodlightActivityId]; |
| 5451 } | 5431 } |
| 5452 | 5432 |
| 5453 | 5433 |
| 5454 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivities/generatetag'; | 5434 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivities/generatetag'; |
| 5455 | 5435 |
| 5456 var _response = _requester.request(_url, | 5436 var _response = _requester.request(_url, |
| 5457 "POST", | 5437 "POST", |
| 5458 body: _body, | 5438 body: _body, |
| 5459 queryParams: _queryParams, | 5439 queryParams: _queryParams, |
| 5460 uploadOptions: _uploadOptions, | 5440 uploadOptions: _uploadOptions, |
| 5461 uploadMedia: _uploadMedia, | 5441 uploadMedia: _uploadMedia, |
| 5462 downloadOptions: _downloadOptions); | 5442 downloadOptions: _downloadOptions); |
| 5463 return _response.then((data) => new FloodlightActivitiesGenerateTagResponse.
fromJson(data)); | 5443 return _response.then((data) => new FloodlightActivitiesGenerateTagResponse.
fromJson(data)); |
| 5464 } | 5444 } |
| 5465 | 5445 |
| 5466 /** | 5446 /** |
| 5467 * Gets one floodlight activity by ID. | 5447 * Gets one floodlight activity by ID. |
| 5468 * | 5448 * |
| 5469 * Request parameters: | 5449 * Request parameters: |
| 5470 * | 5450 * |
| 5471 * [profileId] - User profile ID associated with this request. | 5451 * [profileId] - User profile ID associated with this request. |
| 5472 * | 5452 * |
| 5473 * [id] - Floodlight activity ID. | 5453 * [id] - Floodlight activity ID. |
| 5474 * | 5454 * |
| 5475 * Completes with a [FloodlightActivity]. | 5455 * Completes with a [FloodlightActivity]. |
| 5476 * | 5456 * |
| 5477 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5457 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5478 * error. | 5458 * error. |
| 5479 * | 5459 * |
| 5480 * If the used [http.Client] completes with an error when making a REST call, | 5460 * If the used [http.Client] completes with an error when making a REST call, |
| 5481 * this method will complete with the same error. | 5461 * this method will complete with the same error. |
| 5482 */ | 5462 */ |
| 5483 async.Future<FloodlightActivity> get(core.String profileId, core.String id) { | 5463 async.Future<FloodlightActivity> get(core.String profileId, core.String id) { |
| 5484 var _url = null; | 5464 var _url = null; |
| 5485 var _queryParams = new core.Map(); | 5465 var _queryParams = new core.Map(); |
| 5486 var _uploadMedia = null; | 5466 var _uploadMedia = null; |
| 5487 var _uploadOptions = null; | 5467 var _uploadOptions = null; |
| 5488 var _downloadOptions = common.DownloadOptions.Metadata; | 5468 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5489 var _body = null; | 5469 var _body = null; |
| 5490 | 5470 |
| 5491 if (profileId == null) { | 5471 if (profileId == null) { |
| 5492 throw new core.ArgumentError("Parameter profileId is required."); | 5472 throw new core.ArgumentError("Parameter profileId is required."); |
| 5493 } | 5473 } |
| 5494 if (id == null) { | 5474 if (id == null) { |
| 5495 throw new core.ArgumentError("Parameter id is required."); | 5475 throw new core.ArgumentError("Parameter id is required."); |
| 5496 } | 5476 } |
| 5497 | 5477 |
| 5498 | 5478 |
| 5499 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivities/' + common_internal.Escaper.ecapeVariable('$id'); | 5479 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivities/' + commons.Escaper.ecapeVariable('$id'); |
| 5500 | 5480 |
| 5501 var _response = _requester.request(_url, | 5481 var _response = _requester.request(_url, |
| 5502 "GET", | 5482 "GET", |
| 5503 body: _body, | 5483 body: _body, |
| 5504 queryParams: _queryParams, | 5484 queryParams: _queryParams, |
| 5505 uploadOptions: _uploadOptions, | 5485 uploadOptions: _uploadOptions, |
| 5506 uploadMedia: _uploadMedia, | 5486 uploadMedia: _uploadMedia, |
| 5507 downloadOptions: _downloadOptions); | 5487 downloadOptions: _downloadOptions); |
| 5508 return _response.then((data) => new FloodlightActivity.fromJson(data)); | 5488 return _response.then((data) => new FloodlightActivity.fromJson(data)); |
| 5509 } | 5489 } |
| 5510 | 5490 |
| 5511 /** | 5491 /** |
| 5512 * Inserts a new floodlight activity. | 5492 * Inserts a new floodlight activity. |
| 5513 * | 5493 * |
| 5514 * [request] - The metadata request object. | 5494 * [request] - The metadata request object. |
| 5515 * | 5495 * |
| 5516 * Request parameters: | 5496 * Request parameters: |
| 5517 * | 5497 * |
| 5518 * [profileId] - User profile ID associated with this request. | 5498 * [profileId] - User profile ID associated with this request. |
| 5519 * | 5499 * |
| 5520 * Completes with a [FloodlightActivity]. | 5500 * Completes with a [FloodlightActivity]. |
| 5521 * | 5501 * |
| 5522 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5502 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5523 * error. | 5503 * error. |
| 5524 * | 5504 * |
| 5525 * If the used [http.Client] completes with an error when making a REST call, | 5505 * If the used [http.Client] completes with an error when making a REST call, |
| 5526 * this method will complete with the same error. | 5506 * this method will complete with the same error. |
| 5527 */ | 5507 */ |
| 5528 async.Future<FloodlightActivity> insert(FloodlightActivity request, core.Strin
g profileId) { | 5508 async.Future<FloodlightActivity> insert(FloodlightActivity request, core.Strin
g profileId) { |
| 5529 var _url = null; | 5509 var _url = null; |
| 5530 var _queryParams = new core.Map(); | 5510 var _queryParams = new core.Map(); |
| 5531 var _uploadMedia = null; | 5511 var _uploadMedia = null; |
| 5532 var _uploadOptions = null; | 5512 var _uploadOptions = null; |
| 5533 var _downloadOptions = common.DownloadOptions.Metadata; | 5513 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5534 var _body = null; | 5514 var _body = null; |
| 5535 | 5515 |
| 5536 if (request != null) { | 5516 if (request != null) { |
| 5537 _body = convert.JSON.encode((request).toJson()); | 5517 _body = convert.JSON.encode((request).toJson()); |
| 5538 } | 5518 } |
| 5539 if (profileId == null) { | 5519 if (profileId == null) { |
| 5540 throw new core.ArgumentError("Parameter profileId is required."); | 5520 throw new core.ArgumentError("Parameter profileId is required."); |
| 5541 } | 5521 } |
| 5542 | 5522 |
| 5543 | 5523 |
| 5544 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivities'; | 5524 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivities'; |
| 5545 | 5525 |
| 5546 var _response = _requester.request(_url, | 5526 var _response = _requester.request(_url, |
| 5547 "POST", | 5527 "POST", |
| 5548 body: _body, | 5528 body: _body, |
| 5549 queryParams: _queryParams, | 5529 queryParams: _queryParams, |
| 5550 uploadOptions: _uploadOptions, | 5530 uploadOptions: _uploadOptions, |
| 5551 uploadMedia: _uploadMedia, | 5531 uploadMedia: _uploadMedia, |
| 5552 downloadOptions: _downloadOptions); | 5532 downloadOptions: _downloadOptions); |
| 5553 return _response.then((data) => new FloodlightActivity.fromJson(data)); | 5533 return _response.then((data) => new FloodlightActivity.fromJson(data)); |
| 5554 } | 5534 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5587 * specify either ids, advertiserId, or floodlightConfigurationId for a | 5567 * specify either ids, advertiserId, or floodlightConfigurationId for a |
| 5588 * non-empty result. | 5568 * non-empty result. |
| 5589 * | 5569 * |
| 5590 * [maxResults] - Maximum number of results to return. | 5570 * [maxResults] - Maximum number of results to return. |
| 5591 * | 5571 * |
| 5592 * [pageToken] - Value of the nextPageToken from the previous result page. | 5572 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 5593 * | 5573 * |
| 5594 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 5574 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 5595 * are allowed. For example, "floodlightactivity*2015" will return objects | 5575 * are allowed. For example, "floodlightactivity*2015" will return objects |
| 5596 * with names like "floodlightactivity June 2015", "floodlightactivity April | 5576 * with names like "floodlightactivity June 2015", "floodlightactivity April |
| 5597 * 2015" or simply "floodlightactivity 2015". Most of the searches also add | 5577 * 2015", or simply "floodlightactivity 2015". Most of the searches also add |
| 5598 * wildcards implicitly at the start and the end of the search string. For | 5578 * wildcards implicitly at the start and the end of the search string. For |
| 5599 * example, a search string of "floodlightactivity" will match objects with | 5579 * example, a search string of "floodlightactivity" will match objects with |
| 5600 * name "my floodlightactivity activity", "floodlightactivity 2015" or simply | 5580 * name "my floodlightactivity activity", "floodlightactivity 2015", or simply |
| 5601 * "floodlightactivity". | 5581 * "floodlightactivity". |
| 5602 * | 5582 * |
| 5603 * [sortField] - Field by which to sort the list. | 5583 * [sortField] - Field by which to sort the list. |
| 5604 * Possible string values are: | 5584 * Possible string values are: |
| 5605 * - "ID" | 5585 * - "ID" |
| 5606 * - "NAME" | 5586 * - "NAME" |
| 5607 * | 5587 * |
| 5608 * [sortOrder] - Order of sorted results, default is ASCENDING. | 5588 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 5609 * Possible string values are: | 5589 * Possible string values are: |
| 5610 * - "ASCENDING" | 5590 * - "ASCENDING" |
| 5611 * - "DESCENDING" | 5591 * - "DESCENDING" |
| 5612 * | 5592 * |
| 5613 * [tagString] - Select only floodlight activities with the specified tag | 5593 * [tagString] - Select only floodlight activities with the specified tag |
| 5614 * string. | 5594 * string. |
| 5615 * | 5595 * |
| 5616 * Completes with a [FloodlightActivitiesListResponse]. | 5596 * Completes with a [FloodlightActivitiesListResponse]. |
| 5617 * | 5597 * |
| 5618 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5598 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5619 * error. | 5599 * error. |
| 5620 * | 5600 * |
| 5621 * If the used [http.Client] completes with an error when making a REST call, | 5601 * If the used [http.Client] completes with an error when making a REST call, |
| 5622 * this method will complete with the same error. | 5602 * this method will complete with the same error. |
| 5623 */ | 5603 */ |
| 5624 async.Future<FloodlightActivitiesListResponse> list(core.String profileId, {co
re.String advertiserId, core.List<core.String> floodlightActivityGroupIds, core.
String floodlightActivityGroupName, core.String floodlightActivityGroupTagString
, core.String floodlightActivityGroupType, core.String floodlightConfigurationId
, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.S
tring searchString, core.String sortField, core.String sortOrder, core.String ta
gString}) { | 5604 async.Future<FloodlightActivitiesListResponse> list(core.String profileId, {co
re.String advertiserId, core.List<core.String> floodlightActivityGroupIds, core.
String floodlightActivityGroupName, core.String floodlightActivityGroupTagString
, core.String floodlightActivityGroupType, core.String floodlightConfigurationId
, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.S
tring searchString, core.String sortField, core.String sortOrder, core.String ta
gString}) { |
| 5625 var _url = null; | 5605 var _url = null; |
| 5626 var _queryParams = new core.Map(); | 5606 var _queryParams = new core.Map(); |
| 5627 var _uploadMedia = null; | 5607 var _uploadMedia = null; |
| 5628 var _uploadOptions = null; | 5608 var _uploadOptions = null; |
| 5629 var _downloadOptions = common.DownloadOptions.Metadata; | 5609 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5630 var _body = null; | 5610 var _body = null; |
| 5631 | 5611 |
| 5632 if (profileId == null) { | 5612 if (profileId == null) { |
| 5633 throw new core.ArgumentError("Parameter profileId is required."); | 5613 throw new core.ArgumentError("Parameter profileId is required."); |
| 5634 } | 5614 } |
| 5635 if (advertiserId != null) { | 5615 if (advertiserId != null) { |
| 5636 _queryParams["advertiserId"] = [advertiserId]; | 5616 _queryParams["advertiserId"] = [advertiserId]; |
| 5637 } | 5617 } |
| 5638 if (floodlightActivityGroupIds != null) { | 5618 if (floodlightActivityGroupIds != null) { |
| 5639 _queryParams["floodlightActivityGroupIds"] = floodlightActivityGroupIds; | 5619 _queryParams["floodlightActivityGroupIds"] = floodlightActivityGroupIds; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 5666 _queryParams["sortField"] = [sortField]; | 5646 _queryParams["sortField"] = [sortField]; |
| 5667 } | 5647 } |
| 5668 if (sortOrder != null) { | 5648 if (sortOrder != null) { |
| 5669 _queryParams["sortOrder"] = [sortOrder]; | 5649 _queryParams["sortOrder"] = [sortOrder]; |
| 5670 } | 5650 } |
| 5671 if (tagString != null) { | 5651 if (tagString != null) { |
| 5672 _queryParams["tagString"] = [tagString]; | 5652 _queryParams["tagString"] = [tagString]; |
| 5673 } | 5653 } |
| 5674 | 5654 |
| 5675 | 5655 |
| 5676 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivities'; | 5656 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivities'; |
| 5677 | 5657 |
| 5678 var _response = _requester.request(_url, | 5658 var _response = _requester.request(_url, |
| 5679 "GET", | 5659 "GET", |
| 5680 body: _body, | 5660 body: _body, |
| 5681 queryParams: _queryParams, | 5661 queryParams: _queryParams, |
| 5682 uploadOptions: _uploadOptions, | 5662 uploadOptions: _uploadOptions, |
| 5683 uploadMedia: _uploadMedia, | 5663 uploadMedia: _uploadMedia, |
| 5684 downloadOptions: _downloadOptions); | 5664 downloadOptions: _downloadOptions); |
| 5685 return _response.then((data) => new FloodlightActivitiesListResponse.fromJso
n(data)); | 5665 return _response.then((data) => new FloodlightActivitiesListResponse.fromJso
n(data)); |
| 5686 } | 5666 } |
| 5687 | 5667 |
| 5688 /** | 5668 /** |
| 5689 * Updates an existing floodlight activity. This method supports patch | 5669 * Updates an existing floodlight activity. This method supports patch |
| 5690 * semantics. | 5670 * semantics. |
| 5691 * | 5671 * |
| 5692 * [request] - The metadata request object. | 5672 * [request] - The metadata request object. |
| 5693 * | 5673 * |
| 5694 * Request parameters: | 5674 * Request parameters: |
| 5695 * | 5675 * |
| 5696 * [profileId] - User profile ID associated with this request. | 5676 * [profileId] - User profile ID associated with this request. |
| 5697 * | 5677 * |
| 5698 * [id] - Floodlight activity ID. | 5678 * [id] - Floodlight activity ID. |
| 5699 * | 5679 * |
| 5700 * Completes with a [FloodlightActivity]. | 5680 * Completes with a [FloodlightActivity]. |
| 5701 * | 5681 * |
| 5702 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5682 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5703 * error. | 5683 * error. |
| 5704 * | 5684 * |
| 5705 * If the used [http.Client] completes with an error when making a REST call, | 5685 * If the used [http.Client] completes with an error when making a REST call, |
| 5706 * this method will complete with the same error. | 5686 * this method will complete with the same error. |
| 5707 */ | 5687 */ |
| 5708 async.Future<FloodlightActivity> patch(FloodlightActivity request, core.String
profileId, core.String id) { | 5688 async.Future<FloodlightActivity> patch(FloodlightActivity request, core.String
profileId, core.String id) { |
| 5709 var _url = null; | 5689 var _url = null; |
| 5710 var _queryParams = new core.Map(); | 5690 var _queryParams = new core.Map(); |
| 5711 var _uploadMedia = null; | 5691 var _uploadMedia = null; |
| 5712 var _uploadOptions = null; | 5692 var _uploadOptions = null; |
| 5713 var _downloadOptions = common.DownloadOptions.Metadata; | 5693 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5714 var _body = null; | 5694 var _body = null; |
| 5715 | 5695 |
| 5716 if (request != null) { | 5696 if (request != null) { |
| 5717 _body = convert.JSON.encode((request).toJson()); | 5697 _body = convert.JSON.encode((request).toJson()); |
| 5718 } | 5698 } |
| 5719 if (profileId == null) { | 5699 if (profileId == null) { |
| 5720 throw new core.ArgumentError("Parameter profileId is required."); | 5700 throw new core.ArgumentError("Parameter profileId is required."); |
| 5721 } | 5701 } |
| 5722 if (id == null) { | 5702 if (id == null) { |
| 5723 throw new core.ArgumentError("Parameter id is required."); | 5703 throw new core.ArgumentError("Parameter id is required."); |
| 5724 } | 5704 } |
| 5725 _queryParams["id"] = [id]; | 5705 _queryParams["id"] = [id]; |
| 5726 | 5706 |
| 5727 | 5707 |
| 5728 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivities'; | 5708 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivities'; |
| 5729 | 5709 |
| 5730 var _response = _requester.request(_url, | 5710 var _response = _requester.request(_url, |
| 5731 "PATCH", | 5711 "PATCH", |
| 5732 body: _body, | 5712 body: _body, |
| 5733 queryParams: _queryParams, | 5713 queryParams: _queryParams, |
| 5734 uploadOptions: _uploadOptions, | 5714 uploadOptions: _uploadOptions, |
| 5735 uploadMedia: _uploadMedia, | 5715 uploadMedia: _uploadMedia, |
| 5736 downloadOptions: _downloadOptions); | 5716 downloadOptions: _downloadOptions); |
| 5737 return _response.then((data) => new FloodlightActivity.fromJson(data)); | 5717 return _response.then((data) => new FloodlightActivity.fromJson(data)); |
| 5738 } | 5718 } |
| 5739 | 5719 |
| 5740 /** | 5720 /** |
| 5741 * Updates an existing floodlight activity. | 5721 * Updates an existing floodlight activity. |
| 5742 * | 5722 * |
| 5743 * [request] - The metadata request object. | 5723 * [request] - The metadata request object. |
| 5744 * | 5724 * |
| 5745 * Request parameters: | 5725 * Request parameters: |
| 5746 * | 5726 * |
| 5747 * [profileId] - User profile ID associated with this request. | 5727 * [profileId] - User profile ID associated with this request. |
| 5748 * | 5728 * |
| 5749 * Completes with a [FloodlightActivity]. | 5729 * Completes with a [FloodlightActivity]. |
| 5750 * | 5730 * |
| 5751 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5731 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5752 * error. | 5732 * error. |
| 5753 * | 5733 * |
| 5754 * If the used [http.Client] completes with an error when making a REST call, | 5734 * If the used [http.Client] completes with an error when making a REST call, |
| 5755 * this method will complete with the same error. | 5735 * this method will complete with the same error. |
| 5756 */ | 5736 */ |
| 5757 async.Future<FloodlightActivity> update(FloodlightActivity request, core.Strin
g profileId) { | 5737 async.Future<FloodlightActivity> update(FloodlightActivity request, core.Strin
g profileId) { |
| 5758 var _url = null; | 5738 var _url = null; |
| 5759 var _queryParams = new core.Map(); | 5739 var _queryParams = new core.Map(); |
| 5760 var _uploadMedia = null; | 5740 var _uploadMedia = null; |
| 5761 var _uploadOptions = null; | 5741 var _uploadOptions = null; |
| 5762 var _downloadOptions = common.DownloadOptions.Metadata; | 5742 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5763 var _body = null; | 5743 var _body = null; |
| 5764 | 5744 |
| 5765 if (request != null) { | 5745 if (request != null) { |
| 5766 _body = convert.JSON.encode((request).toJson()); | 5746 _body = convert.JSON.encode((request).toJson()); |
| 5767 } | 5747 } |
| 5768 if (profileId == null) { | 5748 if (profileId == null) { |
| 5769 throw new core.ArgumentError("Parameter profileId is required."); | 5749 throw new core.ArgumentError("Parameter profileId is required."); |
| 5770 } | 5750 } |
| 5771 | 5751 |
| 5772 | 5752 |
| 5773 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivities'; | 5753 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivities'; |
| 5774 | 5754 |
| 5775 var _response = _requester.request(_url, | 5755 var _response = _requester.request(_url, |
| 5776 "PUT", | 5756 "PUT", |
| 5777 body: _body, | 5757 body: _body, |
| 5778 queryParams: _queryParams, | 5758 queryParams: _queryParams, |
| 5779 uploadOptions: _uploadOptions, | 5759 uploadOptions: _uploadOptions, |
| 5780 uploadMedia: _uploadMedia, | 5760 uploadMedia: _uploadMedia, |
| 5781 downloadOptions: _downloadOptions); | 5761 downloadOptions: _downloadOptions); |
| 5782 return _response.then((data) => new FloodlightActivity.fromJson(data)); | 5762 return _response.then((data) => new FloodlightActivity.fromJson(data)); |
| 5783 } | 5763 } |
| 5784 | 5764 |
| 5785 } | 5765 } |
| 5786 | 5766 |
| 5787 | 5767 |
| 5788 /** Not documented yet. */ | |
| 5789 class FloodlightActivityGroupsResourceApi { | 5768 class FloodlightActivityGroupsResourceApi { |
| 5790 final common_internal.ApiRequester _requester; | 5769 final commons.ApiRequester _requester; |
| 5791 | 5770 |
| 5792 FloodlightActivityGroupsResourceApi(common_internal.ApiRequester client) : | 5771 FloodlightActivityGroupsResourceApi(commons.ApiRequester client) : |
| 5793 _requester = client; | 5772 _requester = client; |
| 5794 | 5773 |
| 5795 /** | 5774 /** |
| 5796 * Deletes an existing floodlight activity group. | 5775 * Deletes an existing floodlight activity group. |
| 5797 * | 5776 * |
| 5798 * Request parameters: | 5777 * Request parameters: |
| 5799 * | 5778 * |
| 5800 * [profileId] - User profile ID associated with this request. | 5779 * [profileId] - User profile ID associated with this request. |
| 5801 * | 5780 * |
| 5802 * [id] - Floodlight activity Group ID. | 5781 * [id] - Floodlight activity Group ID. |
| 5803 * | 5782 * |
| 5804 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5783 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5805 * error. | 5784 * error. |
| 5806 * | 5785 * |
| 5807 * If the used [http.Client] completes with an error when making a REST call, | 5786 * If the used [http.Client] completes with an error when making a REST call, |
| 5808 * this method will complete with the same error. | 5787 * this method will complete with the same error. |
| 5809 */ | 5788 */ |
| 5810 async.Future delete(core.String profileId, core.String id) { | 5789 async.Future delete(core.String profileId, core.String id) { |
| 5811 var _url = null; | 5790 var _url = null; |
| 5812 var _queryParams = new core.Map(); | 5791 var _queryParams = new core.Map(); |
| 5813 var _uploadMedia = null; | 5792 var _uploadMedia = null; |
| 5814 var _uploadOptions = null; | 5793 var _uploadOptions = null; |
| 5815 var _downloadOptions = common.DownloadOptions.Metadata; | 5794 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5816 var _body = null; | 5795 var _body = null; |
| 5817 | 5796 |
| 5818 if (profileId == null) { | 5797 if (profileId == null) { |
| 5819 throw new core.ArgumentError("Parameter profileId is required."); | 5798 throw new core.ArgumentError("Parameter profileId is required."); |
| 5820 } | 5799 } |
| 5821 if (id == null) { | 5800 if (id == null) { |
| 5822 throw new core.ArgumentError("Parameter id is required."); | 5801 throw new core.ArgumentError("Parameter id is required."); |
| 5823 } | 5802 } |
| 5824 | 5803 |
| 5825 _downloadOptions = null; | 5804 _downloadOptions = null; |
| 5826 | 5805 |
| 5827 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivityGroups/' + common_internal.Escaper.ecapeVariable('$id'); | 5806 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivityGroups/' + commons.Escaper.ecapeVariable('$id'); |
| 5828 | 5807 |
| 5829 var _response = _requester.request(_url, | 5808 var _response = _requester.request(_url, |
| 5830 "DELETE", | 5809 "DELETE", |
| 5831 body: _body, | 5810 body: _body, |
| 5832 queryParams: _queryParams, | 5811 queryParams: _queryParams, |
| 5833 uploadOptions: _uploadOptions, | 5812 uploadOptions: _uploadOptions, |
| 5834 uploadMedia: _uploadMedia, | 5813 uploadMedia: _uploadMedia, |
| 5835 downloadOptions: _downloadOptions); | 5814 downloadOptions: _downloadOptions); |
| 5836 return _response.then((data) => null); | 5815 return _response.then((data) => null); |
| 5837 } | 5816 } |
| 5838 | 5817 |
| 5839 /** | 5818 /** |
| 5840 * Gets one floodlight activity group by ID. | 5819 * Gets one floodlight activity group by ID. |
| 5841 * | 5820 * |
| 5842 * Request parameters: | 5821 * Request parameters: |
| 5843 * | 5822 * |
| 5844 * [profileId] - User profile ID associated with this request. | 5823 * [profileId] - User profile ID associated with this request. |
| 5845 * | 5824 * |
| 5846 * [id] - Floodlight activity Group ID. | 5825 * [id] - Floodlight activity Group ID. |
| 5847 * | 5826 * |
| 5848 * Completes with a [FloodlightActivityGroup]. | 5827 * Completes with a [FloodlightActivityGroup]. |
| 5849 * | 5828 * |
| 5850 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5829 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5851 * error. | 5830 * error. |
| 5852 * | 5831 * |
| 5853 * If the used [http.Client] completes with an error when making a REST call, | 5832 * If the used [http.Client] completes with an error when making a REST call, |
| 5854 * this method will complete with the same error. | 5833 * this method will complete with the same error. |
| 5855 */ | 5834 */ |
| 5856 async.Future<FloodlightActivityGroup> get(core.String profileId, core.String i
d) { | 5835 async.Future<FloodlightActivityGroup> get(core.String profileId, core.String i
d) { |
| 5857 var _url = null; | 5836 var _url = null; |
| 5858 var _queryParams = new core.Map(); | 5837 var _queryParams = new core.Map(); |
| 5859 var _uploadMedia = null; | 5838 var _uploadMedia = null; |
| 5860 var _uploadOptions = null; | 5839 var _uploadOptions = null; |
| 5861 var _downloadOptions = common.DownloadOptions.Metadata; | 5840 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5862 var _body = null; | 5841 var _body = null; |
| 5863 | 5842 |
| 5864 if (profileId == null) { | 5843 if (profileId == null) { |
| 5865 throw new core.ArgumentError("Parameter profileId is required."); | 5844 throw new core.ArgumentError("Parameter profileId is required."); |
| 5866 } | 5845 } |
| 5867 if (id == null) { | 5846 if (id == null) { |
| 5868 throw new core.ArgumentError("Parameter id is required."); | 5847 throw new core.ArgumentError("Parameter id is required."); |
| 5869 } | 5848 } |
| 5870 | 5849 |
| 5871 | 5850 |
| 5872 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivityGroups/' + common_internal.Escaper.ecapeVariable('$id'); | 5851 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivityGroups/' + commons.Escaper.ecapeVariable('$id'); |
| 5873 | 5852 |
| 5874 var _response = _requester.request(_url, | 5853 var _response = _requester.request(_url, |
| 5875 "GET", | 5854 "GET", |
| 5876 body: _body, | 5855 body: _body, |
| 5877 queryParams: _queryParams, | 5856 queryParams: _queryParams, |
| 5878 uploadOptions: _uploadOptions, | 5857 uploadOptions: _uploadOptions, |
| 5879 uploadMedia: _uploadMedia, | 5858 uploadMedia: _uploadMedia, |
| 5880 downloadOptions: _downloadOptions); | 5859 downloadOptions: _downloadOptions); |
| 5881 return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); | 5860 return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); |
| 5882 } | 5861 } |
| 5883 | 5862 |
| 5884 /** | 5863 /** |
| 5885 * Inserts a new floodlight activity group. | 5864 * Inserts a new floodlight activity group. |
| 5886 * | 5865 * |
| 5887 * [request] - The metadata request object. | 5866 * [request] - The metadata request object. |
| 5888 * | 5867 * |
| 5889 * Request parameters: | 5868 * Request parameters: |
| 5890 * | 5869 * |
| 5891 * [profileId] - User profile ID associated with this request. | 5870 * [profileId] - User profile ID associated with this request. |
| 5892 * | 5871 * |
| 5893 * Completes with a [FloodlightActivityGroup]. | 5872 * Completes with a [FloodlightActivityGroup]. |
| 5894 * | 5873 * |
| 5895 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5874 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5896 * error. | 5875 * error. |
| 5897 * | 5876 * |
| 5898 * If the used [http.Client] completes with an error when making a REST call, | 5877 * If the used [http.Client] completes with an error when making a REST call, |
| 5899 * this method will complete with the same error. | 5878 * this method will complete with the same error. |
| 5900 */ | 5879 */ |
| 5901 async.Future<FloodlightActivityGroup> insert(FloodlightActivityGroup request,
core.String profileId) { | 5880 async.Future<FloodlightActivityGroup> insert(FloodlightActivityGroup request,
core.String profileId) { |
| 5902 var _url = null; | 5881 var _url = null; |
| 5903 var _queryParams = new core.Map(); | 5882 var _queryParams = new core.Map(); |
| 5904 var _uploadMedia = null; | 5883 var _uploadMedia = null; |
| 5905 var _uploadOptions = null; | 5884 var _uploadOptions = null; |
| 5906 var _downloadOptions = common.DownloadOptions.Metadata; | 5885 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5907 var _body = null; | 5886 var _body = null; |
| 5908 | 5887 |
| 5909 if (request != null) { | 5888 if (request != null) { |
| 5910 _body = convert.JSON.encode((request).toJson()); | 5889 _body = convert.JSON.encode((request).toJson()); |
| 5911 } | 5890 } |
| 5912 if (profileId == null) { | 5891 if (profileId == null) { |
| 5913 throw new core.ArgumentError("Parameter profileId is required."); | 5892 throw new core.ArgumentError("Parameter profileId is required."); |
| 5914 } | 5893 } |
| 5915 | 5894 |
| 5916 | 5895 |
| 5917 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivityGroups'; | 5896 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivityGroups'; |
| 5918 | 5897 |
| 5919 var _response = _requester.request(_url, | 5898 var _response = _requester.request(_url, |
| 5920 "POST", | 5899 "POST", |
| 5921 body: _body, | 5900 body: _body, |
| 5922 queryParams: _queryParams, | 5901 queryParams: _queryParams, |
| 5923 uploadOptions: _uploadOptions, | 5902 uploadOptions: _uploadOptions, |
| 5924 uploadMedia: _uploadMedia, | 5903 uploadMedia: _uploadMedia, |
| 5925 downloadOptions: _downloadOptions); | 5904 downloadOptions: _downloadOptions); |
| 5926 return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); | 5905 return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); |
| 5927 } | 5906 } |
| 5928 | 5907 |
| 5929 /** | 5908 /** |
| 5930 * Retrieves a list of floodlight activity groups, possibly filtered. | 5909 * Retrieves a list of floodlight activity groups, possibly filtered. |
| 5931 * | 5910 * |
| 5932 * Request parameters: | 5911 * Request parameters: |
| 5933 * | 5912 * |
| 5934 * [profileId] - User profile ID associated with this request. | 5913 * [profileId] - User profile ID associated with this request. |
| 5935 * | 5914 * |
| 5936 * [advertiserId] - Select only floodlight activity groups with the specified | 5915 * [advertiserId] - Select only floodlight activity groups with the specified |
| 5937 * advertiser ID. Must specify either ids, advertiserId, or | 5916 * advertiser ID. Must specify either advertiserId or |
| 5938 * floodlightConfigurationId for a non-empty result. | 5917 * floodlightConfigurationId for a non-empty result. |
| 5939 * | 5918 * |
| 5940 * [floodlightConfigurationId] - Select only floodlight activity groups with | 5919 * [floodlightConfigurationId] - Select only floodlight activity groups with |
| 5941 * the specified floodlight configuration ID. Must specify either ids, | 5920 * the specified floodlight configuration ID. Must specify either |
| 5942 * advertiserId, or floodlightConfigurationId for a non-empty result. | 5921 * advertiserId, or floodlightConfigurationId for a non-empty result. |
| 5943 * | 5922 * |
| 5944 * [ids] - Select only floodlight activity groups with the specified IDs. Must | 5923 * [ids] - Select only floodlight activity groups with the specified IDs. Must |
| 5945 * specify either ids, advertiserId, or floodlightConfigurationId for a | 5924 * specify either advertiserId or floodlightConfigurationId for a non-empty |
| 5946 * non-empty result. | 5925 * result. |
| 5947 * | 5926 * |
| 5948 * [maxResults] - Maximum number of results to return. | 5927 * [maxResults] - Maximum number of results to return. |
| 5949 * | 5928 * |
| 5950 * [pageToken] - Value of the nextPageToken from the previous result page. | 5929 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 5951 * | 5930 * |
| 5952 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 5931 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 5953 * are allowed. For example, "floodlightactivitygroup*2015" will return | 5932 * are allowed. For example, "floodlightactivitygroup*2015" will return |
| 5954 * objects with names like "floodlightactivitygroup June 2015", | 5933 * objects with names like "floodlightactivitygroup June 2015", |
| 5955 * "floodlightactivitygroup April 2015" or simply "floodlightactivitygroup | 5934 * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup |
| 5956 * 2015". Most of the searches also add wildcards implicitly at the start and | 5935 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 5957 * the end of the search string. For example, a search string of | 5936 * the end of the search string. For example, a search string of |
| 5958 * "floodlightactivitygroup" will match objects with name "my | 5937 * "floodlightactivitygroup" will match objects with name "my |
| 5959 * floodlightactivitygroup activity", "floodlightactivitygroup 2015" or simply | 5938 * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or |
| 5960 * "floodlightactivitygroup". | 5939 * simply "floodlightactivitygroup". |
| 5961 * | 5940 * |
| 5962 * [sortField] - Field by which to sort the list. | 5941 * [sortField] - Field by which to sort the list. |
| 5963 * Possible string values are: | 5942 * Possible string values are: |
| 5964 * - "ID" | 5943 * - "ID" |
| 5965 * - "NAME" | 5944 * - "NAME" |
| 5966 * | 5945 * |
| 5967 * [sortOrder] - Order of sorted results, default is ASCENDING. | 5946 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 5968 * Possible string values are: | 5947 * Possible string values are: |
| 5969 * - "ASCENDING" | 5948 * - "ASCENDING" |
| 5970 * - "DESCENDING" | 5949 * - "DESCENDING" |
| 5971 * | 5950 * |
| 5972 * [type] - Select only floodlight activity groups with the specified | 5951 * [type] - Select only floodlight activity groups with the specified |
| 5973 * floodlight activity group type. | 5952 * floodlight activity group type. |
| 5974 * Possible string values are: | 5953 * Possible string values are: |
| 5975 * - "COUNTER" | 5954 * - "COUNTER" |
| 5976 * - "SALE" | 5955 * - "SALE" |
| 5977 * | 5956 * |
| 5978 * Completes with a [FloodlightActivityGroupsListResponse]. | 5957 * Completes with a [FloodlightActivityGroupsListResponse]. |
| 5979 * | 5958 * |
| 5980 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 5959 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5981 * error. | 5960 * error. |
| 5982 * | 5961 * |
| 5983 * If the used [http.Client] completes with an error when making a REST call, | 5962 * If the used [http.Client] completes with an error when making a REST call, |
| 5984 * this method will complete with the same error. | 5963 * this method will complete with the same error. |
| 5985 */ | 5964 */ |
| 5986 async.Future<FloodlightActivityGroupsListResponse> list(core.String profileId,
{core.String advertiserId, core.String floodlightConfigurationId, core.List<cor
e.String> ids, core.int maxResults, core.String pageToken, core.String searchStr
ing, core.String sortField, core.String sortOrder, core.String type}) { | 5965 async.Future<FloodlightActivityGroupsListResponse> list(core.String profileId,
{core.String advertiserId, core.String floodlightConfigurationId, core.List<cor
e.String> ids, core.int maxResults, core.String pageToken, core.String searchStr
ing, core.String sortField, core.String sortOrder, core.String type}) { |
| 5987 var _url = null; | 5966 var _url = null; |
| 5988 var _queryParams = new core.Map(); | 5967 var _queryParams = new core.Map(); |
| 5989 var _uploadMedia = null; | 5968 var _uploadMedia = null; |
| 5990 var _uploadOptions = null; | 5969 var _uploadOptions = null; |
| 5991 var _downloadOptions = common.DownloadOptions.Metadata; | 5970 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5992 var _body = null; | 5971 var _body = null; |
| 5993 | 5972 |
| 5994 if (profileId == null) { | 5973 if (profileId == null) { |
| 5995 throw new core.ArgumentError("Parameter profileId is required."); | 5974 throw new core.ArgumentError("Parameter profileId is required."); |
| 5996 } | 5975 } |
| 5997 if (advertiserId != null) { | 5976 if (advertiserId != null) { |
| 5998 _queryParams["advertiserId"] = [advertiserId]; | 5977 _queryParams["advertiserId"] = [advertiserId]; |
| 5999 } | 5978 } |
| 6000 if (floodlightConfigurationId != null) { | 5979 if (floodlightConfigurationId != null) { |
| 6001 _queryParams["floodlightConfigurationId"] = [floodlightConfigurationId]; | 5980 _queryParams["floodlightConfigurationId"] = [floodlightConfigurationId]; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 6016 _queryParams["sortField"] = [sortField]; | 5995 _queryParams["sortField"] = [sortField]; |
| 6017 } | 5996 } |
| 6018 if (sortOrder != null) { | 5997 if (sortOrder != null) { |
| 6019 _queryParams["sortOrder"] = [sortOrder]; | 5998 _queryParams["sortOrder"] = [sortOrder]; |
| 6020 } | 5999 } |
| 6021 if (type != null) { | 6000 if (type != null) { |
| 6022 _queryParams["type"] = [type]; | 6001 _queryParams["type"] = [type]; |
| 6023 } | 6002 } |
| 6024 | 6003 |
| 6025 | 6004 |
| 6026 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivityGroups'; | 6005 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivityGroups'; |
| 6027 | 6006 |
| 6028 var _response = _requester.request(_url, | 6007 var _response = _requester.request(_url, |
| 6029 "GET", | 6008 "GET", |
| 6030 body: _body, | 6009 body: _body, |
| 6031 queryParams: _queryParams, | 6010 queryParams: _queryParams, |
| 6032 uploadOptions: _uploadOptions, | 6011 uploadOptions: _uploadOptions, |
| 6033 uploadMedia: _uploadMedia, | 6012 uploadMedia: _uploadMedia, |
| 6034 downloadOptions: _downloadOptions); | 6013 downloadOptions: _downloadOptions); |
| 6035 return _response.then((data) => new FloodlightActivityGroupsListResponse.fro
mJson(data)); | 6014 return _response.then((data) => new FloodlightActivityGroupsListResponse.fro
mJson(data)); |
| 6036 } | 6015 } |
| 6037 | 6016 |
| 6038 /** | 6017 /** |
| 6039 * Updates an existing floodlight activity group. This method supports patch | 6018 * Updates an existing floodlight activity group. This method supports patch |
| 6040 * semantics. | 6019 * semantics. |
| 6041 * | 6020 * |
| 6042 * [request] - The metadata request object. | 6021 * [request] - The metadata request object. |
| 6043 * | 6022 * |
| 6044 * Request parameters: | 6023 * Request parameters: |
| 6045 * | 6024 * |
| 6046 * [profileId] - User profile ID associated with this request. | 6025 * [profileId] - User profile ID associated with this request. |
| 6047 * | 6026 * |
| 6048 * [id] - Floodlight activity Group ID. | 6027 * [id] - Floodlight activity Group ID. |
| 6049 * | 6028 * |
| 6050 * Completes with a [FloodlightActivityGroup]. | 6029 * Completes with a [FloodlightActivityGroup]. |
| 6051 * | 6030 * |
| 6052 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6031 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6053 * error. | 6032 * error. |
| 6054 * | 6033 * |
| 6055 * If the used [http.Client] completes with an error when making a REST call, | 6034 * If the used [http.Client] completes with an error when making a REST call, |
| 6056 * this method will complete with the same error. | 6035 * this method will complete with the same error. |
| 6057 */ | 6036 */ |
| 6058 async.Future<FloodlightActivityGroup> patch(FloodlightActivityGroup request, c
ore.String profileId, core.String id) { | 6037 async.Future<FloodlightActivityGroup> patch(FloodlightActivityGroup request, c
ore.String profileId, core.String id) { |
| 6059 var _url = null; | 6038 var _url = null; |
| 6060 var _queryParams = new core.Map(); | 6039 var _queryParams = new core.Map(); |
| 6061 var _uploadMedia = null; | 6040 var _uploadMedia = null; |
| 6062 var _uploadOptions = null; | 6041 var _uploadOptions = null; |
| 6063 var _downloadOptions = common.DownloadOptions.Metadata; | 6042 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6064 var _body = null; | 6043 var _body = null; |
| 6065 | 6044 |
| 6066 if (request != null) { | 6045 if (request != null) { |
| 6067 _body = convert.JSON.encode((request).toJson()); | 6046 _body = convert.JSON.encode((request).toJson()); |
| 6068 } | 6047 } |
| 6069 if (profileId == null) { | 6048 if (profileId == null) { |
| 6070 throw new core.ArgumentError("Parameter profileId is required."); | 6049 throw new core.ArgumentError("Parameter profileId is required."); |
| 6071 } | 6050 } |
| 6072 if (id == null) { | 6051 if (id == null) { |
| 6073 throw new core.ArgumentError("Parameter id is required."); | 6052 throw new core.ArgumentError("Parameter id is required."); |
| 6074 } | 6053 } |
| 6075 _queryParams["id"] = [id]; | 6054 _queryParams["id"] = [id]; |
| 6076 | 6055 |
| 6077 | 6056 |
| 6078 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivityGroups'; | 6057 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivityGroups'; |
| 6079 | 6058 |
| 6080 var _response = _requester.request(_url, | 6059 var _response = _requester.request(_url, |
| 6081 "PATCH", | 6060 "PATCH", |
| 6082 body: _body, | 6061 body: _body, |
| 6083 queryParams: _queryParams, | 6062 queryParams: _queryParams, |
| 6084 uploadOptions: _uploadOptions, | 6063 uploadOptions: _uploadOptions, |
| 6085 uploadMedia: _uploadMedia, | 6064 uploadMedia: _uploadMedia, |
| 6086 downloadOptions: _downloadOptions); | 6065 downloadOptions: _downloadOptions); |
| 6087 return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); | 6066 return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); |
| 6088 } | 6067 } |
| 6089 | 6068 |
| 6090 /** | 6069 /** |
| 6091 * Updates an existing floodlight activity group. | 6070 * Updates an existing floodlight activity group. |
| 6092 * | 6071 * |
| 6093 * [request] - The metadata request object. | 6072 * [request] - The metadata request object. |
| 6094 * | 6073 * |
| 6095 * Request parameters: | 6074 * Request parameters: |
| 6096 * | 6075 * |
| 6097 * [profileId] - User profile ID associated with this request. | 6076 * [profileId] - User profile ID associated with this request. |
| 6098 * | 6077 * |
| 6099 * Completes with a [FloodlightActivityGroup]. | 6078 * Completes with a [FloodlightActivityGroup]. |
| 6100 * | 6079 * |
| 6101 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6080 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6102 * error. | 6081 * error. |
| 6103 * | 6082 * |
| 6104 * If the used [http.Client] completes with an error when making a REST call, | 6083 * If the used [http.Client] completes with an error when making a REST call, |
| 6105 * this method will complete with the same error. | 6084 * this method will complete with the same error. |
| 6106 */ | 6085 */ |
| 6107 async.Future<FloodlightActivityGroup> update(FloodlightActivityGroup request,
core.String profileId) { | 6086 async.Future<FloodlightActivityGroup> update(FloodlightActivityGroup request,
core.String profileId) { |
| 6108 var _url = null; | 6087 var _url = null; |
| 6109 var _queryParams = new core.Map(); | 6088 var _queryParams = new core.Map(); |
| 6110 var _uploadMedia = null; | 6089 var _uploadMedia = null; |
| 6111 var _uploadOptions = null; | 6090 var _uploadOptions = null; |
| 6112 var _downloadOptions = common.DownloadOptions.Metadata; | 6091 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6113 var _body = null; | 6092 var _body = null; |
| 6114 | 6093 |
| 6115 if (request != null) { | 6094 if (request != null) { |
| 6116 _body = convert.JSON.encode((request).toJson()); | 6095 _body = convert.JSON.encode((request).toJson()); |
| 6117 } | 6096 } |
| 6118 if (profileId == null) { | 6097 if (profileId == null) { |
| 6119 throw new core.ArgumentError("Parameter profileId is required."); | 6098 throw new core.ArgumentError("Parameter profileId is required."); |
| 6120 } | 6099 } |
| 6121 | 6100 |
| 6122 | 6101 |
| 6123 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightActivityGroups'; | 6102 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightActivityGroups'; |
| 6124 | 6103 |
| 6125 var _response = _requester.request(_url, | 6104 var _response = _requester.request(_url, |
| 6126 "PUT", | 6105 "PUT", |
| 6127 body: _body, | 6106 body: _body, |
| 6128 queryParams: _queryParams, | 6107 queryParams: _queryParams, |
| 6129 uploadOptions: _uploadOptions, | 6108 uploadOptions: _uploadOptions, |
| 6130 uploadMedia: _uploadMedia, | 6109 uploadMedia: _uploadMedia, |
| 6131 downloadOptions: _downloadOptions); | 6110 downloadOptions: _downloadOptions); |
| 6132 return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); | 6111 return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); |
| 6133 } | 6112 } |
| 6134 | 6113 |
| 6135 } | 6114 } |
| 6136 | 6115 |
| 6137 | 6116 |
| 6138 /** Not documented yet. */ | |
| 6139 class FloodlightConfigurationsResourceApi { | 6117 class FloodlightConfigurationsResourceApi { |
| 6140 final common_internal.ApiRequester _requester; | 6118 final commons.ApiRequester _requester; |
| 6141 | 6119 |
| 6142 FloodlightConfigurationsResourceApi(common_internal.ApiRequester client) : | 6120 FloodlightConfigurationsResourceApi(commons.ApiRequester client) : |
| 6143 _requester = client; | 6121 _requester = client; |
| 6144 | 6122 |
| 6145 /** | 6123 /** |
| 6146 * Gets one floodlight configuration by ID. | 6124 * Gets one floodlight configuration by ID. |
| 6147 * | 6125 * |
| 6148 * Request parameters: | 6126 * Request parameters: |
| 6149 * | 6127 * |
| 6150 * [profileId] - User profile ID associated with this request. | 6128 * [profileId] - User profile ID associated with this request. |
| 6151 * | 6129 * |
| 6152 * [id] - Floodlight configuration ID. | 6130 * [id] - Floodlight configuration ID. |
| 6153 * | 6131 * |
| 6154 * Completes with a [FloodlightConfiguration]. | 6132 * Completes with a [FloodlightConfiguration]. |
| 6155 * | 6133 * |
| 6156 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6134 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6157 * error. | 6135 * error. |
| 6158 * | 6136 * |
| 6159 * If the used [http.Client] completes with an error when making a REST call, | 6137 * If the used [http.Client] completes with an error when making a REST call, |
| 6160 * this method will complete with the same error. | 6138 * this method will complete with the same error. |
| 6161 */ | 6139 */ |
| 6162 async.Future<FloodlightConfiguration> get(core.String profileId, core.String i
d) { | 6140 async.Future<FloodlightConfiguration> get(core.String profileId, core.String i
d) { |
| 6163 var _url = null; | 6141 var _url = null; |
| 6164 var _queryParams = new core.Map(); | 6142 var _queryParams = new core.Map(); |
| 6165 var _uploadMedia = null; | 6143 var _uploadMedia = null; |
| 6166 var _uploadOptions = null; | 6144 var _uploadOptions = null; |
| 6167 var _downloadOptions = common.DownloadOptions.Metadata; | 6145 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6168 var _body = null; | 6146 var _body = null; |
| 6169 | 6147 |
| 6170 if (profileId == null) { | 6148 if (profileId == null) { |
| 6171 throw new core.ArgumentError("Parameter profileId is required."); | 6149 throw new core.ArgumentError("Parameter profileId is required."); |
| 6172 } | 6150 } |
| 6173 if (id == null) { | 6151 if (id == null) { |
| 6174 throw new core.ArgumentError("Parameter id is required."); | 6152 throw new core.ArgumentError("Parameter id is required."); |
| 6175 } | 6153 } |
| 6176 | 6154 |
| 6177 | 6155 |
| 6178 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightConfigurations/' + common_internal.Escaper.ecapeVariable('$id'); | 6156 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightConfigurations/' + commons.Escaper.ecapeVariable('$id'); |
| 6179 | 6157 |
| 6180 var _response = _requester.request(_url, | 6158 var _response = _requester.request(_url, |
| 6181 "GET", | 6159 "GET", |
| 6182 body: _body, | 6160 body: _body, |
| 6183 queryParams: _queryParams, | 6161 queryParams: _queryParams, |
| 6184 uploadOptions: _uploadOptions, | 6162 uploadOptions: _uploadOptions, |
| 6185 uploadMedia: _uploadMedia, | 6163 uploadMedia: _uploadMedia, |
| 6186 downloadOptions: _downloadOptions); | 6164 downloadOptions: _downloadOptions); |
| 6187 return _response.then((data) => new FloodlightConfiguration.fromJson(data)); | 6165 return _response.then((data) => new FloodlightConfiguration.fromJson(data)); |
| 6188 } | 6166 } |
| 6189 | 6167 |
| 6190 /** | 6168 /** |
| 6191 * Retrieves a list of floodlight configurations, possibly filtered. | 6169 * Retrieves a list of floodlight configurations, possibly filtered. |
| 6192 * | 6170 * |
| 6193 * Request parameters: | 6171 * Request parameters: |
| 6194 * | 6172 * |
| 6195 * [profileId] - User profile ID associated with this request. | 6173 * [profileId] - User profile ID associated with this request. |
| 6196 * | 6174 * |
| 6197 * [ids] - Set of IDs of floodlight configurations to retrieve. Required | 6175 * [ids] - Set of IDs of floodlight configurations to retrieve. Required |
| 6198 * field; otherwise an empty list will be returned. | 6176 * field; otherwise an empty list will be returned. |
| 6199 * | 6177 * |
| 6200 * Completes with a [FloodlightConfigurationsListResponse]. | 6178 * Completes with a [FloodlightConfigurationsListResponse]. |
| 6201 * | 6179 * |
| 6202 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6180 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6203 * error. | 6181 * error. |
| 6204 * | 6182 * |
| 6205 * If the used [http.Client] completes with an error when making a REST call, | 6183 * If the used [http.Client] completes with an error when making a REST call, |
| 6206 * this method will complete with the same error. | 6184 * this method will complete with the same error. |
| 6207 */ | 6185 */ |
| 6208 async.Future<FloodlightConfigurationsListResponse> list(core.String profileId,
{core.List<core.String> ids}) { | 6186 async.Future<FloodlightConfigurationsListResponse> list(core.String profileId,
{core.List<core.String> ids}) { |
| 6209 var _url = null; | 6187 var _url = null; |
| 6210 var _queryParams = new core.Map(); | 6188 var _queryParams = new core.Map(); |
| 6211 var _uploadMedia = null; | 6189 var _uploadMedia = null; |
| 6212 var _uploadOptions = null; | 6190 var _uploadOptions = null; |
| 6213 var _downloadOptions = common.DownloadOptions.Metadata; | 6191 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6214 var _body = null; | 6192 var _body = null; |
| 6215 | 6193 |
| 6216 if (profileId == null) { | 6194 if (profileId == null) { |
| 6217 throw new core.ArgumentError("Parameter profileId is required."); | 6195 throw new core.ArgumentError("Parameter profileId is required."); |
| 6218 } | 6196 } |
| 6219 if (ids != null) { | 6197 if (ids != null) { |
| 6220 _queryParams["ids"] = ids; | 6198 _queryParams["ids"] = ids; |
| 6221 } | 6199 } |
| 6222 | 6200 |
| 6223 | 6201 |
| 6224 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightConfigurations'; | 6202 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightConfigurations'; |
| 6225 | 6203 |
| 6226 var _response = _requester.request(_url, | 6204 var _response = _requester.request(_url, |
| 6227 "GET", | 6205 "GET", |
| 6228 body: _body, | 6206 body: _body, |
| 6229 queryParams: _queryParams, | 6207 queryParams: _queryParams, |
| 6230 uploadOptions: _uploadOptions, | 6208 uploadOptions: _uploadOptions, |
| 6231 uploadMedia: _uploadMedia, | 6209 uploadMedia: _uploadMedia, |
| 6232 downloadOptions: _downloadOptions); | 6210 downloadOptions: _downloadOptions); |
| 6233 return _response.then((data) => new FloodlightConfigurationsListResponse.fro
mJson(data)); | 6211 return _response.then((data) => new FloodlightConfigurationsListResponse.fro
mJson(data)); |
| 6234 } | 6212 } |
| 6235 | 6213 |
| 6236 /** | 6214 /** |
| 6237 * Updates an existing floodlight configuration. This method supports patch | 6215 * Updates an existing floodlight configuration. This method supports patch |
| 6238 * semantics. | 6216 * semantics. |
| 6239 * | 6217 * |
| 6240 * [request] - The metadata request object. | 6218 * [request] - The metadata request object. |
| 6241 * | 6219 * |
| 6242 * Request parameters: | 6220 * Request parameters: |
| 6243 * | 6221 * |
| 6244 * [profileId] - User profile ID associated with this request. | 6222 * [profileId] - User profile ID associated with this request. |
| 6245 * | 6223 * |
| 6246 * [id] - Floodlight configuration ID. | 6224 * [id] - Floodlight configuration ID. |
| 6247 * | 6225 * |
| 6248 * Completes with a [FloodlightConfiguration]. | 6226 * Completes with a [FloodlightConfiguration]. |
| 6249 * | 6227 * |
| 6250 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6251 * error. | 6229 * error. |
| 6252 * | 6230 * |
| 6253 * If the used [http.Client] completes with an error when making a REST call, | 6231 * If the used [http.Client] completes with an error when making a REST call, |
| 6254 * this method will complete with the same error. | 6232 * this method will complete with the same error. |
| 6255 */ | 6233 */ |
| 6256 async.Future<FloodlightConfiguration> patch(FloodlightConfiguration request, c
ore.String profileId, core.String id) { | 6234 async.Future<FloodlightConfiguration> patch(FloodlightConfiguration request, c
ore.String profileId, core.String id) { |
| 6257 var _url = null; | 6235 var _url = null; |
| 6258 var _queryParams = new core.Map(); | 6236 var _queryParams = new core.Map(); |
| 6259 var _uploadMedia = null; | 6237 var _uploadMedia = null; |
| 6260 var _uploadOptions = null; | 6238 var _uploadOptions = null; |
| 6261 var _downloadOptions = common.DownloadOptions.Metadata; | 6239 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6262 var _body = null; | 6240 var _body = null; |
| 6263 | 6241 |
| 6264 if (request != null) { | 6242 if (request != null) { |
| 6265 _body = convert.JSON.encode((request).toJson()); | 6243 _body = convert.JSON.encode((request).toJson()); |
| 6266 } | 6244 } |
| 6267 if (profileId == null) { | 6245 if (profileId == null) { |
| 6268 throw new core.ArgumentError("Parameter profileId is required."); | 6246 throw new core.ArgumentError("Parameter profileId is required."); |
| 6269 } | 6247 } |
| 6270 if (id == null) { | 6248 if (id == null) { |
| 6271 throw new core.ArgumentError("Parameter id is required."); | 6249 throw new core.ArgumentError("Parameter id is required."); |
| 6272 } | 6250 } |
| 6273 _queryParams["id"] = [id]; | 6251 _queryParams["id"] = [id]; |
| 6274 | 6252 |
| 6275 | 6253 |
| 6276 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightConfigurations'; | 6254 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightConfigurations'; |
| 6277 | 6255 |
| 6278 var _response = _requester.request(_url, | 6256 var _response = _requester.request(_url, |
| 6279 "PATCH", | 6257 "PATCH", |
| 6280 body: _body, | 6258 body: _body, |
| 6281 queryParams: _queryParams, | 6259 queryParams: _queryParams, |
| 6282 uploadOptions: _uploadOptions, | 6260 uploadOptions: _uploadOptions, |
| 6283 uploadMedia: _uploadMedia, | 6261 uploadMedia: _uploadMedia, |
| 6284 downloadOptions: _downloadOptions); | 6262 downloadOptions: _downloadOptions); |
| 6285 return _response.then((data) => new FloodlightConfiguration.fromJson(data)); | 6263 return _response.then((data) => new FloodlightConfiguration.fromJson(data)); |
| 6286 } | 6264 } |
| 6287 | 6265 |
| 6288 /** | 6266 /** |
| 6289 * Updates an existing floodlight configuration. | 6267 * Updates an existing floodlight configuration. |
| 6290 * | 6268 * |
| 6291 * [request] - The metadata request object. | 6269 * [request] - The metadata request object. |
| 6292 * | 6270 * |
| 6293 * Request parameters: | 6271 * Request parameters: |
| 6294 * | 6272 * |
| 6295 * [profileId] - User profile ID associated with this request. | 6273 * [profileId] - User profile ID associated with this request. |
| 6296 * | 6274 * |
| 6297 * Completes with a [FloodlightConfiguration]. | 6275 * Completes with a [FloodlightConfiguration]. |
| 6298 * | 6276 * |
| 6299 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6277 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6300 * error. | 6278 * error. |
| 6301 * | 6279 * |
| 6302 * If the used [http.Client] completes with an error when making a REST call, | 6280 * If the used [http.Client] completes with an error when making a REST call, |
| 6303 * this method will complete with the same error. | 6281 * this method will complete with the same error. |
| 6304 */ | 6282 */ |
| 6305 async.Future<FloodlightConfiguration> update(FloodlightConfiguration request,
core.String profileId) { | 6283 async.Future<FloodlightConfiguration> update(FloodlightConfiguration request,
core.String profileId) { |
| 6306 var _url = null; | 6284 var _url = null; |
| 6307 var _queryParams = new core.Map(); | 6285 var _queryParams = new core.Map(); |
| 6308 var _uploadMedia = null; | 6286 var _uploadMedia = null; |
| 6309 var _uploadOptions = null; | 6287 var _uploadOptions = null; |
| 6310 var _downloadOptions = common.DownloadOptions.Metadata; | 6288 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6311 var _body = null; | 6289 var _body = null; |
| 6312 | 6290 |
| 6313 if (request != null) { | 6291 if (request != null) { |
| 6314 _body = convert.JSON.encode((request).toJson()); | 6292 _body = convert.JSON.encode((request).toJson()); |
| 6315 } | 6293 } |
| 6316 if (profileId == null) { | 6294 if (profileId == null) { |
| 6317 throw new core.ArgumentError("Parameter profileId is required."); | 6295 throw new core.ArgumentError("Parameter profileId is required."); |
| 6318 } | 6296 } |
| 6319 | 6297 |
| 6320 | 6298 |
| 6321 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/floodlightConfigurations'; | 6299 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/flo
odlightConfigurations'; |
| 6322 | 6300 |
| 6323 var _response = _requester.request(_url, | 6301 var _response = _requester.request(_url, |
| 6324 "PUT", | 6302 "PUT", |
| 6325 body: _body, | 6303 body: _body, |
| 6326 queryParams: _queryParams, | 6304 queryParams: _queryParams, |
| 6327 uploadOptions: _uploadOptions, | 6305 uploadOptions: _uploadOptions, |
| 6328 uploadMedia: _uploadMedia, | 6306 uploadMedia: _uploadMedia, |
| 6329 downloadOptions: _downloadOptions); | 6307 downloadOptions: _downloadOptions); |
| 6330 return _response.then((data) => new FloodlightConfiguration.fromJson(data)); | 6308 return _response.then((data) => new FloodlightConfiguration.fromJson(data)); |
| 6331 } | 6309 } |
| 6332 | 6310 |
| 6333 } | 6311 } |
| 6334 | 6312 |
| 6335 | 6313 |
| 6336 /** Not documented yet. */ | |
| 6337 class LandingPagesResourceApi { | 6314 class LandingPagesResourceApi { |
| 6338 final common_internal.ApiRequester _requester; | 6315 final commons.ApiRequester _requester; |
| 6339 | 6316 |
| 6340 LandingPagesResourceApi(common_internal.ApiRequester client) : | 6317 LandingPagesResourceApi(commons.ApiRequester client) : |
| 6341 _requester = client; | 6318 _requester = client; |
| 6342 | 6319 |
| 6343 /** | 6320 /** |
| 6344 * Deletes an existing campaign landing page. | 6321 * Deletes an existing campaign landing page. |
| 6345 * | 6322 * |
| 6346 * Request parameters: | 6323 * Request parameters: |
| 6347 * | 6324 * |
| 6348 * [profileId] - User profile ID associated with this request. | 6325 * [profileId] - User profile ID associated with this request. |
| 6349 * | 6326 * |
| 6350 * [campaignId] - Landing page campaign ID. | 6327 * [campaignId] - Landing page campaign ID. |
| 6351 * | 6328 * |
| 6352 * [id] - Landing page ID. | 6329 * [id] - Landing page ID. |
| 6353 * | 6330 * |
| 6354 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6355 * error. | 6332 * error. |
| 6356 * | 6333 * |
| 6357 * If the used [http.Client] completes with an error when making a REST call, | 6334 * If the used [http.Client] completes with an error when making a REST call, |
| 6358 * this method will complete with the same error. | 6335 * this method will complete with the same error. |
| 6359 */ | 6336 */ |
| 6360 async.Future delete(core.String profileId, core.String campaignId, core.String
id) { | 6337 async.Future delete(core.String profileId, core.String campaignId, core.String
id) { |
| 6361 var _url = null; | 6338 var _url = null; |
| 6362 var _queryParams = new core.Map(); | 6339 var _queryParams = new core.Map(); |
| 6363 var _uploadMedia = null; | 6340 var _uploadMedia = null; |
| 6364 var _uploadOptions = null; | 6341 var _uploadOptions = null; |
| 6365 var _downloadOptions = common.DownloadOptions.Metadata; | 6342 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6366 var _body = null; | 6343 var _body = null; |
| 6367 | 6344 |
| 6368 if (profileId == null) { | 6345 if (profileId == null) { |
| 6369 throw new core.ArgumentError("Parameter profileId is required."); | 6346 throw new core.ArgumentError("Parameter profileId is required."); |
| 6370 } | 6347 } |
| 6371 if (campaignId == null) { | 6348 if (campaignId == null) { |
| 6372 throw new core.ArgumentError("Parameter campaignId is required."); | 6349 throw new core.ArgumentError("Parameter campaignId is required."); |
| 6373 } | 6350 } |
| 6374 if (id == null) { | 6351 if (id == null) { |
| 6375 throw new core.ArgumentError("Parameter id is required."); | 6352 throw new core.ArgumentError("Parameter id is required."); |
| 6376 } | 6353 } |
| 6377 | 6354 |
| 6378 _downloadOptions = null; | 6355 _downloadOptions = null; |
| 6379 | 6356 |
| 6380 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$campaignId') + '/land
ingPages/' + common_internal.Escaper.ecapeVariable('$id'); | 6357 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages/' + com
mons.Escaper.ecapeVariable('$id'); |
| 6381 | 6358 |
| 6382 var _response = _requester.request(_url, | 6359 var _response = _requester.request(_url, |
| 6383 "DELETE", | 6360 "DELETE", |
| 6384 body: _body, | 6361 body: _body, |
| 6385 queryParams: _queryParams, | 6362 queryParams: _queryParams, |
| 6386 uploadOptions: _uploadOptions, | 6363 uploadOptions: _uploadOptions, |
| 6387 uploadMedia: _uploadMedia, | 6364 uploadMedia: _uploadMedia, |
| 6388 downloadOptions: _downloadOptions); | 6365 downloadOptions: _downloadOptions); |
| 6389 return _response.then((data) => null); | 6366 return _response.then((data) => null); |
| 6390 } | 6367 } |
| 6391 | 6368 |
| 6392 /** | 6369 /** |
| 6393 * Gets one campaign landing page by ID. | 6370 * Gets one campaign landing page by ID. |
| 6394 * | 6371 * |
| 6395 * Request parameters: | 6372 * Request parameters: |
| 6396 * | 6373 * |
| 6397 * [profileId] - User profile ID associated with this request. | 6374 * [profileId] - User profile ID associated with this request. |
| 6398 * | 6375 * |
| 6399 * [campaignId] - Landing page campaign ID. | 6376 * [campaignId] - Landing page campaign ID. |
| 6400 * | 6377 * |
| 6401 * [id] - Landing page ID. | 6378 * [id] - Landing page ID. |
| 6402 * | 6379 * |
| 6403 * Completes with a [LandingPage]. | 6380 * Completes with a [LandingPage]. |
| 6404 * | 6381 * |
| 6405 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6382 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6406 * error. | 6383 * error. |
| 6407 * | 6384 * |
| 6408 * If the used [http.Client] completes with an error when making a REST call, | 6385 * If the used [http.Client] completes with an error when making a REST call, |
| 6409 * this method will complete with the same error. | 6386 * this method will complete with the same error. |
| 6410 */ | 6387 */ |
| 6411 async.Future<LandingPage> get(core.String profileId, core.String campaignId, c
ore.String id) { | 6388 async.Future<LandingPage> get(core.String profileId, core.String campaignId, c
ore.String id) { |
| 6412 var _url = null; | 6389 var _url = null; |
| 6413 var _queryParams = new core.Map(); | 6390 var _queryParams = new core.Map(); |
| 6414 var _uploadMedia = null; | 6391 var _uploadMedia = null; |
| 6415 var _uploadOptions = null; | 6392 var _uploadOptions = null; |
| 6416 var _downloadOptions = common.DownloadOptions.Metadata; | 6393 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6417 var _body = null; | 6394 var _body = null; |
| 6418 | 6395 |
| 6419 if (profileId == null) { | 6396 if (profileId == null) { |
| 6420 throw new core.ArgumentError("Parameter profileId is required."); | 6397 throw new core.ArgumentError("Parameter profileId is required."); |
| 6421 } | 6398 } |
| 6422 if (campaignId == null) { | 6399 if (campaignId == null) { |
| 6423 throw new core.ArgumentError("Parameter campaignId is required."); | 6400 throw new core.ArgumentError("Parameter campaignId is required."); |
| 6424 } | 6401 } |
| 6425 if (id == null) { | 6402 if (id == null) { |
| 6426 throw new core.ArgumentError("Parameter id is required."); | 6403 throw new core.ArgumentError("Parameter id is required."); |
| 6427 } | 6404 } |
| 6428 | 6405 |
| 6429 | 6406 |
| 6430 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$campaignId') + '/land
ingPages/' + common_internal.Escaper.ecapeVariable('$id'); | 6407 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages/' + com
mons.Escaper.ecapeVariable('$id'); |
| 6431 | 6408 |
| 6432 var _response = _requester.request(_url, | 6409 var _response = _requester.request(_url, |
| 6433 "GET", | 6410 "GET", |
| 6434 body: _body, | 6411 body: _body, |
| 6435 queryParams: _queryParams, | 6412 queryParams: _queryParams, |
| 6436 uploadOptions: _uploadOptions, | 6413 uploadOptions: _uploadOptions, |
| 6437 uploadMedia: _uploadMedia, | 6414 uploadMedia: _uploadMedia, |
| 6438 downloadOptions: _downloadOptions); | 6415 downloadOptions: _downloadOptions); |
| 6439 return _response.then((data) => new LandingPage.fromJson(data)); | 6416 return _response.then((data) => new LandingPage.fromJson(data)); |
| 6440 } | 6417 } |
| 6441 | 6418 |
| 6442 /** | 6419 /** |
| 6443 * Inserts a new landing page for the specified campaign. | 6420 * Inserts a new landing page for the specified campaign. |
| 6444 * | 6421 * |
| 6445 * [request] - The metadata request object. | 6422 * [request] - The metadata request object. |
| 6446 * | 6423 * |
| 6447 * Request parameters: | 6424 * Request parameters: |
| 6448 * | 6425 * |
| 6449 * [profileId] - User profile ID associated with this request. | 6426 * [profileId] - User profile ID associated with this request. |
| 6450 * | 6427 * |
| 6451 * [campaignId] - Landing page campaign ID. | 6428 * [campaignId] - Landing page campaign ID. |
| 6452 * | 6429 * |
| 6453 * Completes with a [LandingPage]. | 6430 * Completes with a [LandingPage]. |
| 6454 * | 6431 * |
| 6455 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6432 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6456 * error. | 6433 * error. |
| 6457 * | 6434 * |
| 6458 * If the used [http.Client] completes with an error when making a REST call, | 6435 * If the used [http.Client] completes with an error when making a REST call, |
| 6459 * this method will complete with the same error. | 6436 * this method will complete with the same error. |
| 6460 */ | 6437 */ |
| 6461 async.Future<LandingPage> insert(LandingPage request, core.String profileId, c
ore.String campaignId) { | 6438 async.Future<LandingPage> insert(LandingPage request, core.String profileId, c
ore.String campaignId) { |
| 6462 var _url = null; | 6439 var _url = null; |
| 6463 var _queryParams = new core.Map(); | 6440 var _queryParams = new core.Map(); |
| 6464 var _uploadMedia = null; | 6441 var _uploadMedia = null; |
| 6465 var _uploadOptions = null; | 6442 var _uploadOptions = null; |
| 6466 var _downloadOptions = common.DownloadOptions.Metadata; | 6443 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6467 var _body = null; | 6444 var _body = null; |
| 6468 | 6445 |
| 6469 if (request != null) { | 6446 if (request != null) { |
| 6470 _body = convert.JSON.encode((request).toJson()); | 6447 _body = convert.JSON.encode((request).toJson()); |
| 6471 } | 6448 } |
| 6472 if (profileId == null) { | 6449 if (profileId == null) { |
| 6473 throw new core.ArgumentError("Parameter profileId is required."); | 6450 throw new core.ArgumentError("Parameter profileId is required."); |
| 6474 } | 6451 } |
| 6475 if (campaignId == null) { | 6452 if (campaignId == null) { |
| 6476 throw new core.ArgumentError("Parameter campaignId is required."); | 6453 throw new core.ArgumentError("Parameter campaignId is required."); |
| 6477 } | 6454 } |
| 6478 | 6455 |
| 6479 | 6456 |
| 6480 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$campaignId') + '/land
ingPages'; | 6457 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; |
| 6481 | 6458 |
| 6482 var _response = _requester.request(_url, | 6459 var _response = _requester.request(_url, |
| 6483 "POST", | 6460 "POST", |
| 6484 body: _body, | 6461 body: _body, |
| 6485 queryParams: _queryParams, | 6462 queryParams: _queryParams, |
| 6486 uploadOptions: _uploadOptions, | 6463 uploadOptions: _uploadOptions, |
| 6487 uploadMedia: _uploadMedia, | 6464 uploadMedia: _uploadMedia, |
| 6488 downloadOptions: _downloadOptions); | 6465 downloadOptions: _downloadOptions); |
| 6489 return _response.then((data) => new LandingPage.fromJson(data)); | 6466 return _response.then((data) => new LandingPage.fromJson(data)); |
| 6490 } | 6467 } |
| 6491 | 6468 |
| 6492 /** | 6469 /** |
| 6493 * Retrieves the list of landing pages for the specified campaign. | 6470 * Retrieves the list of landing pages for the specified campaign. |
| 6494 * | 6471 * |
| 6495 * Request parameters: | 6472 * Request parameters: |
| 6496 * | 6473 * |
| 6497 * [profileId] - User profile ID associated with this request. | 6474 * [profileId] - User profile ID associated with this request. |
| 6498 * | 6475 * |
| 6499 * [campaignId] - Landing page campaign ID. | 6476 * [campaignId] - Landing page campaign ID. |
| 6500 * | 6477 * |
| 6501 * Completes with a [LandingPagesListResponse]. | 6478 * Completes with a [LandingPagesListResponse]. |
| 6502 * | 6479 * |
| 6503 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6480 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6504 * error. | 6481 * error. |
| 6505 * | 6482 * |
| 6506 * If the used [http.Client] completes with an error when making a REST call, | 6483 * If the used [http.Client] completes with an error when making a REST call, |
| 6507 * this method will complete with the same error. | 6484 * this method will complete with the same error. |
| 6508 */ | 6485 */ |
| 6509 async.Future<LandingPagesListResponse> list(core.String profileId, core.String
campaignId) { | 6486 async.Future<LandingPagesListResponse> list(core.String profileId, core.String
campaignId) { |
| 6510 var _url = null; | 6487 var _url = null; |
| 6511 var _queryParams = new core.Map(); | 6488 var _queryParams = new core.Map(); |
| 6512 var _uploadMedia = null; | 6489 var _uploadMedia = null; |
| 6513 var _uploadOptions = null; | 6490 var _uploadOptions = null; |
| 6514 var _downloadOptions = common.DownloadOptions.Metadata; | 6491 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6515 var _body = null; | 6492 var _body = null; |
| 6516 | 6493 |
| 6517 if (profileId == null) { | 6494 if (profileId == null) { |
| 6518 throw new core.ArgumentError("Parameter profileId is required."); | 6495 throw new core.ArgumentError("Parameter profileId is required."); |
| 6519 } | 6496 } |
| 6520 if (campaignId == null) { | 6497 if (campaignId == null) { |
| 6521 throw new core.ArgumentError("Parameter campaignId is required."); | 6498 throw new core.ArgumentError("Parameter campaignId is required."); |
| 6522 } | 6499 } |
| 6523 | 6500 |
| 6524 | 6501 |
| 6525 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$campaignId') + '/land
ingPages'; | 6502 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; |
| 6526 | 6503 |
| 6527 var _response = _requester.request(_url, | 6504 var _response = _requester.request(_url, |
| 6528 "GET", | 6505 "GET", |
| 6529 body: _body, | 6506 body: _body, |
| 6530 queryParams: _queryParams, | 6507 queryParams: _queryParams, |
| 6531 uploadOptions: _uploadOptions, | 6508 uploadOptions: _uploadOptions, |
| 6532 uploadMedia: _uploadMedia, | 6509 uploadMedia: _uploadMedia, |
| 6533 downloadOptions: _downloadOptions); | 6510 downloadOptions: _downloadOptions); |
| 6534 return _response.then((data) => new LandingPagesListResponse.fromJson(data))
; | 6511 return _response.then((data) => new LandingPagesListResponse.fromJson(data))
; |
| 6535 } | 6512 } |
| 6536 | 6513 |
| 6537 /** | 6514 /** |
| 6538 * Updates an existing campaign landing page. This method supports patch | 6515 * Updates an existing campaign landing page. This method supports patch |
| 6539 * semantics. | 6516 * semantics. |
| 6540 * | 6517 * |
| 6541 * [request] - The metadata request object. | 6518 * [request] - The metadata request object. |
| 6542 * | 6519 * |
| 6543 * Request parameters: | 6520 * Request parameters: |
| 6544 * | 6521 * |
| 6545 * [profileId] - User profile ID associated with this request. | 6522 * [profileId] - User profile ID associated with this request. |
| 6546 * | 6523 * |
| 6547 * [campaignId] - Landing page campaign ID. | 6524 * [campaignId] - Landing page campaign ID. |
| 6548 * | 6525 * |
| 6549 * [id] - Landing page ID. | 6526 * [id] - Landing page ID. |
| 6550 * | 6527 * |
| 6551 * Completes with a [LandingPage]. | 6528 * Completes with a [LandingPage]. |
| 6552 * | 6529 * |
| 6553 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6530 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6554 * error. | 6531 * error. |
| 6555 * | 6532 * |
| 6556 * If the used [http.Client] completes with an error when making a REST call, | 6533 * If the used [http.Client] completes with an error when making a REST call, |
| 6557 * this method will complete with the same error. | 6534 * this method will complete with the same error. |
| 6558 */ | 6535 */ |
| 6559 async.Future<LandingPage> patch(LandingPage request, core.String profileId, co
re.String campaignId, core.String id) { | 6536 async.Future<LandingPage> patch(LandingPage request, core.String profileId, co
re.String campaignId, core.String id) { |
| 6560 var _url = null; | 6537 var _url = null; |
| 6561 var _queryParams = new core.Map(); | 6538 var _queryParams = new core.Map(); |
| 6562 var _uploadMedia = null; | 6539 var _uploadMedia = null; |
| 6563 var _uploadOptions = null; | 6540 var _uploadOptions = null; |
| 6564 var _downloadOptions = common.DownloadOptions.Metadata; | 6541 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6565 var _body = null; | 6542 var _body = null; |
| 6566 | 6543 |
| 6567 if (request != null) { | 6544 if (request != null) { |
| 6568 _body = convert.JSON.encode((request).toJson()); | 6545 _body = convert.JSON.encode((request).toJson()); |
| 6569 } | 6546 } |
| 6570 if (profileId == null) { | 6547 if (profileId == null) { |
| 6571 throw new core.ArgumentError("Parameter profileId is required."); | 6548 throw new core.ArgumentError("Parameter profileId is required."); |
| 6572 } | 6549 } |
| 6573 if (campaignId == null) { | 6550 if (campaignId == null) { |
| 6574 throw new core.ArgumentError("Parameter campaignId is required."); | 6551 throw new core.ArgumentError("Parameter campaignId is required."); |
| 6575 } | 6552 } |
| 6576 if (id == null) { | 6553 if (id == null) { |
| 6577 throw new core.ArgumentError("Parameter id is required."); | 6554 throw new core.ArgumentError("Parameter id is required."); |
| 6578 } | 6555 } |
| 6579 _queryParams["id"] = [id]; | 6556 _queryParams["id"] = [id]; |
| 6580 | 6557 |
| 6581 | 6558 |
| 6582 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$campaignId') + '/land
ingPages'; | 6559 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; |
| 6583 | 6560 |
| 6584 var _response = _requester.request(_url, | 6561 var _response = _requester.request(_url, |
| 6585 "PATCH", | 6562 "PATCH", |
| 6586 body: _body, | 6563 body: _body, |
| 6587 queryParams: _queryParams, | 6564 queryParams: _queryParams, |
| 6588 uploadOptions: _uploadOptions, | 6565 uploadOptions: _uploadOptions, |
| 6589 uploadMedia: _uploadMedia, | 6566 uploadMedia: _uploadMedia, |
| 6590 downloadOptions: _downloadOptions); | 6567 downloadOptions: _downloadOptions); |
| 6591 return _response.then((data) => new LandingPage.fromJson(data)); | 6568 return _response.then((data) => new LandingPage.fromJson(data)); |
| 6592 } | 6569 } |
| 6593 | 6570 |
| 6594 /** | 6571 /** |
| 6595 * Updates an existing campaign landing page. | 6572 * Updates an existing campaign landing page. |
| 6596 * | 6573 * |
| 6597 * [request] - The metadata request object. | 6574 * [request] - The metadata request object. |
| 6598 * | 6575 * |
| 6599 * Request parameters: | 6576 * Request parameters: |
| 6600 * | 6577 * |
| 6601 * [profileId] - User profile ID associated with this request. | 6578 * [profileId] - User profile ID associated with this request. |
| 6602 * | 6579 * |
| 6603 * [campaignId] - Landing page campaign ID. | 6580 * [campaignId] - Landing page campaign ID. |
| 6604 * | 6581 * |
| 6605 * Completes with a [LandingPage]. | 6582 * Completes with a [LandingPage]. |
| 6606 * | 6583 * |
| 6607 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6584 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6608 * error. | 6585 * error. |
| 6609 * | 6586 * |
| 6610 * If the used [http.Client] completes with an error when making a REST call, | 6587 * If the used [http.Client] completes with an error when making a REST call, |
| 6611 * this method will complete with the same error. | 6588 * this method will complete with the same error. |
| 6612 */ | 6589 */ |
| 6613 async.Future<LandingPage> update(LandingPage request, core.String profileId, c
ore.String campaignId) { | 6590 async.Future<LandingPage> update(LandingPage request, core.String profileId, c
ore.String campaignId) { |
| 6614 var _url = null; | 6591 var _url = null; |
| 6615 var _queryParams = new core.Map(); | 6592 var _queryParams = new core.Map(); |
| 6616 var _uploadMedia = null; | 6593 var _uploadMedia = null; |
| 6617 var _uploadOptions = null; | 6594 var _uploadOptions = null; |
| 6618 var _downloadOptions = common.DownloadOptions.Metadata; | 6595 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6619 var _body = null; | 6596 var _body = null; |
| 6620 | 6597 |
| 6621 if (request != null) { | 6598 if (request != null) { |
| 6622 _body = convert.JSON.encode((request).toJson()); | 6599 _body = convert.JSON.encode((request).toJson()); |
| 6623 } | 6600 } |
| 6624 if (profileId == null) { | 6601 if (profileId == null) { |
| 6625 throw new core.ArgumentError("Parameter profileId is required."); | 6602 throw new core.ArgumentError("Parameter profileId is required."); |
| 6626 } | 6603 } |
| 6627 if (campaignId == null) { | 6604 if (campaignId == null) { |
| 6628 throw new core.ArgumentError("Parameter campaignId is required."); | 6605 throw new core.ArgumentError("Parameter campaignId is required."); |
| 6629 } | 6606 } |
| 6630 | 6607 |
| 6631 | 6608 |
| 6632 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/campaigns/' + common_internal.Escaper.ecapeVariable('$campaignId') + '/land
ingPages'; | 6609 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cam
paigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; |
| 6633 | 6610 |
| 6634 var _response = _requester.request(_url, | 6611 var _response = _requester.request(_url, |
| 6635 "PUT", | 6612 "PUT", |
| 6636 body: _body, | 6613 body: _body, |
| 6637 queryParams: _queryParams, | 6614 queryParams: _queryParams, |
| 6638 uploadOptions: _uploadOptions, | 6615 uploadOptions: _uploadOptions, |
| 6639 uploadMedia: _uploadMedia, | 6616 uploadMedia: _uploadMedia, |
| 6640 downloadOptions: _downloadOptions); | 6617 downloadOptions: _downloadOptions); |
| 6641 return _response.then((data) => new LandingPage.fromJson(data)); | 6618 return _response.then((data) => new LandingPage.fromJson(data)); |
| 6642 } | 6619 } |
| 6643 | 6620 |
| 6644 } | 6621 } |
| 6645 | 6622 |
| 6646 | 6623 |
| 6647 /** Not documented yet. */ | |
| 6648 class MetrosResourceApi { | 6624 class MetrosResourceApi { |
| 6649 final common_internal.ApiRequester _requester; | 6625 final commons.ApiRequester _requester; |
| 6650 | 6626 |
| 6651 MetrosResourceApi(common_internal.ApiRequester client) : | 6627 MetrosResourceApi(commons.ApiRequester client) : |
| 6652 _requester = client; | 6628 _requester = client; |
| 6653 | 6629 |
| 6654 /** | 6630 /** |
| 6655 * Retrieves a list of metros. | 6631 * Retrieves a list of metros. |
| 6656 * | 6632 * |
| 6657 * Request parameters: | 6633 * Request parameters: |
| 6658 * | 6634 * |
| 6659 * [profileId] - User profile ID associated with this request. | 6635 * [profileId] - User profile ID associated with this request. |
| 6660 * | 6636 * |
| 6661 * Completes with a [MetrosListResponse]. | 6637 * Completes with a [MetrosListResponse]. |
| 6662 * | 6638 * |
| 6663 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6664 * error. | 6640 * error. |
| 6665 * | 6641 * |
| 6666 * If the used [http.Client] completes with an error when making a REST call, | 6642 * If the used [http.Client] completes with an error when making a REST call, |
| 6667 * this method will complete with the same error. | 6643 * this method will complete with the same error. |
| 6668 */ | 6644 */ |
| 6669 async.Future<MetrosListResponse> list(core.String profileId) { | 6645 async.Future<MetrosListResponse> list(core.String profileId) { |
| 6670 var _url = null; | 6646 var _url = null; |
| 6671 var _queryParams = new core.Map(); | 6647 var _queryParams = new core.Map(); |
| 6672 var _uploadMedia = null; | 6648 var _uploadMedia = null; |
| 6673 var _uploadOptions = null; | 6649 var _uploadOptions = null; |
| 6674 var _downloadOptions = common.DownloadOptions.Metadata; | 6650 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6675 var _body = null; | 6651 var _body = null; |
| 6676 | 6652 |
| 6677 if (profileId == null) { | 6653 if (profileId == null) { |
| 6678 throw new core.ArgumentError("Parameter profileId is required."); | 6654 throw new core.ArgumentError("Parameter profileId is required."); |
| 6679 } | 6655 } |
| 6680 | 6656 |
| 6681 | 6657 |
| 6682 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/metros'; | 6658 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/met
ros'; |
| 6683 | 6659 |
| 6684 var _response = _requester.request(_url, | 6660 var _response = _requester.request(_url, |
| 6685 "GET", | 6661 "GET", |
| 6686 body: _body, | 6662 body: _body, |
| 6687 queryParams: _queryParams, | 6663 queryParams: _queryParams, |
| 6688 uploadOptions: _uploadOptions, | 6664 uploadOptions: _uploadOptions, |
| 6689 uploadMedia: _uploadMedia, | 6665 uploadMedia: _uploadMedia, |
| 6690 downloadOptions: _downloadOptions); | 6666 downloadOptions: _downloadOptions); |
| 6691 return _response.then((data) => new MetrosListResponse.fromJson(data)); | 6667 return _response.then((data) => new MetrosListResponse.fromJson(data)); |
| 6692 } | 6668 } |
| 6693 | 6669 |
| 6694 } | 6670 } |
| 6695 | 6671 |
| 6696 | 6672 |
| 6697 /** Not documented yet. */ | |
| 6698 class MobileCarriersResourceApi { | 6673 class MobileCarriersResourceApi { |
| 6699 final common_internal.ApiRequester _requester; | 6674 final commons.ApiRequester _requester; |
| 6700 | 6675 |
| 6701 MobileCarriersResourceApi(common_internal.ApiRequester client) : | 6676 MobileCarriersResourceApi(commons.ApiRequester client) : |
| 6702 _requester = client; | 6677 _requester = client; |
| 6703 | 6678 |
| 6704 /** | 6679 /** |
| 6705 * Retrieves a list of mobile carriers. | 6680 * Retrieves a list of mobile carriers. |
| 6706 * | 6681 * |
| 6707 * Request parameters: | 6682 * Request parameters: |
| 6708 * | 6683 * |
| 6709 * [profileId] - User profile ID associated with this request. | 6684 * [profileId] - User profile ID associated with this request. |
| 6710 * | 6685 * |
| 6711 * Completes with a [MobileCarriersListResponse]. | 6686 * Completes with a [MobileCarriersListResponse]. |
| 6712 * | 6687 * |
| 6713 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6688 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6714 * error. | 6689 * error. |
| 6715 * | 6690 * |
| 6716 * If the used [http.Client] completes with an error when making a REST call, | 6691 * If the used [http.Client] completes with an error when making a REST call, |
| 6717 * this method will complete with the same error. | 6692 * this method will complete with the same error. |
| 6718 */ | 6693 */ |
| 6719 async.Future<MobileCarriersListResponse> list(core.String profileId) { | 6694 async.Future<MobileCarriersListResponse> list(core.String profileId) { |
| 6720 var _url = null; | 6695 var _url = null; |
| 6721 var _queryParams = new core.Map(); | 6696 var _queryParams = new core.Map(); |
| 6722 var _uploadMedia = null; | 6697 var _uploadMedia = null; |
| 6723 var _uploadOptions = null; | 6698 var _uploadOptions = null; |
| 6724 var _downloadOptions = common.DownloadOptions.Metadata; | 6699 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6725 var _body = null; | 6700 var _body = null; |
| 6726 | 6701 |
| 6727 if (profileId == null) { | 6702 if (profileId == null) { |
| 6728 throw new core.ArgumentError("Parameter profileId is required."); | 6703 throw new core.ArgumentError("Parameter profileId is required."); |
| 6729 } | 6704 } |
| 6730 | 6705 |
| 6731 | 6706 |
| 6732 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/mobileCarriers'; | 6707 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mob
ileCarriers'; |
| 6733 | 6708 |
| 6734 var _response = _requester.request(_url, | 6709 var _response = _requester.request(_url, |
| 6735 "GET", | 6710 "GET", |
| 6736 body: _body, | 6711 body: _body, |
| 6737 queryParams: _queryParams, | 6712 queryParams: _queryParams, |
| 6738 uploadOptions: _uploadOptions, | 6713 uploadOptions: _uploadOptions, |
| 6739 uploadMedia: _uploadMedia, | 6714 uploadMedia: _uploadMedia, |
| 6740 downloadOptions: _downloadOptions); | 6715 downloadOptions: _downloadOptions); |
| 6741 return _response.then((data) => new MobileCarriersListResponse.fromJson(data
)); | 6716 return _response.then((data) => new MobileCarriersListResponse.fromJson(data
)); |
| 6742 } | 6717 } |
| 6743 | 6718 |
| 6744 } | 6719 } |
| 6745 | 6720 |
| 6746 | 6721 |
| 6747 /** Not documented yet. */ | |
| 6748 class OperatingSystemVersionsResourceApi { | 6722 class OperatingSystemVersionsResourceApi { |
| 6749 final common_internal.ApiRequester _requester; | 6723 final commons.ApiRequester _requester; |
| 6750 | 6724 |
| 6751 OperatingSystemVersionsResourceApi(common_internal.ApiRequester client) : | 6725 OperatingSystemVersionsResourceApi(commons.ApiRequester client) : |
| 6752 _requester = client; | 6726 _requester = client; |
| 6753 | 6727 |
| 6754 /** | 6728 /** |
| 6755 * Retrieves a list of operating system versions. | 6729 * Retrieves a list of operating system versions. |
| 6756 * | 6730 * |
| 6757 * Request parameters: | 6731 * Request parameters: |
| 6758 * | 6732 * |
| 6759 * [profileId] - User profile ID associated with this request. | 6733 * [profileId] - User profile ID associated with this request. |
| 6760 * | 6734 * |
| 6761 * Completes with a [OperatingSystemVersionsListResponse]. | 6735 * Completes with a [OperatingSystemVersionsListResponse]. |
| 6762 * | 6736 * |
| 6763 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6737 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6764 * error. | 6738 * error. |
| 6765 * | 6739 * |
| 6766 * If the used [http.Client] completes with an error when making a REST call, | 6740 * If the used [http.Client] completes with an error when making a REST call, |
| 6767 * this method will complete with the same error. | 6741 * this method will complete with the same error. |
| 6768 */ | 6742 */ |
| 6769 async.Future<OperatingSystemVersionsListResponse> list(core.String profileId)
{ | 6743 async.Future<OperatingSystemVersionsListResponse> list(core.String profileId)
{ |
| 6770 var _url = null; | 6744 var _url = null; |
| 6771 var _queryParams = new core.Map(); | 6745 var _queryParams = new core.Map(); |
| 6772 var _uploadMedia = null; | 6746 var _uploadMedia = null; |
| 6773 var _uploadOptions = null; | 6747 var _uploadOptions = null; |
| 6774 var _downloadOptions = common.DownloadOptions.Metadata; | 6748 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6775 var _body = null; | 6749 var _body = null; |
| 6776 | 6750 |
| 6777 if (profileId == null) { | 6751 if (profileId == null) { |
| 6778 throw new core.ArgumentError("Parameter profileId is required."); | 6752 throw new core.ArgumentError("Parameter profileId is required."); |
| 6779 } | 6753 } |
| 6780 | 6754 |
| 6781 | 6755 |
| 6782 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/operatingSystemVersions'; | 6756 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ope
ratingSystemVersions'; |
| 6783 | 6757 |
| 6784 var _response = _requester.request(_url, | 6758 var _response = _requester.request(_url, |
| 6785 "GET", | 6759 "GET", |
| 6786 body: _body, | 6760 body: _body, |
| 6787 queryParams: _queryParams, | 6761 queryParams: _queryParams, |
| 6788 uploadOptions: _uploadOptions, | 6762 uploadOptions: _uploadOptions, |
| 6789 uploadMedia: _uploadMedia, | 6763 uploadMedia: _uploadMedia, |
| 6790 downloadOptions: _downloadOptions); | 6764 downloadOptions: _downloadOptions); |
| 6791 return _response.then((data) => new OperatingSystemVersionsListResponse.from
Json(data)); | 6765 return _response.then((data) => new OperatingSystemVersionsListResponse.from
Json(data)); |
| 6792 } | 6766 } |
| 6793 | 6767 |
| 6794 } | 6768 } |
| 6795 | 6769 |
| 6796 | 6770 |
| 6797 /** Not documented yet. */ | |
| 6798 class OperatingSystemsResourceApi { | 6771 class OperatingSystemsResourceApi { |
| 6799 final common_internal.ApiRequester _requester; | 6772 final commons.ApiRequester _requester; |
| 6800 | 6773 |
| 6801 OperatingSystemsResourceApi(common_internal.ApiRequester client) : | 6774 OperatingSystemsResourceApi(commons.ApiRequester client) : |
| 6802 _requester = client; | 6775 _requester = client; |
| 6803 | 6776 |
| 6804 /** | 6777 /** |
| 6805 * Retrieves a list of operating systems. | 6778 * Retrieves a list of operating systems. |
| 6806 * | 6779 * |
| 6807 * Request parameters: | 6780 * Request parameters: |
| 6808 * | 6781 * |
| 6809 * [profileId] - User profile ID associated with this request. | 6782 * [profileId] - User profile ID associated with this request. |
| 6810 * | 6783 * |
| 6811 * Completes with a [OperatingSystemsListResponse]. | 6784 * Completes with a [OperatingSystemsListResponse]. |
| 6812 * | 6785 * |
| 6813 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6786 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6814 * error. | 6787 * error. |
| 6815 * | 6788 * |
| 6816 * If the used [http.Client] completes with an error when making a REST call, | 6789 * If the used [http.Client] completes with an error when making a REST call, |
| 6817 * this method will complete with the same error. | 6790 * this method will complete with the same error. |
| 6818 */ | 6791 */ |
| 6819 async.Future<OperatingSystemsListResponse> list(core.String profileId) { | 6792 async.Future<OperatingSystemsListResponse> list(core.String profileId) { |
| 6820 var _url = null; | 6793 var _url = null; |
| 6821 var _queryParams = new core.Map(); | 6794 var _queryParams = new core.Map(); |
| 6822 var _uploadMedia = null; | 6795 var _uploadMedia = null; |
| 6823 var _uploadOptions = null; | 6796 var _uploadOptions = null; |
| 6824 var _downloadOptions = common.DownloadOptions.Metadata; | 6797 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6825 var _body = null; | 6798 var _body = null; |
| 6826 | 6799 |
| 6827 if (profileId == null) { | 6800 if (profileId == null) { |
| 6828 throw new core.ArgumentError("Parameter profileId is required."); | 6801 throw new core.ArgumentError("Parameter profileId is required."); |
| 6829 } | 6802 } |
| 6830 | 6803 |
| 6831 | 6804 |
| 6832 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/operatingSystems'; | 6805 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ope
ratingSystems'; |
| 6833 | 6806 |
| 6834 var _response = _requester.request(_url, | 6807 var _response = _requester.request(_url, |
| 6835 "GET", | 6808 "GET", |
| 6836 body: _body, | 6809 body: _body, |
| 6837 queryParams: _queryParams, | 6810 queryParams: _queryParams, |
| 6838 uploadOptions: _uploadOptions, | 6811 uploadOptions: _uploadOptions, |
| 6839 uploadMedia: _uploadMedia, | 6812 uploadMedia: _uploadMedia, |
| 6840 downloadOptions: _downloadOptions); | 6813 downloadOptions: _downloadOptions); |
| 6841 return _response.then((data) => new OperatingSystemsListResponse.fromJson(da
ta)); | 6814 return _response.then((data) => new OperatingSystemsListResponse.fromJson(da
ta)); |
| 6842 } | 6815 } |
| 6843 | 6816 |
| 6844 } | 6817 } |
| 6845 | 6818 |
| 6846 | 6819 |
| 6847 /** Not documented yet. */ | |
| 6848 class PlacementGroupsResourceApi { | 6820 class PlacementGroupsResourceApi { |
| 6849 final common_internal.ApiRequester _requester; | 6821 final commons.ApiRequester _requester; |
| 6850 | 6822 |
| 6851 PlacementGroupsResourceApi(common_internal.ApiRequester client) : | 6823 PlacementGroupsResourceApi(commons.ApiRequester client) : |
| 6852 _requester = client; | 6824 _requester = client; |
| 6853 | 6825 |
| 6854 /** | 6826 /** |
| 6855 * Gets one placement group by ID. | 6827 * Gets one placement group by ID. |
| 6856 * | 6828 * |
| 6857 * Request parameters: | 6829 * Request parameters: |
| 6858 * | 6830 * |
| 6859 * [profileId] - User profile ID associated with this request. | 6831 * [profileId] - User profile ID associated with this request. |
| 6860 * | 6832 * |
| 6861 * [id] - Placement group ID. | 6833 * [id] - Placement group ID. |
| 6862 * | 6834 * |
| 6863 * Completes with a [PlacementGroup]. | 6835 * Completes with a [PlacementGroup]. |
| 6864 * | 6836 * |
| 6865 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6837 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6866 * error. | 6838 * error. |
| 6867 * | 6839 * |
| 6868 * If the used [http.Client] completes with an error when making a REST call, | 6840 * If the used [http.Client] completes with an error when making a REST call, |
| 6869 * this method will complete with the same error. | 6841 * this method will complete with the same error. |
| 6870 */ | 6842 */ |
| 6871 async.Future<PlacementGroup> get(core.String profileId, core.String id) { | 6843 async.Future<PlacementGroup> get(core.String profileId, core.String id) { |
| 6872 var _url = null; | 6844 var _url = null; |
| 6873 var _queryParams = new core.Map(); | 6845 var _queryParams = new core.Map(); |
| 6874 var _uploadMedia = null; | 6846 var _uploadMedia = null; |
| 6875 var _uploadOptions = null; | 6847 var _uploadOptions = null; |
| 6876 var _downloadOptions = common.DownloadOptions.Metadata; | 6848 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6877 var _body = null; | 6849 var _body = null; |
| 6878 | 6850 |
| 6879 if (profileId == null) { | 6851 if (profileId == null) { |
| 6880 throw new core.ArgumentError("Parameter profileId is required."); | 6852 throw new core.ArgumentError("Parameter profileId is required."); |
| 6881 } | 6853 } |
| 6882 if (id == null) { | 6854 if (id == null) { |
| 6883 throw new core.ArgumentError("Parameter id is required."); | 6855 throw new core.ArgumentError("Parameter id is required."); |
| 6884 } | 6856 } |
| 6885 | 6857 |
| 6886 | 6858 |
| 6887 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementGroups/' + common_internal.Escaper.ecapeVariable('$id'); | 6859 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementGroups/' + commons.Escaper.ecapeVariable('$id'); |
| 6888 | 6860 |
| 6889 var _response = _requester.request(_url, | 6861 var _response = _requester.request(_url, |
| 6890 "GET", | 6862 "GET", |
| 6891 body: _body, | 6863 body: _body, |
| 6892 queryParams: _queryParams, | 6864 queryParams: _queryParams, |
| 6893 uploadOptions: _uploadOptions, | 6865 uploadOptions: _uploadOptions, |
| 6894 uploadMedia: _uploadMedia, | 6866 uploadMedia: _uploadMedia, |
| 6895 downloadOptions: _downloadOptions); | 6867 downloadOptions: _downloadOptions); |
| 6896 return _response.then((data) => new PlacementGroup.fromJson(data)); | 6868 return _response.then((data) => new PlacementGroup.fromJson(data)); |
| 6897 } | 6869 } |
| 6898 | 6870 |
| 6899 /** | 6871 /** |
| 6900 * Inserts a new placement group. | 6872 * Inserts a new placement group. |
| 6901 * | 6873 * |
| 6902 * [request] - The metadata request object. | 6874 * [request] - The metadata request object. |
| 6903 * | 6875 * |
| 6904 * Request parameters: | 6876 * Request parameters: |
| 6905 * | 6877 * |
| 6906 * [profileId] - User profile ID associated with this request. | 6878 * [profileId] - User profile ID associated with this request. |
| 6907 * | 6879 * |
| 6908 * Completes with a [PlacementGroup]. | 6880 * Completes with a [PlacementGroup]. |
| 6909 * | 6881 * |
| 6910 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6882 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 6911 * error. | 6883 * error. |
| 6912 * | 6884 * |
| 6913 * If the used [http.Client] completes with an error when making a REST call, | 6885 * If the used [http.Client] completes with an error when making a REST call, |
| 6914 * this method will complete with the same error. | 6886 * this method will complete with the same error. |
| 6915 */ | 6887 */ |
| 6916 async.Future<PlacementGroup> insert(PlacementGroup request, core.String profil
eId) { | 6888 async.Future<PlacementGroup> insert(PlacementGroup request, core.String profil
eId) { |
| 6917 var _url = null; | 6889 var _url = null; |
| 6918 var _queryParams = new core.Map(); | 6890 var _queryParams = new core.Map(); |
| 6919 var _uploadMedia = null; | 6891 var _uploadMedia = null; |
| 6920 var _uploadOptions = null; | 6892 var _uploadOptions = null; |
| 6921 var _downloadOptions = common.DownloadOptions.Metadata; | 6893 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6922 var _body = null; | 6894 var _body = null; |
| 6923 | 6895 |
| 6924 if (request != null) { | 6896 if (request != null) { |
| 6925 _body = convert.JSON.encode((request).toJson()); | 6897 _body = convert.JSON.encode((request).toJson()); |
| 6926 } | 6898 } |
| 6927 if (profileId == null) { | 6899 if (profileId == null) { |
| 6928 throw new core.ArgumentError("Parameter profileId is required."); | 6900 throw new core.ArgumentError("Parameter profileId is required."); |
| 6929 } | 6901 } |
| 6930 | 6902 |
| 6931 | 6903 |
| 6932 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementGroups'; | 6904 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementGroups'; |
| 6933 | 6905 |
| 6934 var _response = _requester.request(_url, | 6906 var _response = _requester.request(_url, |
| 6935 "POST", | 6907 "POST", |
| 6936 body: _body, | 6908 body: _body, |
| 6937 queryParams: _queryParams, | 6909 queryParams: _queryParams, |
| 6938 uploadOptions: _uploadOptions, | 6910 uploadOptions: _uploadOptions, |
| 6939 uploadMedia: _uploadMedia, | 6911 uploadMedia: _uploadMedia, |
| 6940 downloadOptions: _downloadOptions); | 6912 downloadOptions: _downloadOptions); |
| 6941 return _response.then((data) => new PlacementGroup.fromJson(data)); | 6913 return _response.then((data) => new PlacementGroup.fromJson(data)); |
| 6942 } | 6914 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6980 * - "PLACEMENT_ROADBLOCK" | 6952 * - "PLACEMENT_ROADBLOCK" |
| 6981 * | 6953 * |
| 6982 * [placementStrategyIds] - Select only placement groups that are associated | 6954 * [placementStrategyIds] - Select only placement groups that are associated |
| 6983 * with these placement strategies. | 6955 * with these placement strategies. |
| 6984 * | 6956 * |
| 6985 * [pricingTypes] - Select only placement groups with these pricing types. | 6957 * [pricingTypes] - Select only placement groups with these pricing types. |
| 6986 * | 6958 * |
| 6987 * [searchString] - Allows searching for placement groups by name or ID. | 6959 * [searchString] - Allows searching for placement groups by name or ID. |
| 6988 * Wildcards (*) are allowed. For example, "placement*2015" will return | 6960 * Wildcards (*) are allowed. For example, "placement*2015" will return |
| 6989 * placement groups with names like "placement group June 2015", "placement | 6961 * placement groups with names like "placement group June 2015", "placement |
| 6990 * group May 2015" or simply "placements 2015". Most of the searches also add | 6962 * group May 2015", or simply "placements 2015". Most of the searches also add |
| 6991 * wildcards implicitly at the start and the end of the search string. For | 6963 * wildcards implicitly at the start and the end of the search string. For |
| 6992 * example, a search string of "placementgroup" will match placement groups | 6964 * example, a search string of "placementgroup" will match placement groups |
| 6993 * with name "my placementgroup", "placementgroup 2015" or simply | 6965 * with name "my placementgroup", "placementgroup 2015", or simply |
| 6994 * "placementgroup". | 6966 * "placementgroup". |
| 6995 * | 6967 * |
| 6996 * [siteIds] - Select only placement groups that are associated with these | 6968 * [siteIds] - Select only placement groups that are associated with these |
| 6997 * sites. | 6969 * sites. |
| 6998 * | 6970 * |
| 6999 * [sortField] - Field by which to sort the list. | 6971 * [sortField] - Field by which to sort the list. |
| 7000 * Possible string values are: | 6972 * Possible string values are: |
| 7001 * - "ID" | 6973 * - "ID" |
| 7002 * - "NAME" | 6974 * - "NAME" |
| 7003 * | 6975 * |
| 7004 * [sortOrder] - Order of sorted results, default is ASCENDING. | 6976 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 7005 * Possible string values are: | 6977 * Possible string values are: |
| 7006 * - "ASCENDING" | 6978 * - "ASCENDING" |
| 7007 * - "DESCENDING" | 6979 * - "DESCENDING" |
| 7008 * | 6980 * |
| 7009 * Completes with a [PlacementGroupsListResponse]. | 6981 * Completes with a [PlacementGroupsListResponse]. |
| 7010 * | 6982 * |
| 7011 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 6983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7012 * error. | 6984 * error. |
| 7013 * | 6985 * |
| 7014 * If the used [http.Client] completes with an error when making a REST call, | 6986 * If the used [http.Client] completes with an error when making a REST call, |
| 7015 * this method will complete with the same error. | 6987 * this method will complete with the same error. |
| 7016 */ | 6988 */ |
| 7017 async.Future<PlacementGroupsListResponse> list(core.String profileId, {core.Li
st<core.String> advertiserIds, core.bool archived, core.List<core.String> campai
gnIds, core.List<core.String> contentCategoryIds, core.List<core.String> directo
rySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToke
n, core.String placementGroupType, core.List<core.String> placementStrategyIds,
core.List<core.String> pricingTypes, core.String searchString, core.List<core.St
ring> siteIds, core.String sortField, core.String sortOrder}) { | 6989 async.Future<PlacementGroupsListResponse> list(core.String profileId, {core.Li
st<core.String> advertiserIds, core.bool archived, core.List<core.String> campai
gnIds, core.List<core.String> contentCategoryIds, core.List<core.String> directo
rySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToke
n, core.String placementGroupType, core.List<core.String> placementStrategyIds,
core.List<core.String> pricingTypes, core.String searchString, core.List<core.St
ring> siteIds, core.String sortField, core.String sortOrder}) { |
| 7018 var _url = null; | 6990 var _url = null; |
| 7019 var _queryParams = new core.Map(); | 6991 var _queryParams = new core.Map(); |
| 7020 var _uploadMedia = null; | 6992 var _uploadMedia = null; |
| 7021 var _uploadOptions = null; | 6993 var _uploadOptions = null; |
| 7022 var _downloadOptions = common.DownloadOptions.Metadata; | 6994 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7023 var _body = null; | 6995 var _body = null; |
| 7024 | 6996 |
| 7025 if (profileId == null) { | 6997 if (profileId == null) { |
| 7026 throw new core.ArgumentError("Parameter profileId is required."); | 6998 throw new core.ArgumentError("Parameter profileId is required."); |
| 7027 } | 6999 } |
| 7028 if (advertiserIds != null) { | 7000 if (advertiserIds != null) { |
| 7029 _queryParams["advertiserIds"] = advertiserIds; | 7001 _queryParams["advertiserIds"] = advertiserIds; |
| 7030 } | 7002 } |
| 7031 if (archived != null) { | 7003 if (archived != null) { |
| 7032 _queryParams["archived"] = ["${archived}"]; | 7004 _queryParams["archived"] = ["${archived}"]; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7065 _queryParams["siteIds"] = siteIds; | 7037 _queryParams["siteIds"] = siteIds; |
| 7066 } | 7038 } |
| 7067 if (sortField != null) { | 7039 if (sortField != null) { |
| 7068 _queryParams["sortField"] = [sortField]; | 7040 _queryParams["sortField"] = [sortField]; |
| 7069 } | 7041 } |
| 7070 if (sortOrder != null) { | 7042 if (sortOrder != null) { |
| 7071 _queryParams["sortOrder"] = [sortOrder]; | 7043 _queryParams["sortOrder"] = [sortOrder]; |
| 7072 } | 7044 } |
| 7073 | 7045 |
| 7074 | 7046 |
| 7075 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementGroups'; | 7047 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementGroups'; |
| 7076 | 7048 |
| 7077 var _response = _requester.request(_url, | 7049 var _response = _requester.request(_url, |
| 7078 "GET", | 7050 "GET", |
| 7079 body: _body, | 7051 body: _body, |
| 7080 queryParams: _queryParams, | 7052 queryParams: _queryParams, |
| 7081 uploadOptions: _uploadOptions, | 7053 uploadOptions: _uploadOptions, |
| 7082 uploadMedia: _uploadMedia, | 7054 uploadMedia: _uploadMedia, |
| 7083 downloadOptions: _downloadOptions); | 7055 downloadOptions: _downloadOptions); |
| 7084 return _response.then((data) => new PlacementGroupsListResponse.fromJson(dat
a)); | 7056 return _response.then((data) => new PlacementGroupsListResponse.fromJson(dat
a)); |
| 7085 } | 7057 } |
| 7086 | 7058 |
| 7087 /** | 7059 /** |
| 7088 * Updates an existing placement group. This method supports patch semantics. | 7060 * Updates an existing placement group. This method supports patch semantics. |
| 7089 * | 7061 * |
| 7090 * [request] - The metadata request object. | 7062 * [request] - The metadata request object. |
| 7091 * | 7063 * |
| 7092 * Request parameters: | 7064 * Request parameters: |
| 7093 * | 7065 * |
| 7094 * [profileId] - User profile ID associated with this request. | 7066 * [profileId] - User profile ID associated with this request. |
| 7095 * | 7067 * |
| 7096 * [id] - Placement group ID. | 7068 * [id] - Placement group ID. |
| 7097 * | 7069 * |
| 7098 * Completes with a [PlacementGroup]. | 7070 * Completes with a [PlacementGroup]. |
| 7099 * | 7071 * |
| 7100 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7072 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7101 * error. | 7073 * error. |
| 7102 * | 7074 * |
| 7103 * If the used [http.Client] completes with an error when making a REST call, | 7075 * If the used [http.Client] completes with an error when making a REST call, |
| 7104 * this method will complete with the same error. | 7076 * this method will complete with the same error. |
| 7105 */ | 7077 */ |
| 7106 async.Future<PlacementGroup> patch(PlacementGroup request, core.String profile
Id, core.String id) { | 7078 async.Future<PlacementGroup> patch(PlacementGroup request, core.String profile
Id, core.String id) { |
| 7107 var _url = null; | 7079 var _url = null; |
| 7108 var _queryParams = new core.Map(); | 7080 var _queryParams = new core.Map(); |
| 7109 var _uploadMedia = null; | 7081 var _uploadMedia = null; |
| 7110 var _uploadOptions = null; | 7082 var _uploadOptions = null; |
| 7111 var _downloadOptions = common.DownloadOptions.Metadata; | 7083 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7112 var _body = null; | 7084 var _body = null; |
| 7113 | 7085 |
| 7114 if (request != null) { | 7086 if (request != null) { |
| 7115 _body = convert.JSON.encode((request).toJson()); | 7087 _body = convert.JSON.encode((request).toJson()); |
| 7116 } | 7088 } |
| 7117 if (profileId == null) { | 7089 if (profileId == null) { |
| 7118 throw new core.ArgumentError("Parameter profileId is required."); | 7090 throw new core.ArgumentError("Parameter profileId is required."); |
| 7119 } | 7091 } |
| 7120 if (id == null) { | 7092 if (id == null) { |
| 7121 throw new core.ArgumentError("Parameter id is required."); | 7093 throw new core.ArgumentError("Parameter id is required."); |
| 7122 } | 7094 } |
| 7123 _queryParams["id"] = [id]; | 7095 _queryParams["id"] = [id]; |
| 7124 | 7096 |
| 7125 | 7097 |
| 7126 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementGroups'; | 7098 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementGroups'; |
| 7127 | 7099 |
| 7128 var _response = _requester.request(_url, | 7100 var _response = _requester.request(_url, |
| 7129 "PATCH", | 7101 "PATCH", |
| 7130 body: _body, | 7102 body: _body, |
| 7131 queryParams: _queryParams, | 7103 queryParams: _queryParams, |
| 7132 uploadOptions: _uploadOptions, | 7104 uploadOptions: _uploadOptions, |
| 7133 uploadMedia: _uploadMedia, | 7105 uploadMedia: _uploadMedia, |
| 7134 downloadOptions: _downloadOptions); | 7106 downloadOptions: _downloadOptions); |
| 7135 return _response.then((data) => new PlacementGroup.fromJson(data)); | 7107 return _response.then((data) => new PlacementGroup.fromJson(data)); |
| 7136 } | 7108 } |
| 7137 | 7109 |
| 7138 /** | 7110 /** |
| 7139 * Updates an existing placement group. | 7111 * Updates an existing placement group. |
| 7140 * | 7112 * |
| 7141 * [request] - The metadata request object. | 7113 * [request] - The metadata request object. |
| 7142 * | 7114 * |
| 7143 * Request parameters: | 7115 * Request parameters: |
| 7144 * | 7116 * |
| 7145 * [profileId] - User profile ID associated with this request. | 7117 * [profileId] - User profile ID associated with this request. |
| 7146 * | 7118 * |
| 7147 * Completes with a [PlacementGroup]. | 7119 * Completes with a [PlacementGroup]. |
| 7148 * | 7120 * |
| 7149 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7121 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7150 * error. | 7122 * error. |
| 7151 * | 7123 * |
| 7152 * If the used [http.Client] completes with an error when making a REST call, | 7124 * If the used [http.Client] completes with an error when making a REST call, |
| 7153 * this method will complete with the same error. | 7125 * this method will complete with the same error. |
| 7154 */ | 7126 */ |
| 7155 async.Future<PlacementGroup> update(PlacementGroup request, core.String profil
eId) { | 7127 async.Future<PlacementGroup> update(PlacementGroup request, core.String profil
eId) { |
| 7156 var _url = null; | 7128 var _url = null; |
| 7157 var _queryParams = new core.Map(); | 7129 var _queryParams = new core.Map(); |
| 7158 var _uploadMedia = null; | 7130 var _uploadMedia = null; |
| 7159 var _uploadOptions = null; | 7131 var _uploadOptions = null; |
| 7160 var _downloadOptions = common.DownloadOptions.Metadata; | 7132 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7161 var _body = null; | 7133 var _body = null; |
| 7162 | 7134 |
| 7163 if (request != null) { | 7135 if (request != null) { |
| 7164 _body = convert.JSON.encode((request).toJson()); | 7136 _body = convert.JSON.encode((request).toJson()); |
| 7165 } | 7137 } |
| 7166 if (profileId == null) { | 7138 if (profileId == null) { |
| 7167 throw new core.ArgumentError("Parameter profileId is required."); | 7139 throw new core.ArgumentError("Parameter profileId is required."); |
| 7168 } | 7140 } |
| 7169 | 7141 |
| 7170 | 7142 |
| 7171 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementGroups'; | 7143 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementGroups'; |
| 7172 | 7144 |
| 7173 var _response = _requester.request(_url, | 7145 var _response = _requester.request(_url, |
| 7174 "PUT", | 7146 "PUT", |
| 7175 body: _body, | 7147 body: _body, |
| 7176 queryParams: _queryParams, | 7148 queryParams: _queryParams, |
| 7177 uploadOptions: _uploadOptions, | 7149 uploadOptions: _uploadOptions, |
| 7178 uploadMedia: _uploadMedia, | 7150 uploadMedia: _uploadMedia, |
| 7179 downloadOptions: _downloadOptions); | 7151 downloadOptions: _downloadOptions); |
| 7180 return _response.then((data) => new PlacementGroup.fromJson(data)); | 7152 return _response.then((data) => new PlacementGroup.fromJson(data)); |
| 7181 } | 7153 } |
| 7182 | 7154 |
| 7183 } | 7155 } |
| 7184 | 7156 |
| 7185 | 7157 |
| 7186 /** Not documented yet. */ | |
| 7187 class PlacementStrategiesResourceApi { | 7158 class PlacementStrategiesResourceApi { |
| 7188 final common_internal.ApiRequester _requester; | 7159 final commons.ApiRequester _requester; |
| 7189 | 7160 |
| 7190 PlacementStrategiesResourceApi(common_internal.ApiRequester client) : | 7161 PlacementStrategiesResourceApi(commons.ApiRequester client) : |
| 7191 _requester = client; | 7162 _requester = client; |
| 7192 | 7163 |
| 7193 /** | 7164 /** |
| 7194 * Deletes an existing placement strategy. | 7165 * Deletes an existing placement strategy. |
| 7195 * | 7166 * |
| 7196 * Request parameters: | 7167 * Request parameters: |
| 7197 * | 7168 * |
| 7198 * [profileId] - User profile ID associated with this request. | 7169 * [profileId] - User profile ID associated with this request. |
| 7199 * | 7170 * |
| 7200 * [id] - Placement strategy ID. | 7171 * [id] - Placement strategy ID. |
| 7201 * | 7172 * |
| 7202 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7173 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7203 * error. | 7174 * error. |
| 7204 * | 7175 * |
| 7205 * If the used [http.Client] completes with an error when making a REST call, | 7176 * If the used [http.Client] completes with an error when making a REST call, |
| 7206 * this method will complete with the same error. | 7177 * this method will complete with the same error. |
| 7207 */ | 7178 */ |
| 7208 async.Future delete(core.String profileId, core.String id) { | 7179 async.Future delete(core.String profileId, core.String id) { |
| 7209 var _url = null; | 7180 var _url = null; |
| 7210 var _queryParams = new core.Map(); | 7181 var _queryParams = new core.Map(); |
| 7211 var _uploadMedia = null; | 7182 var _uploadMedia = null; |
| 7212 var _uploadOptions = null; | 7183 var _uploadOptions = null; |
| 7213 var _downloadOptions = common.DownloadOptions.Metadata; | 7184 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7214 var _body = null; | 7185 var _body = null; |
| 7215 | 7186 |
| 7216 if (profileId == null) { | 7187 if (profileId == null) { |
| 7217 throw new core.ArgumentError("Parameter profileId is required."); | 7188 throw new core.ArgumentError("Parameter profileId is required."); |
| 7218 } | 7189 } |
| 7219 if (id == null) { | 7190 if (id == null) { |
| 7220 throw new core.ArgumentError("Parameter id is required."); | 7191 throw new core.ArgumentError("Parameter id is required."); |
| 7221 } | 7192 } |
| 7222 | 7193 |
| 7223 _downloadOptions = null; | 7194 _downloadOptions = null; |
| 7224 | 7195 |
| 7225 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementStrategies/' + common_internal.Escaper.ecapeVariable('$id'); | 7196 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementStrategies/' + commons.Escaper.ecapeVariable('$id'); |
| 7226 | 7197 |
| 7227 var _response = _requester.request(_url, | 7198 var _response = _requester.request(_url, |
| 7228 "DELETE", | 7199 "DELETE", |
| 7229 body: _body, | 7200 body: _body, |
| 7230 queryParams: _queryParams, | 7201 queryParams: _queryParams, |
| 7231 uploadOptions: _uploadOptions, | 7202 uploadOptions: _uploadOptions, |
| 7232 uploadMedia: _uploadMedia, | 7203 uploadMedia: _uploadMedia, |
| 7233 downloadOptions: _downloadOptions); | 7204 downloadOptions: _downloadOptions); |
| 7234 return _response.then((data) => null); | 7205 return _response.then((data) => null); |
| 7235 } | 7206 } |
| 7236 | 7207 |
| 7237 /** | 7208 /** |
| 7238 * Gets one placement strategy by ID. | 7209 * Gets one placement strategy by ID. |
| 7239 * | 7210 * |
| 7240 * Request parameters: | 7211 * Request parameters: |
| 7241 * | 7212 * |
| 7242 * [profileId] - User profile ID associated with this request. | 7213 * [profileId] - User profile ID associated with this request. |
| 7243 * | 7214 * |
| 7244 * [id] - Placement strategy ID. | 7215 * [id] - Placement strategy ID. |
| 7245 * | 7216 * |
| 7246 * Completes with a [PlacementStrategy]. | 7217 * Completes with a [PlacementStrategy]. |
| 7247 * | 7218 * |
| 7248 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7219 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7249 * error. | 7220 * error. |
| 7250 * | 7221 * |
| 7251 * If the used [http.Client] completes with an error when making a REST call, | 7222 * If the used [http.Client] completes with an error when making a REST call, |
| 7252 * this method will complete with the same error. | 7223 * this method will complete with the same error. |
| 7253 */ | 7224 */ |
| 7254 async.Future<PlacementStrategy> get(core.String profileId, core.String id) { | 7225 async.Future<PlacementStrategy> get(core.String profileId, core.String id) { |
| 7255 var _url = null; | 7226 var _url = null; |
| 7256 var _queryParams = new core.Map(); | 7227 var _queryParams = new core.Map(); |
| 7257 var _uploadMedia = null; | 7228 var _uploadMedia = null; |
| 7258 var _uploadOptions = null; | 7229 var _uploadOptions = null; |
| 7259 var _downloadOptions = common.DownloadOptions.Metadata; | 7230 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7260 var _body = null; | 7231 var _body = null; |
| 7261 | 7232 |
| 7262 if (profileId == null) { | 7233 if (profileId == null) { |
| 7263 throw new core.ArgumentError("Parameter profileId is required."); | 7234 throw new core.ArgumentError("Parameter profileId is required."); |
| 7264 } | 7235 } |
| 7265 if (id == null) { | 7236 if (id == null) { |
| 7266 throw new core.ArgumentError("Parameter id is required."); | 7237 throw new core.ArgumentError("Parameter id is required."); |
| 7267 } | 7238 } |
| 7268 | 7239 |
| 7269 | 7240 |
| 7270 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementStrategies/' + common_internal.Escaper.ecapeVariable('$id'); | 7241 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementStrategies/' + commons.Escaper.ecapeVariable('$id'); |
| 7271 | 7242 |
| 7272 var _response = _requester.request(_url, | 7243 var _response = _requester.request(_url, |
| 7273 "GET", | 7244 "GET", |
| 7274 body: _body, | 7245 body: _body, |
| 7275 queryParams: _queryParams, | 7246 queryParams: _queryParams, |
| 7276 uploadOptions: _uploadOptions, | 7247 uploadOptions: _uploadOptions, |
| 7277 uploadMedia: _uploadMedia, | 7248 uploadMedia: _uploadMedia, |
| 7278 downloadOptions: _downloadOptions); | 7249 downloadOptions: _downloadOptions); |
| 7279 return _response.then((data) => new PlacementStrategy.fromJson(data)); | 7250 return _response.then((data) => new PlacementStrategy.fromJson(data)); |
| 7280 } | 7251 } |
| 7281 | 7252 |
| 7282 /** | 7253 /** |
| 7283 * Inserts a new placement strategy. | 7254 * Inserts a new placement strategy. |
| 7284 * | 7255 * |
| 7285 * [request] - The metadata request object. | 7256 * [request] - The metadata request object. |
| 7286 * | 7257 * |
| 7287 * Request parameters: | 7258 * Request parameters: |
| 7288 * | 7259 * |
| 7289 * [profileId] - User profile ID associated with this request. | 7260 * [profileId] - User profile ID associated with this request. |
| 7290 * | 7261 * |
| 7291 * Completes with a [PlacementStrategy]. | 7262 * Completes with a [PlacementStrategy]. |
| 7292 * | 7263 * |
| 7293 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7264 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7294 * error. | 7265 * error. |
| 7295 * | 7266 * |
| 7296 * If the used [http.Client] completes with an error when making a REST call, | 7267 * If the used [http.Client] completes with an error when making a REST call, |
| 7297 * this method will complete with the same error. | 7268 * this method will complete with the same error. |
| 7298 */ | 7269 */ |
| 7299 async.Future<PlacementStrategy> insert(PlacementStrategy request, core.String
profileId) { | 7270 async.Future<PlacementStrategy> insert(PlacementStrategy request, core.String
profileId) { |
| 7300 var _url = null; | 7271 var _url = null; |
| 7301 var _queryParams = new core.Map(); | 7272 var _queryParams = new core.Map(); |
| 7302 var _uploadMedia = null; | 7273 var _uploadMedia = null; |
| 7303 var _uploadOptions = null; | 7274 var _uploadOptions = null; |
| 7304 var _downloadOptions = common.DownloadOptions.Metadata; | 7275 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7305 var _body = null; | 7276 var _body = null; |
| 7306 | 7277 |
| 7307 if (request != null) { | 7278 if (request != null) { |
| 7308 _body = convert.JSON.encode((request).toJson()); | 7279 _body = convert.JSON.encode((request).toJson()); |
| 7309 } | 7280 } |
| 7310 if (profileId == null) { | 7281 if (profileId == null) { |
| 7311 throw new core.ArgumentError("Parameter profileId is required."); | 7282 throw new core.ArgumentError("Parameter profileId is required."); |
| 7312 } | 7283 } |
| 7313 | 7284 |
| 7314 | 7285 |
| 7315 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementStrategies'; | 7286 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementStrategies'; |
| 7316 | 7287 |
| 7317 var _response = _requester.request(_url, | 7288 var _response = _requester.request(_url, |
| 7318 "POST", | 7289 "POST", |
| 7319 body: _body, | 7290 body: _body, |
| 7320 queryParams: _queryParams, | 7291 queryParams: _queryParams, |
| 7321 uploadOptions: _uploadOptions, | 7292 uploadOptions: _uploadOptions, |
| 7322 uploadMedia: _uploadMedia, | 7293 uploadMedia: _uploadMedia, |
| 7323 downloadOptions: _downloadOptions); | 7294 downloadOptions: _downloadOptions); |
| 7324 return _response.then((data) => new PlacementStrategy.fromJson(data)); | 7295 return _response.then((data) => new PlacementStrategy.fromJson(data)); |
| 7325 } | 7296 } |
| 7326 | 7297 |
| 7327 /** | 7298 /** |
| 7328 * Retrieves a list of placement strategies, possibly filtered. | 7299 * Retrieves a list of placement strategies, possibly filtered. |
| 7329 * | 7300 * |
| 7330 * Request parameters: | 7301 * Request parameters: |
| 7331 * | 7302 * |
| 7332 * [profileId] - User profile ID associated with this request. | 7303 * [profileId] - User profile ID associated with this request. |
| 7333 * | 7304 * |
| 7334 * [ids] - Select only placement strategies with these IDs. | 7305 * [ids] - Select only placement strategies with these IDs. |
| 7335 * | 7306 * |
| 7336 * [maxResults] - Maximum number of results to return. | 7307 * [maxResults] - Maximum number of results to return. |
| 7337 * | 7308 * |
| 7338 * [pageToken] - Value of the nextPageToken from the previous result page. | 7309 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 7339 * | 7310 * |
| 7340 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 7311 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 7341 * are allowed. For example, "placementstrategy*2015" will return objects with | 7312 * are allowed. For example, "placementstrategy*2015" will return objects with |
| 7342 * names like "placementstrategy June 2015", "placementstrategy April 2015" or | 7313 * names like "placementstrategy June 2015", "placementstrategy April 2015", |
| 7343 * simply "placementstrategy 2015". Most of the searches also add wildcards | 7314 * or simply "placementstrategy 2015". Most of the searches also add wildcards |
| 7344 * implicitly at the start and the end of the search string. For example, a | 7315 * implicitly at the start and the end of the search string. For example, a |
| 7345 * search string of "placementstrategy" will match objects with name "my | 7316 * search string of "placementstrategy" will match objects with name "my |
| 7346 * placementstrategy", "placementstrategy 2015" or simply "placementstrategy". | 7317 * placementstrategy", "placementstrategy 2015", or simply |
| 7318 * "placementstrategy". |
| 7347 * | 7319 * |
| 7348 * [sortField] - Field by which to sort the list. | 7320 * [sortField] - Field by which to sort the list. |
| 7349 * Possible string values are: | 7321 * Possible string values are: |
| 7350 * - "ID" | 7322 * - "ID" |
| 7351 * - "NAME" | 7323 * - "NAME" |
| 7352 * | 7324 * |
| 7353 * [sortOrder] - Order of sorted results, default is ASCENDING. | 7325 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 7354 * Possible string values are: | 7326 * Possible string values are: |
| 7355 * - "ASCENDING" | 7327 * - "ASCENDING" |
| 7356 * - "DESCENDING" | 7328 * - "DESCENDING" |
| 7357 * | 7329 * |
| 7358 * Completes with a [PlacementStrategiesListResponse]. | 7330 * Completes with a [PlacementStrategiesListResponse]. |
| 7359 * | 7331 * |
| 7360 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7332 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7361 * error. | 7333 * error. |
| 7362 * | 7334 * |
| 7363 * If the used [http.Client] completes with an error when making a REST call, | 7335 * If the used [http.Client] completes with an error when making a REST call, |
| 7364 * this method will complete with the same error. | 7336 * this method will complete with the same error. |
| 7365 */ | 7337 */ |
| 7366 async.Future<PlacementStrategiesListResponse> list(core.String profileId, {cor
e.List<core.String> ids, core.int maxResults, core.String pageToken, core.String
searchString, core.String sortField, core.String sortOrder}) { | 7338 async.Future<PlacementStrategiesListResponse> list(core.String profileId, {cor
e.List<core.String> ids, core.int maxResults, core.String pageToken, core.String
searchString, core.String sortField, core.String sortOrder}) { |
| 7367 var _url = null; | 7339 var _url = null; |
| 7368 var _queryParams = new core.Map(); | 7340 var _queryParams = new core.Map(); |
| 7369 var _uploadMedia = null; | 7341 var _uploadMedia = null; |
| 7370 var _uploadOptions = null; | 7342 var _uploadOptions = null; |
| 7371 var _downloadOptions = common.DownloadOptions.Metadata; | 7343 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7372 var _body = null; | 7344 var _body = null; |
| 7373 | 7345 |
| 7374 if (profileId == null) { | 7346 if (profileId == null) { |
| 7375 throw new core.ArgumentError("Parameter profileId is required."); | 7347 throw new core.ArgumentError("Parameter profileId is required."); |
| 7376 } | 7348 } |
| 7377 if (ids != null) { | 7349 if (ids != null) { |
| 7378 _queryParams["ids"] = ids; | 7350 _queryParams["ids"] = ids; |
| 7379 } | 7351 } |
| 7380 if (maxResults != null) { | 7352 if (maxResults != null) { |
| 7381 _queryParams["maxResults"] = ["${maxResults}"]; | 7353 _queryParams["maxResults"] = ["${maxResults}"]; |
| 7382 } | 7354 } |
| 7383 if (pageToken != null) { | 7355 if (pageToken != null) { |
| 7384 _queryParams["pageToken"] = [pageToken]; | 7356 _queryParams["pageToken"] = [pageToken]; |
| 7385 } | 7357 } |
| 7386 if (searchString != null) { | 7358 if (searchString != null) { |
| 7387 _queryParams["searchString"] = [searchString]; | 7359 _queryParams["searchString"] = [searchString]; |
| 7388 } | 7360 } |
| 7389 if (sortField != null) { | 7361 if (sortField != null) { |
| 7390 _queryParams["sortField"] = [sortField]; | 7362 _queryParams["sortField"] = [sortField]; |
| 7391 } | 7363 } |
| 7392 if (sortOrder != null) { | 7364 if (sortOrder != null) { |
| 7393 _queryParams["sortOrder"] = [sortOrder]; | 7365 _queryParams["sortOrder"] = [sortOrder]; |
| 7394 } | 7366 } |
| 7395 | 7367 |
| 7396 | 7368 |
| 7397 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementStrategies'; | 7369 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementStrategies'; |
| 7398 | 7370 |
| 7399 var _response = _requester.request(_url, | 7371 var _response = _requester.request(_url, |
| 7400 "GET", | 7372 "GET", |
| 7401 body: _body, | 7373 body: _body, |
| 7402 queryParams: _queryParams, | 7374 queryParams: _queryParams, |
| 7403 uploadOptions: _uploadOptions, | 7375 uploadOptions: _uploadOptions, |
| 7404 uploadMedia: _uploadMedia, | 7376 uploadMedia: _uploadMedia, |
| 7405 downloadOptions: _downloadOptions); | 7377 downloadOptions: _downloadOptions); |
| 7406 return _response.then((data) => new PlacementStrategiesListResponse.fromJson
(data)); | 7378 return _response.then((data) => new PlacementStrategiesListResponse.fromJson
(data)); |
| 7407 } | 7379 } |
| 7408 | 7380 |
| 7409 /** | 7381 /** |
| 7410 * Updates an existing placement strategy. This method supports patch | 7382 * Updates an existing placement strategy. This method supports patch |
| 7411 * semantics. | 7383 * semantics. |
| 7412 * | 7384 * |
| 7413 * [request] - The metadata request object. | 7385 * [request] - The metadata request object. |
| 7414 * | 7386 * |
| 7415 * Request parameters: | 7387 * Request parameters: |
| 7416 * | 7388 * |
| 7417 * [profileId] - User profile ID associated with this request. | 7389 * [profileId] - User profile ID associated with this request. |
| 7418 * | 7390 * |
| 7419 * [id] - Placement strategy ID. | 7391 * [id] - Placement strategy ID. |
| 7420 * | 7392 * |
| 7421 * Completes with a [PlacementStrategy]. | 7393 * Completes with a [PlacementStrategy]. |
| 7422 * | 7394 * |
| 7423 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7395 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7424 * error. | 7396 * error. |
| 7425 * | 7397 * |
| 7426 * If the used [http.Client] completes with an error when making a REST call, | 7398 * If the used [http.Client] completes with an error when making a REST call, |
| 7427 * this method will complete with the same error. | 7399 * this method will complete with the same error. |
| 7428 */ | 7400 */ |
| 7429 async.Future<PlacementStrategy> patch(PlacementStrategy request, core.String p
rofileId, core.String id) { | 7401 async.Future<PlacementStrategy> patch(PlacementStrategy request, core.String p
rofileId, core.String id) { |
| 7430 var _url = null; | 7402 var _url = null; |
| 7431 var _queryParams = new core.Map(); | 7403 var _queryParams = new core.Map(); |
| 7432 var _uploadMedia = null; | 7404 var _uploadMedia = null; |
| 7433 var _uploadOptions = null; | 7405 var _uploadOptions = null; |
| 7434 var _downloadOptions = common.DownloadOptions.Metadata; | 7406 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7435 var _body = null; | 7407 var _body = null; |
| 7436 | 7408 |
| 7437 if (request != null) { | 7409 if (request != null) { |
| 7438 _body = convert.JSON.encode((request).toJson()); | 7410 _body = convert.JSON.encode((request).toJson()); |
| 7439 } | 7411 } |
| 7440 if (profileId == null) { | 7412 if (profileId == null) { |
| 7441 throw new core.ArgumentError("Parameter profileId is required."); | 7413 throw new core.ArgumentError("Parameter profileId is required."); |
| 7442 } | 7414 } |
| 7443 if (id == null) { | 7415 if (id == null) { |
| 7444 throw new core.ArgumentError("Parameter id is required."); | 7416 throw new core.ArgumentError("Parameter id is required."); |
| 7445 } | 7417 } |
| 7446 _queryParams["id"] = [id]; | 7418 _queryParams["id"] = [id]; |
| 7447 | 7419 |
| 7448 | 7420 |
| 7449 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementStrategies'; | 7421 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementStrategies'; |
| 7450 | 7422 |
| 7451 var _response = _requester.request(_url, | 7423 var _response = _requester.request(_url, |
| 7452 "PATCH", | 7424 "PATCH", |
| 7453 body: _body, | 7425 body: _body, |
| 7454 queryParams: _queryParams, | 7426 queryParams: _queryParams, |
| 7455 uploadOptions: _uploadOptions, | 7427 uploadOptions: _uploadOptions, |
| 7456 uploadMedia: _uploadMedia, | 7428 uploadMedia: _uploadMedia, |
| 7457 downloadOptions: _downloadOptions); | 7429 downloadOptions: _downloadOptions); |
| 7458 return _response.then((data) => new PlacementStrategy.fromJson(data)); | 7430 return _response.then((data) => new PlacementStrategy.fromJson(data)); |
| 7459 } | 7431 } |
| 7460 | 7432 |
| 7461 /** | 7433 /** |
| 7462 * Updates an existing placement strategy. | 7434 * Updates an existing placement strategy. |
| 7463 * | 7435 * |
| 7464 * [request] - The metadata request object. | 7436 * [request] - The metadata request object. |
| 7465 * | 7437 * |
| 7466 * Request parameters: | 7438 * Request parameters: |
| 7467 * | 7439 * |
| 7468 * [profileId] - User profile ID associated with this request. | 7440 * [profileId] - User profile ID associated with this request. |
| 7469 * | 7441 * |
| 7470 * Completes with a [PlacementStrategy]. | 7442 * Completes with a [PlacementStrategy]. |
| 7471 * | 7443 * |
| 7472 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7444 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7473 * error. | 7445 * error. |
| 7474 * | 7446 * |
| 7475 * If the used [http.Client] completes with an error when making a REST call, | 7447 * If the used [http.Client] completes with an error when making a REST call, |
| 7476 * this method will complete with the same error. | 7448 * this method will complete with the same error. |
| 7477 */ | 7449 */ |
| 7478 async.Future<PlacementStrategy> update(PlacementStrategy request, core.String
profileId) { | 7450 async.Future<PlacementStrategy> update(PlacementStrategy request, core.String
profileId) { |
| 7479 var _url = null; | 7451 var _url = null; |
| 7480 var _queryParams = new core.Map(); | 7452 var _queryParams = new core.Map(); |
| 7481 var _uploadMedia = null; | 7453 var _uploadMedia = null; |
| 7482 var _uploadOptions = null; | 7454 var _uploadOptions = null; |
| 7483 var _downloadOptions = common.DownloadOptions.Metadata; | 7455 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7484 var _body = null; | 7456 var _body = null; |
| 7485 | 7457 |
| 7486 if (request != null) { | 7458 if (request != null) { |
| 7487 _body = convert.JSON.encode((request).toJson()); | 7459 _body = convert.JSON.encode((request).toJson()); |
| 7488 } | 7460 } |
| 7489 if (profileId == null) { | 7461 if (profileId == null) { |
| 7490 throw new core.ArgumentError("Parameter profileId is required."); | 7462 throw new core.ArgumentError("Parameter profileId is required."); |
| 7491 } | 7463 } |
| 7492 | 7464 |
| 7493 | 7465 |
| 7494 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placementStrategies'; | 7466 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cementStrategies'; |
| 7495 | 7467 |
| 7496 var _response = _requester.request(_url, | 7468 var _response = _requester.request(_url, |
| 7497 "PUT", | 7469 "PUT", |
| 7498 body: _body, | 7470 body: _body, |
| 7499 queryParams: _queryParams, | 7471 queryParams: _queryParams, |
| 7500 uploadOptions: _uploadOptions, | 7472 uploadOptions: _uploadOptions, |
| 7501 uploadMedia: _uploadMedia, | 7473 uploadMedia: _uploadMedia, |
| 7502 downloadOptions: _downloadOptions); | 7474 downloadOptions: _downloadOptions); |
| 7503 return _response.then((data) => new PlacementStrategy.fromJson(data)); | 7475 return _response.then((data) => new PlacementStrategy.fromJson(data)); |
| 7504 } | 7476 } |
| 7505 | 7477 |
| 7506 } | 7478 } |
| 7507 | 7479 |
| 7508 | 7480 |
| 7509 /** Not documented yet. */ | |
| 7510 class PlacementsResourceApi { | 7481 class PlacementsResourceApi { |
| 7511 final common_internal.ApiRequester _requester; | 7482 final commons.ApiRequester _requester; |
| 7512 | 7483 |
| 7513 PlacementsResourceApi(common_internal.ApiRequester client) : | 7484 PlacementsResourceApi(commons.ApiRequester client) : |
| 7514 _requester = client; | 7485 _requester = client; |
| 7515 | 7486 |
| 7516 /** | 7487 /** |
| 7517 * Generates tags for a placement. | 7488 * Generates tags for a placement. |
| 7518 * | 7489 * |
| 7519 * Request parameters: | 7490 * Request parameters: |
| 7520 * | 7491 * |
| 7521 * [profileId] - User profile ID associated with this request. | 7492 * [profileId] - User profile ID associated with this request. |
| 7522 * | 7493 * |
| 7523 * [campaignId] - Generate placements belonging to this campaign. This is a | 7494 * [campaignId] - Generate placements belonging to this campaign. This is a |
| 7524 * required field. | 7495 * required field. |
| 7525 * | 7496 * |
| 7526 * [placementIds] - Generate tags for these placements. | 7497 * [placementIds] - Generate tags for these placements. |
| 7527 * | 7498 * |
| 7528 * [tagFormats] - Tag formats to generate for these placements. | 7499 * [tagFormats] - Tag formats to generate for these placements. |
| 7529 * | 7500 * |
| 7530 * Completes with a [PlacementsGenerateTagsResponse]. | 7501 * Completes with a [PlacementsGenerateTagsResponse]. |
| 7531 * | 7502 * |
| 7532 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7503 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7533 * error. | 7504 * error. |
| 7534 * | 7505 * |
| 7535 * If the used [http.Client] completes with an error when making a REST call, | 7506 * If the used [http.Client] completes with an error when making a REST call, |
| 7536 * this method will complete with the same error. | 7507 * this method will complete with the same error. |
| 7537 */ | 7508 */ |
| 7538 async.Future<PlacementsGenerateTagsResponse> generatetags(core.String profileI
d, {core.String campaignId, core.List<core.String> placementIds, core.List<core.
String> tagFormats}) { | 7509 async.Future<PlacementsGenerateTagsResponse> generatetags(core.String profileI
d, {core.String campaignId, core.List<core.String> placementIds, core.List<core.
String> tagFormats}) { |
| 7539 var _url = null; | 7510 var _url = null; |
| 7540 var _queryParams = new core.Map(); | 7511 var _queryParams = new core.Map(); |
| 7541 var _uploadMedia = null; | 7512 var _uploadMedia = null; |
| 7542 var _uploadOptions = null; | 7513 var _uploadOptions = null; |
| 7543 var _downloadOptions = common.DownloadOptions.Metadata; | 7514 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7544 var _body = null; | 7515 var _body = null; |
| 7545 | 7516 |
| 7546 if (profileId == null) { | 7517 if (profileId == null) { |
| 7547 throw new core.ArgumentError("Parameter profileId is required."); | 7518 throw new core.ArgumentError("Parameter profileId is required."); |
| 7548 } | 7519 } |
| 7549 if (campaignId != null) { | 7520 if (campaignId != null) { |
| 7550 _queryParams["campaignId"] = [campaignId]; | 7521 _queryParams["campaignId"] = [campaignId]; |
| 7551 } | 7522 } |
| 7552 if (placementIds != null) { | 7523 if (placementIds != null) { |
| 7553 _queryParams["placementIds"] = placementIds; | 7524 _queryParams["placementIds"] = placementIds; |
| 7554 } | 7525 } |
| 7555 if (tagFormats != null) { | 7526 if (tagFormats != null) { |
| 7556 _queryParams["tagFormats"] = tagFormats; | 7527 _queryParams["tagFormats"] = tagFormats; |
| 7557 } | 7528 } |
| 7558 | 7529 |
| 7559 | 7530 |
| 7560 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placements/generatetags'; | 7531 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cements/generatetags'; |
| 7561 | 7532 |
| 7562 var _response = _requester.request(_url, | 7533 var _response = _requester.request(_url, |
| 7563 "POST", | 7534 "POST", |
| 7564 body: _body, | 7535 body: _body, |
| 7565 queryParams: _queryParams, | 7536 queryParams: _queryParams, |
| 7566 uploadOptions: _uploadOptions, | 7537 uploadOptions: _uploadOptions, |
| 7567 uploadMedia: _uploadMedia, | 7538 uploadMedia: _uploadMedia, |
| 7568 downloadOptions: _downloadOptions); | 7539 downloadOptions: _downloadOptions); |
| 7569 return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson(
data)); | 7540 return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson(
data)); |
| 7570 } | 7541 } |
| 7571 | 7542 |
| 7572 /** | 7543 /** |
| 7573 * Gets one placement by ID. | 7544 * Gets one placement by ID. |
| 7574 * | 7545 * |
| 7575 * Request parameters: | 7546 * Request parameters: |
| 7576 * | 7547 * |
| 7577 * [profileId] - User profile ID associated with this request. | 7548 * [profileId] - User profile ID associated with this request. |
| 7578 * | 7549 * |
| 7579 * [id] - Placement ID. | 7550 * [id] - Placement ID. |
| 7580 * | 7551 * |
| 7581 * Completes with a [Placement]. | 7552 * Completes with a [Placement]. |
| 7582 * | 7553 * |
| 7583 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7554 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7584 * error. | 7555 * error. |
| 7585 * | 7556 * |
| 7586 * If the used [http.Client] completes with an error when making a REST call, | 7557 * If the used [http.Client] completes with an error when making a REST call, |
| 7587 * this method will complete with the same error. | 7558 * this method will complete with the same error. |
| 7588 */ | 7559 */ |
| 7589 async.Future<Placement> get(core.String profileId, core.String id) { | 7560 async.Future<Placement> get(core.String profileId, core.String id) { |
| 7590 var _url = null; | 7561 var _url = null; |
| 7591 var _queryParams = new core.Map(); | 7562 var _queryParams = new core.Map(); |
| 7592 var _uploadMedia = null; | 7563 var _uploadMedia = null; |
| 7593 var _uploadOptions = null; | 7564 var _uploadOptions = null; |
| 7594 var _downloadOptions = common.DownloadOptions.Metadata; | 7565 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7595 var _body = null; | 7566 var _body = null; |
| 7596 | 7567 |
| 7597 if (profileId == null) { | 7568 if (profileId == null) { |
| 7598 throw new core.ArgumentError("Parameter profileId is required."); | 7569 throw new core.ArgumentError("Parameter profileId is required."); |
| 7599 } | 7570 } |
| 7600 if (id == null) { | 7571 if (id == null) { |
| 7601 throw new core.ArgumentError("Parameter id is required."); | 7572 throw new core.ArgumentError("Parameter id is required."); |
| 7602 } | 7573 } |
| 7603 | 7574 |
| 7604 | 7575 |
| 7605 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placements/' + common_internal.Escaper.ecapeVariable('$id'); | 7576 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cements/' + commons.Escaper.ecapeVariable('$id'); |
| 7606 | 7577 |
| 7607 var _response = _requester.request(_url, | 7578 var _response = _requester.request(_url, |
| 7608 "GET", | 7579 "GET", |
| 7609 body: _body, | 7580 body: _body, |
| 7610 queryParams: _queryParams, | 7581 queryParams: _queryParams, |
| 7611 uploadOptions: _uploadOptions, | 7582 uploadOptions: _uploadOptions, |
| 7612 uploadMedia: _uploadMedia, | 7583 uploadMedia: _uploadMedia, |
| 7613 downloadOptions: _downloadOptions); | 7584 downloadOptions: _downloadOptions); |
| 7614 return _response.then((data) => new Placement.fromJson(data)); | 7585 return _response.then((data) => new Placement.fromJson(data)); |
| 7615 } | 7586 } |
| 7616 | 7587 |
| 7617 /** | 7588 /** |
| 7618 * Inserts a new placement. | 7589 * Inserts a new placement. |
| 7619 * | 7590 * |
| 7620 * [request] - The metadata request object. | 7591 * [request] - The metadata request object. |
| 7621 * | 7592 * |
| 7622 * Request parameters: | 7593 * Request parameters: |
| 7623 * | 7594 * |
| 7624 * [profileId] - User profile ID associated with this request. | 7595 * [profileId] - User profile ID associated with this request. |
| 7625 * | 7596 * |
| 7626 * Completes with a [Placement]. | 7597 * Completes with a [Placement]. |
| 7627 * | 7598 * |
| 7628 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7599 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7629 * error. | 7600 * error. |
| 7630 * | 7601 * |
| 7631 * If the used [http.Client] completes with an error when making a REST call, | 7602 * If the used [http.Client] completes with an error when making a REST call, |
| 7632 * this method will complete with the same error. | 7603 * this method will complete with the same error. |
| 7633 */ | 7604 */ |
| 7634 async.Future<Placement> insert(Placement request, core.String profileId) { | 7605 async.Future<Placement> insert(Placement request, core.String profileId) { |
| 7635 var _url = null; | 7606 var _url = null; |
| 7636 var _queryParams = new core.Map(); | 7607 var _queryParams = new core.Map(); |
| 7637 var _uploadMedia = null; | 7608 var _uploadMedia = null; |
| 7638 var _uploadOptions = null; | 7609 var _uploadOptions = null; |
| 7639 var _downloadOptions = common.DownloadOptions.Metadata; | 7610 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7640 var _body = null; | 7611 var _body = null; |
| 7641 | 7612 |
| 7642 if (request != null) { | 7613 if (request != null) { |
| 7643 _body = convert.JSON.encode((request).toJson()); | 7614 _body = convert.JSON.encode((request).toJson()); |
| 7644 } | 7615 } |
| 7645 if (profileId == null) { | 7616 if (profileId == null) { |
| 7646 throw new core.ArgumentError("Parameter profileId is required."); | 7617 throw new core.ArgumentError("Parameter profileId is required."); |
| 7647 } | 7618 } |
| 7648 | 7619 |
| 7649 | 7620 |
| 7650 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placements'; | 7621 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cements'; |
| 7651 | 7622 |
| 7652 var _response = _requester.request(_url, | 7623 var _response = _requester.request(_url, |
| 7653 "POST", | 7624 "POST", |
| 7654 body: _body, | 7625 body: _body, |
| 7655 queryParams: _queryParams, | 7626 queryParams: _queryParams, |
| 7656 uploadOptions: _uploadOptions, | 7627 uploadOptions: _uploadOptions, |
| 7657 uploadMedia: _uploadMedia, | 7628 uploadMedia: _uploadMedia, |
| 7658 downloadOptions: _downloadOptions); | 7629 downloadOptions: _downloadOptions); |
| 7659 return _response.then((data) => new Placement.fromJson(data)); | 7630 return _response.then((data) => new Placement.fromJson(data)); |
| 7660 } | 7631 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7699 * - "PLACEMENT_AGENCY_PAID" | 7670 * - "PLACEMENT_AGENCY_PAID" |
| 7700 * - "PLACEMENT_PUBLISHER_PAID" | 7671 * - "PLACEMENT_PUBLISHER_PAID" |
| 7701 * | 7672 * |
| 7702 * [placementStrategyIds] - Select only placements that are associated with | 7673 * [placementStrategyIds] - Select only placements that are associated with |
| 7703 * these placement strategies. | 7674 * these placement strategies. |
| 7704 * | 7675 * |
| 7705 * [pricingTypes] - Select only placements with these pricing types. | 7676 * [pricingTypes] - Select only placements with these pricing types. |
| 7706 * | 7677 * |
| 7707 * [searchString] - Allows searching for placements by name or ID. Wildcards | 7678 * [searchString] - Allows searching for placements by name or ID. Wildcards |
| 7708 * (*) are allowed. For example, "placement*2015" will return placements with | 7679 * (*) are allowed. For example, "placement*2015" will return placements with |
| 7709 * names like "placement June 2015", "placement May 2015" or simply | 7680 * names like "placement June 2015", "placement May 2015", or simply |
| 7710 * "placements 2015". Most of the searches also add wildcards implicitly at | 7681 * "placements 2015". Most of the searches also add wildcards implicitly at |
| 7711 * the start and the end of the search string. For example, a search string of | 7682 * the start and the end of the search string. For example, a search string of |
| 7712 * "placement" will match placements with name "my placement", "placement | 7683 * "placement" will match placements with name "my placement", "placement |
| 7713 * 2015" or simply "placement". | 7684 * 2015", or simply "placement". |
| 7714 * | 7685 * |
| 7715 * [siteIds] - Select only placements that are associated with these sites. | 7686 * [siteIds] - Select only placements that are associated with these sites. |
| 7716 * | 7687 * |
| 7717 * [sizeIds] - Select only placements that are associated with these sizes. | 7688 * [sizeIds] - Select only placements that are associated with these sizes. |
| 7718 * | 7689 * |
| 7719 * [sortField] - Field by which to sort the list. | 7690 * [sortField] - Field by which to sort the list. |
| 7720 * Possible string values are: | 7691 * Possible string values are: |
| 7721 * - "ID" | 7692 * - "ID" |
| 7722 * - "NAME" | 7693 * - "NAME" |
| 7723 * | 7694 * |
| 7724 * [sortOrder] - Order of sorted results, default is ASCENDING. | 7695 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 7725 * Possible string values are: | 7696 * Possible string values are: |
| 7726 * - "ASCENDING" | 7697 * - "ASCENDING" |
| 7727 * - "DESCENDING" | 7698 * - "DESCENDING" |
| 7728 * | 7699 * |
| 7729 * Completes with a [PlacementsListResponse]. | 7700 * Completes with a [PlacementsListResponse]. |
| 7730 * | 7701 * |
| 7731 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7702 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7732 * error. | 7703 * error. |
| 7733 * | 7704 * |
| 7734 * If the used [http.Client] completes with an error when making a REST call, | 7705 * If the used [http.Client] completes with an error when making a REST call, |
| 7735 * this method will complete with the same error. | 7706 * this method will complete with the same error. |
| 7736 */ | 7707 */ |
| 7737 async.Future<PlacementsListResponse> list(core.String profileId, {core.List<co
re.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds
, core.List<core.String> compatibilities, core.List<core.String> contentCategory
Ids, core.List<core.String> directorySiteIds, core.List<core.String> groupIds, c
ore.List<core.String> ids, core.int maxResults, core.String pageToken, core.Stri
ng paymentSource, core.List<core.String> placementStrategyIds, core.List<core.St
ring> pricingTypes, core.String searchString, core.List<core.String> siteIds, co
re.List<core.String> sizeIds, core.String sortField, core.String sortOrder}) { | 7708 async.Future<PlacementsListResponse> list(core.String profileId, {core.List<co
re.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds
, core.List<core.String> compatibilities, core.List<core.String> contentCategory
Ids, core.List<core.String> directorySiteIds, core.List<core.String> groupIds, c
ore.List<core.String> ids, core.int maxResults, core.String pageToken, core.Stri
ng paymentSource, core.List<core.String> placementStrategyIds, core.List<core.St
ring> pricingTypes, core.String searchString, core.List<core.String> siteIds, co
re.List<core.String> sizeIds, core.String sortField, core.String sortOrder}) { |
| 7738 var _url = null; | 7709 var _url = null; |
| 7739 var _queryParams = new core.Map(); | 7710 var _queryParams = new core.Map(); |
| 7740 var _uploadMedia = null; | 7711 var _uploadMedia = null; |
| 7741 var _uploadOptions = null; | 7712 var _uploadOptions = null; |
| 7742 var _downloadOptions = common.DownloadOptions.Metadata; | 7713 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7743 var _body = null; | 7714 var _body = null; |
| 7744 | 7715 |
| 7745 if (profileId == null) { | 7716 if (profileId == null) { |
| 7746 throw new core.ArgumentError("Parameter profileId is required."); | 7717 throw new core.ArgumentError("Parameter profileId is required."); |
| 7747 } | 7718 } |
| 7748 if (advertiserIds != null) { | 7719 if (advertiserIds != null) { |
| 7749 _queryParams["advertiserIds"] = advertiserIds; | 7720 _queryParams["advertiserIds"] = advertiserIds; |
| 7750 } | 7721 } |
| 7751 if (archived != null) { | 7722 if (archived != null) { |
| 7752 _queryParams["archived"] = ["${archived}"]; | 7723 _queryParams["archived"] = ["${archived}"]; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7794 _queryParams["sizeIds"] = sizeIds; | 7765 _queryParams["sizeIds"] = sizeIds; |
| 7795 } | 7766 } |
| 7796 if (sortField != null) { | 7767 if (sortField != null) { |
| 7797 _queryParams["sortField"] = [sortField]; | 7768 _queryParams["sortField"] = [sortField]; |
| 7798 } | 7769 } |
| 7799 if (sortOrder != null) { | 7770 if (sortOrder != null) { |
| 7800 _queryParams["sortOrder"] = [sortOrder]; | 7771 _queryParams["sortOrder"] = [sortOrder]; |
| 7801 } | 7772 } |
| 7802 | 7773 |
| 7803 | 7774 |
| 7804 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placements'; | 7775 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cements'; |
| 7805 | 7776 |
| 7806 var _response = _requester.request(_url, | 7777 var _response = _requester.request(_url, |
| 7807 "GET", | 7778 "GET", |
| 7808 body: _body, | 7779 body: _body, |
| 7809 queryParams: _queryParams, | 7780 queryParams: _queryParams, |
| 7810 uploadOptions: _uploadOptions, | 7781 uploadOptions: _uploadOptions, |
| 7811 uploadMedia: _uploadMedia, | 7782 uploadMedia: _uploadMedia, |
| 7812 downloadOptions: _downloadOptions); | 7783 downloadOptions: _downloadOptions); |
| 7813 return _response.then((data) => new PlacementsListResponse.fromJson(data)); | 7784 return _response.then((data) => new PlacementsListResponse.fromJson(data)); |
| 7814 } | 7785 } |
| 7815 | 7786 |
| 7816 /** | 7787 /** |
| 7817 * Updates an existing placement. This method supports patch semantics. | 7788 * Updates an existing placement. This method supports patch semantics. |
| 7818 * | 7789 * |
| 7819 * [request] - The metadata request object. | 7790 * [request] - The metadata request object. |
| 7820 * | 7791 * |
| 7821 * Request parameters: | 7792 * Request parameters: |
| 7822 * | 7793 * |
| 7823 * [profileId] - User profile ID associated with this request. | 7794 * [profileId] - User profile ID associated with this request. |
| 7824 * | 7795 * |
| 7825 * [id] - Placement ID. | 7796 * [id] - Placement ID. |
| 7826 * | 7797 * |
| 7827 * Completes with a [Placement]. | 7798 * Completes with a [Placement]. |
| 7828 * | 7799 * |
| 7829 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7800 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7830 * error. | 7801 * error. |
| 7831 * | 7802 * |
| 7832 * If the used [http.Client] completes with an error when making a REST call, | 7803 * If the used [http.Client] completes with an error when making a REST call, |
| 7833 * this method will complete with the same error. | 7804 * this method will complete with the same error. |
| 7834 */ | 7805 */ |
| 7835 async.Future<Placement> patch(Placement request, core.String profileId, core.S
tring id) { | 7806 async.Future<Placement> patch(Placement request, core.String profileId, core.S
tring id) { |
| 7836 var _url = null; | 7807 var _url = null; |
| 7837 var _queryParams = new core.Map(); | 7808 var _queryParams = new core.Map(); |
| 7838 var _uploadMedia = null; | 7809 var _uploadMedia = null; |
| 7839 var _uploadOptions = null; | 7810 var _uploadOptions = null; |
| 7840 var _downloadOptions = common.DownloadOptions.Metadata; | 7811 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7841 var _body = null; | 7812 var _body = null; |
| 7842 | 7813 |
| 7843 if (request != null) { | 7814 if (request != null) { |
| 7844 _body = convert.JSON.encode((request).toJson()); | 7815 _body = convert.JSON.encode((request).toJson()); |
| 7845 } | 7816 } |
| 7846 if (profileId == null) { | 7817 if (profileId == null) { |
| 7847 throw new core.ArgumentError("Parameter profileId is required."); | 7818 throw new core.ArgumentError("Parameter profileId is required."); |
| 7848 } | 7819 } |
| 7849 if (id == null) { | 7820 if (id == null) { |
| 7850 throw new core.ArgumentError("Parameter id is required."); | 7821 throw new core.ArgumentError("Parameter id is required."); |
| 7851 } | 7822 } |
| 7852 _queryParams["id"] = [id]; | 7823 _queryParams["id"] = [id]; |
| 7853 | 7824 |
| 7854 | 7825 |
| 7855 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placements'; | 7826 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cements'; |
| 7856 | 7827 |
| 7857 var _response = _requester.request(_url, | 7828 var _response = _requester.request(_url, |
| 7858 "PATCH", | 7829 "PATCH", |
| 7859 body: _body, | 7830 body: _body, |
| 7860 queryParams: _queryParams, | 7831 queryParams: _queryParams, |
| 7861 uploadOptions: _uploadOptions, | 7832 uploadOptions: _uploadOptions, |
| 7862 uploadMedia: _uploadMedia, | 7833 uploadMedia: _uploadMedia, |
| 7863 downloadOptions: _downloadOptions); | 7834 downloadOptions: _downloadOptions); |
| 7864 return _response.then((data) => new Placement.fromJson(data)); | 7835 return _response.then((data) => new Placement.fromJson(data)); |
| 7865 } | 7836 } |
| 7866 | 7837 |
| 7867 /** | 7838 /** |
| 7868 * Updates an existing placement. | 7839 * Updates an existing placement. |
| 7869 * | 7840 * |
| 7870 * [request] - The metadata request object. | 7841 * [request] - The metadata request object. |
| 7871 * | 7842 * |
| 7872 * Request parameters: | 7843 * Request parameters: |
| 7873 * | 7844 * |
| 7874 * [profileId] - User profile ID associated with this request. | 7845 * [profileId] - User profile ID associated with this request. |
| 7875 * | 7846 * |
| 7876 * Completes with a [Placement]. | 7847 * Completes with a [Placement]. |
| 7877 * | 7848 * |
| 7878 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7849 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7879 * error. | 7850 * error. |
| 7880 * | 7851 * |
| 7881 * If the used [http.Client] completes with an error when making a REST call, | 7852 * If the used [http.Client] completes with an error when making a REST call, |
| 7882 * this method will complete with the same error. | 7853 * this method will complete with the same error. |
| 7883 */ | 7854 */ |
| 7884 async.Future<Placement> update(Placement request, core.String profileId) { | 7855 async.Future<Placement> update(Placement request, core.String profileId) { |
| 7885 var _url = null; | 7856 var _url = null; |
| 7886 var _queryParams = new core.Map(); | 7857 var _queryParams = new core.Map(); |
| 7887 var _uploadMedia = null; | 7858 var _uploadMedia = null; |
| 7888 var _uploadOptions = null; | 7859 var _uploadOptions = null; |
| 7889 var _downloadOptions = common.DownloadOptions.Metadata; | 7860 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7890 var _body = null; | 7861 var _body = null; |
| 7891 | 7862 |
| 7892 if (request != null) { | 7863 if (request != null) { |
| 7893 _body = convert.JSON.encode((request).toJson()); | 7864 _body = convert.JSON.encode((request).toJson()); |
| 7894 } | 7865 } |
| 7895 if (profileId == null) { | 7866 if (profileId == null) { |
| 7896 throw new core.ArgumentError("Parameter profileId is required."); | 7867 throw new core.ArgumentError("Parameter profileId is required."); |
| 7897 } | 7868 } |
| 7898 | 7869 |
| 7899 | 7870 |
| 7900 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/placements'; | 7871 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
cements'; |
| 7901 | 7872 |
| 7902 var _response = _requester.request(_url, | 7873 var _response = _requester.request(_url, |
| 7903 "PUT", | 7874 "PUT", |
| 7904 body: _body, | 7875 body: _body, |
| 7905 queryParams: _queryParams, | 7876 queryParams: _queryParams, |
| 7906 uploadOptions: _uploadOptions, | 7877 uploadOptions: _uploadOptions, |
| 7907 uploadMedia: _uploadMedia, | 7878 uploadMedia: _uploadMedia, |
| 7908 downloadOptions: _downloadOptions); | 7879 downloadOptions: _downloadOptions); |
| 7909 return _response.then((data) => new Placement.fromJson(data)); | 7880 return _response.then((data) => new Placement.fromJson(data)); |
| 7910 } | 7881 } |
| 7911 | 7882 |
| 7912 } | 7883 } |
| 7913 | 7884 |
| 7914 | 7885 |
| 7915 /** Not documented yet. */ | |
| 7916 class PlatformTypesResourceApi { | 7886 class PlatformTypesResourceApi { |
| 7917 final common_internal.ApiRequester _requester; | 7887 final commons.ApiRequester _requester; |
| 7918 | 7888 |
| 7919 PlatformTypesResourceApi(common_internal.ApiRequester client) : | 7889 PlatformTypesResourceApi(commons.ApiRequester client) : |
| 7920 _requester = client; | 7890 _requester = client; |
| 7921 | 7891 |
| 7922 /** | 7892 /** |
| 7923 * Retrieves a list of platform types. | 7893 * Retrieves a list of platform types. |
| 7924 * | 7894 * |
| 7925 * Request parameters: | 7895 * Request parameters: |
| 7926 * | 7896 * |
| 7927 * [profileId] - User profile ID associated with this request. | 7897 * [profileId] - User profile ID associated with this request. |
| 7928 * | 7898 * |
| 7929 * Completes with a [PlatformTypesListResponse]. | 7899 * Completes with a [PlatformTypesListResponse]. |
| 7930 * | 7900 * |
| 7931 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7901 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7932 * error. | 7902 * error. |
| 7933 * | 7903 * |
| 7934 * If the used [http.Client] completes with an error when making a REST call, | 7904 * If the used [http.Client] completes with an error when making a REST call, |
| 7935 * this method will complete with the same error. | 7905 * this method will complete with the same error. |
| 7936 */ | 7906 */ |
| 7937 async.Future<PlatformTypesListResponse> list(core.String profileId) { | 7907 async.Future<PlatformTypesListResponse> list(core.String profileId) { |
| 7938 var _url = null; | 7908 var _url = null; |
| 7939 var _queryParams = new core.Map(); | 7909 var _queryParams = new core.Map(); |
| 7940 var _uploadMedia = null; | 7910 var _uploadMedia = null; |
| 7941 var _uploadOptions = null; | 7911 var _uploadOptions = null; |
| 7942 var _downloadOptions = common.DownloadOptions.Metadata; | 7912 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7943 var _body = null; | 7913 var _body = null; |
| 7944 | 7914 |
| 7945 if (profileId == null) { | 7915 if (profileId == null) { |
| 7946 throw new core.ArgumentError("Parameter profileId is required."); | 7916 throw new core.ArgumentError("Parameter profileId is required."); |
| 7947 } | 7917 } |
| 7948 | 7918 |
| 7949 | 7919 |
| 7950 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/platformTypes'; | 7920 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pla
tformTypes'; |
| 7951 | 7921 |
| 7952 var _response = _requester.request(_url, | 7922 var _response = _requester.request(_url, |
| 7953 "GET", | 7923 "GET", |
| 7954 body: _body, | 7924 body: _body, |
| 7955 queryParams: _queryParams, | 7925 queryParams: _queryParams, |
| 7956 uploadOptions: _uploadOptions, | 7926 uploadOptions: _uploadOptions, |
| 7957 uploadMedia: _uploadMedia, | 7927 uploadMedia: _uploadMedia, |
| 7958 downloadOptions: _downloadOptions); | 7928 downloadOptions: _downloadOptions); |
| 7959 return _response.then((data) => new PlatformTypesListResponse.fromJson(data)
); | 7929 return _response.then((data) => new PlatformTypesListResponse.fromJson(data)
); |
| 7960 } | 7930 } |
| 7961 | 7931 |
| 7962 } | 7932 } |
| 7963 | 7933 |
| 7964 | 7934 |
| 7965 /** Not documented yet. */ | |
| 7966 class PostalCodesResourceApi { | 7935 class PostalCodesResourceApi { |
| 7967 final common_internal.ApiRequester _requester; | 7936 final commons.ApiRequester _requester; |
| 7968 | 7937 |
| 7969 PostalCodesResourceApi(common_internal.ApiRequester client) : | 7938 PostalCodesResourceApi(commons.ApiRequester client) : |
| 7970 _requester = client; | 7939 _requester = client; |
| 7971 | 7940 |
| 7972 /** | 7941 /** |
| 7973 * Retrieves a list of postal codes. | 7942 * Retrieves a list of postal codes. |
| 7974 * | 7943 * |
| 7975 * Request parameters: | 7944 * Request parameters: |
| 7976 * | 7945 * |
| 7977 * [profileId] - User profile ID associated with this request. | 7946 * [profileId] - User profile ID associated with this request. |
| 7978 * | 7947 * |
| 7979 * Completes with a [PostalCodesListResponse]. | 7948 * Completes with a [PostalCodesListResponse]. |
| 7980 * | 7949 * |
| 7981 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7950 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 7982 * error. | 7951 * error. |
| 7983 * | 7952 * |
| 7984 * If the used [http.Client] completes with an error when making a REST call, | 7953 * If the used [http.Client] completes with an error when making a REST call, |
| 7985 * this method will complete with the same error. | 7954 * this method will complete with the same error. |
| 7986 */ | 7955 */ |
| 7987 async.Future<PostalCodesListResponse> list(core.String profileId) { | 7956 async.Future<PostalCodesListResponse> list(core.String profileId) { |
| 7988 var _url = null; | 7957 var _url = null; |
| 7989 var _queryParams = new core.Map(); | 7958 var _queryParams = new core.Map(); |
| 7990 var _uploadMedia = null; | 7959 var _uploadMedia = null; |
| 7991 var _uploadOptions = null; | 7960 var _uploadOptions = null; |
| 7992 var _downloadOptions = common.DownloadOptions.Metadata; | 7961 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 7993 var _body = null; | 7962 var _body = null; |
| 7994 | 7963 |
| 7995 if (profileId == null) { | 7964 if (profileId == null) { |
| 7996 throw new core.ArgumentError("Parameter profileId is required."); | 7965 throw new core.ArgumentError("Parameter profileId is required."); |
| 7997 } | 7966 } |
| 7998 | 7967 |
| 7999 | 7968 |
| 8000 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/postalCodes'; | 7969 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/pos
talCodes'; |
| 8001 | 7970 |
| 8002 var _response = _requester.request(_url, | 7971 var _response = _requester.request(_url, |
| 8003 "GET", | 7972 "GET", |
| 8004 body: _body, | 7973 body: _body, |
| 8005 queryParams: _queryParams, | 7974 queryParams: _queryParams, |
| 8006 uploadOptions: _uploadOptions, | 7975 uploadOptions: _uploadOptions, |
| 8007 uploadMedia: _uploadMedia, | 7976 uploadMedia: _uploadMedia, |
| 8008 downloadOptions: _downloadOptions); | 7977 downloadOptions: _downloadOptions); |
| 8009 return _response.then((data) => new PostalCodesListResponse.fromJson(data)); | 7978 return _response.then((data) => new PostalCodesListResponse.fromJson(data)); |
| 8010 } | 7979 } |
| 8011 | 7980 |
| 8012 } | 7981 } |
| 8013 | 7982 |
| 8014 | 7983 |
| 8015 /** Not documented yet. */ | |
| 8016 class RegionsResourceApi { | 7984 class RegionsResourceApi { |
| 8017 final common_internal.ApiRequester _requester; | 7985 final commons.ApiRequester _requester; |
| 8018 | 7986 |
| 8019 RegionsResourceApi(common_internal.ApiRequester client) : | 7987 RegionsResourceApi(commons.ApiRequester client) : |
| 8020 _requester = client; | 7988 _requester = client; |
| 8021 | 7989 |
| 8022 /** | 7990 /** |
| 8023 * Retrieves a list of regions. | 7991 * Retrieves a list of regions. |
| 8024 * | 7992 * |
| 8025 * Request parameters: | 7993 * Request parameters: |
| 8026 * | 7994 * |
| 8027 * [profileId] - User profile ID associated with this request. | 7995 * [profileId] - User profile ID associated with this request. |
| 8028 * | 7996 * |
| 8029 * Completes with a [RegionsListResponse]. | 7997 * Completes with a [RegionsListResponse]. |
| 8030 * | 7998 * |
| 8031 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 7999 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8032 * error. | 8000 * error. |
| 8033 * | 8001 * |
| 8034 * If the used [http.Client] completes with an error when making a REST call, | 8002 * If the used [http.Client] completes with an error when making a REST call, |
| 8035 * this method will complete with the same error. | 8003 * this method will complete with the same error. |
| 8036 */ | 8004 */ |
| 8037 async.Future<RegionsListResponse> list(core.String profileId) { | 8005 async.Future<RegionsListResponse> list(core.String profileId) { |
| 8038 var _url = null; | 8006 var _url = null; |
| 8039 var _queryParams = new core.Map(); | 8007 var _queryParams = new core.Map(); |
| 8040 var _uploadMedia = null; | 8008 var _uploadMedia = null; |
| 8041 var _uploadOptions = null; | 8009 var _uploadOptions = null; |
| 8042 var _downloadOptions = common.DownloadOptions.Metadata; | 8010 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8043 var _body = null; | 8011 var _body = null; |
| 8044 | 8012 |
| 8045 if (profileId == null) { | 8013 if (profileId == null) { |
| 8046 throw new core.ArgumentError("Parameter profileId is required."); | 8014 throw new core.ArgumentError("Parameter profileId is required."); |
| 8047 } | 8015 } |
| 8048 | 8016 |
| 8049 | 8017 |
| 8050 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/regions'; | 8018 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reg
ions'; |
| 8051 | 8019 |
| 8052 var _response = _requester.request(_url, | 8020 var _response = _requester.request(_url, |
| 8053 "GET", | 8021 "GET", |
| 8054 body: _body, | 8022 body: _body, |
| 8055 queryParams: _queryParams, | 8023 queryParams: _queryParams, |
| 8056 uploadOptions: _uploadOptions, | 8024 uploadOptions: _uploadOptions, |
| 8057 uploadMedia: _uploadMedia, | 8025 uploadMedia: _uploadMedia, |
| 8058 downloadOptions: _downloadOptions); | 8026 downloadOptions: _downloadOptions); |
| 8059 return _response.then((data) => new RegionsListResponse.fromJson(data)); | 8027 return _response.then((data) => new RegionsListResponse.fromJson(data)); |
| 8060 } | 8028 } |
| 8061 | 8029 |
| 8062 } | 8030 } |
| 8063 | 8031 |
| 8064 | 8032 |
| 8065 /** Not documented yet. */ | |
| 8066 class ReportsResourceApi { | 8033 class ReportsResourceApi { |
| 8067 final common_internal.ApiRequester _requester; | 8034 final commons.ApiRequester _requester; |
| 8068 | 8035 |
| 8069 ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatib
leFieldsResourceApi(_requester); | 8036 ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatib
leFieldsResourceApi(_requester); |
| 8070 ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester); | 8037 ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester); |
| 8071 | 8038 |
| 8072 ReportsResourceApi(common_internal.ApiRequester client) : | 8039 ReportsResourceApi(commons.ApiRequester client) : |
| 8073 _requester = client; | 8040 _requester = client; |
| 8074 | 8041 |
| 8075 /** | 8042 /** |
| 8076 * Deletes a report by its ID. | 8043 * Deletes a report by its ID. |
| 8077 * | 8044 * |
| 8078 * Request parameters: | 8045 * Request parameters: |
| 8079 * | 8046 * |
| 8080 * [profileId] - The DFA user profile ID. | 8047 * [profileId] - The DFA user profile ID. |
| 8081 * | 8048 * |
| 8082 * [reportId] - The ID of the report. | 8049 * [reportId] - The ID of the report. |
| 8083 * | 8050 * |
| 8084 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8051 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8085 * error. | 8052 * error. |
| 8086 * | 8053 * |
| 8087 * If the used [http.Client] completes with an error when making a REST call, | 8054 * If the used [http.Client] completes with an error when making a REST call, |
| 8088 * this method will complete with the same error. | 8055 * this method will complete with the same error. |
| 8089 */ | 8056 */ |
| 8090 async.Future delete(core.String profileId, core.String reportId) { | 8057 async.Future delete(core.String profileId, core.String reportId) { |
| 8091 var _url = null; | 8058 var _url = null; |
| 8092 var _queryParams = new core.Map(); | 8059 var _queryParams = new core.Map(); |
| 8093 var _uploadMedia = null; | 8060 var _uploadMedia = null; |
| 8094 var _uploadOptions = null; | 8061 var _uploadOptions = null; |
| 8095 var _downloadOptions = common.DownloadOptions.Metadata; | 8062 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8096 var _body = null; | 8063 var _body = null; |
| 8097 | 8064 |
| 8098 if (profileId == null) { | 8065 if (profileId == null) { |
| 8099 throw new core.ArgumentError("Parameter profileId is required."); | 8066 throw new core.ArgumentError("Parameter profileId is required."); |
| 8100 } | 8067 } |
| 8101 if (reportId == null) { | 8068 if (reportId == null) { |
| 8102 throw new core.ArgumentError("Parameter reportId is required."); | 8069 throw new core.ArgumentError("Parameter reportId is required."); |
| 8103 } | 8070 } |
| 8104 | 8071 |
| 8105 _downloadOptions = null; | 8072 _downloadOptions = null; |
| 8106 | 8073 |
| 8107 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports/' + common_internal.Escaper.ecapeVariable('$reportId'); | 8074 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts/' + commons.Escaper.ecapeVariable('$reportId'); |
| 8108 | 8075 |
| 8109 var _response = _requester.request(_url, | 8076 var _response = _requester.request(_url, |
| 8110 "DELETE", | 8077 "DELETE", |
| 8111 body: _body, | 8078 body: _body, |
| 8112 queryParams: _queryParams, | 8079 queryParams: _queryParams, |
| 8113 uploadOptions: _uploadOptions, | 8080 uploadOptions: _uploadOptions, |
| 8114 uploadMedia: _uploadMedia, | 8081 uploadMedia: _uploadMedia, |
| 8115 downloadOptions: _downloadOptions); | 8082 downloadOptions: _downloadOptions); |
| 8116 return _response.then((data) => null); | 8083 return _response.then((data) => null); |
| 8117 } | 8084 } |
| 8118 | 8085 |
| 8119 /** | 8086 /** |
| 8120 * Retrieves a report by its ID. | 8087 * Retrieves a report by its ID. |
| 8121 * | 8088 * |
| 8122 * Request parameters: | 8089 * Request parameters: |
| 8123 * | 8090 * |
| 8124 * [profileId] - The DFA user profile ID. | 8091 * [profileId] - The DFA user profile ID. |
| 8125 * | 8092 * |
| 8126 * [reportId] - The ID of the report. | 8093 * [reportId] - The ID of the report. |
| 8127 * | 8094 * |
| 8128 * Completes with a [Report]. | 8095 * Completes with a [Report]. |
| 8129 * | 8096 * |
| 8130 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8097 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8131 * error. | 8098 * error. |
| 8132 * | 8099 * |
| 8133 * If the used [http.Client] completes with an error when making a REST call, | 8100 * If the used [http.Client] completes with an error when making a REST call, |
| 8134 * this method will complete with the same error. | 8101 * this method will complete with the same error. |
| 8135 */ | 8102 */ |
| 8136 async.Future<Report> get(core.String profileId, core.String reportId) { | 8103 async.Future<Report> get(core.String profileId, core.String reportId) { |
| 8137 var _url = null; | 8104 var _url = null; |
| 8138 var _queryParams = new core.Map(); | 8105 var _queryParams = new core.Map(); |
| 8139 var _uploadMedia = null; | 8106 var _uploadMedia = null; |
| 8140 var _uploadOptions = null; | 8107 var _uploadOptions = null; |
| 8141 var _downloadOptions = common.DownloadOptions.Metadata; | 8108 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8142 var _body = null; | 8109 var _body = null; |
| 8143 | 8110 |
| 8144 if (profileId == null) { | 8111 if (profileId == null) { |
| 8145 throw new core.ArgumentError("Parameter profileId is required."); | 8112 throw new core.ArgumentError("Parameter profileId is required."); |
| 8146 } | 8113 } |
| 8147 if (reportId == null) { | 8114 if (reportId == null) { |
| 8148 throw new core.ArgumentError("Parameter reportId is required."); | 8115 throw new core.ArgumentError("Parameter reportId is required."); |
| 8149 } | 8116 } |
| 8150 | 8117 |
| 8151 | 8118 |
| 8152 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports/' + common_internal.Escaper.ecapeVariable('$reportId'); | 8119 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts/' + commons.Escaper.ecapeVariable('$reportId'); |
| 8153 | 8120 |
| 8154 var _response = _requester.request(_url, | 8121 var _response = _requester.request(_url, |
| 8155 "GET", | 8122 "GET", |
| 8156 body: _body, | 8123 body: _body, |
| 8157 queryParams: _queryParams, | 8124 queryParams: _queryParams, |
| 8158 uploadOptions: _uploadOptions, | 8125 uploadOptions: _uploadOptions, |
| 8159 uploadMedia: _uploadMedia, | 8126 uploadMedia: _uploadMedia, |
| 8160 downloadOptions: _downloadOptions); | 8127 downloadOptions: _downloadOptions); |
| 8161 return _response.then((data) => new Report.fromJson(data)); | 8128 return _response.then((data) => new Report.fromJson(data)); |
| 8162 } | 8129 } |
| 8163 | 8130 |
| 8164 /** | 8131 /** |
| 8165 * Creates a report. | 8132 * Creates a report. |
| 8166 * | 8133 * |
| 8167 * [request] - The metadata request object. | 8134 * [request] - The metadata request object. |
| 8168 * | 8135 * |
| 8169 * Request parameters: | 8136 * Request parameters: |
| 8170 * | 8137 * |
| 8171 * [profileId] - The DFA user profile ID. | 8138 * [profileId] - The DFA user profile ID. |
| 8172 * | 8139 * |
| 8173 * Completes with a [Report]. | 8140 * Completes with a [Report]. |
| 8174 * | 8141 * |
| 8175 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8142 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8176 * error. | 8143 * error. |
| 8177 * | 8144 * |
| 8178 * If the used [http.Client] completes with an error when making a REST call, | 8145 * If the used [http.Client] completes with an error when making a REST call, |
| 8179 * this method will complete with the same error. | 8146 * this method will complete with the same error. |
| 8180 */ | 8147 */ |
| 8181 async.Future<Report> insert(Report request, core.String profileId) { | 8148 async.Future<Report> insert(Report request, core.String profileId) { |
| 8182 var _url = null; | 8149 var _url = null; |
| 8183 var _queryParams = new core.Map(); | 8150 var _queryParams = new core.Map(); |
| 8184 var _uploadMedia = null; | 8151 var _uploadMedia = null; |
| 8185 var _uploadOptions = null; | 8152 var _uploadOptions = null; |
| 8186 var _downloadOptions = common.DownloadOptions.Metadata; | 8153 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8187 var _body = null; | 8154 var _body = null; |
| 8188 | 8155 |
| 8189 if (request != null) { | 8156 if (request != null) { |
| 8190 _body = convert.JSON.encode((request).toJson()); | 8157 _body = convert.JSON.encode((request).toJson()); |
| 8191 } | 8158 } |
| 8192 if (profileId == null) { | 8159 if (profileId == null) { |
| 8193 throw new core.ArgumentError("Parameter profileId is required."); | 8160 throw new core.ArgumentError("Parameter profileId is required."); |
| 8194 } | 8161 } |
| 8195 | 8162 |
| 8196 | 8163 |
| 8197 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports'; | 8164 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts'; |
| 8198 | 8165 |
| 8199 var _response = _requester.request(_url, | 8166 var _response = _requester.request(_url, |
| 8200 "POST", | 8167 "POST", |
| 8201 body: _body, | 8168 body: _body, |
| 8202 queryParams: _queryParams, | 8169 queryParams: _queryParams, |
| 8203 uploadOptions: _uploadOptions, | 8170 uploadOptions: _uploadOptions, |
| 8204 uploadMedia: _uploadMedia, | 8171 uploadMedia: _uploadMedia, |
| 8205 downloadOptions: _downloadOptions); | 8172 downloadOptions: _downloadOptions); |
| 8206 return _response.then((data) => new Report.fromJson(data)); | 8173 return _response.then((data) => new Report.fromJson(data)); |
| 8207 } | 8174 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 8230 * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field. | 8197 * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field. |
| 8231 * - "NAME" : Sort by name of reports. | 8198 * - "NAME" : Sort by name of reports. |
| 8232 * | 8199 * |
| 8233 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. | 8200 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. |
| 8234 * Possible string values are: | 8201 * Possible string values are: |
| 8235 * - "ASCENDING" : Ascending order. | 8202 * - "ASCENDING" : Ascending order. |
| 8236 * - "DESCENDING" : Descending order. | 8203 * - "DESCENDING" : Descending order. |
| 8237 * | 8204 * |
| 8238 * Completes with a [ReportList]. | 8205 * Completes with a [ReportList]. |
| 8239 * | 8206 * |
| 8240 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8207 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8241 * error. | 8208 * error. |
| 8242 * | 8209 * |
| 8243 * If the used [http.Client] completes with an error when making a REST call, | 8210 * If the used [http.Client] completes with an error when making a REST call, |
| 8244 * this method will complete with the same error. | 8211 * this method will complete with the same error. |
| 8245 */ | 8212 */ |
| 8246 async.Future<ReportList> list(core.String profileId, {core.int maxResults, cor
e.String pageToken, core.String scope, core.String sortField, core.String sortOr
der}) { | 8213 async.Future<ReportList> list(core.String profileId, {core.int maxResults, cor
e.String pageToken, core.String scope, core.String sortField, core.String sortOr
der}) { |
| 8247 var _url = null; | 8214 var _url = null; |
| 8248 var _queryParams = new core.Map(); | 8215 var _queryParams = new core.Map(); |
| 8249 var _uploadMedia = null; | 8216 var _uploadMedia = null; |
| 8250 var _uploadOptions = null; | 8217 var _uploadOptions = null; |
| 8251 var _downloadOptions = common.DownloadOptions.Metadata; | 8218 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8252 var _body = null; | 8219 var _body = null; |
| 8253 | 8220 |
| 8254 if (profileId == null) { | 8221 if (profileId == null) { |
| 8255 throw new core.ArgumentError("Parameter profileId is required."); | 8222 throw new core.ArgumentError("Parameter profileId is required."); |
| 8256 } | 8223 } |
| 8257 if (maxResults != null) { | 8224 if (maxResults != null) { |
| 8258 _queryParams["maxResults"] = ["${maxResults}"]; | 8225 _queryParams["maxResults"] = ["${maxResults}"]; |
| 8259 } | 8226 } |
| 8260 if (pageToken != null) { | 8227 if (pageToken != null) { |
| 8261 _queryParams["pageToken"] = [pageToken]; | 8228 _queryParams["pageToken"] = [pageToken]; |
| 8262 } | 8229 } |
| 8263 if (scope != null) { | 8230 if (scope != null) { |
| 8264 _queryParams["scope"] = [scope]; | 8231 _queryParams["scope"] = [scope]; |
| 8265 } | 8232 } |
| 8266 if (sortField != null) { | 8233 if (sortField != null) { |
| 8267 _queryParams["sortField"] = [sortField]; | 8234 _queryParams["sortField"] = [sortField]; |
| 8268 } | 8235 } |
| 8269 if (sortOrder != null) { | 8236 if (sortOrder != null) { |
| 8270 _queryParams["sortOrder"] = [sortOrder]; | 8237 _queryParams["sortOrder"] = [sortOrder]; |
| 8271 } | 8238 } |
| 8272 | 8239 |
| 8273 | 8240 |
| 8274 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports'; | 8241 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts'; |
| 8275 | 8242 |
| 8276 var _response = _requester.request(_url, | 8243 var _response = _requester.request(_url, |
| 8277 "GET", | 8244 "GET", |
| 8278 body: _body, | 8245 body: _body, |
| 8279 queryParams: _queryParams, | 8246 queryParams: _queryParams, |
| 8280 uploadOptions: _uploadOptions, | 8247 uploadOptions: _uploadOptions, |
| 8281 uploadMedia: _uploadMedia, | 8248 uploadMedia: _uploadMedia, |
| 8282 downloadOptions: _downloadOptions); | 8249 downloadOptions: _downloadOptions); |
| 8283 return _response.then((data) => new ReportList.fromJson(data)); | 8250 return _response.then((data) => new ReportList.fromJson(data)); |
| 8284 } | 8251 } |
| 8285 | 8252 |
| 8286 /** | 8253 /** |
| 8287 * Updates a report. This method supports patch semantics. | 8254 * Updates a report. This method supports patch semantics. |
| 8288 * | 8255 * |
| 8289 * [request] - The metadata request object. | 8256 * [request] - The metadata request object. |
| 8290 * | 8257 * |
| 8291 * Request parameters: | 8258 * Request parameters: |
| 8292 * | 8259 * |
| 8293 * [profileId] - The DFA user profile ID. | 8260 * [profileId] - The DFA user profile ID. |
| 8294 * | 8261 * |
| 8295 * [reportId] - The ID of the report. | 8262 * [reportId] - The ID of the report. |
| 8296 * | 8263 * |
| 8297 * Completes with a [Report]. | 8264 * Completes with a [Report]. |
| 8298 * | 8265 * |
| 8299 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8266 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8300 * error. | 8267 * error. |
| 8301 * | 8268 * |
| 8302 * If the used [http.Client] completes with an error when making a REST call, | 8269 * If the used [http.Client] completes with an error when making a REST call, |
| 8303 * this method will complete with the same error. | 8270 * this method will complete with the same error. |
| 8304 */ | 8271 */ |
| 8305 async.Future<Report> patch(Report request, core.String profileId, core.String
reportId) { | 8272 async.Future<Report> patch(Report request, core.String profileId, core.String
reportId) { |
| 8306 var _url = null; | 8273 var _url = null; |
| 8307 var _queryParams = new core.Map(); | 8274 var _queryParams = new core.Map(); |
| 8308 var _uploadMedia = null; | 8275 var _uploadMedia = null; |
| 8309 var _uploadOptions = null; | 8276 var _uploadOptions = null; |
| 8310 var _downloadOptions = common.DownloadOptions.Metadata; | 8277 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8311 var _body = null; | 8278 var _body = null; |
| 8312 | 8279 |
| 8313 if (request != null) { | 8280 if (request != null) { |
| 8314 _body = convert.JSON.encode((request).toJson()); | 8281 _body = convert.JSON.encode((request).toJson()); |
| 8315 } | 8282 } |
| 8316 if (profileId == null) { | 8283 if (profileId == null) { |
| 8317 throw new core.ArgumentError("Parameter profileId is required."); | 8284 throw new core.ArgumentError("Parameter profileId is required."); |
| 8318 } | 8285 } |
| 8319 if (reportId == null) { | 8286 if (reportId == null) { |
| 8320 throw new core.ArgumentError("Parameter reportId is required."); | 8287 throw new core.ArgumentError("Parameter reportId is required."); |
| 8321 } | 8288 } |
| 8322 | 8289 |
| 8323 | 8290 |
| 8324 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports/' + common_internal.Escaper.ecapeVariable('$reportId'); | 8291 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts/' + commons.Escaper.ecapeVariable('$reportId'); |
| 8325 | 8292 |
| 8326 var _response = _requester.request(_url, | 8293 var _response = _requester.request(_url, |
| 8327 "PATCH", | 8294 "PATCH", |
| 8328 body: _body, | 8295 body: _body, |
| 8329 queryParams: _queryParams, | 8296 queryParams: _queryParams, |
| 8330 uploadOptions: _uploadOptions, | 8297 uploadOptions: _uploadOptions, |
| 8331 uploadMedia: _uploadMedia, | 8298 uploadMedia: _uploadMedia, |
| 8332 downloadOptions: _downloadOptions); | 8299 downloadOptions: _downloadOptions); |
| 8333 return _response.then((data) => new Report.fromJson(data)); | 8300 return _response.then((data) => new Report.fromJson(data)); |
| 8334 } | 8301 } |
| 8335 | 8302 |
| 8336 /** | 8303 /** |
| 8337 * Runs a report. | 8304 * Runs a report. |
| 8338 * | 8305 * |
| 8339 * Request parameters: | 8306 * Request parameters: |
| 8340 * | 8307 * |
| 8341 * [profileId] - The DFA profile ID. | 8308 * [profileId] - The DFA profile ID. |
| 8342 * | 8309 * |
| 8343 * [reportId] - The ID of the report. | 8310 * [reportId] - The ID of the report. |
| 8344 * | 8311 * |
| 8345 * [synchronous] - If set and true, tries to run the report synchronously. | 8312 * [synchronous] - If set and true, tries to run the report synchronously. |
| 8346 * | 8313 * |
| 8347 * Completes with a [File]. | 8314 * Completes with a [File]. |
| 8348 * | 8315 * |
| 8349 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8316 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8350 * error. | 8317 * error. |
| 8351 * | 8318 * |
| 8352 * If the used [http.Client] completes with an error when making a REST call, | 8319 * If the used [http.Client] completes with an error when making a REST call, |
| 8353 * this method will complete with the same error. | 8320 * this method will complete with the same error. |
| 8354 */ | 8321 */ |
| 8355 async.Future<File> run(core.String profileId, core.String reportId, {core.bool
synchronous}) { | 8322 async.Future<File> run(core.String profileId, core.String reportId, {core.bool
synchronous}) { |
| 8356 var _url = null; | 8323 var _url = null; |
| 8357 var _queryParams = new core.Map(); | 8324 var _queryParams = new core.Map(); |
| 8358 var _uploadMedia = null; | 8325 var _uploadMedia = null; |
| 8359 var _uploadOptions = null; | 8326 var _uploadOptions = null; |
| 8360 var _downloadOptions = common.DownloadOptions.Metadata; | 8327 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8361 var _body = null; | 8328 var _body = null; |
| 8362 | 8329 |
| 8363 if (profileId == null) { | 8330 if (profileId == null) { |
| 8364 throw new core.ArgumentError("Parameter profileId is required."); | 8331 throw new core.ArgumentError("Parameter profileId is required."); |
| 8365 } | 8332 } |
| 8366 if (reportId == null) { | 8333 if (reportId == null) { |
| 8367 throw new core.ArgumentError("Parameter reportId is required."); | 8334 throw new core.ArgumentError("Parameter reportId is required."); |
| 8368 } | 8335 } |
| 8369 if (synchronous != null) { | 8336 if (synchronous != null) { |
| 8370 _queryParams["synchronous"] = ["${synchronous}"]; | 8337 _queryParams["synchronous"] = ["${synchronous}"]; |
| 8371 } | 8338 } |
| 8372 | 8339 |
| 8373 | 8340 |
| 8374 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports/' + common_internal.Escaper.ecapeVariable('$reportId') + '/run'; | 8341 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts/' + commons.Escaper.ecapeVariable('$reportId') + '/run'; |
| 8375 | 8342 |
| 8376 var _response = _requester.request(_url, | 8343 var _response = _requester.request(_url, |
| 8377 "POST", | 8344 "POST", |
| 8378 body: _body, | 8345 body: _body, |
| 8379 queryParams: _queryParams, | 8346 queryParams: _queryParams, |
| 8380 uploadOptions: _uploadOptions, | 8347 uploadOptions: _uploadOptions, |
| 8381 uploadMedia: _uploadMedia, | 8348 uploadMedia: _uploadMedia, |
| 8382 downloadOptions: _downloadOptions); | 8349 downloadOptions: _downloadOptions); |
| 8383 return _response.then((data) => new File.fromJson(data)); | 8350 return _response.then((data) => new File.fromJson(data)); |
| 8384 } | 8351 } |
| 8385 | 8352 |
| 8386 /** | 8353 /** |
| 8387 * Updates a report. | 8354 * Updates a report. |
| 8388 * | 8355 * |
| 8389 * [request] - The metadata request object. | 8356 * [request] - The metadata request object. |
| 8390 * | 8357 * |
| 8391 * Request parameters: | 8358 * Request parameters: |
| 8392 * | 8359 * |
| 8393 * [profileId] - The DFA user profile ID. | 8360 * [profileId] - The DFA user profile ID. |
| 8394 * | 8361 * |
| 8395 * [reportId] - The ID of the report. | 8362 * [reportId] - The ID of the report. |
| 8396 * | 8363 * |
| 8397 * Completes with a [Report]. | 8364 * Completes with a [Report]. |
| 8398 * | 8365 * |
| 8399 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8366 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8400 * error. | 8367 * error. |
| 8401 * | 8368 * |
| 8402 * If the used [http.Client] completes with an error when making a REST call, | 8369 * If the used [http.Client] completes with an error when making a REST call, |
| 8403 * this method will complete with the same error. | 8370 * this method will complete with the same error. |
| 8404 */ | 8371 */ |
| 8405 async.Future<Report> update(Report request, core.String profileId, core.String
reportId) { | 8372 async.Future<Report> update(Report request, core.String profileId, core.String
reportId) { |
| 8406 var _url = null; | 8373 var _url = null; |
| 8407 var _queryParams = new core.Map(); | 8374 var _queryParams = new core.Map(); |
| 8408 var _uploadMedia = null; | 8375 var _uploadMedia = null; |
| 8409 var _uploadOptions = null; | 8376 var _uploadOptions = null; |
| 8410 var _downloadOptions = common.DownloadOptions.Metadata; | 8377 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8411 var _body = null; | 8378 var _body = null; |
| 8412 | 8379 |
| 8413 if (request != null) { | 8380 if (request != null) { |
| 8414 _body = convert.JSON.encode((request).toJson()); | 8381 _body = convert.JSON.encode((request).toJson()); |
| 8415 } | 8382 } |
| 8416 if (profileId == null) { | 8383 if (profileId == null) { |
| 8417 throw new core.ArgumentError("Parameter profileId is required."); | 8384 throw new core.ArgumentError("Parameter profileId is required."); |
| 8418 } | 8385 } |
| 8419 if (reportId == null) { | 8386 if (reportId == null) { |
| 8420 throw new core.ArgumentError("Parameter reportId is required."); | 8387 throw new core.ArgumentError("Parameter reportId is required."); |
| 8421 } | 8388 } |
| 8422 | 8389 |
| 8423 | 8390 |
| 8424 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports/' + common_internal.Escaper.ecapeVariable('$reportId'); | 8391 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts/' + commons.Escaper.ecapeVariable('$reportId'); |
| 8425 | 8392 |
| 8426 var _response = _requester.request(_url, | 8393 var _response = _requester.request(_url, |
| 8427 "PUT", | 8394 "PUT", |
| 8428 body: _body, | 8395 body: _body, |
| 8429 queryParams: _queryParams, | 8396 queryParams: _queryParams, |
| 8430 uploadOptions: _uploadOptions, | 8397 uploadOptions: _uploadOptions, |
| 8431 uploadMedia: _uploadMedia, | 8398 uploadMedia: _uploadMedia, |
| 8432 downloadOptions: _downloadOptions); | 8399 downloadOptions: _downloadOptions); |
| 8433 return _response.then((data) => new Report.fromJson(data)); | 8400 return _response.then((data) => new Report.fromJson(data)); |
| 8434 } | 8401 } |
| 8435 | 8402 |
| 8436 } | 8403 } |
| 8437 | 8404 |
| 8438 | 8405 |
| 8439 /** Not documented yet. */ | |
| 8440 class ReportsCompatibleFieldsResourceApi { | 8406 class ReportsCompatibleFieldsResourceApi { |
| 8441 final common_internal.ApiRequester _requester; | 8407 final commons.ApiRequester _requester; |
| 8442 | 8408 |
| 8443 ReportsCompatibleFieldsResourceApi(common_internal.ApiRequester client) : | 8409 ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) : |
| 8444 _requester = client; | 8410 _requester = client; |
| 8445 | 8411 |
| 8446 /** | 8412 /** |
| 8447 * Returns the fields that are compatible to be selected in the respective | 8413 * Returns the fields that are compatible to be selected in the respective |
| 8448 * sections of a report criteria, given the fields already selected in the | 8414 * sections of a report criteria, given the fields already selected in the |
| 8449 * input report and user permissions. | 8415 * input report and user permissions. |
| 8450 * | 8416 * |
| 8451 * [request] - The metadata request object. | 8417 * [request] - The metadata request object. |
| 8452 * | 8418 * |
| 8453 * Request parameters: | 8419 * Request parameters: |
| 8454 * | 8420 * |
| 8455 * [profileId] - The DFA user profile ID. | 8421 * [profileId] - The DFA user profile ID. |
| 8456 * | 8422 * |
| 8457 * Completes with a [CompatibleFields]. | 8423 * Completes with a [CompatibleFields]. |
| 8458 * | 8424 * |
| 8459 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8425 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8460 * error. | 8426 * error. |
| 8461 * | 8427 * |
| 8462 * If the used [http.Client] completes with an error when making a REST call, | 8428 * If the used [http.Client] completes with an error when making a REST call, |
| 8463 * this method will complete with the same error. | 8429 * this method will complete with the same error. |
| 8464 */ | 8430 */ |
| 8465 async.Future<CompatibleFields> query(Report request, core.String profileId) { | 8431 async.Future<CompatibleFields> query(Report request, core.String profileId) { |
| 8466 var _url = null; | 8432 var _url = null; |
| 8467 var _queryParams = new core.Map(); | 8433 var _queryParams = new core.Map(); |
| 8468 var _uploadMedia = null; | 8434 var _uploadMedia = null; |
| 8469 var _uploadOptions = null; | 8435 var _uploadOptions = null; |
| 8470 var _downloadOptions = common.DownloadOptions.Metadata; | 8436 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8471 var _body = null; | 8437 var _body = null; |
| 8472 | 8438 |
| 8473 if (request != null) { | 8439 if (request != null) { |
| 8474 _body = convert.JSON.encode((request).toJson()); | 8440 _body = convert.JSON.encode((request).toJson()); |
| 8475 } | 8441 } |
| 8476 if (profileId == null) { | 8442 if (profileId == null) { |
| 8477 throw new core.ArgumentError("Parameter profileId is required."); | 8443 throw new core.ArgumentError("Parameter profileId is required."); |
| 8478 } | 8444 } |
| 8479 | 8445 |
| 8480 | 8446 |
| 8481 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports/compatiblefields/query'; | 8447 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts/compatiblefields/query'; |
| 8482 | 8448 |
| 8483 var _response = _requester.request(_url, | 8449 var _response = _requester.request(_url, |
| 8484 "POST", | 8450 "POST", |
| 8485 body: _body, | 8451 body: _body, |
| 8486 queryParams: _queryParams, | 8452 queryParams: _queryParams, |
| 8487 uploadOptions: _uploadOptions, | 8453 uploadOptions: _uploadOptions, |
| 8488 uploadMedia: _uploadMedia, | 8454 uploadMedia: _uploadMedia, |
| 8489 downloadOptions: _downloadOptions); | 8455 downloadOptions: _downloadOptions); |
| 8490 return _response.then((data) => new CompatibleFields.fromJson(data)); | 8456 return _response.then((data) => new CompatibleFields.fromJson(data)); |
| 8491 } | 8457 } |
| 8492 | 8458 |
| 8493 } | 8459 } |
| 8494 | 8460 |
| 8495 | 8461 |
| 8496 /** Not documented yet. */ | |
| 8497 class ReportsFilesResourceApi { | 8462 class ReportsFilesResourceApi { |
| 8498 final common_internal.ApiRequester _requester; | 8463 final commons.ApiRequester _requester; |
| 8499 | 8464 |
| 8500 ReportsFilesResourceApi(common_internal.ApiRequester client) : | 8465 ReportsFilesResourceApi(commons.ApiRequester client) : |
| 8501 _requester = client; | 8466 _requester = client; |
| 8502 | 8467 |
| 8503 /** | 8468 /** |
| 8504 * Retrieves a report file. | 8469 * Retrieves a report file. |
| 8505 * | 8470 * |
| 8506 * Request parameters: | 8471 * Request parameters: |
| 8507 * | 8472 * |
| 8508 * [profileId] - The DFA profile ID. | 8473 * [profileId] - The DFA profile ID. |
| 8509 * | 8474 * |
| 8510 * [reportId] - The ID of the report. | 8475 * [reportId] - The ID of the report. |
| 8511 * | 8476 * |
| 8512 * [fileId] - The ID of the report file. | 8477 * [fileId] - The ID of the report file. |
| 8513 * | 8478 * |
| 8514 * [downloadOptions] - Options for downloading. A download can be either a | 8479 * [downloadOptions] - Options for downloading. A download can be either a |
| 8515 * Metadata (default) or Media download. Partial Media downloads are possible | 8480 * Metadata (default) or Media download. Partial Media downloads are possible |
| 8516 * as well. | 8481 * as well. |
| 8517 * | 8482 * |
| 8518 * Completes with a | 8483 * Completes with a |
| 8519 * | 8484 * |
| 8520 * - [File] for Metadata downloads (see [downloadOptions]). | 8485 * - [File] for Metadata downloads (see [downloadOptions]). |
| 8521 * | 8486 * |
| 8522 * - [common.Media] for Media downloads (see [downloadOptions]). | 8487 * - [commons.Media] for Media downloads (see [downloadOptions]). |
| 8523 * | 8488 * |
| 8524 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8489 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8525 * error. | 8490 * error. |
| 8526 * | 8491 * |
| 8527 * If the used [http.Client] completes with an error when making a REST call, | 8492 * If the used [http.Client] completes with an error when making a REST call, |
| 8528 * this method will complete with the same error. | 8493 * this method will complete with the same error. |
| 8529 */ | 8494 */ |
| 8530 async.Future get(core.String profileId, core.String reportId, core.String file
Id, {common.DownloadOptions downloadOptions: common.DownloadOptions.Metadata}) { | 8495 async.Future get(core.String profileId, core.String reportId, core.String file
Id, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata})
{ |
| 8531 var _url = null; | 8496 var _url = null; |
| 8532 var _queryParams = new core.Map(); | 8497 var _queryParams = new core.Map(); |
| 8533 var _uploadMedia = null; | 8498 var _uploadMedia = null; |
| 8534 var _uploadOptions = null; | 8499 var _uploadOptions = null; |
| 8535 var _downloadOptions = common.DownloadOptions.Metadata; | 8500 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8536 var _body = null; | 8501 var _body = null; |
| 8537 | 8502 |
| 8538 if (profileId == null) { | 8503 if (profileId == null) { |
| 8539 throw new core.ArgumentError("Parameter profileId is required."); | 8504 throw new core.ArgumentError("Parameter profileId is required."); |
| 8540 } | 8505 } |
| 8541 if (reportId == null) { | 8506 if (reportId == null) { |
| 8542 throw new core.ArgumentError("Parameter reportId is required."); | 8507 throw new core.ArgumentError("Parameter reportId is required."); |
| 8543 } | 8508 } |
| 8544 if (fileId == null) { | 8509 if (fileId == null) { |
| 8545 throw new core.ArgumentError("Parameter fileId is required."); | 8510 throw new core.ArgumentError("Parameter fileId is required."); |
| 8546 } | 8511 } |
| 8547 | 8512 |
| 8548 _downloadOptions = downloadOptions; | 8513 _downloadOptions = downloadOptions; |
| 8549 | 8514 |
| 8550 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports/' + common_internal.Escaper.ecapeVariable('$reportId') + '/files/'
+ common_internal.Escaper.ecapeVariable('$fileId'); | 8515 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escape
r.ecapeVariable('$fileId'); |
| 8551 | 8516 |
| 8552 var _response = _requester.request(_url, | 8517 var _response = _requester.request(_url, |
| 8553 "GET", | 8518 "GET", |
| 8554 body: _body, | 8519 body: _body, |
| 8555 queryParams: _queryParams, | 8520 queryParams: _queryParams, |
| 8556 uploadOptions: _uploadOptions, | 8521 uploadOptions: _uploadOptions, |
| 8557 uploadMedia: _uploadMedia, | 8522 uploadMedia: _uploadMedia, |
| 8558 downloadOptions: _downloadOptions); | 8523 downloadOptions: _downloadOptions); |
| 8559 if (_downloadOptions == null || | 8524 if (_downloadOptions == null || |
| 8560 _downloadOptions == common.DownloadOptions.Metadata) { | 8525 _downloadOptions == commons.DownloadOptions.Metadata) { |
| 8561 return _response.then((data) => new File.fromJson(data)); | 8526 return _response.then((data) => new File.fromJson(data)); |
| 8562 } else { | 8527 } else { |
| 8563 return _response; | 8528 return _response; |
| 8564 } | 8529 } |
| 8565 } | 8530 } |
| 8566 | 8531 |
| 8567 /** | 8532 /** |
| 8568 * Lists files for a report. | 8533 * Lists files for a report. |
| 8569 * | 8534 * |
| 8570 * Request parameters: | 8535 * Request parameters: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 8583 * - "ID" : Sort by file ID. | 8548 * - "ID" : Sort by file ID. |
| 8584 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. | 8549 * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. |
| 8585 * | 8550 * |
| 8586 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. | 8551 * [sortOrder] - Order of sorted results, default is 'DESCENDING'. |
| 8587 * Possible string values are: | 8552 * Possible string values are: |
| 8588 * - "ASCENDING" : Ascending order. | 8553 * - "ASCENDING" : Ascending order. |
| 8589 * - "DESCENDING" : Descending order. | 8554 * - "DESCENDING" : Descending order. |
| 8590 * | 8555 * |
| 8591 * Completes with a [FileList]. | 8556 * Completes with a [FileList]. |
| 8592 * | 8557 * |
| 8593 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8558 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8594 * error. | 8559 * error. |
| 8595 * | 8560 * |
| 8596 * If the used [http.Client] completes with an error when making a REST call, | 8561 * If the used [http.Client] completes with an error when making a REST call, |
| 8597 * this method will complete with the same error. | 8562 * this method will complete with the same error. |
| 8598 */ | 8563 */ |
| 8599 async.Future<FileList> list(core.String profileId, core.String reportId, {core
.int maxResults, core.String pageToken, core.String sortField, core.String sortO
rder}) { | 8564 async.Future<FileList> list(core.String profileId, core.String reportId, {core
.int maxResults, core.String pageToken, core.String sortField, core.String sortO
rder}) { |
| 8600 var _url = null; | 8565 var _url = null; |
| 8601 var _queryParams = new core.Map(); | 8566 var _queryParams = new core.Map(); |
| 8602 var _uploadMedia = null; | 8567 var _uploadMedia = null; |
| 8603 var _uploadOptions = null; | 8568 var _uploadOptions = null; |
| 8604 var _downloadOptions = common.DownloadOptions.Metadata; | 8569 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8605 var _body = null; | 8570 var _body = null; |
| 8606 | 8571 |
| 8607 if (profileId == null) { | 8572 if (profileId == null) { |
| 8608 throw new core.ArgumentError("Parameter profileId is required."); | 8573 throw new core.ArgumentError("Parameter profileId is required."); |
| 8609 } | 8574 } |
| 8610 if (reportId == null) { | 8575 if (reportId == null) { |
| 8611 throw new core.ArgumentError("Parameter reportId is required."); | 8576 throw new core.ArgumentError("Parameter reportId is required."); |
| 8612 } | 8577 } |
| 8613 if (maxResults != null) { | 8578 if (maxResults != null) { |
| 8614 _queryParams["maxResults"] = ["${maxResults}"]; | 8579 _queryParams["maxResults"] = ["${maxResults}"]; |
| 8615 } | 8580 } |
| 8616 if (pageToken != null) { | 8581 if (pageToken != null) { |
| 8617 _queryParams["pageToken"] = [pageToken]; | 8582 _queryParams["pageToken"] = [pageToken]; |
| 8618 } | 8583 } |
| 8619 if (sortField != null) { | 8584 if (sortField != null) { |
| 8620 _queryParams["sortField"] = [sortField]; | 8585 _queryParams["sortField"] = [sortField]; |
| 8621 } | 8586 } |
| 8622 if (sortOrder != null) { | 8587 if (sortOrder != null) { |
| 8623 _queryParams["sortOrder"] = [sortOrder]; | 8588 _queryParams["sortOrder"] = [sortOrder]; |
| 8624 } | 8589 } |
| 8625 | 8590 |
| 8626 | 8591 |
| 8627 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/reports/' + common_internal.Escaper.ecapeVariable('$reportId') + '/files'; | 8592 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/rep
orts/' + commons.Escaper.ecapeVariable('$reportId') + '/files'; |
| 8628 | 8593 |
| 8629 var _response = _requester.request(_url, | 8594 var _response = _requester.request(_url, |
| 8630 "GET", | 8595 "GET", |
| 8631 body: _body, | 8596 body: _body, |
| 8632 queryParams: _queryParams, | 8597 queryParams: _queryParams, |
| 8633 uploadOptions: _uploadOptions, | 8598 uploadOptions: _uploadOptions, |
| 8634 uploadMedia: _uploadMedia, | 8599 uploadMedia: _uploadMedia, |
| 8635 downloadOptions: _downloadOptions); | 8600 downloadOptions: _downloadOptions); |
| 8636 return _response.then((data) => new FileList.fromJson(data)); | 8601 return _response.then((data) => new FileList.fromJson(data)); |
| 8637 } | 8602 } |
| 8638 | 8603 |
| 8639 } | 8604 } |
| 8640 | 8605 |
| 8641 | 8606 |
| 8642 /** Not documented yet. */ | |
| 8643 class SitesResourceApi { | 8607 class SitesResourceApi { |
| 8644 final common_internal.ApiRequester _requester; | 8608 final commons.ApiRequester _requester; |
| 8645 | 8609 |
| 8646 SitesResourceApi(common_internal.ApiRequester client) : | 8610 SitesResourceApi(commons.ApiRequester client) : |
| 8647 _requester = client; | 8611 _requester = client; |
| 8648 | 8612 |
| 8649 /** | 8613 /** |
| 8650 * Gets one site by ID. | 8614 * Gets one site by ID. |
| 8651 * | 8615 * |
| 8652 * Request parameters: | 8616 * Request parameters: |
| 8653 * | 8617 * |
| 8654 * [profileId] - User profile ID associated with this request. | 8618 * [profileId] - User profile ID associated with this request. |
| 8655 * | 8619 * |
| 8656 * [id] - Site ID. | 8620 * [id] - Site ID. |
| 8657 * | 8621 * |
| 8658 * Completes with a [Site]. | 8622 * Completes with a [Site]. |
| 8659 * | 8623 * |
| 8660 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8624 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8661 * error. | 8625 * error. |
| 8662 * | 8626 * |
| 8663 * If the used [http.Client] completes with an error when making a REST call, | 8627 * If the used [http.Client] completes with an error when making a REST call, |
| 8664 * this method will complete with the same error. | 8628 * this method will complete with the same error. |
| 8665 */ | 8629 */ |
| 8666 async.Future<Site> get(core.String profileId, core.String id) { | 8630 async.Future<Site> get(core.String profileId, core.String id) { |
| 8667 var _url = null; | 8631 var _url = null; |
| 8668 var _queryParams = new core.Map(); | 8632 var _queryParams = new core.Map(); |
| 8669 var _uploadMedia = null; | 8633 var _uploadMedia = null; |
| 8670 var _uploadOptions = null; | 8634 var _uploadOptions = null; |
| 8671 var _downloadOptions = common.DownloadOptions.Metadata; | 8635 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8672 var _body = null; | 8636 var _body = null; |
| 8673 | 8637 |
| 8674 if (profileId == null) { | 8638 if (profileId == null) { |
| 8675 throw new core.ArgumentError("Parameter profileId is required."); | 8639 throw new core.ArgumentError("Parameter profileId is required."); |
| 8676 } | 8640 } |
| 8677 if (id == null) { | 8641 if (id == null) { |
| 8678 throw new core.ArgumentError("Parameter id is required."); | 8642 throw new core.ArgumentError("Parameter id is required."); |
| 8679 } | 8643 } |
| 8680 | 8644 |
| 8681 | 8645 |
| 8682 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/sites/' + common_internal.Escaper.ecapeVariable('$id'); | 8646 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit
es/' + commons.Escaper.ecapeVariable('$id'); |
| 8683 | 8647 |
| 8684 var _response = _requester.request(_url, | 8648 var _response = _requester.request(_url, |
| 8685 "GET", | 8649 "GET", |
| 8686 body: _body, | 8650 body: _body, |
| 8687 queryParams: _queryParams, | 8651 queryParams: _queryParams, |
| 8688 uploadOptions: _uploadOptions, | 8652 uploadOptions: _uploadOptions, |
| 8689 uploadMedia: _uploadMedia, | 8653 uploadMedia: _uploadMedia, |
| 8690 downloadOptions: _downloadOptions); | 8654 downloadOptions: _downloadOptions); |
| 8691 return _response.then((data) => new Site.fromJson(data)); | 8655 return _response.then((data) => new Site.fromJson(data)); |
| 8692 } | 8656 } |
| 8693 | 8657 |
| 8694 /** | 8658 /** |
| 8695 * Inserts a new site. | 8659 * Inserts a new site. |
| 8696 * | 8660 * |
| 8697 * [request] - The metadata request object. | 8661 * [request] - The metadata request object. |
| 8698 * | 8662 * |
| 8699 * Request parameters: | 8663 * Request parameters: |
| 8700 * | 8664 * |
| 8701 * [profileId] - User profile ID associated with this request. | 8665 * [profileId] - User profile ID associated with this request. |
| 8702 * | 8666 * |
| 8703 * Completes with a [Site]. | 8667 * Completes with a [Site]. |
| 8704 * | 8668 * |
| 8705 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8669 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8706 * error. | 8670 * error. |
| 8707 * | 8671 * |
| 8708 * If the used [http.Client] completes with an error when making a REST call, | 8672 * If the used [http.Client] completes with an error when making a REST call, |
| 8709 * this method will complete with the same error. | 8673 * this method will complete with the same error. |
| 8710 */ | 8674 */ |
| 8711 async.Future<Site> insert(Site request, core.String profileId) { | 8675 async.Future<Site> insert(Site request, core.String profileId) { |
| 8712 var _url = null; | 8676 var _url = null; |
| 8713 var _queryParams = new core.Map(); | 8677 var _queryParams = new core.Map(); |
| 8714 var _uploadMedia = null; | 8678 var _uploadMedia = null; |
| 8715 var _uploadOptions = null; | 8679 var _uploadOptions = null; |
| 8716 var _downloadOptions = common.DownloadOptions.Metadata; | 8680 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8717 var _body = null; | 8681 var _body = null; |
| 8718 | 8682 |
| 8719 if (request != null) { | 8683 if (request != null) { |
| 8720 _body = convert.JSON.encode((request).toJson()); | 8684 _body = convert.JSON.encode((request).toJson()); |
| 8721 } | 8685 } |
| 8722 if (profileId == null) { | 8686 if (profileId == null) { |
| 8723 throw new core.ArgumentError("Parameter profileId is required."); | 8687 throw new core.ArgumentError("Parameter profileId is required."); |
| 8724 } | 8688 } |
| 8725 | 8689 |
| 8726 | 8690 |
| 8727 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/sites'; | 8691 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit
es'; |
| 8728 | 8692 |
| 8729 var _response = _requester.request(_url, | 8693 var _response = _requester.request(_url, |
| 8730 "POST", | 8694 "POST", |
| 8731 body: _body, | 8695 body: _body, |
| 8732 queryParams: _queryParams, | 8696 queryParams: _queryParams, |
| 8733 uploadOptions: _uploadOptions, | 8697 uploadOptions: _uploadOptions, |
| 8734 uploadMedia: _uploadMedia, | 8698 uploadMedia: _uploadMedia, |
| 8735 downloadOptions: _downloadOptions); | 8699 downloadOptions: _downloadOptions); |
| 8736 return _response.then((data) => new Site.fromJson(data)); | 8700 return _response.then((data) => new Site.fromJson(data)); |
| 8737 } | 8701 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 8761 * [directorySiteIds] - Select only sites with these directory site IDs. | 8725 * [directorySiteIds] - Select only sites with these directory site IDs. |
| 8762 * | 8726 * |
| 8763 * [ids] - Select only sites with these IDs. | 8727 * [ids] - Select only sites with these IDs. |
| 8764 * | 8728 * |
| 8765 * [maxResults] - Maximum number of results to return. | 8729 * [maxResults] - Maximum number of results to return. |
| 8766 * | 8730 * |
| 8767 * [pageToken] - Value of the nextPageToken from the previous result page. | 8731 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 8768 * | 8732 * |
| 8769 * [searchString] - Allows searching for objects by name, ID or keyName. | 8733 * [searchString] - Allows searching for objects by name, ID or keyName. |
| 8770 * Wildcards (*) are allowed. For example, "site*2015" will return objects | 8734 * Wildcards (*) are allowed. For example, "site*2015" will return objects |
| 8771 * with names like "site June 2015", "site April 2015" or simply "site 2015". | 8735 * with names like "site June 2015", "site April 2015", or simply "site 2015". |
| 8772 * Most of the searches also add wildcards implicitly at the start and the end | 8736 * Most of the searches also add wildcards implicitly at the start and the end |
| 8773 * of the search string. For example, a search string of "site" will match | 8737 * of the search string. For example, a search string of "site" will match |
| 8774 * objects with name "my site", "site 2015" or simply "site". | 8738 * objects with name "my site", "site 2015", or simply "site". |
| 8775 * | 8739 * |
| 8776 * [sortField] - Field by which to sort the list. | 8740 * [sortField] - Field by which to sort the list. |
| 8777 * Possible string values are: | 8741 * Possible string values are: |
| 8778 * - "ID" | 8742 * - "ID" |
| 8779 * - "NAME" | 8743 * - "NAME" |
| 8780 * | 8744 * |
| 8781 * [sortOrder] - Order of sorted results, default is ASCENDING. | 8745 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 8782 * Possible string values are: | 8746 * Possible string values are: |
| 8783 * - "ASCENDING" | 8747 * - "ASCENDING" |
| 8784 * - "DESCENDING" | 8748 * - "DESCENDING" |
| 8785 * | 8749 * |
| 8786 * [subaccountId] - Select only sites with this subaccount ID. | 8750 * [subaccountId] - Select only sites with this subaccount ID. |
| 8787 * | 8751 * |
| 8788 * [unmappedSite] - Select only sites that have not been mapped to a directory | 8752 * [unmappedSite] - Select only sites that have not been mapped to a directory |
| 8789 * site. | 8753 * site. |
| 8790 * | 8754 * |
| 8791 * Completes with a [SitesListResponse]. | 8755 * Completes with a [SitesListResponse]. |
| 8792 * | 8756 * |
| 8793 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8757 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8794 * error. | 8758 * error. |
| 8795 * | 8759 * |
| 8796 * If the used [http.Client] completes with an error when making a REST call, | 8760 * If the used [http.Client] completes with an error when making a REST call, |
| 8797 * this method will complete with the same error. | 8761 * this method will complete with the same error. |
| 8798 */ | 8762 */ |
| 8799 async.Future<SitesListResponse> list(core.String profileId, {core.bool accepts
InStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acce
ptsPublisherPaidPlacements, core.bool adWordsSite, core.bool approved, core.List
<core.String> campaignIds, core.List<core.String> directorySiteIds, core.List<co
re.String> ids, core.int maxResults, core.String pageToken, core.String searchSt
ring, core.String sortField, core.String sortOrder, core.String subaccountId, co
re.bool unmappedSite}) { | 8763 async.Future<SitesListResponse> list(core.String profileId, {core.bool accepts
InStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acce
ptsPublisherPaidPlacements, core.bool adWordsSite, core.bool approved, core.List
<core.String> campaignIds, core.List<core.String> directorySiteIds, core.List<co
re.String> ids, core.int maxResults, core.String pageToken, core.String searchSt
ring, core.String sortField, core.String sortOrder, core.String subaccountId, co
re.bool unmappedSite}) { |
| 8800 var _url = null; | 8764 var _url = null; |
| 8801 var _queryParams = new core.Map(); | 8765 var _queryParams = new core.Map(); |
| 8802 var _uploadMedia = null; | 8766 var _uploadMedia = null; |
| 8803 var _uploadOptions = null; | 8767 var _uploadOptions = null; |
| 8804 var _downloadOptions = common.DownloadOptions.Metadata; | 8768 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8805 var _body = null; | 8769 var _body = null; |
| 8806 | 8770 |
| 8807 if (profileId == null) { | 8771 if (profileId == null) { |
| 8808 throw new core.ArgumentError("Parameter profileId is required."); | 8772 throw new core.ArgumentError("Parameter profileId is required."); |
| 8809 } | 8773 } |
| 8810 if (acceptsInStreamVideoPlacements != null) { | 8774 if (acceptsInStreamVideoPlacements != null) { |
| 8811 _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoP
lacements}"]; | 8775 _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoP
lacements}"]; |
| 8812 } | 8776 } |
| 8813 if (acceptsInterstitialPlacements != null) { | 8777 if (acceptsInterstitialPlacements != null) { |
| 8814 _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPla
cements}"]; | 8778 _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPla
cements}"]; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8847 _queryParams["sortOrder"] = [sortOrder]; | 8811 _queryParams["sortOrder"] = [sortOrder]; |
| 8848 } | 8812 } |
| 8849 if (subaccountId != null) { | 8813 if (subaccountId != null) { |
| 8850 _queryParams["subaccountId"] = [subaccountId]; | 8814 _queryParams["subaccountId"] = [subaccountId]; |
| 8851 } | 8815 } |
| 8852 if (unmappedSite != null) { | 8816 if (unmappedSite != null) { |
| 8853 _queryParams["unmappedSite"] = ["${unmappedSite}"]; | 8817 _queryParams["unmappedSite"] = ["${unmappedSite}"]; |
| 8854 } | 8818 } |
| 8855 | 8819 |
| 8856 | 8820 |
| 8857 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/sites'; | 8821 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit
es'; |
| 8858 | 8822 |
| 8859 var _response = _requester.request(_url, | 8823 var _response = _requester.request(_url, |
| 8860 "GET", | 8824 "GET", |
| 8861 body: _body, | 8825 body: _body, |
| 8862 queryParams: _queryParams, | 8826 queryParams: _queryParams, |
| 8863 uploadOptions: _uploadOptions, | 8827 uploadOptions: _uploadOptions, |
| 8864 uploadMedia: _uploadMedia, | 8828 uploadMedia: _uploadMedia, |
| 8865 downloadOptions: _downloadOptions); | 8829 downloadOptions: _downloadOptions); |
| 8866 return _response.then((data) => new SitesListResponse.fromJson(data)); | 8830 return _response.then((data) => new SitesListResponse.fromJson(data)); |
| 8867 } | 8831 } |
| 8868 | 8832 |
| 8869 /** | 8833 /** |
| 8870 * Updates an existing site. This method supports patch semantics. | 8834 * Updates an existing site. This method supports patch semantics. |
| 8871 * | 8835 * |
| 8872 * [request] - The metadata request object. | 8836 * [request] - The metadata request object. |
| 8873 * | 8837 * |
| 8874 * Request parameters: | 8838 * Request parameters: |
| 8875 * | 8839 * |
| 8876 * [profileId] - User profile ID associated with this request. | 8840 * [profileId] - User profile ID associated with this request. |
| 8877 * | 8841 * |
| 8878 * [id] - Site ID. | 8842 * [id] - Site ID. |
| 8879 * | 8843 * |
| 8880 * Completes with a [Site]. | 8844 * Completes with a [Site]. |
| 8881 * | 8845 * |
| 8882 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8846 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8883 * error. | 8847 * error. |
| 8884 * | 8848 * |
| 8885 * If the used [http.Client] completes with an error when making a REST call, | 8849 * If the used [http.Client] completes with an error when making a REST call, |
| 8886 * this method will complete with the same error. | 8850 * this method will complete with the same error. |
| 8887 */ | 8851 */ |
| 8888 async.Future<Site> patch(Site request, core.String profileId, core.String id)
{ | 8852 async.Future<Site> patch(Site request, core.String profileId, core.String id)
{ |
| 8889 var _url = null; | 8853 var _url = null; |
| 8890 var _queryParams = new core.Map(); | 8854 var _queryParams = new core.Map(); |
| 8891 var _uploadMedia = null; | 8855 var _uploadMedia = null; |
| 8892 var _uploadOptions = null; | 8856 var _uploadOptions = null; |
| 8893 var _downloadOptions = common.DownloadOptions.Metadata; | 8857 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8894 var _body = null; | 8858 var _body = null; |
| 8895 | 8859 |
| 8896 if (request != null) { | 8860 if (request != null) { |
| 8897 _body = convert.JSON.encode((request).toJson()); | 8861 _body = convert.JSON.encode((request).toJson()); |
| 8898 } | 8862 } |
| 8899 if (profileId == null) { | 8863 if (profileId == null) { |
| 8900 throw new core.ArgumentError("Parameter profileId is required."); | 8864 throw new core.ArgumentError("Parameter profileId is required."); |
| 8901 } | 8865 } |
| 8902 if (id == null) { | 8866 if (id == null) { |
| 8903 throw new core.ArgumentError("Parameter id is required."); | 8867 throw new core.ArgumentError("Parameter id is required."); |
| 8904 } | 8868 } |
| 8905 _queryParams["id"] = [id]; | 8869 _queryParams["id"] = [id]; |
| 8906 | 8870 |
| 8907 | 8871 |
| 8908 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/sites'; | 8872 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit
es'; |
| 8909 | 8873 |
| 8910 var _response = _requester.request(_url, | 8874 var _response = _requester.request(_url, |
| 8911 "PATCH", | 8875 "PATCH", |
| 8912 body: _body, | 8876 body: _body, |
| 8913 queryParams: _queryParams, | 8877 queryParams: _queryParams, |
| 8914 uploadOptions: _uploadOptions, | 8878 uploadOptions: _uploadOptions, |
| 8915 uploadMedia: _uploadMedia, | 8879 uploadMedia: _uploadMedia, |
| 8916 downloadOptions: _downloadOptions); | 8880 downloadOptions: _downloadOptions); |
| 8917 return _response.then((data) => new Site.fromJson(data)); | 8881 return _response.then((data) => new Site.fromJson(data)); |
| 8918 } | 8882 } |
| 8919 | 8883 |
| 8920 /** | 8884 /** |
| 8921 * Updates an existing site. | 8885 * Updates an existing site. |
| 8922 * | 8886 * |
| 8923 * [request] - The metadata request object. | 8887 * [request] - The metadata request object. |
| 8924 * | 8888 * |
| 8925 * Request parameters: | 8889 * Request parameters: |
| 8926 * | 8890 * |
| 8927 * [profileId] - User profile ID associated with this request. | 8891 * [profileId] - User profile ID associated with this request. |
| 8928 * | 8892 * |
| 8929 * Completes with a [Site]. | 8893 * Completes with a [Site]. |
| 8930 * | 8894 * |
| 8931 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8895 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8932 * error. | 8896 * error. |
| 8933 * | 8897 * |
| 8934 * If the used [http.Client] completes with an error when making a REST call, | 8898 * If the used [http.Client] completes with an error when making a REST call, |
| 8935 * this method will complete with the same error. | 8899 * this method will complete with the same error. |
| 8936 */ | 8900 */ |
| 8937 async.Future<Site> update(Site request, core.String profileId) { | 8901 async.Future<Site> update(Site request, core.String profileId) { |
| 8938 var _url = null; | 8902 var _url = null; |
| 8939 var _queryParams = new core.Map(); | 8903 var _queryParams = new core.Map(); |
| 8940 var _uploadMedia = null; | 8904 var _uploadMedia = null; |
| 8941 var _uploadOptions = null; | 8905 var _uploadOptions = null; |
| 8942 var _downloadOptions = common.DownloadOptions.Metadata; | 8906 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8943 var _body = null; | 8907 var _body = null; |
| 8944 | 8908 |
| 8945 if (request != null) { | 8909 if (request != null) { |
| 8946 _body = convert.JSON.encode((request).toJson()); | 8910 _body = convert.JSON.encode((request).toJson()); |
| 8947 } | 8911 } |
| 8948 if (profileId == null) { | 8912 if (profileId == null) { |
| 8949 throw new core.ArgumentError("Parameter profileId is required."); | 8913 throw new core.ArgumentError("Parameter profileId is required."); |
| 8950 } | 8914 } |
| 8951 | 8915 |
| 8952 | 8916 |
| 8953 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/sites'; | 8917 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sit
es'; |
| 8954 | 8918 |
| 8955 var _response = _requester.request(_url, | 8919 var _response = _requester.request(_url, |
| 8956 "PUT", | 8920 "PUT", |
| 8957 body: _body, | 8921 body: _body, |
| 8958 queryParams: _queryParams, | 8922 queryParams: _queryParams, |
| 8959 uploadOptions: _uploadOptions, | 8923 uploadOptions: _uploadOptions, |
| 8960 uploadMedia: _uploadMedia, | 8924 uploadMedia: _uploadMedia, |
| 8961 downloadOptions: _downloadOptions); | 8925 downloadOptions: _downloadOptions); |
| 8962 return _response.then((data) => new Site.fromJson(data)); | 8926 return _response.then((data) => new Site.fromJson(data)); |
| 8963 } | 8927 } |
| 8964 | 8928 |
| 8965 } | 8929 } |
| 8966 | 8930 |
| 8967 | 8931 |
| 8968 /** Not documented yet. */ | |
| 8969 class SizesResourceApi { | 8932 class SizesResourceApi { |
| 8970 final common_internal.ApiRequester _requester; | 8933 final commons.ApiRequester _requester; |
| 8971 | 8934 |
| 8972 SizesResourceApi(common_internal.ApiRequester client) : | 8935 SizesResourceApi(commons.ApiRequester client) : |
| 8973 _requester = client; | 8936 _requester = client; |
| 8974 | 8937 |
| 8975 /** | 8938 /** |
| 8976 * Gets one size by ID. | 8939 * Gets one size by ID. |
| 8977 * | 8940 * |
| 8978 * Request parameters: | 8941 * Request parameters: |
| 8979 * | 8942 * |
| 8980 * [profileId] - User profile ID associated with this request. | 8943 * [profileId] - User profile ID associated with this request. |
| 8981 * | 8944 * |
| 8982 * [id] - Size ID. | 8945 * [id] - Size ID. |
| 8983 * | 8946 * |
| 8984 * Completes with a [Size]. | 8947 * Completes with a [Size]. |
| 8985 * | 8948 * |
| 8986 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8949 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 8987 * error. | 8950 * error. |
| 8988 * | 8951 * |
| 8989 * If the used [http.Client] completes with an error when making a REST call, | 8952 * If the used [http.Client] completes with an error when making a REST call, |
| 8990 * this method will complete with the same error. | 8953 * this method will complete with the same error. |
| 8991 */ | 8954 */ |
| 8992 async.Future<Size> get(core.String profileId, core.String id) { | 8955 async.Future<Size> get(core.String profileId, core.String id) { |
| 8993 var _url = null; | 8956 var _url = null; |
| 8994 var _queryParams = new core.Map(); | 8957 var _queryParams = new core.Map(); |
| 8995 var _uploadMedia = null; | 8958 var _uploadMedia = null; |
| 8996 var _uploadOptions = null; | 8959 var _uploadOptions = null; |
| 8997 var _downloadOptions = common.DownloadOptions.Metadata; | 8960 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 8998 var _body = null; | 8961 var _body = null; |
| 8999 | 8962 |
| 9000 if (profileId == null) { | 8963 if (profileId == null) { |
| 9001 throw new core.ArgumentError("Parameter profileId is required."); | 8964 throw new core.ArgumentError("Parameter profileId is required."); |
| 9002 } | 8965 } |
| 9003 if (id == null) { | 8966 if (id == null) { |
| 9004 throw new core.ArgumentError("Parameter id is required."); | 8967 throw new core.ArgumentError("Parameter id is required."); |
| 9005 } | 8968 } |
| 9006 | 8969 |
| 9007 | 8970 |
| 9008 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/sizes/' + common_internal.Escaper.ecapeVariable('$id'); | 8971 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz
es/' + commons.Escaper.ecapeVariable('$id'); |
| 9009 | 8972 |
| 9010 var _response = _requester.request(_url, | 8973 var _response = _requester.request(_url, |
| 9011 "GET", | 8974 "GET", |
| 9012 body: _body, | 8975 body: _body, |
| 9013 queryParams: _queryParams, | 8976 queryParams: _queryParams, |
| 9014 uploadOptions: _uploadOptions, | 8977 uploadOptions: _uploadOptions, |
| 9015 uploadMedia: _uploadMedia, | 8978 uploadMedia: _uploadMedia, |
| 9016 downloadOptions: _downloadOptions); | 8979 downloadOptions: _downloadOptions); |
| 9017 return _response.then((data) => new Size.fromJson(data)); | 8980 return _response.then((data) => new Size.fromJson(data)); |
| 9018 } | 8981 } |
| 9019 | 8982 |
| 9020 /** | 8983 /** |
| 9021 * Inserts a new size. | 8984 * Inserts a new size. |
| 9022 * | 8985 * |
| 9023 * [request] - The metadata request object. | 8986 * [request] - The metadata request object. |
| 9024 * | 8987 * |
| 9025 * Request parameters: | 8988 * Request parameters: |
| 9026 * | 8989 * |
| 9027 * [profileId] - User profile ID associated with this request. | 8990 * [profileId] - User profile ID associated with this request. |
| 9028 * | 8991 * |
| 9029 * Completes with a [Size]. | 8992 * Completes with a [Size]. |
| 9030 * | 8993 * |
| 9031 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 8994 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9032 * error. | 8995 * error. |
| 9033 * | 8996 * |
| 9034 * If the used [http.Client] completes with an error when making a REST call, | 8997 * If the used [http.Client] completes with an error when making a REST call, |
| 9035 * this method will complete with the same error. | 8998 * this method will complete with the same error. |
| 9036 */ | 8999 */ |
| 9037 async.Future<Size> insert(Size request, core.String profileId) { | 9000 async.Future<Size> insert(Size request, core.String profileId) { |
| 9038 var _url = null; | 9001 var _url = null; |
| 9039 var _queryParams = new core.Map(); | 9002 var _queryParams = new core.Map(); |
| 9040 var _uploadMedia = null; | 9003 var _uploadMedia = null; |
| 9041 var _uploadOptions = null; | 9004 var _uploadOptions = null; |
| 9042 var _downloadOptions = common.DownloadOptions.Metadata; | 9005 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9043 var _body = null; | 9006 var _body = null; |
| 9044 | 9007 |
| 9045 if (request != null) { | 9008 if (request != null) { |
| 9046 _body = convert.JSON.encode((request).toJson()); | 9009 _body = convert.JSON.encode((request).toJson()); |
| 9047 } | 9010 } |
| 9048 if (profileId == null) { | 9011 if (profileId == null) { |
| 9049 throw new core.ArgumentError("Parameter profileId is required."); | 9012 throw new core.ArgumentError("Parameter profileId is required."); |
| 9050 } | 9013 } |
| 9051 | 9014 |
| 9052 | 9015 |
| 9053 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/sizes'; | 9016 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz
es'; |
| 9054 | 9017 |
| 9055 var _response = _requester.request(_url, | 9018 var _response = _requester.request(_url, |
| 9056 "POST", | 9019 "POST", |
| 9057 body: _body, | 9020 body: _body, |
| 9058 queryParams: _queryParams, | 9021 queryParams: _queryParams, |
| 9059 uploadOptions: _uploadOptions, | 9022 uploadOptions: _uploadOptions, |
| 9060 uploadMedia: _uploadMedia, | 9023 uploadMedia: _uploadMedia, |
| 9061 downloadOptions: _downloadOptions); | 9024 downloadOptions: _downloadOptions); |
| 9062 return _response.then((data) => new Size.fromJson(data)); | 9025 return _response.then((data) => new Size.fromJson(data)); |
| 9063 } | 9026 } |
| 9064 | 9027 |
| 9065 /** | 9028 /** |
| 9066 * Retrieves a list of sizes, possibly filtered. | 9029 * Retrieves a list of sizes, possibly filtered. |
| 9067 * | 9030 * |
| 9068 * Request parameters: | 9031 * Request parameters: |
| 9069 * | 9032 * |
| 9070 * [profileId] - User profile ID associated with this request. | 9033 * [profileId] - User profile ID associated with this request. |
| 9071 * | 9034 * |
| 9072 * [height] - Select only sizes with this height. | 9035 * [height] - Select only sizes with this height. |
| 9073 * | 9036 * |
| 9074 * [iabStandard] - Select only IAB standard sizes. | 9037 * [iabStandard] - Select only IAB standard sizes. |
| 9075 * | 9038 * |
| 9076 * [ids] - Select only sizes with these IDs. | 9039 * [ids] - Select only sizes with these IDs. |
| 9077 * | 9040 * |
| 9078 * [width] - Select only sizes with this width. | 9041 * [width] - Select only sizes with this width. |
| 9079 * | 9042 * |
| 9080 * Completes with a [SizesListResponse]. | 9043 * Completes with a [SizesListResponse]. |
| 9081 * | 9044 * |
| 9082 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9045 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9083 * error. | 9046 * error. |
| 9084 * | 9047 * |
| 9085 * If the used [http.Client] completes with an error when making a REST call, | 9048 * If the used [http.Client] completes with an error when making a REST call, |
| 9086 * this method will complete with the same error. | 9049 * this method will complete with the same error. |
| 9087 */ | 9050 */ |
| 9088 async.Future<SizesListResponse> list(core.String profileId, {core.int height,
core.bool iabStandard, core.List<core.String> ids, core.int width}) { | 9051 async.Future<SizesListResponse> list(core.String profileId, {core.int height,
core.bool iabStandard, core.List<core.String> ids, core.int width}) { |
| 9089 var _url = null; | 9052 var _url = null; |
| 9090 var _queryParams = new core.Map(); | 9053 var _queryParams = new core.Map(); |
| 9091 var _uploadMedia = null; | 9054 var _uploadMedia = null; |
| 9092 var _uploadOptions = null; | 9055 var _uploadOptions = null; |
| 9093 var _downloadOptions = common.DownloadOptions.Metadata; | 9056 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9094 var _body = null; | 9057 var _body = null; |
| 9095 | 9058 |
| 9096 if (profileId == null) { | 9059 if (profileId == null) { |
| 9097 throw new core.ArgumentError("Parameter profileId is required."); | 9060 throw new core.ArgumentError("Parameter profileId is required."); |
| 9098 } | 9061 } |
| 9099 if (height != null) { | 9062 if (height != null) { |
| 9100 _queryParams["height"] = ["${height}"]; | 9063 _queryParams["height"] = ["${height}"]; |
| 9101 } | 9064 } |
| 9102 if (iabStandard != null) { | 9065 if (iabStandard != null) { |
| 9103 _queryParams["iabStandard"] = ["${iabStandard}"]; | 9066 _queryParams["iabStandard"] = ["${iabStandard}"]; |
| 9104 } | 9067 } |
| 9105 if (ids != null) { | 9068 if (ids != null) { |
| 9106 _queryParams["ids"] = ids; | 9069 _queryParams["ids"] = ids; |
| 9107 } | 9070 } |
| 9108 if (width != null) { | 9071 if (width != null) { |
| 9109 _queryParams["width"] = ["${width}"]; | 9072 _queryParams["width"] = ["${width}"]; |
| 9110 } | 9073 } |
| 9111 | 9074 |
| 9112 | 9075 |
| 9113 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/sizes'; | 9076 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/siz
es'; |
| 9114 | 9077 |
| 9115 var _response = _requester.request(_url, | 9078 var _response = _requester.request(_url, |
| 9116 "GET", | 9079 "GET", |
| 9117 body: _body, | 9080 body: _body, |
| 9118 queryParams: _queryParams, | 9081 queryParams: _queryParams, |
| 9119 uploadOptions: _uploadOptions, | 9082 uploadOptions: _uploadOptions, |
| 9120 uploadMedia: _uploadMedia, | 9083 uploadMedia: _uploadMedia, |
| 9121 downloadOptions: _downloadOptions); | 9084 downloadOptions: _downloadOptions); |
| 9122 return _response.then((data) => new SizesListResponse.fromJson(data)); | 9085 return _response.then((data) => new SizesListResponse.fromJson(data)); |
| 9123 } | 9086 } |
| 9124 | 9087 |
| 9125 } | 9088 } |
| 9126 | 9089 |
| 9127 | 9090 |
| 9128 /** Not documented yet. */ | |
| 9129 class SubaccountsResourceApi { | 9091 class SubaccountsResourceApi { |
| 9130 final common_internal.ApiRequester _requester; | 9092 final commons.ApiRequester _requester; |
| 9131 | 9093 |
| 9132 SubaccountsResourceApi(common_internal.ApiRequester client) : | 9094 SubaccountsResourceApi(commons.ApiRequester client) : |
| 9133 _requester = client; | 9095 _requester = client; |
| 9134 | 9096 |
| 9135 /** | 9097 /** |
| 9136 * Gets one subaccount by ID. | 9098 * Gets one subaccount by ID. |
| 9137 * | 9099 * |
| 9138 * Request parameters: | 9100 * Request parameters: |
| 9139 * | 9101 * |
| 9140 * [profileId] - User profile ID associated with this request. | 9102 * [profileId] - User profile ID associated with this request. |
| 9141 * | 9103 * |
| 9142 * [id] - Subaccount ID. | 9104 * [id] - Subaccount ID. |
| 9143 * | 9105 * |
| 9144 * Completes with a [Subaccount]. | 9106 * Completes with a [Subaccount]. |
| 9145 * | 9107 * |
| 9146 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9147 * error. | 9109 * error. |
| 9148 * | 9110 * |
| 9149 * If the used [http.Client] completes with an error when making a REST call, | 9111 * If the used [http.Client] completes with an error when making a REST call, |
| 9150 * this method will complete with the same error. | 9112 * this method will complete with the same error. |
| 9151 */ | 9113 */ |
| 9152 async.Future<Subaccount> get(core.String profileId, core.String id) { | 9114 async.Future<Subaccount> get(core.String profileId, core.String id) { |
| 9153 var _url = null; | 9115 var _url = null; |
| 9154 var _queryParams = new core.Map(); | 9116 var _queryParams = new core.Map(); |
| 9155 var _uploadMedia = null; | 9117 var _uploadMedia = null; |
| 9156 var _uploadOptions = null; | 9118 var _uploadOptions = null; |
| 9157 var _downloadOptions = common.DownloadOptions.Metadata; | 9119 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9158 var _body = null; | 9120 var _body = null; |
| 9159 | 9121 |
| 9160 if (profileId == null) { | 9122 if (profileId == null) { |
| 9161 throw new core.ArgumentError("Parameter profileId is required."); | 9123 throw new core.ArgumentError("Parameter profileId is required."); |
| 9162 } | 9124 } |
| 9163 if (id == null) { | 9125 if (id == null) { |
| 9164 throw new core.ArgumentError("Parameter id is required."); | 9126 throw new core.ArgumentError("Parameter id is required."); |
| 9165 } | 9127 } |
| 9166 | 9128 |
| 9167 | 9129 |
| 9168 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/subaccounts/' + common_internal.Escaper.ecapeVariable('$id'); | 9130 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub
accounts/' + commons.Escaper.ecapeVariable('$id'); |
| 9169 | 9131 |
| 9170 var _response = _requester.request(_url, | 9132 var _response = _requester.request(_url, |
| 9171 "GET", | 9133 "GET", |
| 9172 body: _body, | 9134 body: _body, |
| 9173 queryParams: _queryParams, | 9135 queryParams: _queryParams, |
| 9174 uploadOptions: _uploadOptions, | 9136 uploadOptions: _uploadOptions, |
| 9175 uploadMedia: _uploadMedia, | 9137 uploadMedia: _uploadMedia, |
| 9176 downloadOptions: _downloadOptions); | 9138 downloadOptions: _downloadOptions); |
| 9177 return _response.then((data) => new Subaccount.fromJson(data)); | 9139 return _response.then((data) => new Subaccount.fromJson(data)); |
| 9178 } | 9140 } |
| 9179 | 9141 |
| 9180 /** | 9142 /** |
| 9181 * Inserts a new subaccount. | 9143 * Inserts a new subaccount. |
| 9182 * | 9144 * |
| 9183 * [request] - The metadata request object. | 9145 * [request] - The metadata request object. |
| 9184 * | 9146 * |
| 9185 * Request parameters: | 9147 * Request parameters: |
| 9186 * | 9148 * |
| 9187 * [profileId] - User profile ID associated with this request. | 9149 * [profileId] - User profile ID associated with this request. |
| 9188 * | 9150 * |
| 9189 * Completes with a [Subaccount]. | 9151 * Completes with a [Subaccount]. |
| 9190 * | 9152 * |
| 9191 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9153 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9192 * error. | 9154 * error. |
| 9193 * | 9155 * |
| 9194 * If the used [http.Client] completes with an error when making a REST call, | 9156 * If the used [http.Client] completes with an error when making a REST call, |
| 9195 * this method will complete with the same error. | 9157 * this method will complete with the same error. |
| 9196 */ | 9158 */ |
| 9197 async.Future<Subaccount> insert(Subaccount request, core.String profileId) { | 9159 async.Future<Subaccount> insert(Subaccount request, core.String profileId) { |
| 9198 var _url = null; | 9160 var _url = null; |
| 9199 var _queryParams = new core.Map(); | 9161 var _queryParams = new core.Map(); |
| 9200 var _uploadMedia = null; | 9162 var _uploadMedia = null; |
| 9201 var _uploadOptions = null; | 9163 var _uploadOptions = null; |
| 9202 var _downloadOptions = common.DownloadOptions.Metadata; | 9164 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9203 var _body = null; | 9165 var _body = null; |
| 9204 | 9166 |
| 9205 if (request != null) { | 9167 if (request != null) { |
| 9206 _body = convert.JSON.encode((request).toJson()); | 9168 _body = convert.JSON.encode((request).toJson()); |
| 9207 } | 9169 } |
| 9208 if (profileId == null) { | 9170 if (profileId == null) { |
| 9209 throw new core.ArgumentError("Parameter profileId is required."); | 9171 throw new core.ArgumentError("Parameter profileId is required."); |
| 9210 } | 9172 } |
| 9211 | 9173 |
| 9212 | 9174 |
| 9213 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/subaccounts'; | 9175 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub
accounts'; |
| 9214 | 9176 |
| 9215 var _response = _requester.request(_url, | 9177 var _response = _requester.request(_url, |
| 9216 "POST", | 9178 "POST", |
| 9217 body: _body, | 9179 body: _body, |
| 9218 queryParams: _queryParams, | 9180 queryParams: _queryParams, |
| 9219 uploadOptions: _uploadOptions, | 9181 uploadOptions: _uploadOptions, |
| 9220 uploadMedia: _uploadMedia, | 9182 uploadMedia: _uploadMedia, |
| 9221 downloadOptions: _downloadOptions); | 9183 downloadOptions: _downloadOptions); |
| 9222 return _response.then((data) => new Subaccount.fromJson(data)); | 9184 return _response.then((data) => new Subaccount.fromJson(data)); |
| 9223 } | 9185 } |
| 9224 | 9186 |
| 9225 /** | 9187 /** |
| 9226 * Gets a list of subaccounts, possibly filtered. | 9188 * Gets a list of subaccounts, possibly filtered. |
| 9227 * | 9189 * |
| 9228 * Request parameters: | 9190 * Request parameters: |
| 9229 * | 9191 * |
| 9230 * [profileId] - User profile ID associated with this request. | 9192 * [profileId] - User profile ID associated with this request. |
| 9231 * | 9193 * |
| 9232 * [ids] - Select only subaccounts with these IDs. | 9194 * [ids] - Select only subaccounts with these IDs. |
| 9233 * | 9195 * |
| 9234 * [maxResults] - Maximum number of results to return. | 9196 * [maxResults] - Maximum number of results to return. |
| 9235 * | 9197 * |
| 9236 * [pageToken] - Value of the nextPageToken from the previous result page. | 9198 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 9237 * | 9199 * |
| 9238 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 9200 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 9239 * are allowed. For example, "subaccount*2015" will return objects with names | 9201 * are allowed. For example, "subaccount*2015" will return objects with names |
| 9240 * like "subaccount June 2015", "subaccount April 2015" or simply "subaccount | 9202 * like "subaccount June 2015", "subaccount April 2015", or simply "subaccount |
| 9241 * 2015". Most of the searches also add wildcards implicitly at the start and | 9203 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 9242 * the end of the search string. For example, a search string of "subaccount" | 9204 * the end of the search string. For example, a search string of "subaccount" |
| 9243 * will match objects with name "my subaccount", "subaccount 2015" or simply | 9205 * will match objects with name "my subaccount", "subaccount 2015", or simply |
| 9244 * "subaccount". | 9206 * "subaccount". |
| 9245 * | 9207 * |
| 9246 * [sortField] - Field by which to sort the list. | 9208 * [sortField] - Field by which to sort the list. |
| 9247 * Possible string values are: | 9209 * Possible string values are: |
| 9248 * - "ID" | 9210 * - "ID" |
| 9249 * - "NAME" | 9211 * - "NAME" |
| 9250 * | 9212 * |
| 9251 * [sortOrder] - Order of sorted results, default is ASCENDING. | 9213 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 9252 * Possible string values are: | 9214 * Possible string values are: |
| 9253 * - "ASCENDING" | 9215 * - "ASCENDING" |
| 9254 * - "DESCENDING" | 9216 * - "DESCENDING" |
| 9255 * | 9217 * |
| 9256 * Completes with a [SubaccountsListResponse]. | 9218 * Completes with a [SubaccountsListResponse]. |
| 9257 * | 9219 * |
| 9258 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9220 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9259 * error. | 9221 * error. |
| 9260 * | 9222 * |
| 9261 * If the used [http.Client] completes with an error when making a REST call, | 9223 * If the used [http.Client] completes with an error when making a REST call, |
| 9262 * this method will complete with the same error. | 9224 * this method will complete with the same error. |
| 9263 */ | 9225 */ |
| 9264 async.Future<SubaccountsListResponse> list(core.String profileId, {core.List<c
ore.String> ids, core.int maxResults, core.String pageToken, core.String searchS
tring, core.String sortField, core.String sortOrder}) { | 9226 async.Future<SubaccountsListResponse> list(core.String profileId, {core.List<c
ore.String> ids, core.int maxResults, core.String pageToken, core.String searchS
tring, core.String sortField, core.String sortOrder}) { |
| 9265 var _url = null; | 9227 var _url = null; |
| 9266 var _queryParams = new core.Map(); | 9228 var _queryParams = new core.Map(); |
| 9267 var _uploadMedia = null; | 9229 var _uploadMedia = null; |
| 9268 var _uploadOptions = null; | 9230 var _uploadOptions = null; |
| 9269 var _downloadOptions = common.DownloadOptions.Metadata; | 9231 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9270 var _body = null; | 9232 var _body = null; |
| 9271 | 9233 |
| 9272 if (profileId == null) { | 9234 if (profileId == null) { |
| 9273 throw new core.ArgumentError("Parameter profileId is required."); | 9235 throw new core.ArgumentError("Parameter profileId is required."); |
| 9274 } | 9236 } |
| 9275 if (ids != null) { | 9237 if (ids != null) { |
| 9276 _queryParams["ids"] = ids; | 9238 _queryParams["ids"] = ids; |
| 9277 } | 9239 } |
| 9278 if (maxResults != null) { | 9240 if (maxResults != null) { |
| 9279 _queryParams["maxResults"] = ["${maxResults}"]; | 9241 _queryParams["maxResults"] = ["${maxResults}"]; |
| 9280 } | 9242 } |
| 9281 if (pageToken != null) { | 9243 if (pageToken != null) { |
| 9282 _queryParams["pageToken"] = [pageToken]; | 9244 _queryParams["pageToken"] = [pageToken]; |
| 9283 } | 9245 } |
| 9284 if (searchString != null) { | 9246 if (searchString != null) { |
| 9285 _queryParams["searchString"] = [searchString]; | 9247 _queryParams["searchString"] = [searchString]; |
| 9286 } | 9248 } |
| 9287 if (sortField != null) { | 9249 if (sortField != null) { |
| 9288 _queryParams["sortField"] = [sortField]; | 9250 _queryParams["sortField"] = [sortField]; |
| 9289 } | 9251 } |
| 9290 if (sortOrder != null) { | 9252 if (sortOrder != null) { |
| 9291 _queryParams["sortOrder"] = [sortOrder]; | 9253 _queryParams["sortOrder"] = [sortOrder]; |
| 9292 } | 9254 } |
| 9293 | 9255 |
| 9294 | 9256 |
| 9295 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/subaccounts'; | 9257 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub
accounts'; |
| 9296 | 9258 |
| 9297 var _response = _requester.request(_url, | 9259 var _response = _requester.request(_url, |
| 9298 "GET", | 9260 "GET", |
| 9299 body: _body, | 9261 body: _body, |
| 9300 queryParams: _queryParams, | 9262 queryParams: _queryParams, |
| 9301 uploadOptions: _uploadOptions, | 9263 uploadOptions: _uploadOptions, |
| 9302 uploadMedia: _uploadMedia, | 9264 uploadMedia: _uploadMedia, |
| 9303 downloadOptions: _downloadOptions); | 9265 downloadOptions: _downloadOptions); |
| 9304 return _response.then((data) => new SubaccountsListResponse.fromJson(data)); | 9266 return _response.then((data) => new SubaccountsListResponse.fromJson(data)); |
| 9305 } | 9267 } |
| 9306 | 9268 |
| 9307 /** | 9269 /** |
| 9308 * Updates an existing subaccount. This method supports patch semantics. | 9270 * Updates an existing subaccount. This method supports patch semantics. |
| 9309 * | 9271 * |
| 9310 * [request] - The metadata request object. | 9272 * [request] - The metadata request object. |
| 9311 * | 9273 * |
| 9312 * Request parameters: | 9274 * Request parameters: |
| 9313 * | 9275 * |
| 9314 * [profileId] - User profile ID associated with this request. | 9276 * [profileId] - User profile ID associated with this request. |
| 9315 * | 9277 * |
| 9316 * [id] - Subaccount ID. | 9278 * [id] - Subaccount ID. |
| 9317 * | 9279 * |
| 9318 * Completes with a [Subaccount]. | 9280 * Completes with a [Subaccount]. |
| 9319 * | 9281 * |
| 9320 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9321 * error. | 9283 * error. |
| 9322 * | 9284 * |
| 9323 * If the used [http.Client] completes with an error when making a REST call, | 9285 * If the used [http.Client] completes with an error when making a REST call, |
| 9324 * this method will complete with the same error. | 9286 * this method will complete with the same error. |
| 9325 */ | 9287 */ |
| 9326 async.Future<Subaccount> patch(Subaccount request, core.String profileId, core
.String id) { | 9288 async.Future<Subaccount> patch(Subaccount request, core.String profileId, core
.String id) { |
| 9327 var _url = null; | 9289 var _url = null; |
| 9328 var _queryParams = new core.Map(); | 9290 var _queryParams = new core.Map(); |
| 9329 var _uploadMedia = null; | 9291 var _uploadMedia = null; |
| 9330 var _uploadOptions = null; | 9292 var _uploadOptions = null; |
| 9331 var _downloadOptions = common.DownloadOptions.Metadata; | 9293 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9332 var _body = null; | 9294 var _body = null; |
| 9333 | 9295 |
| 9334 if (request != null) { | 9296 if (request != null) { |
| 9335 _body = convert.JSON.encode((request).toJson()); | 9297 _body = convert.JSON.encode((request).toJson()); |
| 9336 } | 9298 } |
| 9337 if (profileId == null) { | 9299 if (profileId == null) { |
| 9338 throw new core.ArgumentError("Parameter profileId is required."); | 9300 throw new core.ArgumentError("Parameter profileId is required."); |
| 9339 } | 9301 } |
| 9340 if (id == null) { | 9302 if (id == null) { |
| 9341 throw new core.ArgumentError("Parameter id is required."); | 9303 throw new core.ArgumentError("Parameter id is required."); |
| 9342 } | 9304 } |
| 9343 _queryParams["id"] = [id]; | 9305 _queryParams["id"] = [id]; |
| 9344 | 9306 |
| 9345 | 9307 |
| 9346 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/subaccounts'; | 9308 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub
accounts'; |
| 9347 | 9309 |
| 9348 var _response = _requester.request(_url, | 9310 var _response = _requester.request(_url, |
| 9349 "PATCH", | 9311 "PATCH", |
| 9350 body: _body, | 9312 body: _body, |
| 9351 queryParams: _queryParams, | 9313 queryParams: _queryParams, |
| 9352 uploadOptions: _uploadOptions, | 9314 uploadOptions: _uploadOptions, |
| 9353 uploadMedia: _uploadMedia, | 9315 uploadMedia: _uploadMedia, |
| 9354 downloadOptions: _downloadOptions); | 9316 downloadOptions: _downloadOptions); |
| 9355 return _response.then((data) => new Subaccount.fromJson(data)); | 9317 return _response.then((data) => new Subaccount.fromJson(data)); |
| 9356 } | 9318 } |
| 9357 | 9319 |
| 9358 /** | 9320 /** |
| 9359 * Updates an existing subaccount. | 9321 * Updates an existing subaccount. |
| 9360 * | 9322 * |
| 9361 * [request] - The metadata request object. | 9323 * [request] - The metadata request object. |
| 9362 * | 9324 * |
| 9363 * Request parameters: | 9325 * Request parameters: |
| 9364 * | 9326 * |
| 9365 * [profileId] - User profile ID associated with this request. | 9327 * [profileId] - User profile ID associated with this request. |
| 9366 * | 9328 * |
| 9367 * Completes with a [Subaccount]. | 9329 * Completes with a [Subaccount]. |
| 9368 * | 9330 * |
| 9369 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9370 * error. | 9332 * error. |
| 9371 * | 9333 * |
| 9372 * If the used [http.Client] completes with an error when making a REST call, | 9334 * If the used [http.Client] completes with an error when making a REST call, |
| 9373 * this method will complete with the same error. | 9335 * this method will complete with the same error. |
| 9374 */ | 9336 */ |
| 9375 async.Future<Subaccount> update(Subaccount request, core.String profileId) { | 9337 async.Future<Subaccount> update(Subaccount request, core.String profileId) { |
| 9376 var _url = null; | 9338 var _url = null; |
| 9377 var _queryParams = new core.Map(); | 9339 var _queryParams = new core.Map(); |
| 9378 var _uploadMedia = null; | 9340 var _uploadMedia = null; |
| 9379 var _uploadOptions = null; | 9341 var _uploadOptions = null; |
| 9380 var _downloadOptions = common.DownloadOptions.Metadata; | 9342 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9381 var _body = null; | 9343 var _body = null; |
| 9382 | 9344 |
| 9383 if (request != null) { | 9345 if (request != null) { |
| 9384 _body = convert.JSON.encode((request).toJson()); | 9346 _body = convert.JSON.encode((request).toJson()); |
| 9385 } | 9347 } |
| 9386 if (profileId == null) { | 9348 if (profileId == null) { |
| 9387 throw new core.ArgumentError("Parameter profileId is required."); | 9349 throw new core.ArgumentError("Parameter profileId is required."); |
| 9388 } | 9350 } |
| 9389 | 9351 |
| 9390 | 9352 |
| 9391 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/subaccounts'; | 9353 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sub
accounts'; |
| 9392 | 9354 |
| 9393 var _response = _requester.request(_url, | 9355 var _response = _requester.request(_url, |
| 9394 "PUT", | 9356 "PUT", |
| 9395 body: _body, | 9357 body: _body, |
| 9396 queryParams: _queryParams, | 9358 queryParams: _queryParams, |
| 9397 uploadOptions: _uploadOptions, | 9359 uploadOptions: _uploadOptions, |
| 9398 uploadMedia: _uploadMedia, | 9360 uploadMedia: _uploadMedia, |
| 9399 downloadOptions: _downloadOptions); | 9361 downloadOptions: _downloadOptions); |
| 9400 return _response.then((data) => new Subaccount.fromJson(data)); | 9362 return _response.then((data) => new Subaccount.fromJson(data)); |
| 9401 } | 9363 } |
| 9402 | 9364 |
| 9403 } | 9365 } |
| 9404 | 9366 |
| 9405 | 9367 |
| 9406 /** Not documented yet. */ | |
| 9407 class UserProfilesResourceApi { | 9368 class UserProfilesResourceApi { |
| 9408 final common_internal.ApiRequester _requester; | 9369 final commons.ApiRequester _requester; |
| 9409 | 9370 |
| 9410 UserProfilesResourceApi(common_internal.ApiRequester client) : | 9371 UserProfilesResourceApi(commons.ApiRequester client) : |
| 9411 _requester = client; | 9372 _requester = client; |
| 9412 | 9373 |
| 9413 /** | 9374 /** |
| 9414 * Gets one user profile by ID. | 9375 * Gets one user profile by ID. |
| 9415 * | 9376 * |
| 9416 * Request parameters: | 9377 * Request parameters: |
| 9417 * | 9378 * |
| 9418 * [profileId] - The user profile ID. | 9379 * [profileId] - The user profile ID. |
| 9419 * | 9380 * |
| 9420 * Completes with a [UserProfile]. | 9381 * Completes with a [UserProfile]. |
| 9421 * | 9382 * |
| 9422 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9383 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9423 * error. | 9384 * error. |
| 9424 * | 9385 * |
| 9425 * If the used [http.Client] completes with an error when making a REST call, | 9386 * If the used [http.Client] completes with an error when making a REST call, |
| 9426 * this method will complete with the same error. | 9387 * this method will complete with the same error. |
| 9427 */ | 9388 */ |
| 9428 async.Future<UserProfile> get(core.String profileId) { | 9389 async.Future<UserProfile> get(core.String profileId) { |
| 9429 var _url = null; | 9390 var _url = null; |
| 9430 var _queryParams = new core.Map(); | 9391 var _queryParams = new core.Map(); |
| 9431 var _uploadMedia = null; | 9392 var _uploadMedia = null; |
| 9432 var _uploadOptions = null; | 9393 var _uploadOptions = null; |
| 9433 var _downloadOptions = common.DownloadOptions.Metadata; | 9394 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9434 var _body = null; | 9395 var _body = null; |
| 9435 | 9396 |
| 9436 if (profileId == null) { | 9397 if (profileId == null) { |
| 9437 throw new core.ArgumentError("Parameter profileId is required."); | 9398 throw new core.ArgumentError("Parameter profileId is required."); |
| 9438 } | 9399 } |
| 9439 | 9400 |
| 9440 | 9401 |
| 9441 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
; | 9402 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId'); |
| 9442 | 9403 |
| 9443 var _response = _requester.request(_url, | 9404 var _response = _requester.request(_url, |
| 9444 "GET", | 9405 "GET", |
| 9445 body: _body, | 9406 body: _body, |
| 9446 queryParams: _queryParams, | 9407 queryParams: _queryParams, |
| 9447 uploadOptions: _uploadOptions, | 9408 uploadOptions: _uploadOptions, |
| 9448 uploadMedia: _uploadMedia, | 9409 uploadMedia: _uploadMedia, |
| 9449 downloadOptions: _downloadOptions); | 9410 downloadOptions: _downloadOptions); |
| 9450 return _response.then((data) => new UserProfile.fromJson(data)); | 9411 return _response.then((data) => new UserProfile.fromJson(data)); |
| 9451 } | 9412 } |
| 9452 | 9413 |
| 9453 /** | 9414 /** |
| 9454 * Retrieves list of user profiles for a user. | 9415 * Retrieves list of user profiles for a user. |
| 9455 * | 9416 * |
| 9456 * Request parameters: | 9417 * Request parameters: |
| 9457 * | 9418 * |
| 9458 * Completes with a [UserProfileList]. | 9419 * Completes with a [UserProfileList]. |
| 9459 * | 9420 * |
| 9460 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9421 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9461 * error. | 9422 * error. |
| 9462 * | 9423 * |
| 9463 * If the used [http.Client] completes with an error when making a REST call, | 9424 * If the used [http.Client] completes with an error when making a REST call, |
| 9464 * this method will complete with the same error. | 9425 * this method will complete with the same error. |
| 9465 */ | 9426 */ |
| 9466 async.Future<UserProfileList> list() { | 9427 async.Future<UserProfileList> list() { |
| 9467 var _url = null; | 9428 var _url = null; |
| 9468 var _queryParams = new core.Map(); | 9429 var _queryParams = new core.Map(); |
| 9469 var _uploadMedia = null; | 9430 var _uploadMedia = null; |
| 9470 var _uploadOptions = null; | 9431 var _uploadOptions = null; |
| 9471 var _downloadOptions = common.DownloadOptions.Metadata; | 9432 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9472 var _body = null; | 9433 var _body = null; |
| 9473 | 9434 |
| 9474 | 9435 |
| 9475 | 9436 |
| 9476 _url = 'userprofiles'; | 9437 _url = 'userprofiles'; |
| 9477 | 9438 |
| 9478 var _response = _requester.request(_url, | 9439 var _response = _requester.request(_url, |
| 9479 "GET", | 9440 "GET", |
| 9480 body: _body, | 9441 body: _body, |
| 9481 queryParams: _queryParams, | 9442 queryParams: _queryParams, |
| 9482 uploadOptions: _uploadOptions, | 9443 uploadOptions: _uploadOptions, |
| 9483 uploadMedia: _uploadMedia, | 9444 uploadMedia: _uploadMedia, |
| 9484 downloadOptions: _downloadOptions); | 9445 downloadOptions: _downloadOptions); |
| 9485 return _response.then((data) => new UserProfileList.fromJson(data)); | 9446 return _response.then((data) => new UserProfileList.fromJson(data)); |
| 9486 } | 9447 } |
| 9487 | 9448 |
| 9488 } | 9449 } |
| 9489 | 9450 |
| 9490 | 9451 |
| 9491 /** Not documented yet. */ | |
| 9492 class UserRolePermissionGroupsResourceApi { | 9452 class UserRolePermissionGroupsResourceApi { |
| 9493 final common_internal.ApiRequester _requester; | 9453 final commons.ApiRequester _requester; |
| 9494 | 9454 |
| 9495 UserRolePermissionGroupsResourceApi(common_internal.ApiRequester client) : | 9455 UserRolePermissionGroupsResourceApi(commons.ApiRequester client) : |
| 9496 _requester = client; | 9456 _requester = client; |
| 9497 | 9457 |
| 9498 /** | 9458 /** |
| 9499 * Gets one user role permission group by ID. | 9459 * Gets one user role permission group by ID. |
| 9500 * | 9460 * |
| 9501 * Request parameters: | 9461 * Request parameters: |
| 9502 * | 9462 * |
| 9503 * [profileId] - User profile ID associated with this request. | 9463 * [profileId] - User profile ID associated with this request. |
| 9504 * | 9464 * |
| 9505 * [id] - User role permission group ID. | 9465 * [id] - User role permission group ID. |
| 9506 * | 9466 * |
| 9507 * Completes with a [UserRolePermissionGroup]. | 9467 * Completes with a [UserRolePermissionGroup]. |
| 9508 * | 9468 * |
| 9509 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9469 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9510 * error. | 9470 * error. |
| 9511 * | 9471 * |
| 9512 * If the used [http.Client] completes with an error when making a REST call, | 9472 * If the used [http.Client] completes with an error when making a REST call, |
| 9513 * this method will complete with the same error. | 9473 * this method will complete with the same error. |
| 9514 */ | 9474 */ |
| 9515 async.Future<UserRolePermissionGroup> get(core.String profileId, core.String i
d) { | 9475 async.Future<UserRolePermissionGroup> get(core.String profileId, core.String i
d) { |
| 9516 var _url = null; | 9476 var _url = null; |
| 9517 var _queryParams = new core.Map(); | 9477 var _queryParams = new core.Map(); |
| 9518 var _uploadMedia = null; | 9478 var _uploadMedia = null; |
| 9519 var _uploadOptions = null; | 9479 var _uploadOptions = null; |
| 9520 var _downloadOptions = common.DownloadOptions.Metadata; | 9480 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9521 var _body = null; | 9481 var _body = null; |
| 9522 | 9482 |
| 9523 if (profileId == null) { | 9483 if (profileId == null) { |
| 9524 throw new core.ArgumentError("Parameter profileId is required."); | 9484 throw new core.ArgumentError("Parameter profileId is required."); |
| 9525 } | 9485 } |
| 9526 if (id == null) { | 9486 if (id == null) { |
| 9527 throw new core.ArgumentError("Parameter id is required."); | 9487 throw new core.ArgumentError("Parameter id is required."); |
| 9528 } | 9488 } |
| 9529 | 9489 |
| 9530 | 9490 |
| 9531 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRolePermissionGroups/' + common_internal.Escaper.ecapeVariable('$id'); | 9491 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRolePermissionGroups/' + commons.Escaper.ecapeVariable('$id'); |
| 9532 | 9492 |
| 9533 var _response = _requester.request(_url, | 9493 var _response = _requester.request(_url, |
| 9534 "GET", | 9494 "GET", |
| 9535 body: _body, | 9495 body: _body, |
| 9536 queryParams: _queryParams, | 9496 queryParams: _queryParams, |
| 9537 uploadOptions: _uploadOptions, | 9497 uploadOptions: _uploadOptions, |
| 9538 uploadMedia: _uploadMedia, | 9498 uploadMedia: _uploadMedia, |
| 9539 downloadOptions: _downloadOptions); | 9499 downloadOptions: _downloadOptions); |
| 9540 return _response.then((data) => new UserRolePermissionGroup.fromJson(data)); | 9500 return _response.then((data) => new UserRolePermissionGroup.fromJson(data)); |
| 9541 } | 9501 } |
| 9542 | 9502 |
| 9543 /** | 9503 /** |
| 9544 * Gets a list of all supported user role permission groups. | 9504 * Gets a list of all supported user role permission groups. |
| 9545 * | 9505 * |
| 9546 * Request parameters: | 9506 * Request parameters: |
| 9547 * | 9507 * |
| 9548 * [profileId] - User profile ID associated with this request. | 9508 * [profileId] - User profile ID associated with this request. |
| 9549 * | 9509 * |
| 9550 * Completes with a [UserRolePermissionGroupsListResponse]. | 9510 * Completes with a [UserRolePermissionGroupsListResponse]. |
| 9551 * | 9511 * |
| 9552 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9512 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9553 * error. | 9513 * error. |
| 9554 * | 9514 * |
| 9555 * If the used [http.Client] completes with an error when making a REST call, | 9515 * If the used [http.Client] completes with an error when making a REST call, |
| 9556 * this method will complete with the same error. | 9516 * this method will complete with the same error. |
| 9557 */ | 9517 */ |
| 9558 async.Future<UserRolePermissionGroupsListResponse> list(core.String profileId)
{ | 9518 async.Future<UserRolePermissionGroupsListResponse> list(core.String profileId)
{ |
| 9559 var _url = null; | 9519 var _url = null; |
| 9560 var _queryParams = new core.Map(); | 9520 var _queryParams = new core.Map(); |
| 9561 var _uploadMedia = null; | 9521 var _uploadMedia = null; |
| 9562 var _uploadOptions = null; | 9522 var _uploadOptions = null; |
| 9563 var _downloadOptions = common.DownloadOptions.Metadata; | 9523 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9564 var _body = null; | 9524 var _body = null; |
| 9565 | 9525 |
| 9566 if (profileId == null) { | 9526 if (profileId == null) { |
| 9567 throw new core.ArgumentError("Parameter profileId is required."); | 9527 throw new core.ArgumentError("Parameter profileId is required."); |
| 9568 } | 9528 } |
| 9569 | 9529 |
| 9570 | 9530 |
| 9571 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRolePermissionGroups'; | 9531 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRolePermissionGroups'; |
| 9572 | 9532 |
| 9573 var _response = _requester.request(_url, | 9533 var _response = _requester.request(_url, |
| 9574 "GET", | 9534 "GET", |
| 9575 body: _body, | 9535 body: _body, |
| 9576 queryParams: _queryParams, | 9536 queryParams: _queryParams, |
| 9577 uploadOptions: _uploadOptions, | 9537 uploadOptions: _uploadOptions, |
| 9578 uploadMedia: _uploadMedia, | 9538 uploadMedia: _uploadMedia, |
| 9579 downloadOptions: _downloadOptions); | 9539 downloadOptions: _downloadOptions); |
| 9580 return _response.then((data) => new UserRolePermissionGroupsListResponse.fro
mJson(data)); | 9540 return _response.then((data) => new UserRolePermissionGroupsListResponse.fro
mJson(data)); |
| 9581 } | 9541 } |
| 9582 | 9542 |
| 9583 } | 9543 } |
| 9584 | 9544 |
| 9585 | 9545 |
| 9586 /** Not documented yet. */ | |
| 9587 class UserRolePermissionsResourceApi { | 9546 class UserRolePermissionsResourceApi { |
| 9588 final common_internal.ApiRequester _requester; | 9547 final commons.ApiRequester _requester; |
| 9589 | 9548 |
| 9590 UserRolePermissionsResourceApi(common_internal.ApiRequester client) : | 9549 UserRolePermissionsResourceApi(commons.ApiRequester client) : |
| 9591 _requester = client; | 9550 _requester = client; |
| 9592 | 9551 |
| 9593 /** | 9552 /** |
| 9594 * Gets one user role permission by ID. | 9553 * Gets one user role permission by ID. |
| 9595 * | 9554 * |
| 9596 * Request parameters: | 9555 * Request parameters: |
| 9597 * | 9556 * |
| 9598 * [profileId] - User profile ID associated with this request. | 9557 * [profileId] - User profile ID associated with this request. |
| 9599 * | 9558 * |
| 9600 * [id] - User role permission ID. | 9559 * [id] - User role permission ID. |
| 9601 * | 9560 * |
| 9602 * Completes with a [UserRolePermission]. | 9561 * Completes with a [UserRolePermission]. |
| 9603 * | 9562 * |
| 9604 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9563 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9605 * error. | 9564 * error. |
| 9606 * | 9565 * |
| 9607 * If the used [http.Client] completes with an error when making a REST call, | 9566 * If the used [http.Client] completes with an error when making a REST call, |
| 9608 * this method will complete with the same error. | 9567 * this method will complete with the same error. |
| 9609 */ | 9568 */ |
| 9610 async.Future<UserRolePermission> get(core.String profileId, core.String id) { | 9569 async.Future<UserRolePermission> get(core.String profileId, core.String id) { |
| 9611 var _url = null; | 9570 var _url = null; |
| 9612 var _queryParams = new core.Map(); | 9571 var _queryParams = new core.Map(); |
| 9613 var _uploadMedia = null; | 9572 var _uploadMedia = null; |
| 9614 var _uploadOptions = null; | 9573 var _uploadOptions = null; |
| 9615 var _downloadOptions = common.DownloadOptions.Metadata; | 9574 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9616 var _body = null; | 9575 var _body = null; |
| 9617 | 9576 |
| 9618 if (profileId == null) { | 9577 if (profileId == null) { |
| 9619 throw new core.ArgumentError("Parameter profileId is required."); | 9578 throw new core.ArgumentError("Parameter profileId is required."); |
| 9620 } | 9579 } |
| 9621 if (id == null) { | 9580 if (id == null) { |
| 9622 throw new core.ArgumentError("Parameter id is required."); | 9581 throw new core.ArgumentError("Parameter id is required."); |
| 9623 } | 9582 } |
| 9624 | 9583 |
| 9625 | 9584 |
| 9626 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRolePermissions/' + common_internal.Escaper.ecapeVariable('$id'); | 9585 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRolePermissions/' + commons.Escaper.ecapeVariable('$id'); |
| 9627 | 9586 |
| 9628 var _response = _requester.request(_url, | 9587 var _response = _requester.request(_url, |
| 9629 "GET", | 9588 "GET", |
| 9630 body: _body, | 9589 body: _body, |
| 9631 queryParams: _queryParams, | 9590 queryParams: _queryParams, |
| 9632 uploadOptions: _uploadOptions, | 9591 uploadOptions: _uploadOptions, |
| 9633 uploadMedia: _uploadMedia, | 9592 uploadMedia: _uploadMedia, |
| 9634 downloadOptions: _downloadOptions); | 9593 downloadOptions: _downloadOptions); |
| 9635 return _response.then((data) => new UserRolePermission.fromJson(data)); | 9594 return _response.then((data) => new UserRolePermission.fromJson(data)); |
| 9636 } | 9595 } |
| 9637 | 9596 |
| 9638 /** | 9597 /** |
| 9639 * Gets a list of user role permissions, possibly filtered. | 9598 * Gets a list of user role permissions, possibly filtered. |
| 9640 * | 9599 * |
| 9641 * Request parameters: | 9600 * Request parameters: |
| 9642 * | 9601 * |
| 9643 * [profileId] - User profile ID associated with this request. | 9602 * [profileId] - User profile ID associated with this request. |
| 9644 * | 9603 * |
| 9645 * [ids] - Select only user role permissions with these IDs. | 9604 * [ids] - Select only user role permissions with these IDs. |
| 9646 * | 9605 * |
| 9647 * Completes with a [UserRolePermissionsListResponse]. | 9606 * Completes with a [UserRolePermissionsListResponse]. |
| 9648 * | 9607 * |
| 9649 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9608 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9650 * error. | 9609 * error. |
| 9651 * | 9610 * |
| 9652 * If the used [http.Client] completes with an error when making a REST call, | 9611 * If the used [http.Client] completes with an error when making a REST call, |
| 9653 * this method will complete with the same error. | 9612 * this method will complete with the same error. |
| 9654 */ | 9613 */ |
| 9655 async.Future<UserRolePermissionsListResponse> list(core.String profileId, {cor
e.List<core.String> ids}) { | 9614 async.Future<UserRolePermissionsListResponse> list(core.String profileId, {cor
e.List<core.String> ids}) { |
| 9656 var _url = null; | 9615 var _url = null; |
| 9657 var _queryParams = new core.Map(); | 9616 var _queryParams = new core.Map(); |
| 9658 var _uploadMedia = null; | 9617 var _uploadMedia = null; |
| 9659 var _uploadOptions = null; | 9618 var _uploadOptions = null; |
| 9660 var _downloadOptions = common.DownloadOptions.Metadata; | 9619 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9661 var _body = null; | 9620 var _body = null; |
| 9662 | 9621 |
| 9663 if (profileId == null) { | 9622 if (profileId == null) { |
| 9664 throw new core.ArgumentError("Parameter profileId is required."); | 9623 throw new core.ArgumentError("Parameter profileId is required."); |
| 9665 } | 9624 } |
| 9666 if (ids != null) { | 9625 if (ids != null) { |
| 9667 _queryParams["ids"] = ids; | 9626 _queryParams["ids"] = ids; |
| 9668 } | 9627 } |
| 9669 | 9628 |
| 9670 | 9629 |
| 9671 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRolePermissions'; | 9630 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRolePermissions'; |
| 9672 | 9631 |
| 9673 var _response = _requester.request(_url, | 9632 var _response = _requester.request(_url, |
| 9674 "GET", | 9633 "GET", |
| 9675 body: _body, | 9634 body: _body, |
| 9676 queryParams: _queryParams, | 9635 queryParams: _queryParams, |
| 9677 uploadOptions: _uploadOptions, | 9636 uploadOptions: _uploadOptions, |
| 9678 uploadMedia: _uploadMedia, | 9637 uploadMedia: _uploadMedia, |
| 9679 downloadOptions: _downloadOptions); | 9638 downloadOptions: _downloadOptions); |
| 9680 return _response.then((data) => new UserRolePermissionsListResponse.fromJson
(data)); | 9639 return _response.then((data) => new UserRolePermissionsListResponse.fromJson
(data)); |
| 9681 } | 9640 } |
| 9682 | 9641 |
| 9683 } | 9642 } |
| 9684 | 9643 |
| 9685 | 9644 |
| 9686 /** Not documented yet. */ | |
| 9687 class UserRolesResourceApi { | 9645 class UserRolesResourceApi { |
| 9688 final common_internal.ApiRequester _requester; | 9646 final commons.ApiRequester _requester; |
| 9689 | 9647 |
| 9690 UserRolesResourceApi(common_internal.ApiRequester client) : | 9648 UserRolesResourceApi(commons.ApiRequester client) : |
| 9691 _requester = client; | 9649 _requester = client; |
| 9692 | 9650 |
| 9693 /** | 9651 /** |
| 9694 * Deletes an existing user role. | 9652 * Deletes an existing user role. |
| 9695 * | 9653 * |
| 9696 * Request parameters: | 9654 * Request parameters: |
| 9697 * | 9655 * |
| 9698 * [profileId] - User profile ID associated with this request. | 9656 * [profileId] - User profile ID associated with this request. |
| 9699 * | 9657 * |
| 9700 * [id] - User role ID. | 9658 * [id] - User role ID. |
| 9701 * | 9659 * |
| 9702 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9660 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9703 * error. | 9661 * error. |
| 9704 * | 9662 * |
| 9705 * If the used [http.Client] completes with an error when making a REST call, | 9663 * If the used [http.Client] completes with an error when making a REST call, |
| 9706 * this method will complete with the same error. | 9664 * this method will complete with the same error. |
| 9707 */ | 9665 */ |
| 9708 async.Future delete(core.String profileId, core.String id) { | 9666 async.Future delete(core.String profileId, core.String id) { |
| 9709 var _url = null; | 9667 var _url = null; |
| 9710 var _queryParams = new core.Map(); | 9668 var _queryParams = new core.Map(); |
| 9711 var _uploadMedia = null; | 9669 var _uploadMedia = null; |
| 9712 var _uploadOptions = null; | 9670 var _uploadOptions = null; |
| 9713 var _downloadOptions = common.DownloadOptions.Metadata; | 9671 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9714 var _body = null; | 9672 var _body = null; |
| 9715 | 9673 |
| 9716 if (profileId == null) { | 9674 if (profileId == null) { |
| 9717 throw new core.ArgumentError("Parameter profileId is required."); | 9675 throw new core.ArgumentError("Parameter profileId is required."); |
| 9718 } | 9676 } |
| 9719 if (id == null) { | 9677 if (id == null) { |
| 9720 throw new core.ArgumentError("Parameter id is required."); | 9678 throw new core.ArgumentError("Parameter id is required."); |
| 9721 } | 9679 } |
| 9722 | 9680 |
| 9723 _downloadOptions = null; | 9681 _downloadOptions = null; |
| 9724 | 9682 |
| 9725 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRoles/' + common_internal.Escaper.ecapeVariable('$id'); | 9683 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRoles/' + commons.Escaper.ecapeVariable('$id'); |
| 9726 | 9684 |
| 9727 var _response = _requester.request(_url, | 9685 var _response = _requester.request(_url, |
| 9728 "DELETE", | 9686 "DELETE", |
| 9729 body: _body, | 9687 body: _body, |
| 9730 queryParams: _queryParams, | 9688 queryParams: _queryParams, |
| 9731 uploadOptions: _uploadOptions, | 9689 uploadOptions: _uploadOptions, |
| 9732 uploadMedia: _uploadMedia, | 9690 uploadMedia: _uploadMedia, |
| 9733 downloadOptions: _downloadOptions); | 9691 downloadOptions: _downloadOptions); |
| 9734 return _response.then((data) => null); | 9692 return _response.then((data) => null); |
| 9735 } | 9693 } |
| 9736 | 9694 |
| 9737 /** | 9695 /** |
| 9738 * Gets one user role by ID. | 9696 * Gets one user role by ID. |
| 9739 * | 9697 * |
| 9740 * Request parameters: | 9698 * Request parameters: |
| 9741 * | 9699 * |
| 9742 * [profileId] - User profile ID associated with this request. | 9700 * [profileId] - User profile ID associated with this request. |
| 9743 * | 9701 * |
| 9744 * [id] - User role ID. | 9702 * [id] - User role ID. |
| 9745 * | 9703 * |
| 9746 * Completes with a [UserRole]. | 9704 * Completes with a [UserRole]. |
| 9747 * | 9705 * |
| 9748 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9749 * error. | 9707 * error. |
| 9750 * | 9708 * |
| 9751 * If the used [http.Client] completes with an error when making a REST call, | 9709 * If the used [http.Client] completes with an error when making a REST call, |
| 9752 * this method will complete with the same error. | 9710 * this method will complete with the same error. |
| 9753 */ | 9711 */ |
| 9754 async.Future<UserRole> get(core.String profileId, core.String id) { | 9712 async.Future<UserRole> get(core.String profileId, core.String id) { |
| 9755 var _url = null; | 9713 var _url = null; |
| 9756 var _queryParams = new core.Map(); | 9714 var _queryParams = new core.Map(); |
| 9757 var _uploadMedia = null; | 9715 var _uploadMedia = null; |
| 9758 var _uploadOptions = null; | 9716 var _uploadOptions = null; |
| 9759 var _downloadOptions = common.DownloadOptions.Metadata; | 9717 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9760 var _body = null; | 9718 var _body = null; |
| 9761 | 9719 |
| 9762 if (profileId == null) { | 9720 if (profileId == null) { |
| 9763 throw new core.ArgumentError("Parameter profileId is required."); | 9721 throw new core.ArgumentError("Parameter profileId is required."); |
| 9764 } | 9722 } |
| 9765 if (id == null) { | 9723 if (id == null) { |
| 9766 throw new core.ArgumentError("Parameter id is required."); | 9724 throw new core.ArgumentError("Parameter id is required."); |
| 9767 } | 9725 } |
| 9768 | 9726 |
| 9769 | 9727 |
| 9770 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRoles/' + common_internal.Escaper.ecapeVariable('$id'); | 9728 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRoles/' + commons.Escaper.ecapeVariable('$id'); |
| 9771 | 9729 |
| 9772 var _response = _requester.request(_url, | 9730 var _response = _requester.request(_url, |
| 9773 "GET", | 9731 "GET", |
| 9774 body: _body, | 9732 body: _body, |
| 9775 queryParams: _queryParams, | 9733 queryParams: _queryParams, |
| 9776 uploadOptions: _uploadOptions, | 9734 uploadOptions: _uploadOptions, |
| 9777 uploadMedia: _uploadMedia, | 9735 uploadMedia: _uploadMedia, |
| 9778 downloadOptions: _downloadOptions); | 9736 downloadOptions: _downloadOptions); |
| 9779 return _response.then((data) => new UserRole.fromJson(data)); | 9737 return _response.then((data) => new UserRole.fromJson(data)); |
| 9780 } | 9738 } |
| 9781 | 9739 |
| 9782 /** | 9740 /** |
| 9783 * Inserts a new user role. | 9741 * Inserts a new user role. |
| 9784 * | 9742 * |
| 9785 * [request] - The metadata request object. | 9743 * [request] - The metadata request object. |
| 9786 * | 9744 * |
| 9787 * Request parameters: | 9745 * Request parameters: |
| 9788 * | 9746 * |
| 9789 * [profileId] - User profile ID associated with this request. | 9747 * [profileId] - User profile ID associated with this request. |
| 9790 * | 9748 * |
| 9791 * Completes with a [UserRole]. | 9749 * Completes with a [UserRole]. |
| 9792 * | 9750 * |
| 9793 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9751 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9794 * error. | 9752 * error. |
| 9795 * | 9753 * |
| 9796 * If the used [http.Client] completes with an error when making a REST call, | 9754 * If the used [http.Client] completes with an error when making a REST call, |
| 9797 * this method will complete with the same error. | 9755 * this method will complete with the same error. |
| 9798 */ | 9756 */ |
| 9799 async.Future<UserRole> insert(UserRole request, core.String profileId) { | 9757 async.Future<UserRole> insert(UserRole request, core.String profileId) { |
| 9800 var _url = null; | 9758 var _url = null; |
| 9801 var _queryParams = new core.Map(); | 9759 var _queryParams = new core.Map(); |
| 9802 var _uploadMedia = null; | 9760 var _uploadMedia = null; |
| 9803 var _uploadOptions = null; | 9761 var _uploadOptions = null; |
| 9804 var _downloadOptions = common.DownloadOptions.Metadata; | 9762 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9805 var _body = null; | 9763 var _body = null; |
| 9806 | 9764 |
| 9807 if (request != null) { | 9765 if (request != null) { |
| 9808 _body = convert.JSON.encode((request).toJson()); | 9766 _body = convert.JSON.encode((request).toJson()); |
| 9809 } | 9767 } |
| 9810 if (profileId == null) { | 9768 if (profileId == null) { |
| 9811 throw new core.ArgumentError("Parameter profileId is required."); | 9769 throw new core.ArgumentError("Parameter profileId is required."); |
| 9812 } | 9770 } |
| 9813 | 9771 |
| 9814 | 9772 |
| 9815 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRoles'; | 9773 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRoles'; |
| 9816 | 9774 |
| 9817 var _response = _requester.request(_url, | 9775 var _response = _requester.request(_url, |
| 9818 "POST", | 9776 "POST", |
| 9819 body: _body, | 9777 body: _body, |
| 9820 queryParams: _queryParams, | 9778 queryParams: _queryParams, |
| 9821 uploadOptions: _uploadOptions, | 9779 uploadOptions: _uploadOptions, |
| 9822 uploadMedia: _uploadMedia, | 9780 uploadMedia: _uploadMedia, |
| 9823 downloadOptions: _downloadOptions); | 9781 downloadOptions: _downloadOptions); |
| 9824 return _response.then((data) => new UserRole.fromJson(data)); | 9782 return _response.then((data) => new UserRole.fromJson(data)); |
| 9825 } | 9783 } |
| 9826 | 9784 |
| 9827 /** | 9785 /** |
| 9828 * Retrieves a list of user roles, possibly filtered. | 9786 * Retrieves a list of user roles, possibly filtered. |
| 9829 * | 9787 * |
| 9830 * Request parameters: | 9788 * Request parameters: |
| 9831 * | 9789 * |
| 9832 * [profileId] - User profile ID associated with this request. | 9790 * [profileId] - User profile ID associated with this request. |
| 9833 * | 9791 * |
| 9834 * [accountUserRoleOnly] - Select only account level user roles not associated | 9792 * [accountUserRoleOnly] - Select only account level user roles not associated |
| 9835 * with any specific subaccount. | 9793 * with any specific subaccount. |
| 9836 * | 9794 * |
| 9837 * [ids] - Select only user roles with the specified IDs. | 9795 * [ids] - Select only user roles with the specified IDs. |
| 9838 * | 9796 * |
| 9839 * [maxResults] - Maximum number of results to return. | 9797 * [maxResults] - Maximum number of results to return. |
| 9840 * | 9798 * |
| 9841 * [pageToken] - Value of the nextPageToken from the previous result page. | 9799 * [pageToken] - Value of the nextPageToken from the previous result page. |
| 9842 * | 9800 * |
| 9843 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) | 9801 * [searchString] - Allows searching for objects by name or ID. Wildcards (*) |
| 9844 * are allowed. For example, "userrole*2015" will return objects with names | 9802 * are allowed. For example, "userrole*2015" will return objects with names |
| 9845 * like "userrole June 2015", "userrole April 2015" or simply "userrole 2015". | 9803 * like "userrole June 2015", "userrole April 2015", or simply "userrole |
| 9846 * Most of the searches also add wildcards implicitly at the start and the end | 9804 * 2015". Most of the searches also add wildcards implicitly at the start and |
| 9847 * of the search string. For example, a search string of "userrole" will match | 9805 * the end of the search string. For example, a search string of "userrole" |
| 9848 * objects with name "my userrole", "userrole 2015" or simply "userrole". | 9806 * will match objects with name "my userrole", "userrole 2015", or simply |
| 9807 * "userrole". |
| 9849 * | 9808 * |
| 9850 * [sortField] - Field by which to sort the list. | 9809 * [sortField] - Field by which to sort the list. |
| 9851 * Possible string values are: | 9810 * Possible string values are: |
| 9852 * - "ID" | 9811 * - "ID" |
| 9853 * - "NAME" | 9812 * - "NAME" |
| 9854 * | 9813 * |
| 9855 * [sortOrder] - Order of sorted results, default is ASCENDING. | 9814 * [sortOrder] - Order of sorted results, default is ASCENDING. |
| 9856 * Possible string values are: | 9815 * Possible string values are: |
| 9857 * - "ASCENDING" | 9816 * - "ASCENDING" |
| 9858 * - "DESCENDING" | 9817 * - "DESCENDING" |
| 9859 * | 9818 * |
| 9860 * [subaccountId] - Select only user roles that belong to this subaccount. | 9819 * [subaccountId] - Select only user roles that belong to this subaccount. |
| 9861 * | 9820 * |
| 9862 * Completes with a [UserRolesListResponse]. | 9821 * Completes with a [UserRolesListResponse]. |
| 9863 * | 9822 * |
| 9864 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9823 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9865 * error. | 9824 * error. |
| 9866 * | 9825 * |
| 9867 * If the used [http.Client] completes with an error when making a REST call, | 9826 * If the used [http.Client] completes with an error when making a REST call, |
| 9868 * this method will complete with the same error. | 9827 * this method will complete with the same error. |
| 9869 */ | 9828 */ |
| 9870 async.Future<UserRolesListResponse> list(core.String profileId, {core.bool acc
ountUserRoleOnly, core.List<core.String> ids, core.int maxResults, core.String p
ageToken, core.String searchString, core.String sortField, core.String sortOrder
, core.String subaccountId}) { | 9829 async.Future<UserRolesListResponse> list(core.String profileId, {core.bool acc
ountUserRoleOnly, core.List<core.String> ids, core.int maxResults, core.String p
ageToken, core.String searchString, core.String sortField, core.String sortOrder
, core.String subaccountId}) { |
| 9871 var _url = null; | 9830 var _url = null; |
| 9872 var _queryParams = new core.Map(); | 9831 var _queryParams = new core.Map(); |
| 9873 var _uploadMedia = null; | 9832 var _uploadMedia = null; |
| 9874 var _uploadOptions = null; | 9833 var _uploadOptions = null; |
| 9875 var _downloadOptions = common.DownloadOptions.Metadata; | 9834 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9876 var _body = null; | 9835 var _body = null; |
| 9877 | 9836 |
| 9878 if (profileId == null) { | 9837 if (profileId == null) { |
| 9879 throw new core.ArgumentError("Parameter profileId is required."); | 9838 throw new core.ArgumentError("Parameter profileId is required."); |
| 9880 } | 9839 } |
| 9881 if (accountUserRoleOnly != null) { | 9840 if (accountUserRoleOnly != null) { |
| 9882 _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"]; | 9841 _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"]; |
| 9883 } | 9842 } |
| 9884 if (ids != null) { | 9843 if (ids != null) { |
| 9885 _queryParams["ids"] = ids; | 9844 _queryParams["ids"] = ids; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 9897 _queryParams["sortField"] = [sortField]; | 9856 _queryParams["sortField"] = [sortField]; |
| 9898 } | 9857 } |
| 9899 if (sortOrder != null) { | 9858 if (sortOrder != null) { |
| 9900 _queryParams["sortOrder"] = [sortOrder]; | 9859 _queryParams["sortOrder"] = [sortOrder]; |
| 9901 } | 9860 } |
| 9902 if (subaccountId != null) { | 9861 if (subaccountId != null) { |
| 9903 _queryParams["subaccountId"] = [subaccountId]; | 9862 _queryParams["subaccountId"] = [subaccountId]; |
| 9904 } | 9863 } |
| 9905 | 9864 |
| 9906 | 9865 |
| 9907 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRoles'; | 9866 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRoles'; |
| 9908 | 9867 |
| 9909 var _response = _requester.request(_url, | 9868 var _response = _requester.request(_url, |
| 9910 "GET", | 9869 "GET", |
| 9911 body: _body, | 9870 body: _body, |
| 9912 queryParams: _queryParams, | 9871 queryParams: _queryParams, |
| 9913 uploadOptions: _uploadOptions, | 9872 uploadOptions: _uploadOptions, |
| 9914 uploadMedia: _uploadMedia, | 9873 uploadMedia: _uploadMedia, |
| 9915 downloadOptions: _downloadOptions); | 9874 downloadOptions: _downloadOptions); |
| 9916 return _response.then((data) => new UserRolesListResponse.fromJson(data)); | 9875 return _response.then((data) => new UserRolesListResponse.fromJson(data)); |
| 9917 } | 9876 } |
| 9918 | 9877 |
| 9919 /** | 9878 /** |
| 9920 * Updates an existing user role. This method supports patch semantics. | 9879 * Updates an existing user role. This method supports patch semantics. |
| 9921 * | 9880 * |
| 9922 * [request] - The metadata request object. | 9881 * [request] - The metadata request object. |
| 9923 * | 9882 * |
| 9924 * Request parameters: | 9883 * Request parameters: |
| 9925 * | 9884 * |
| 9926 * [profileId] - User profile ID associated with this request. | 9885 * [profileId] - User profile ID associated with this request. |
| 9927 * | 9886 * |
| 9928 * [id] - User role ID. | 9887 * [id] - User role ID. |
| 9929 * | 9888 * |
| 9930 * Completes with a [UserRole]. | 9889 * Completes with a [UserRole]. |
| 9931 * | 9890 * |
| 9932 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9891 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9933 * error. | 9892 * error. |
| 9934 * | 9893 * |
| 9935 * If the used [http.Client] completes with an error when making a REST call, | 9894 * If the used [http.Client] completes with an error when making a REST call, |
| 9936 * this method will complete with the same error. | 9895 * this method will complete with the same error. |
| 9937 */ | 9896 */ |
| 9938 async.Future<UserRole> patch(UserRole request, core.String profileId, core.Str
ing id) { | 9897 async.Future<UserRole> patch(UserRole request, core.String profileId, core.Str
ing id) { |
| 9939 var _url = null; | 9898 var _url = null; |
| 9940 var _queryParams = new core.Map(); | 9899 var _queryParams = new core.Map(); |
| 9941 var _uploadMedia = null; | 9900 var _uploadMedia = null; |
| 9942 var _uploadOptions = null; | 9901 var _uploadOptions = null; |
| 9943 var _downloadOptions = common.DownloadOptions.Metadata; | 9902 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9944 var _body = null; | 9903 var _body = null; |
| 9945 | 9904 |
| 9946 if (request != null) { | 9905 if (request != null) { |
| 9947 _body = convert.JSON.encode((request).toJson()); | 9906 _body = convert.JSON.encode((request).toJson()); |
| 9948 } | 9907 } |
| 9949 if (profileId == null) { | 9908 if (profileId == null) { |
| 9950 throw new core.ArgumentError("Parameter profileId is required."); | 9909 throw new core.ArgumentError("Parameter profileId is required."); |
| 9951 } | 9910 } |
| 9952 if (id == null) { | 9911 if (id == null) { |
| 9953 throw new core.ArgumentError("Parameter id is required."); | 9912 throw new core.ArgumentError("Parameter id is required."); |
| 9954 } | 9913 } |
| 9955 _queryParams["id"] = [id]; | 9914 _queryParams["id"] = [id]; |
| 9956 | 9915 |
| 9957 | 9916 |
| 9958 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRoles'; | 9917 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRoles'; |
| 9959 | 9918 |
| 9960 var _response = _requester.request(_url, | 9919 var _response = _requester.request(_url, |
| 9961 "PATCH", | 9920 "PATCH", |
| 9962 body: _body, | 9921 body: _body, |
| 9963 queryParams: _queryParams, | 9922 queryParams: _queryParams, |
| 9964 uploadOptions: _uploadOptions, | 9923 uploadOptions: _uploadOptions, |
| 9965 uploadMedia: _uploadMedia, | 9924 uploadMedia: _uploadMedia, |
| 9966 downloadOptions: _downloadOptions); | 9925 downloadOptions: _downloadOptions); |
| 9967 return _response.then((data) => new UserRole.fromJson(data)); | 9926 return _response.then((data) => new UserRole.fromJson(data)); |
| 9968 } | 9927 } |
| 9969 | 9928 |
| 9970 /** | 9929 /** |
| 9971 * Updates an existing user role. | 9930 * Updates an existing user role. |
| 9972 * | 9931 * |
| 9973 * [request] - The metadata request object. | 9932 * [request] - The metadata request object. |
| 9974 * | 9933 * |
| 9975 * Request parameters: | 9934 * Request parameters: |
| 9976 * | 9935 * |
| 9977 * [profileId] - User profile ID associated with this request. | 9936 * [profileId] - User profile ID associated with this request. |
| 9978 * | 9937 * |
| 9979 * Completes with a [UserRole]. | 9938 * Completes with a [UserRole]. |
| 9980 * | 9939 * |
| 9981 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 9940 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 9982 * error. | 9941 * error. |
| 9983 * | 9942 * |
| 9984 * If the used [http.Client] completes with an error when making a REST call, | 9943 * If the used [http.Client] completes with an error when making a REST call, |
| 9985 * this method will complete with the same error. | 9944 * this method will complete with the same error. |
| 9986 */ | 9945 */ |
| 9987 async.Future<UserRole> update(UserRole request, core.String profileId) { | 9946 async.Future<UserRole> update(UserRole request, core.String profileId) { |
| 9988 var _url = null; | 9947 var _url = null; |
| 9989 var _queryParams = new core.Map(); | 9948 var _queryParams = new core.Map(); |
| 9990 var _uploadMedia = null; | 9949 var _uploadMedia = null; |
| 9991 var _uploadOptions = null; | 9950 var _uploadOptions = null; |
| 9992 var _downloadOptions = common.DownloadOptions.Metadata; | 9951 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 9993 var _body = null; | 9952 var _body = null; |
| 9994 | 9953 |
| 9995 if (request != null) { | 9954 if (request != null) { |
| 9996 _body = convert.JSON.encode((request).toJson()); | 9955 _body = convert.JSON.encode((request).toJson()); |
| 9997 } | 9956 } |
| 9998 if (profileId == null) { | 9957 if (profileId == null) { |
| 9999 throw new core.ArgumentError("Parameter profileId is required."); | 9958 throw new core.ArgumentError("Parameter profileId is required."); |
| 10000 } | 9959 } |
| 10001 | 9960 |
| 10002 | 9961 |
| 10003 _url = 'userprofiles/' + common_internal.Escaper.ecapeVariable('$profileId')
+ '/userRoles'; | 9962 _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/use
rRoles'; |
| 10004 | 9963 |
| 10005 var _response = _requester.request(_url, | 9964 var _response = _requester.request(_url, |
| 10006 "PUT", | 9965 "PUT", |
| 10007 body: _body, | 9966 body: _body, |
| 10008 queryParams: _queryParams, | 9967 queryParams: _queryParams, |
| 10009 uploadOptions: _uploadOptions, | 9968 uploadOptions: _uploadOptions, |
| 10010 uploadMedia: _uploadMedia, | 9969 uploadMedia: _uploadMedia, |
| 10011 downloadOptions: _downloadOptions); | 9970 downloadOptions: _downloadOptions); |
| 10012 return _response.then((data) => new UserRole.fromJson(data)); | 9971 return _response.then((data) => new UserRole.fromJson(data)); |
| 10013 } | 9972 } |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10492 if (name != null) { | 10451 if (name != null) { |
| 10493 _json["name"] = name; | 10452 _json["name"] = name; |
| 10494 } | 10453 } |
| 10495 return _json; | 10454 return _json; |
| 10496 } | 10455 } |
| 10497 } | 10456 } |
| 10498 | 10457 |
| 10499 | 10458 |
| 10500 /** Account Permission Group List Response */ | 10459 /** Account Permission Group List Response */ |
| 10501 class AccountPermissionGroupsListResponse { | 10460 class AccountPermissionGroupsListResponse { |
| 10502 /** Account permission group collection */ | 10461 /** Account permission group collection. */ |
| 10503 core.List<AccountPermissionGroup> accountPermissionGroups; | 10462 core.List<AccountPermissionGroup> accountPermissionGroups; |
| 10504 | 10463 |
| 10505 /** | 10464 /** |
| 10506 * Identifies what kind of resource this is. Value: the fixed string | 10465 * Identifies what kind of resource this is. Value: the fixed string |
| 10507 * "dfareporting#accountPermissionGroupsListResponse". | 10466 * "dfareporting#accountPermissionGroupsListResponse". |
| 10508 */ | 10467 */ |
| 10509 core.String kind; | 10468 core.String kind; |
| 10510 | 10469 |
| 10511 | 10470 |
| 10512 AccountPermissionGroupsListResponse(); | 10471 AccountPermissionGroupsListResponse(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 10528 if (kind != null) { | 10487 if (kind != null) { |
| 10529 _json["kind"] = kind; | 10488 _json["kind"] = kind; |
| 10530 } | 10489 } |
| 10531 return _json; | 10490 return _json; |
| 10532 } | 10491 } |
| 10533 } | 10492 } |
| 10534 | 10493 |
| 10535 | 10494 |
| 10536 /** Account Permission List Response */ | 10495 /** Account Permission List Response */ |
| 10537 class AccountPermissionsListResponse { | 10496 class AccountPermissionsListResponse { |
| 10538 /** Account permission collection */ | 10497 /** Account permission collection. */ |
| 10539 core.List<AccountPermission> accountPermissions; | 10498 core.List<AccountPermission> accountPermissions; |
| 10540 | 10499 |
| 10541 /** | 10500 /** |
| 10542 * Identifies what kind of resource this is. Value: the fixed string | 10501 * Identifies what kind of resource this is. Value: the fixed string |
| 10543 * "dfareporting#accountPermissionsListResponse". | 10502 * "dfareporting#accountPermissionsListResponse". |
| 10544 */ | 10503 */ |
| 10545 core.String kind; | 10504 core.String kind; |
| 10546 | 10505 |
| 10547 | 10506 |
| 10548 AccountPermissionsListResponse(); | 10507 AccountPermissionsListResponse(); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10783 if (userRoleId != null) { | 10742 if (userRoleId != null) { |
| 10784 _json["userRoleId"] = userRoleId; | 10743 _json["userRoleId"] = userRoleId; |
| 10785 } | 10744 } |
| 10786 return _json; | 10745 return _json; |
| 10787 } | 10746 } |
| 10788 } | 10747 } |
| 10789 | 10748 |
| 10790 | 10749 |
| 10791 /** Account User Profile List Response */ | 10750 /** Account User Profile List Response */ |
| 10792 class AccountUserProfilesListResponse { | 10751 class AccountUserProfilesListResponse { |
| 10793 /** Account user profile collection */ | 10752 /** Account user profile collection. */ |
| 10794 core.List<AccountUserProfile> accountUserProfiles; | 10753 core.List<AccountUserProfile> accountUserProfiles; |
| 10795 | 10754 |
| 10796 /** | 10755 /** |
| 10797 * Identifies what kind of resource this is. Value: the fixed string | 10756 * Identifies what kind of resource this is. Value: the fixed string |
| 10798 * "dfareporting#accountUserProfilesListResponse". | 10757 * "dfareporting#accountUserProfilesListResponse". |
| 10799 */ | 10758 */ |
| 10800 core.String kind; | 10759 core.String kind; |
| 10801 | 10760 |
| 10802 /** Pagination token to be used for the next list operation. */ | 10761 /** Pagination token to be used for the next list operation. */ |
| 10803 core.String nextPageToken; | 10762 core.String nextPageToken; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 10828 if (nextPageToken != null) { | 10787 if (nextPageToken != null) { |
| 10829 _json["nextPageToken"] = nextPageToken; | 10788 _json["nextPageToken"] = nextPageToken; |
| 10830 } | 10789 } |
| 10831 return _json; | 10790 return _json; |
| 10832 } | 10791 } |
| 10833 } | 10792 } |
| 10834 | 10793 |
| 10835 | 10794 |
| 10836 /** Account List Response */ | 10795 /** Account List Response */ |
| 10837 class AccountsListResponse { | 10796 class AccountsListResponse { |
| 10838 /** Account collection */ | 10797 /** Account collection. */ |
| 10839 core.List<Account> accounts; | 10798 core.List<Account> accounts; |
| 10840 | 10799 |
| 10841 /** | 10800 /** |
| 10842 * Identifies what kind of resource this is. Value: the fixed string | 10801 * Identifies what kind of resource this is. Value: the fixed string |
| 10843 * "dfareporting#accountsListResponse". | 10802 * "dfareporting#accountsListResponse". |
| 10844 */ | 10803 */ |
| 10845 core.String kind; | 10804 core.String kind; |
| 10846 | 10805 |
| 10847 /** Pagination token to be used for the next list operation. */ | 10806 /** Pagination token to be used for the next list operation. */ |
| 10848 core.String nextPageToken; | 10807 core.String nextPageToken; |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11362 if (type != null) { | 11321 if (type != null) { |
| 11363 _json["type"] = type; | 11322 _json["type"] = type; |
| 11364 } | 11323 } |
| 11365 return _json; | 11324 return _json; |
| 11366 } | 11325 } |
| 11367 } | 11326 } |
| 11368 | 11327 |
| 11369 | 11328 |
| 11370 /** Ad List Response */ | 11329 /** Ad List Response */ |
| 11371 class AdsListResponse { | 11330 class AdsListResponse { |
| 11372 /** Ad collection */ | 11331 /** Ad collection. */ |
| 11373 core.List<Ad> ads; | 11332 core.List<Ad> ads; |
| 11374 | 11333 |
| 11375 /** | 11334 /** |
| 11376 * Identifies what kind of resource this is. Value: the fixed string | 11335 * Identifies what kind of resource this is. Value: the fixed string |
| 11377 * "dfareporting#adsListResponse". | 11336 * "dfareporting#adsListResponse". |
| 11378 */ | 11337 */ |
| 11379 core.String kind; | 11338 core.String kind; |
| 11380 | 11339 |
| 11381 /** Pagination token to be used for the next list operation. */ | 11340 /** Pagination token to be used for the next list operation. */ |
| 11382 core.String nextPageToken; | 11341 core.String nextPageToken; |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11648 if (name != null) { | 11607 if (name != null) { |
| 11649 _json["name"] = name; | 11608 _json["name"] = name; |
| 11650 } | 11609 } |
| 11651 return _json; | 11610 return _json; |
| 11652 } | 11611 } |
| 11653 } | 11612 } |
| 11654 | 11613 |
| 11655 | 11614 |
| 11656 /** Advertiser Group List Response */ | 11615 /** Advertiser Group List Response */ |
| 11657 class AdvertiserGroupsListResponse { | 11616 class AdvertiserGroupsListResponse { |
| 11658 /** Advertiser group collection */ | 11617 /** Advertiser group collection. */ |
| 11659 core.List<AdvertiserGroup> advertiserGroups; | 11618 core.List<AdvertiserGroup> advertiserGroups; |
| 11660 | 11619 |
| 11661 /** | 11620 /** |
| 11662 * Identifies what kind of resource this is. Value: the fixed string | 11621 * Identifies what kind of resource this is. Value: the fixed string |
| 11663 * "dfareporting#advertiserGroupsListResponse". | 11622 * "dfareporting#advertiserGroupsListResponse". |
| 11664 */ | 11623 */ |
| 11665 core.String kind; | 11624 core.String kind; |
| 11666 | 11625 |
| 11667 /** Pagination token to be used for the next list operation. */ | 11626 /** Pagination token to be used for the next list operation. */ |
| 11668 core.String nextPageToken; | 11627 core.String nextPageToken; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 11693 if (nextPageToken != null) { | 11652 if (nextPageToken != null) { |
| 11694 _json["nextPageToken"] = nextPageToken; | 11653 _json["nextPageToken"] = nextPageToken; |
| 11695 } | 11654 } |
| 11696 return _json; | 11655 return _json; |
| 11697 } | 11656 } |
| 11698 } | 11657 } |
| 11699 | 11658 |
| 11700 | 11659 |
| 11701 /** Advertiser List Response */ | 11660 /** Advertiser List Response */ |
| 11702 class AdvertisersListResponse { | 11661 class AdvertisersListResponse { |
| 11703 /** Advertiser collection */ | 11662 /** Advertiser collection. */ |
| 11704 core.List<Advertiser> advertisers; | 11663 core.List<Advertiser> advertisers; |
| 11705 | 11664 |
| 11706 /** | 11665 /** |
| 11707 * Identifies what kind of resource this is. Value: the fixed string | 11666 * Identifies what kind of resource this is. Value: the fixed string |
| 11708 * "dfareporting#advertisersListResponse". | 11667 * "dfareporting#advertisersListResponse". |
| 11709 */ | 11668 */ |
| 11710 core.String kind; | 11669 core.String kind; |
| 11711 | 11670 |
| 11712 /** Pagination token to be used for the next list operation. */ | 11671 /** Pagination token to be used for the next list operation. */ |
| 11713 core.String nextPageToken; | 11672 core.String nextPageToken; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11933 if (name != null) { | 11892 if (name != null) { |
| 11934 _json["name"] = name; | 11893 _json["name"] = name; |
| 11935 } | 11894 } |
| 11936 return _json; | 11895 return _json; |
| 11937 } | 11896 } |
| 11938 } | 11897 } |
| 11939 | 11898 |
| 11940 | 11899 |
| 11941 /** Browser List Response */ | 11900 /** Browser List Response */ |
| 11942 class BrowsersListResponse { | 11901 class BrowsersListResponse { |
| 11943 /** Browser collection */ | 11902 /** Browser collection. */ |
| 11944 core.List<Browser> browsers; | 11903 core.List<Browser> browsers; |
| 11945 | 11904 |
| 11946 /** | 11905 /** |
| 11947 * Identifies what kind of resource this is. Value: the fixed string | 11906 * Identifies what kind of resource this is. Value: the fixed string |
| 11948 * "dfareporting#browsersListResponse". | 11907 * "dfareporting#browsersListResponse". |
| 11949 */ | 11908 */ |
| 11950 core.String kind; | 11909 core.String kind; |
| 11951 | 11910 |
| 11952 | 11911 |
| 11953 BrowsersListResponse(); | 11912 BrowsersListResponse(); |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12364 if (nextPageToken != null) { | 12323 if (nextPageToken != null) { |
| 12365 _json["nextPageToken"] = nextPageToken; | 12324 _json["nextPageToken"] = nextPageToken; |
| 12366 } | 12325 } |
| 12367 return _json; | 12326 return _json; |
| 12368 } | 12327 } |
| 12369 } | 12328 } |
| 12370 | 12329 |
| 12371 | 12330 |
| 12372 /** Campaign List Response */ | 12331 /** Campaign List Response */ |
| 12373 class CampaignsListResponse { | 12332 class CampaignsListResponse { |
| 12374 /** Campaign collection */ | 12333 /** Campaign collection. */ |
| 12375 core.List<Campaign> campaigns; | 12334 core.List<Campaign> campaigns; |
| 12376 | 12335 |
| 12377 /** | 12336 /** |
| 12378 * Identifies what kind of resource this is. Value: the fixed string | 12337 * Identifies what kind of resource this is. Value: the fixed string |
| 12379 * "dfareporting#campaignsListResponse". | 12338 * "dfareporting#campaignsListResponse". |
| 12380 */ | 12339 */ |
| 12381 core.String kind; | 12340 core.String kind; |
| 12382 | 12341 |
| 12383 /** Pagination token to be used for the next list operation. */ | 12342 /** Pagination token to be used for the next list operation. */ |
| 12384 core.String nextPageToken; | 12343 core.String nextPageToken; |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12560 if (userProfileName != null) { | 12519 if (userProfileName != null) { |
| 12561 _json["userProfileName"] = userProfileName; | 12520 _json["userProfileName"] = userProfileName; |
| 12562 } | 12521 } |
| 12563 return _json; | 12522 return _json; |
| 12564 } | 12523 } |
| 12565 } | 12524 } |
| 12566 | 12525 |
| 12567 | 12526 |
| 12568 /** Change Log List Response */ | 12527 /** Change Log List Response */ |
| 12569 class ChangeLogsListResponse { | 12528 class ChangeLogsListResponse { |
| 12570 /** Change log collection */ | 12529 /** Change log collection. */ |
| 12571 core.List<ChangeLog> changeLogs; | 12530 core.List<ChangeLog> changeLogs; |
| 12572 | 12531 |
| 12573 /** | 12532 /** |
| 12574 * Identifies what kind of resource this is. Value: the fixed string | 12533 * Identifies what kind of resource this is. Value: the fixed string |
| 12575 * "dfareporting#changeLogsListResponse". | 12534 * "dfareporting#changeLogsListResponse". |
| 12576 */ | 12535 */ |
| 12577 core.String kind; | 12536 core.String kind; |
| 12578 | 12537 |
| 12579 /** Pagination token to be used for the next list operation. */ | 12538 /** Pagination token to be used for the next list operation. */ |
| 12580 core.String nextPageToken; | 12539 core.String nextPageToken; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 12605 if (nextPageToken != null) { | 12564 if (nextPageToken != null) { |
| 12606 _json["nextPageToken"] = nextPageToken; | 12565 _json["nextPageToken"] = nextPageToken; |
| 12607 } | 12566 } |
| 12608 return _json; | 12567 return _json; |
| 12609 } | 12568 } |
| 12610 } | 12569 } |
| 12611 | 12570 |
| 12612 | 12571 |
| 12613 /** City List Response */ | 12572 /** City List Response */ |
| 12614 class CitiesListResponse { | 12573 class CitiesListResponse { |
| 12615 /** City collection */ | 12574 /** City collection. */ |
| 12616 core.List<City> cities; | 12575 core.List<City> cities; |
| 12617 | 12576 |
| 12618 /** | 12577 /** |
| 12619 * Identifies what kind of resource this is. Value: the fixed string | 12578 * Identifies what kind of resource this is. Value: the fixed string |
| 12620 * "dfareporting#citiesListResponse". | 12579 * "dfareporting#citiesListResponse". |
| 12621 */ | 12580 */ |
| 12622 core.String kind; | 12581 core.String kind; |
| 12623 | 12582 |
| 12624 | 12583 |
| 12625 CitiesListResponse(); | 12584 CitiesListResponse(); |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13002 } | 12961 } |
| 13003 if (reportCompatibleFields != null) { | 12962 if (reportCompatibleFields != null) { |
| 13004 _json["reportCompatibleFields"] = (reportCompatibleFields).toJson(); | 12963 _json["reportCompatibleFields"] = (reportCompatibleFields).toJson(); |
| 13005 } | 12964 } |
| 13006 return _json; | 12965 return _json; |
| 13007 } | 12966 } |
| 13008 } | 12967 } |
| 13009 | 12968 |
| 13010 | 12969 |
| 13011 /** | 12970 /** |
| 13012 * Contains information about a connection type that can be targeted by ads. | 12971 * Contains information about an internet connection type that can be targeted |
| 12972 * by ads. Clients can use the connection type to target mobile vs. broadband |
| 12973 * users. |
| 13013 */ | 12974 */ |
| 13014 class ConnectionType { | 12975 class ConnectionType { |
| 13015 /** ID of this connection type. */ | 12976 /** ID of this connection type. */ |
| 13016 core.String id; | 12977 core.String id; |
| 13017 | 12978 |
| 13018 /** | 12979 /** |
| 13019 * Identifies what kind of resource this is. Value: the fixed string | 12980 * Identifies what kind of resource this is. Value: the fixed string |
| 13020 * "dfareporting#connectionType". | 12981 * "dfareporting#connectionType". |
| 13021 */ | 12982 */ |
| 13022 core.String kind; | 12983 core.String kind; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 13050 if (name != null) { | 13011 if (name != null) { |
| 13051 _json["name"] = name; | 13012 _json["name"] = name; |
| 13052 } | 13013 } |
| 13053 return _json; | 13014 return _json; |
| 13054 } | 13015 } |
| 13055 } | 13016 } |
| 13056 | 13017 |
| 13057 | 13018 |
| 13058 /** Connection Type List Response */ | 13019 /** Connection Type List Response */ |
| 13059 class ConnectionTypesListResponse { | 13020 class ConnectionTypesListResponse { |
| 13060 /** Connection Type Collection. */ | 13021 /** Collection of connection types such as broadband and mobile. */ |
| 13061 core.List<ConnectionType> connectionTypes; | 13022 core.List<ConnectionType> connectionTypes; |
| 13062 | 13023 |
| 13063 /** | 13024 /** |
| 13064 * Identifies what kind of resource this is. Value: the fixed string | 13025 * Identifies what kind of resource this is. Value: the fixed string |
| 13065 * "dfareporting#connectionTypesListResponse". | 13026 * "dfareporting#connectionTypesListResponse". |
| 13066 */ | 13027 */ |
| 13067 core.String kind; | 13028 core.String kind; |
| 13068 | 13029 |
| 13069 | 13030 |
| 13070 ConnectionTypesListResponse(); | 13031 ConnectionTypesListResponse(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 13086 if (kind != null) { | 13047 if (kind != null) { |
| 13087 _json["kind"] = kind; | 13048 _json["kind"] = kind; |
| 13088 } | 13049 } |
| 13089 return _json; | 13050 return _json; |
| 13090 } | 13051 } |
| 13091 } | 13052 } |
| 13092 | 13053 |
| 13093 | 13054 |
| 13094 /** Content Category List Response */ | 13055 /** Content Category List Response */ |
| 13095 class ContentCategoriesListResponse { | 13056 class ContentCategoriesListResponse { |
| 13096 /** Content category collection */ | 13057 /** Content category collection. */ |
| 13097 core.List<ContentCategory> contentCategories; | 13058 core.List<ContentCategory> contentCategories; |
| 13098 | 13059 |
| 13099 /** | 13060 /** |
| 13100 * Identifies what kind of resource this is. Value: the fixed string | 13061 * Identifies what kind of resource this is. Value: the fixed string |
| 13101 * "dfareporting#contentCategoriesListResponse". | 13062 * "dfareporting#contentCategoriesListResponse". |
| 13102 */ | 13063 */ |
| 13103 core.String kind; | 13064 core.String kind; |
| 13104 | 13065 |
| 13105 /** Pagination token to be used for the next list operation. */ | 13066 /** Pagination token to be used for the next list operation. */ |
| 13106 core.String nextPageToken; | 13067 core.String nextPageToken; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 13134 return _json; | 13095 return _json; |
| 13135 } | 13096 } |
| 13136 } | 13097 } |
| 13137 | 13098 |
| 13138 | 13099 |
| 13139 /** | 13100 /** |
| 13140 * Organizes placements according to the contents of their associated webpages. | 13101 * Organizes placements according to the contents of their associated webpages. |
| 13141 */ | 13102 */ |
| 13142 class ContentCategory { | 13103 class ContentCategory { |
| 13143 /** | 13104 /** |
| 13144 * Account ID of this content category.This is a read-only field that can be | 13105 * Account ID of this content category. This is a read-only field that can be |
| 13145 * left blank. | 13106 * left blank. |
| 13146 */ | 13107 */ |
| 13147 core.String accountId; | 13108 core.String accountId; |
| 13148 | 13109 |
| 13149 /** Description of this content category. */ | 13110 /** Description of this content category. */ |
| 13150 core.String description; | 13111 core.String description; |
| 13151 | 13112 |
| 13152 /** | 13113 /** |
| 13153 * ID of this content category. This is a read-only, auto-generated field. | 13114 * ID of this content category. This is a read-only, auto-generated field. |
| 13154 */ | 13115 */ |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13205 if (name != null) { | 13166 if (name != null) { |
| 13206 _json["name"] = name; | 13167 _json["name"] = name; |
| 13207 } | 13168 } |
| 13208 return _json; | 13169 return _json; |
| 13209 } | 13170 } |
| 13210 } | 13171 } |
| 13211 | 13172 |
| 13212 | 13173 |
| 13213 /** Country List Response */ | 13174 /** Country List Response */ |
| 13214 class CountriesListResponse { | 13175 class CountriesListResponse { |
| 13215 /** Country collection */ | 13176 /** Country collection. */ |
| 13216 core.List<Country> countries; | 13177 core.List<Country> countries; |
| 13217 | 13178 |
| 13218 /** | 13179 /** |
| 13219 * Identifies what kind of resource this is. Value: the fixed string | 13180 * Identifies what kind of resource this is. Value: the fixed string |
| 13220 * "dfareporting#countriesListResponse". | 13181 * "dfareporting#countriesListResponse". |
| 13221 */ | 13182 */ |
| 13222 core.String kind; | 13183 core.String kind; |
| 13223 | 13184 |
| 13224 | 13185 |
| 13225 CountriesListResponse(); | 13186 CountriesListResponse(); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13506 | 13467 |
| 13507 /** | 13468 /** |
| 13508 * HTML code for the creative. This is a required field when applicable. This | 13469 * HTML code for the creative. This is a required field when applicable. This |
| 13509 * field is ignored if htmlCodeLocked is false. Applicable to the following | 13470 * field is ignored if htmlCodeLocked is false. Applicable to the following |
| 13510 * creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all | 13471 * creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all |
| 13511 * RICH_MEDIA. | 13472 * RICH_MEDIA. |
| 13512 */ | 13473 */ |
| 13513 core.String htmlCode; | 13474 core.String htmlCode; |
| 13514 | 13475 |
| 13515 /** | 13476 /** |
| 13516 * Whether HTML code is DCM generated or manually entered. Set to true to | 13477 * Whether HTML code is DCM-generated or manually entered. Set to true to |
| 13517 * ignore changes to htmlCode. Applicable to the following creative types: | 13478 * ignore changes to htmlCode. Applicable to the following creative types: |
| 13518 * FLASH_INPAGE and HTML5_BANNER. | 13479 * FLASH_INPAGE and HTML5_BANNER. |
| 13519 */ | 13480 */ |
| 13520 core.bool htmlCodeLocked; | 13481 core.bool htmlCodeLocked; |
| 13521 | 13482 |
| 13522 /** | 13483 /** |
| 13523 * ID of this creative. This is a read-only, auto-generated field. Applicable | 13484 * ID of this creative. This is a read-only, auto-generated field. Applicable |
| 13524 * to all creative types. | 13485 * to all creative types. |
| 13525 */ | 13486 */ |
| 13526 core.String id; | 13487 core.String id; |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14221 */ | 14182 */ |
| 14222 core.bool hideFlashObjects; | 14183 core.bool hideFlashObjects; |
| 14223 | 14184 |
| 14224 /** | 14185 /** |
| 14225 * Whether to hide selection boxes flag for an asset. Applicable to the | 14186 * Whether to hide selection boxes flag for an asset. Applicable to the |
| 14226 * following creative types: all RICH_MEDIA. | 14187 * following creative types: all RICH_MEDIA. |
| 14227 */ | 14188 */ |
| 14228 core.bool hideSelectionBoxes; | 14189 core.bool hideSelectionBoxes; |
| 14229 | 14190 |
| 14230 /** | 14191 /** |
| 14231 * Wheter the asset is horizontally locked. This is a read-only field. | 14192 * Whether the asset is horizontally locked. This is a read-only field. |
| 14232 * Applicable to the following creative types: all RICH_MEDIA. | 14193 * Applicable to the following creative types: all RICH_MEDIA. |
| 14233 */ | 14194 */ |
| 14234 core.bool horizontallyLocked; | 14195 core.bool horizontallyLocked; |
| 14235 | 14196 |
| 14236 /** | 14197 /** |
| 14237 * Numeric ID of this creative asset. This is a required field and should not | 14198 * Numeric ID of this creative asset. This is a required field and should not |
| 14238 * be modified. Applicable to all but the following creative types: all | 14199 * be modified. Applicable to all but the following creative types: all |
| 14239 * REDIRECT and TRACKING_TEXT. | 14200 * REDIRECT and TRACKING_TEXT. |
| 14240 */ | 14201 */ |
| 14241 core.String id; | 14202 core.String id; |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15049 /** Exit URL of the event. This field is used only for exit events. */ | 15010 /** Exit URL of the event. This field is used only for exit events. */ |
| 15050 core.String exitUrl; | 15011 core.String exitUrl; |
| 15051 | 15012 |
| 15052 /** | 15013 /** |
| 15053 * ID of this event. This is a required field and should not be modified after | 15014 * ID of this event. This is a required field and should not be modified after |
| 15054 * insertion. | 15015 * insertion. |
| 15055 */ | 15016 */ |
| 15056 core.String id; | 15017 core.String id; |
| 15057 | 15018 |
| 15058 /** | 15019 /** |
| 15059 * Properties for rich media pop-up windows. This field is used only for exit | 15020 * Properties for rich media popup windows. This field is used only for exit |
| 15060 * events. | 15021 * events. |
| 15061 */ | 15022 */ |
| 15062 PopupWindowProperties popupWindowProperties; | 15023 PopupWindowProperties popupWindowProperties; |
| 15063 | 15024 |
| 15064 /** | 15025 /** |
| 15065 * Target type used by the event. | 15026 * Target type used by the event. |
| 15066 * Possible string values are: | 15027 * Possible string values are: |
| 15067 * - "TARGET_BLANK" | 15028 * - "TARGET_BLANK" |
| 15068 * - "TARGET_PARENT" | 15029 * - "TARGET_PARENT" |
| 15069 * - "TARGET_POPUP" | 15030 * - "TARGET_POPUP" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15325 if (value != null) { | 15286 if (value != null) { |
| 15326 _json["value"] = value; | 15287 _json["value"] = value; |
| 15327 } | 15288 } |
| 15328 return _json; | 15289 return _json; |
| 15329 } | 15290 } |
| 15330 } | 15291 } |
| 15331 | 15292 |
| 15332 | 15293 |
| 15333 /** Creative Field Value List Response */ | 15294 /** Creative Field Value List Response */ |
| 15334 class CreativeFieldValuesListResponse { | 15295 class CreativeFieldValuesListResponse { |
| 15335 /** Creative field value collection */ | 15296 /** Creative field value collection. */ |
| 15336 core.List<CreativeFieldValue> creativeFieldValues; | 15297 core.List<CreativeFieldValue> creativeFieldValues; |
| 15337 | 15298 |
| 15338 /** | 15299 /** |
| 15339 * Identifies what kind of resource this is. Value: the fixed string | 15300 * Identifies what kind of resource this is. Value: the fixed string |
| 15340 * "dfareporting#creativeFieldValuesListResponse". | 15301 * "dfareporting#creativeFieldValuesListResponse". |
| 15341 */ | 15302 */ |
| 15342 core.String kind; | 15303 core.String kind; |
| 15343 | 15304 |
| 15344 /** Pagination token to be used for the next list operation. */ | 15305 /** Pagination token to be used for the next list operation. */ |
| 15345 core.String nextPageToken; | 15306 core.String nextPageToken; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 15370 if (nextPageToken != null) { | 15331 if (nextPageToken != null) { |
| 15371 _json["nextPageToken"] = nextPageToken; | 15332 _json["nextPageToken"] = nextPageToken; |
| 15372 } | 15333 } |
| 15373 return _json; | 15334 return _json; |
| 15374 } | 15335 } |
| 15375 } | 15336 } |
| 15376 | 15337 |
| 15377 | 15338 |
| 15378 /** Creative Field List Response */ | 15339 /** Creative Field List Response */ |
| 15379 class CreativeFieldsListResponse { | 15340 class CreativeFieldsListResponse { |
| 15380 /** Creative field collection */ | 15341 /** Creative field collection. */ |
| 15381 core.List<CreativeField> creativeFields; | 15342 core.List<CreativeField> creativeFields; |
| 15382 | 15343 |
| 15383 /** | 15344 /** |
| 15384 * Identifies what kind of resource this is. Value: the fixed string | 15345 * Identifies what kind of resource this is. Value: the fixed string |
| 15385 * "dfareporting#creativeFieldsListResponse". | 15346 * "dfareporting#creativeFieldsListResponse". |
| 15386 */ | 15347 */ |
| 15387 core.String kind; | 15348 core.String kind; |
| 15388 | 15349 |
| 15389 /** Pagination token to be used for the next list operation. */ | 15350 /** Pagination token to be used for the next list operation. */ |
| 15390 core.String nextPageToken; | 15351 core.String nextPageToken; |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15566 if (creativeGroupNumber != null) { | 15527 if (creativeGroupNumber != null) { |
| 15567 _json["creativeGroupNumber"] = creativeGroupNumber; | 15528 _json["creativeGroupNumber"] = creativeGroupNumber; |
| 15568 } | 15529 } |
| 15569 return _json; | 15530 return _json; |
| 15570 } | 15531 } |
| 15571 } | 15532 } |
| 15572 | 15533 |
| 15573 | 15534 |
| 15574 /** Creative Group List Response */ | 15535 /** Creative Group List Response */ |
| 15575 class CreativeGroupsListResponse { | 15536 class CreativeGroupsListResponse { |
| 15576 /** Creative group collection */ | 15537 /** Creative group collection. */ |
| 15577 core.List<CreativeGroup> creativeGroups; | 15538 core.List<CreativeGroup> creativeGroups; |
| 15578 | 15539 |
| 15579 /** | 15540 /** |
| 15580 * Identifies what kind of resource this is. Value: the fixed string | 15541 * Identifies what kind of resource this is. Value: the fixed string |
| 15581 * "dfareporting#creativeGroupsListResponse". | 15542 * "dfareporting#creativeGroupsListResponse". |
| 15582 */ | 15543 */ |
| 15583 core.String kind; | 15544 core.String kind; |
| 15584 | 15545 |
| 15585 /** Pagination token to be used for the next list operation. */ | 15546 /** Pagination token to be used for the next list operation. */ |
| 15586 core.String nextPageToken; | 15547 core.String nextPageToken; |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15783 if (iFrameHeader != null) { | 15744 if (iFrameHeader != null) { |
| 15784 _json["iFrameHeader"] = iFrameHeader; | 15745 _json["iFrameHeader"] = iFrameHeader; |
| 15785 } | 15746 } |
| 15786 return _json; | 15747 return _json; |
| 15787 } | 15748 } |
| 15788 } | 15749 } |
| 15789 | 15750 |
| 15790 | 15751 |
| 15791 /** Creative List Response */ | 15752 /** Creative List Response */ |
| 15792 class CreativesListResponse { | 15753 class CreativesListResponse { |
| 15793 /** Creative collection */ | 15754 /** Creative collection. */ |
| 15794 core.List<Creative> creatives; | 15755 core.List<Creative> creatives; |
| 15795 | 15756 |
| 15796 /** | 15757 /** |
| 15797 * Identifies what kind of resource this is. Value: the fixed string | 15758 * Identifies what kind of resource this is. Value: the fixed string |
| 15798 * "dfareporting#creativesListResponse". | 15759 * "dfareporting#creativesListResponse". |
| 15799 */ | 15760 */ |
| 15800 core.String kind; | 15761 core.String kind; |
| 15801 | 15762 |
| 15802 /** Pagination token to be used for the next list operation. */ | 15763 /** Pagination token to be used for the next list operation. */ |
| 15803 core.String nextPageToken; | 15764 core.String nextPageToken; |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16222 | 16183 |
| 16223 /** DFP network name for this directory site. */ | 16184 /** DFP network name for this directory site. */ |
| 16224 core.String dfpNetworkName; | 16185 core.String dfpNetworkName; |
| 16225 | 16186 |
| 16226 /** Whether this directory site accepts programmatic placements. */ | 16187 /** Whether this directory site accepts programmatic placements. */ |
| 16227 core.bool programmaticPlacementAccepted; | 16188 core.bool programmaticPlacementAccepted; |
| 16228 | 16189 |
| 16229 /** Whether this directory site accepts publisher-paid tags. */ | 16190 /** Whether this directory site accepts publisher-paid tags. */ |
| 16230 core.bool pubPaidPlacementAccepted; | 16191 core.bool pubPaidPlacementAccepted; |
| 16231 | 16192 |
| 16232 /** Whether this directory site is available only via Publisher Portal. */ | 16193 /** |
| 16194 * Whether this directory site is available only via DoubleClick Publisher |
| 16195 * Portal. |
| 16196 */ |
| 16233 core.bool publisherPortalOnly; | 16197 core.bool publisherPortalOnly; |
| 16234 | 16198 |
| 16235 | 16199 |
| 16236 DfpSettings(); | 16200 DfpSettings(); |
| 16237 | 16201 |
| 16238 DfpSettings.fromJson(core.Map _json) { | 16202 DfpSettings.fromJson(core.Map _json) { |
| 16239 if (_json.containsKey("dfp_network_code")) { | 16203 if (_json.containsKey("dfp_network_code")) { |
| 16240 dfpNetworkCode = _json["dfp_network_code"]; | 16204 dfpNetworkCode = _json["dfp_network_code"]; |
| 16241 } | 16205 } |
| 16242 if (_json.containsKey("dfp_network_name")) { | 16206 if (_json.containsKey("dfp_network_name")) { |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16962 /** Whether this site accepts in-stream video ads. */ | 16926 /** Whether this site accepts in-stream video ads. */ |
| 16963 core.bool instreamVideoPlacementAccepted; | 16927 core.bool instreamVideoPlacementAccepted; |
| 16964 | 16928 |
| 16965 /** Whether this site accepts interstitial ads. */ | 16929 /** Whether this site accepts interstitial ads. */ |
| 16966 core.bool interstitialPlacementAccepted; | 16930 core.bool interstitialPlacementAccepted; |
| 16967 | 16931 |
| 16968 /** Whether this directory site has disabled Nielsen OCR reach ratings. */ | 16932 /** Whether this directory site has disabled Nielsen OCR reach ratings. */ |
| 16969 core.bool nielsenOcrOptOut; | 16933 core.bool nielsenOcrOptOut; |
| 16970 | 16934 |
| 16971 /** | 16935 /** |
| 16972 * Whether this directory site has disabled generation of Verification tags. | 16936 * Whether this directory site has disabled generation of Verification ins |
| 16937 * tags. |
| 16973 */ | 16938 */ |
| 16974 core.bool verificationTagOptOut; | 16939 core.bool verificationTagOptOut; |
| 16975 | 16940 |
| 16976 /** | 16941 /** |
| 16977 * Whether this directory site has disabled active view for in-stream video | 16942 * Whether this directory site has disabled active view for in-stream video |
| 16978 * creatives. | 16943 * creatives. |
| 16979 */ | 16944 */ |
| 16980 core.bool videoActiveViewOptOut; | 16945 core.bool videoActiveViewOptOut; |
| 16981 | 16946 |
| 16982 | 16947 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17029 if (videoActiveViewOptOut != null) { | 16994 if (videoActiveViewOptOut != null) { |
| 17030 _json["videoActiveViewOptOut"] = videoActiveViewOptOut; | 16995 _json["videoActiveViewOptOut"] = videoActiveViewOptOut; |
| 17031 } | 16996 } |
| 17032 return _json; | 16997 return _json; |
| 17033 } | 16998 } |
| 17034 } | 16999 } |
| 17035 | 17000 |
| 17036 | 17001 |
| 17037 /** Directory Site List Response */ | 17002 /** Directory Site List Response */ |
| 17038 class DirectorySitesListResponse { | 17003 class DirectorySitesListResponse { |
| 17039 /** Directory site collection */ | 17004 /** Directory site collection. */ |
| 17040 core.List<DirectorySite> directorySites; | 17005 core.List<DirectorySite> directorySites; |
| 17041 | 17006 |
| 17042 /** | 17007 /** |
| 17043 * Identifies what kind of resource this is. Value: the fixed string | 17008 * Identifies what kind of resource this is. Value: the fixed string |
| 17044 * "dfareporting#directorySitesListResponse". | 17009 * "dfareporting#directorySitesListResponse". |
| 17045 */ | 17010 */ |
| 17046 core.String kind; | 17011 core.String kind; |
| 17047 | 17012 |
| 17048 /** Pagination token to be used for the next list operation. */ | 17013 /** Pagination token to be used for the next list operation. */ |
| 17049 core.String nextPageToken; | 17014 core.String nextPageToken; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17335 if (id != null) { | 17300 if (id != null) { |
| 17336 _json["id"] = id; | 17301 _json["id"] = id; |
| 17337 } | 17302 } |
| 17338 return _json; | 17303 return _json; |
| 17339 } | 17304 } |
| 17340 } | 17305 } |
| 17341 | 17306 |
| 17342 | 17307 |
| 17343 /** Event Tag List Response */ | 17308 /** Event Tag List Response */ |
| 17344 class EventTagsListResponse { | 17309 class EventTagsListResponse { |
| 17345 /** Event tag collection */ | 17310 /** Event tag collection. */ |
| 17346 core.List<EventTag> eventTags; | 17311 core.List<EventTag> eventTags; |
| 17347 | 17312 |
| 17348 /** | 17313 /** |
| 17349 * Identifies what kind of resource this is. Value: the fixed string | 17314 * Identifies what kind of resource this is. Value: the fixed string |
| 17350 * "dfareporting#eventTagsListResponse". | 17315 * "dfareporting#eventTagsListResponse". |
| 17351 */ | 17316 */ |
| 17352 core.String kind; | 17317 core.String kind; |
| 17353 | 17318 |
| 17354 | 17319 |
| 17355 EventTagsListResponse(); | 17320 EventTagsListResponse(); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17622 if (kind != null) { | 17587 if (kind != null) { |
| 17623 _json["kind"] = kind; | 17588 _json["kind"] = kind; |
| 17624 } | 17589 } |
| 17625 return _json; | 17590 return _json; |
| 17626 } | 17591 } |
| 17627 } | 17592 } |
| 17628 | 17593 |
| 17629 | 17594 |
| 17630 /** Floodlight Activity List Response */ | 17595 /** Floodlight Activity List Response */ |
| 17631 class FloodlightActivitiesListResponse { | 17596 class FloodlightActivitiesListResponse { |
| 17632 /** Floodlight activity collection */ | 17597 /** Floodlight activity collection. */ |
| 17633 core.List<FloodlightActivity> floodlightActivities; | 17598 core.List<FloodlightActivity> floodlightActivities; |
| 17634 | 17599 |
| 17635 /** | 17600 /** |
| 17636 * Identifies what kind of resource this is. Value: the fixed string | 17601 * Identifies what kind of resource this is. Value: the fixed string |
| 17637 * "dfareporting#floodlightActivitiesListResponse". | 17602 * "dfareporting#floodlightActivitiesListResponse". |
| 17638 */ | 17603 */ |
| 17639 core.String kind; | 17604 core.String kind; |
| 17640 | 17605 |
| 17641 /** Pagination token to be used for the next list operation. */ | 17606 /** Pagination token to be used for the next list operation. */ |
| 17642 core.String nextPageToken; | 17607 core.String nextPageToken; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 17668 _json["nextPageToken"] = nextPageToken; | 17633 _json["nextPageToken"] = nextPageToken; |
| 17669 } | 17634 } |
| 17670 return _json; | 17635 return _json; |
| 17671 } | 17636 } |
| 17672 } | 17637 } |
| 17673 | 17638 |
| 17674 | 17639 |
| 17675 /** Contains properties of a Floodlight activity. */ | 17640 /** Contains properties of a Floodlight activity. */ |
| 17676 class FloodlightActivity { | 17641 class FloodlightActivity { |
| 17677 /** | 17642 /** |
| 17678 * Account ID of this floodlight activity.This is a read-only field that can | 17643 * Account ID of this floodlight activity. This is a read-only field that can |
| 17679 * be left blank. | 17644 * be left blank. |
| 17680 */ | 17645 */ |
| 17681 core.String accountId; | 17646 core.String accountId; |
| 17682 | 17647 |
| 17683 /** | 17648 /** |
| 17684 * Advertiser ID of this floodlight activity. If this field is left blank, the | 17649 * Advertiser ID of this floodlight activity. If this field is left blank, the |
| 17685 * value will be copied over either from the activity group's advertiser or | 17650 * value will be copied over either from the activity group's advertiser or |
| 17686 * the existing activity's advertiser. | 17651 * the existing activity's advertiser. |
| 17687 */ | 17652 */ |
| 17688 core.String advertiserId; | 17653 core.String advertiserId; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17768 | 17733 |
| 17769 /** Whether this activity is archived. */ | 17734 /** Whether this activity is archived. */ |
| 17770 core.bool hidden; | 17735 core.bool hidden; |
| 17771 | 17736 |
| 17772 /** | 17737 /** |
| 17773 * ID of this floodlight activity. This is a read-only, auto-generated field. | 17738 * ID of this floodlight activity. This is a read-only, auto-generated field. |
| 17774 */ | 17739 */ |
| 17775 core.String id; | 17740 core.String id; |
| 17776 | 17741 |
| 17777 /** | 17742 /** |
| 17778 * Dimension value for the ID of this floodlight activity.This is a read-only, | 17743 * Dimension value for the ID of this floodlight activity. This is a |
| 17779 * auto-generated field. | 17744 * read-only, auto-generated field. |
| 17780 */ | 17745 */ |
| 17781 DimensionValue idDimensionValue; | 17746 DimensionValue idDimensionValue; |
| 17782 | 17747 |
| 17783 /** Whether the image tag is enabled for this activity. */ | 17748 /** Whether the image tag is enabled for this activity. */ |
| 17784 core.bool imageTagEnabled; | 17749 core.bool imageTagEnabled; |
| 17785 | 17750 |
| 17786 /** | 17751 /** |
| 17787 * Identifies what kind of resource this is. Value: the fixed string | 17752 * Identifies what kind of resource this is. Value: the fixed string |
| 17788 * "dfareporting#floodlightActivity". | 17753 * "dfareporting#floodlightActivity". |
| 17789 */ | 17754 */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 17807 /** | 17772 /** |
| 17808 * Whether the floodlight activity is SSL-compliant. This is a read-only | 17773 * Whether the floodlight activity is SSL-compliant. This is a read-only |
| 17809 * field, its value detected by the system from the floodlight tags. | 17774 * field, its value detected by the system from the floodlight tags. |
| 17810 */ | 17775 */ |
| 17811 core.bool sslCompliant; | 17776 core.bool sslCompliant; |
| 17812 | 17777 |
| 17813 /** Whether this floodlight activity must be SSL-compliant. */ | 17778 /** Whether this floodlight activity must be SSL-compliant. */ |
| 17814 core.bool sslRequired; | 17779 core.bool sslRequired; |
| 17815 | 17780 |
| 17816 /** | 17781 /** |
| 17817 * Subaccount ID of this floodlight activity.This is a read-only field that | 17782 * Subaccount ID of this floodlight activity. This is a read-only field that |
| 17818 * can be left blank. | 17783 * can be left blank. |
| 17819 */ | 17784 */ |
| 17820 core.String subaccountId; | 17785 core.String subaccountId; |
| 17821 | 17786 |
| 17822 /** | 17787 /** |
| 17823 * Tag format type for the floodlight activity. If left blank, the tag format | 17788 * Tag format type for the floodlight activity. If left blank, the tag format |
| 17824 * will default to HTML. | 17789 * will default to HTML. |
| 17825 * Possible string values are: | 17790 * Possible string values are: |
| 17826 * - "HTML" | 17791 * - "HTML" |
| 17827 * - "XHTML" | 17792 * - "XHTML" |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18084 _json["tag"] = tag; | 18049 _json["tag"] = tag; |
| 18085 } | 18050 } |
| 18086 return _json; | 18051 return _json; |
| 18087 } | 18052 } |
| 18088 } | 18053 } |
| 18089 | 18054 |
| 18090 | 18055 |
| 18091 /** Contains properties of a Floodlight activity group. */ | 18056 /** Contains properties of a Floodlight activity group. */ |
| 18092 class FloodlightActivityGroup { | 18057 class FloodlightActivityGroup { |
| 18093 /** | 18058 /** |
| 18094 * Account ID of this floodlight activity group.This is a read-only field that | 18059 * Account ID of this floodlight activity group. This is a read-only field |
| 18095 * can be left blank. | 18060 * that can be left blank. |
| 18096 */ | 18061 */ |
| 18097 core.String accountId; | 18062 core.String accountId; |
| 18098 | 18063 |
| 18099 /** | 18064 /** |
| 18100 * Advertiser ID of this floodlight activity group. If this field is left | 18065 * Advertiser ID of this floodlight activity group. If this field is left |
| 18101 * blank, the value will be copied over either from the floodlight | 18066 * blank, the value will be copied over either from the floodlight |
| 18102 * configuration's advertiser or from the existing activity group's | 18067 * configuration's advertiser or from the existing activity group's |
| 18103 * advertiser. | 18068 * advertiser. |
| 18104 */ | 18069 */ |
| 18105 core.String advertiserId; | 18070 core.String advertiserId; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18157 * use to identify the activity group that the activity belongs to. This is | 18122 * use to identify the activity group that the activity belongs to. This is |
| 18158 * optional: if empty, a new tag string will be generated for you. This string | 18123 * optional: if empty, a new tag string will be generated for you. This string |
| 18159 * must be 1 to 8 characters long, with valid characters being | 18124 * must be 1 to 8 characters long, with valid characters being |
| 18160 * [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity | 18125 * [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity |
| 18161 * groups of the same floodlight configuration. This field is read-only after | 18126 * groups of the same floodlight configuration. This field is read-only after |
| 18162 * insertion. | 18127 * insertion. |
| 18163 */ | 18128 */ |
| 18164 core.String tagString; | 18129 core.String tagString; |
| 18165 | 18130 |
| 18166 /** | 18131 /** |
| 18167 * The type of floodlight activity group. This is a required field that is | 18132 * Type of the floodlight activity group. This is a required field that is |
| 18168 * read-only after insertion. | 18133 * read-only after insertion. |
| 18169 * Possible string values are: | 18134 * Possible string values are: |
| 18170 * - "COUNTER" | 18135 * - "COUNTER" |
| 18171 * - "SALE" | 18136 * - "SALE" |
| 18172 */ | 18137 */ |
| 18173 core.String type; | 18138 core.String type; |
| 18174 | 18139 |
| 18175 | 18140 |
| 18176 FloodlightActivityGroup(); | 18141 FloodlightActivityGroup(); |
| 18177 | 18142 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18252 if (type != null) { | 18217 if (type != null) { |
| 18253 _json["type"] = type; | 18218 _json["type"] = type; |
| 18254 } | 18219 } |
| 18255 return _json; | 18220 return _json; |
| 18256 } | 18221 } |
| 18257 } | 18222 } |
| 18258 | 18223 |
| 18259 | 18224 |
| 18260 /** Floodlight Activity Group List Response */ | 18225 /** Floodlight Activity Group List Response */ |
| 18261 class FloodlightActivityGroupsListResponse { | 18226 class FloodlightActivityGroupsListResponse { |
| 18262 /** Floodlight activity group collection */ | 18227 /** Floodlight activity group collection. */ |
| 18263 core.List<FloodlightActivityGroup> floodlightActivityGroups; | 18228 core.List<FloodlightActivityGroup> floodlightActivityGroups; |
| 18264 | 18229 |
| 18265 /** | 18230 /** |
| 18266 * Identifies what kind of resource this is. Value: the fixed string | 18231 * Identifies what kind of resource this is. Value: the fixed string |
| 18267 * "dfareporting#floodlightActivityGroupsListResponse". | 18232 * "dfareporting#floodlightActivityGroupsListResponse". |
| 18268 */ | 18233 */ |
| 18269 core.String kind; | 18234 core.String kind; |
| 18270 | 18235 |
| 18271 /** Pagination token to be used for the next list operation. */ | 18236 /** Pagination token to be used for the next list operation. */ |
| 18272 core.String nextPageToken; | 18237 core.String nextPageToken; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18394 /** | 18359 /** |
| 18395 * Dimension value for the ID of the advertiser. This is a read-only, | 18360 * Dimension value for the ID of the advertiser. This is a read-only, |
| 18396 * auto-generated field. | 18361 * auto-generated field. |
| 18397 */ | 18362 */ |
| 18398 DimensionValue advertiserIdDimensionValue; | 18363 DimensionValue advertiserIdDimensionValue; |
| 18399 | 18364 |
| 18400 /** Whether advertiser data is shared with Google Analytics. */ | 18365 /** Whether advertiser data is shared with Google Analytics. */ |
| 18401 core.bool analyticsDataSharingEnabled; | 18366 core.bool analyticsDataSharingEnabled; |
| 18402 | 18367 |
| 18403 /** | 18368 /** |
| 18404 * Whether the exposure to conversion report is enabled. This report shows | 18369 * Whether the exposure-to-conversion report is enabled. This report shows |
| 18405 * detailed pathway information on up to 10 of the most recent ad exposures | 18370 * detailed pathway information on up to 10 of the most recent ad exposures |
| 18406 * seen by a user before converting. | 18371 * seen by a user before converting. |
| 18407 */ | 18372 */ |
| 18408 core.bool exposureToConversionEnabled; | 18373 core.bool exposureToConversionEnabled; |
| 18409 | 18374 |
| 18410 /** | 18375 /** |
| 18411 * Day that will be counted as the first day of the week in reports. This is a | 18376 * Day that will be counted as the first day of the week in reports. This is a |
| 18412 * required field. | 18377 * required field. |
| 18413 * Possible string values are: | 18378 * Possible string values are: |
| 18414 * - "MONDAY" | 18379 * - "MONDAY" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18586 if (userDefinedVariableConfigurations != null) { | 18551 if (userDefinedVariableConfigurations != null) { |
| 18587 _json["userDefinedVariableConfigurations"] = userDefinedVariableConfigurat
ions.map((value) => (value).toJson()).toList(); | 18552 _json["userDefinedVariableConfigurations"] = userDefinedVariableConfigurat
ions.map((value) => (value).toJson()).toList(); |
| 18588 } | 18553 } |
| 18589 return _json; | 18554 return _json; |
| 18590 } | 18555 } |
| 18591 } | 18556 } |
| 18592 | 18557 |
| 18593 | 18558 |
| 18594 /** Floodlight Configuration List Response */ | 18559 /** Floodlight Configuration List Response */ |
| 18595 class FloodlightConfigurationsListResponse { | 18560 class FloodlightConfigurationsListResponse { |
| 18596 /** Floodlight configuration collection */ | 18561 /** Floodlight configuration collection. */ |
| 18597 core.List<FloodlightConfiguration> floodlightConfigurations; | 18562 core.List<FloodlightConfiguration> floodlightConfigurations; |
| 18598 | 18563 |
| 18599 /** | 18564 /** |
| 18600 * Identifies what kind of resource this is. Value: the fixed string | 18565 * Identifies what kind of resource this is. Value: the fixed string |
| 18601 * "dfareporting#floodlightConfigurationsListResponse". | 18566 * "dfareporting#floodlightConfigurationsListResponse". |
| 18602 */ | 18567 */ |
| 18603 core.String kind; | 18568 core.String kind; |
| 18604 | 18569 |
| 18605 | 18570 |
| 18606 FloodlightConfigurationsListResponse(); | 18571 FloodlightConfigurationsListResponse(); |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18939 /** ID of this landing page. This is a read-only, auto-generated field. */ | 18904 /** ID of this landing page. This is a read-only, auto-generated field. */ |
| 18940 core.String id; | 18905 core.String id; |
| 18941 | 18906 |
| 18942 /** | 18907 /** |
| 18943 * Identifies what kind of resource this is. Value: the fixed string | 18908 * Identifies what kind of resource this is. Value: the fixed string |
| 18944 * "dfareporting#landingPage". | 18909 * "dfareporting#landingPage". |
| 18945 */ | 18910 */ |
| 18946 core.String kind; | 18911 core.String kind; |
| 18947 | 18912 |
| 18948 /** | 18913 /** |
| 18949 * Name of this landing page. This is a required field. Must be less than 256 | 18914 * Name of this landing page. This is a required field. It must be less than |
| 18950 * characters long, and must be unique among landing pages of the same | 18915 * 256 characters long, and must be unique among landing pages of the same |
| 18951 * campaign. | 18916 * campaign. |
| 18952 */ | 18917 */ |
| 18953 core.String name; | 18918 core.String name; |
| 18954 | 18919 |
| 18955 /** URL of this landing page. This is a required field. */ | 18920 /** URL of this landing page. This is a required field. */ |
| 18956 core.String url; | 18921 core.String url; |
| 18957 | 18922 |
| 18958 | 18923 |
| 18959 LandingPage(); | 18924 LandingPage(); |
| 18960 | 18925 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19243 | 19208 |
| 19244 | 19209 |
| 19245 /** Metro List Response */ | 19210 /** Metro List Response */ |
| 19246 class MetrosListResponse { | 19211 class MetrosListResponse { |
| 19247 /** | 19212 /** |
| 19248 * Identifies what kind of resource this is. Value: the fixed string | 19213 * Identifies what kind of resource this is. Value: the fixed string |
| 19249 * "dfareporting#metrosListResponse". | 19214 * "dfareporting#metrosListResponse". |
| 19250 */ | 19215 */ |
| 19251 core.String kind; | 19216 core.String kind; |
| 19252 | 19217 |
| 19253 /** Metro collection */ | 19218 /** Metro collection. */ |
| 19254 core.List<Metro> metros; | 19219 core.List<Metro> metros; |
| 19255 | 19220 |
| 19256 | 19221 |
| 19257 MetrosListResponse(); | 19222 MetrosListResponse(); |
| 19258 | 19223 |
| 19259 MetrosListResponse.fromJson(core.Map _json) { | 19224 MetrosListResponse.fromJson(core.Map _json) { |
| 19260 if (_json.containsKey("kind")) { | 19225 if (_json.containsKey("kind")) { |
| 19261 kind = _json["kind"]; | 19226 kind = _json["kind"]; |
| 19262 } | 19227 } |
| 19263 if (_json.containsKey("metros")) { | 19228 if (_json.containsKey("metros")) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19342 | 19307 |
| 19343 | 19308 |
| 19344 /** Mobile Carrier List Response */ | 19309 /** Mobile Carrier List Response */ |
| 19345 class MobileCarriersListResponse { | 19310 class MobileCarriersListResponse { |
| 19346 /** | 19311 /** |
| 19347 * Identifies what kind of resource this is. Value: the fixed string | 19312 * Identifies what kind of resource this is. Value: the fixed string |
| 19348 * "dfareporting#mobileCarriersListResponse". | 19313 * "dfareporting#mobileCarriersListResponse". |
| 19349 */ | 19314 */ |
| 19350 core.String kind; | 19315 core.String kind; |
| 19351 | 19316 |
| 19352 /** Mobile carrier collection */ | 19317 /** Mobile carrier collection. */ |
| 19353 core.List<MobileCarrier> mobileCarriers; | 19318 core.List<MobileCarrier> mobileCarriers; |
| 19354 | 19319 |
| 19355 | 19320 |
| 19356 MobileCarriersListResponse(); | 19321 MobileCarriersListResponse(); |
| 19357 | 19322 |
| 19358 MobileCarriersListResponse.fromJson(core.Map _json) { | 19323 MobileCarriersListResponse.fromJson(core.Map _json) { |
| 19359 if (_json.containsKey("kind")) { | 19324 if (_json.containsKey("kind")) { |
| 19360 kind = _json["kind"]; | 19325 kind = _json["kind"]; |
| 19361 } | 19326 } |
| 19362 if (_json.containsKey("mobileCarriers")) { | 19327 if (_json.containsKey("mobileCarriers")) { |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19581 /** | 19546 /** |
| 19582 * Identifies what kind of resource this is. Value: the fixed string | 19547 * Identifies what kind of resource this is. Value: the fixed string |
| 19583 * "dfareporting#operatingSystemVersion". | 19548 * "dfareporting#operatingSystemVersion". |
| 19584 */ | 19549 */ |
| 19585 core.String kind; | 19550 core.String kind; |
| 19586 | 19551 |
| 19587 /** Major version (leftmost number) of this operating system version. */ | 19552 /** Major version (leftmost number) of this operating system version. */ |
| 19588 core.String majorVersion; | 19553 core.String majorVersion; |
| 19589 | 19554 |
| 19590 /** | 19555 /** |
| 19591 * Minor version (number after first dot on the left) of this operating system | 19556 * Minor version (number after the first dot) of this operating system |
| 19592 * version. | 19557 * version. |
| 19593 */ | 19558 */ |
| 19594 core.String minorVersion; | 19559 core.String minorVersion; |
| 19595 | 19560 |
| 19596 /** Name of this operating system version. */ | 19561 /** Name of this operating system version. */ |
| 19597 core.String name; | 19562 core.String name; |
| 19598 | 19563 |
| 19599 /** Operating system of this operating system version. */ | 19564 /** Operating system of this operating system version. */ |
| 19600 OperatingSystem operatingSystem; | 19565 OperatingSystem operatingSystem; |
| 19601 | 19566 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19649 | 19614 |
| 19650 | 19615 |
| 19651 /** Operating System Version List Response */ | 19616 /** Operating System Version List Response */ |
| 19652 class OperatingSystemVersionsListResponse { | 19617 class OperatingSystemVersionsListResponse { |
| 19653 /** | 19618 /** |
| 19654 * Identifies what kind of resource this is. Value: the fixed string | 19619 * Identifies what kind of resource this is. Value: the fixed string |
| 19655 * "dfareporting#operatingSystemVersionsListResponse". | 19620 * "dfareporting#operatingSystemVersionsListResponse". |
| 19656 */ | 19621 */ |
| 19657 core.String kind; | 19622 core.String kind; |
| 19658 | 19623 |
| 19659 /** Operating system version collection */ | 19624 /** Operating system version collection. */ |
| 19660 core.List<OperatingSystemVersion> operatingSystemVersions; | 19625 core.List<OperatingSystemVersion> operatingSystemVersions; |
| 19661 | 19626 |
| 19662 | 19627 |
| 19663 OperatingSystemVersionsListResponse(); | 19628 OperatingSystemVersionsListResponse(); |
| 19664 | 19629 |
| 19665 OperatingSystemVersionsListResponse.fromJson(core.Map _json) { | 19630 OperatingSystemVersionsListResponse.fromJson(core.Map _json) { |
| 19666 if (_json.containsKey("kind")) { | 19631 if (_json.containsKey("kind")) { |
| 19667 kind = _json["kind"]; | 19632 kind = _json["kind"]; |
| 19668 } | 19633 } |
| 19669 if (_json.containsKey("operatingSystemVersions")) { | 19634 if (_json.containsKey("operatingSystemVersions")) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 19685 | 19650 |
| 19686 | 19651 |
| 19687 /** Operating System List Response */ | 19652 /** Operating System List Response */ |
| 19688 class OperatingSystemsListResponse { | 19653 class OperatingSystemsListResponse { |
| 19689 /** | 19654 /** |
| 19690 * Identifies what kind of resource this is. Value: the fixed string | 19655 * Identifies what kind of resource this is. Value: the fixed string |
| 19691 * "dfareporting#operatingSystemsListResponse". | 19656 * "dfareporting#operatingSystemsListResponse". |
| 19692 */ | 19657 */ |
| 19693 core.String kind; | 19658 core.String kind; |
| 19694 | 19659 |
| 19695 /** Operating system collection */ | 19660 /** Operating system collection. */ |
| 19696 core.List<OperatingSystem> operatingSystems; | 19661 core.List<OperatingSystem> operatingSystems; |
| 19697 | 19662 |
| 19698 | 19663 |
| 19699 OperatingSystemsListResponse(); | 19664 OperatingSystemsListResponse(); |
| 19700 | 19665 |
| 19701 OperatingSystemsListResponse.fromJson(core.Map _json) { | 19666 OperatingSystemsListResponse.fromJson(core.Map _json) { |
| 19702 if (_json.containsKey("kind")) { | 19667 if (_json.containsKey("kind")) { |
| 19703 kind = _json["kind"]; | 19668 kind = _json["kind"]; |
| 19704 } | 19669 } |
| 19705 if (_json.containsKey("operatingSystems")) { | 19670 if (_json.containsKey("operatingSystems")) { |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20684 class PlacementGroupsListResponse { | 20649 class PlacementGroupsListResponse { |
| 20685 /** | 20650 /** |
| 20686 * Identifies what kind of resource this is. Value: the fixed string | 20651 * Identifies what kind of resource this is. Value: the fixed string |
| 20687 * "dfareporting#placementGroupsListResponse". | 20652 * "dfareporting#placementGroupsListResponse". |
| 20688 */ | 20653 */ |
| 20689 core.String kind; | 20654 core.String kind; |
| 20690 | 20655 |
| 20691 /** Pagination token to be used for the next list operation. */ | 20656 /** Pagination token to be used for the next list operation. */ |
| 20692 core.String nextPageToken; | 20657 core.String nextPageToken; |
| 20693 | 20658 |
| 20694 /** Placement group collection */ | 20659 /** Placement group collection. */ |
| 20695 core.List<PlacementGroup> placementGroups; | 20660 core.List<PlacementGroup> placementGroups; |
| 20696 | 20661 |
| 20697 | 20662 |
| 20698 PlacementGroupsListResponse(); | 20663 PlacementGroupsListResponse(); |
| 20699 | 20664 |
| 20700 PlacementGroupsListResponse.fromJson(core.Map _json) { | 20665 PlacementGroupsListResponse.fromJson(core.Map _json) { |
| 20701 if (_json.containsKey("kind")) { | 20666 if (_json.containsKey("kind")) { |
| 20702 kind = _json["kind"]; | 20667 kind = _json["kind"]; |
| 20703 } | 20668 } |
| 20704 if (_json.containsKey("nextPageToken")) { | 20669 if (_json.containsKey("nextPageToken")) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 20729 class PlacementStrategiesListResponse { | 20694 class PlacementStrategiesListResponse { |
| 20730 /** | 20695 /** |
| 20731 * Identifies what kind of resource this is. Value: the fixed string | 20696 * Identifies what kind of resource this is. Value: the fixed string |
| 20732 * "dfareporting#placementStrategiesListResponse". | 20697 * "dfareporting#placementStrategiesListResponse". |
| 20733 */ | 20698 */ |
| 20734 core.String kind; | 20699 core.String kind; |
| 20735 | 20700 |
| 20736 /** Pagination token to be used for the next list operation. */ | 20701 /** Pagination token to be used for the next list operation. */ |
| 20737 core.String nextPageToken; | 20702 core.String nextPageToken; |
| 20738 | 20703 |
| 20739 /** Placement strategy collection */ | 20704 /** Placement strategy collection. */ |
| 20740 core.List<PlacementStrategy> placementStrategies; | 20705 core.List<PlacementStrategy> placementStrategies; |
| 20741 | 20706 |
| 20742 | 20707 |
| 20743 PlacementStrategiesListResponse(); | 20708 PlacementStrategiesListResponse(); |
| 20744 | 20709 |
| 20745 PlacementStrategiesListResponse.fromJson(core.Map _json) { | 20710 PlacementStrategiesListResponse.fromJson(core.Map _json) { |
| 20746 if (_json.containsKey("kind")) { | 20711 if (_json.containsKey("kind")) { |
| 20747 kind = _json["kind"]; | 20712 kind = _json["kind"]; |
| 20748 } | 20713 } |
| 20749 if (_json.containsKey("nextPageToken")) { | 20714 if (_json.containsKey("nextPageToken")) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20783 */ | 20748 */ |
| 20784 core.String id; | 20749 core.String id; |
| 20785 | 20750 |
| 20786 /** | 20751 /** |
| 20787 * Identifies what kind of resource this is. Value: the fixed string | 20752 * Identifies what kind of resource this is. Value: the fixed string |
| 20788 * "dfareporting#placementStrategy". | 20753 * "dfareporting#placementStrategy". |
| 20789 */ | 20754 */ |
| 20790 core.String kind; | 20755 core.String kind; |
| 20791 | 20756 |
| 20792 /** | 20757 /** |
| 20793 * Name of this placement strategy. This is a required field. Must be less | 20758 * Name of this placement strategy. This is a required field. It must be less |
| 20794 * than 256 characters long and unique among placement strategies of the same | 20759 * than 256 characters long and unique among placement strategies of the same |
| 20795 * account. | 20760 * account. |
| 20796 */ | 20761 */ |
| 20797 core.String name; | 20762 core.String name; |
| 20798 | 20763 |
| 20799 | 20764 |
| 20800 PlacementStrategy(); | 20765 PlacementStrategy(); |
| 20801 | 20766 |
| 20802 PlacementStrategy.fromJson(core.Map _json) { | 20767 PlacementStrategy.fromJson(core.Map _json) { |
| 20803 if (_json.containsKey("accountId")) { | 20768 if (_json.containsKey("accountId")) { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20906 class PlacementsListResponse { | 20871 class PlacementsListResponse { |
| 20907 /** | 20872 /** |
| 20908 * Identifies what kind of resource this is. Value: the fixed string | 20873 * Identifies what kind of resource this is. Value: the fixed string |
| 20909 * "dfareporting#placementsListResponse". | 20874 * "dfareporting#placementsListResponse". |
| 20910 */ | 20875 */ |
| 20911 core.String kind; | 20876 core.String kind; |
| 20912 | 20877 |
| 20913 /** Pagination token to be used for the next list operation. */ | 20878 /** Pagination token to be used for the next list operation. */ |
| 20914 core.String nextPageToken; | 20879 core.String nextPageToken; |
| 20915 | 20880 |
| 20916 /** Placement collection */ | 20881 /** Placement collection. */ |
| 20917 core.List<Placement> placements; | 20882 core.List<Placement> placements; |
| 20918 | 20883 |
| 20919 | 20884 |
| 20920 PlacementsListResponse(); | 20885 PlacementsListResponse(); |
| 20921 | 20886 |
| 20922 PlacementsListResponse.fromJson(core.Map _json) { | 20887 PlacementsListResponse.fromJson(core.Map _json) { |
| 20923 if (_json.containsKey("kind")) { | 20888 if (_json.containsKey("kind")) { |
| 20924 kind = _json["kind"]; | 20889 kind = _json["kind"]; |
| 20925 } | 20890 } |
| 20926 if (_json.containsKey("nextPageToken")) { | 20891 if (_json.containsKey("nextPageToken")) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20993 | 20958 |
| 20994 | 20959 |
| 20995 /** Platform Type List Response */ | 20960 /** Platform Type List Response */ |
| 20996 class PlatformTypesListResponse { | 20961 class PlatformTypesListResponse { |
| 20997 /** | 20962 /** |
| 20998 * Identifies what kind of resource this is. Value: the fixed string | 20963 * Identifies what kind of resource this is. Value: the fixed string |
| 20999 * "dfareporting#platformTypesListResponse". | 20964 * "dfareporting#platformTypesListResponse". |
| 21000 */ | 20965 */ |
| 21001 core.String kind; | 20966 core.String kind; |
| 21002 | 20967 |
| 21003 /** Platform type collection */ | 20968 /** Platform type collection. */ |
| 21004 core.List<PlatformType> platformTypes; | 20969 core.List<PlatformType> platformTypes; |
| 21005 | 20970 |
| 21006 | 20971 |
| 21007 PlatformTypesListResponse(); | 20972 PlatformTypesListResponse(); |
| 21008 | 20973 |
| 21009 PlatformTypesListResponse.fromJson(core.Map _json) { | 20974 PlatformTypesListResponse.fromJson(core.Map _json) { |
| 21010 if (_json.containsKey("kind")) { | 20975 if (_json.containsKey("kind")) { |
| 21011 kind = _json["kind"]; | 20976 kind = _json["kind"]; |
| 21012 } | 20977 } |
| 21013 if (_json.containsKey("platformTypes")) { | 20978 if (_json.containsKey("platformTypes")) { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21190 | 21155 |
| 21191 | 21156 |
| 21192 /** Postal Code List Response */ | 21157 /** Postal Code List Response */ |
| 21193 class PostalCodesListResponse { | 21158 class PostalCodesListResponse { |
| 21194 /** | 21159 /** |
| 21195 * Identifies what kind of resource this is. Value: the fixed string | 21160 * Identifies what kind of resource this is. Value: the fixed string |
| 21196 * "dfareporting#postalCodesListResponse". | 21161 * "dfareporting#postalCodesListResponse". |
| 21197 */ | 21162 */ |
| 21198 core.String kind; | 21163 core.String kind; |
| 21199 | 21164 |
| 21200 /** Postal code collection */ | 21165 /** Postal code collection. */ |
| 21201 core.List<PostalCode> postalCodes; | 21166 core.List<PostalCode> postalCodes; |
| 21202 | 21167 |
| 21203 | 21168 |
| 21204 PostalCodesListResponse(); | 21169 PostalCodesListResponse(); |
| 21205 | 21170 |
| 21206 PostalCodesListResponse.fromJson(core.Map _json) { | 21171 PostalCodesListResponse.fromJson(core.Map _json) { |
| 21207 if (_json.containsKey("kind")) { | 21172 if (_json.containsKey("kind")) { |
| 21208 kind = _json["kind"]; | 21173 kind = _json["kind"]; |
| 21209 } | 21174 } |
| 21210 if (_json.containsKey("postalCodes")) { | 21175 if (_json.containsKey("postalCodes")) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 21233 * - "CAP_COST_CUMULATIVE" | 21198 * - "CAP_COST_CUMULATIVE" |
| 21234 * - "CAP_COST_MONTHLY" | 21199 * - "CAP_COST_MONTHLY" |
| 21235 * - "CAP_COST_NONE" | 21200 * - "CAP_COST_NONE" |
| 21236 */ | 21201 */ |
| 21237 core.String capCostOption; | 21202 core.String capCostOption; |
| 21238 | 21203 |
| 21239 /** Whether cap costs are ignored by ad serving. */ | 21204 /** Whether cap costs are ignored by ad serving. */ |
| 21240 core.bool disregardOverdelivery; | 21205 core.bool disregardOverdelivery; |
| 21241 | 21206 |
| 21242 /** | 21207 /** |
| 21243 * Placement end date. This date must be later than or be the same day as the | 21208 * Placement end date. This date must be later than, or the same day as, the |
| 21244 * placement start date, but not later than the campaign end date. If, for | 21209 * placement start date, but not later than the campaign end date. If, for |
| 21245 * example, you set 6/25/2015 as both the start and end dates, the effective | 21210 * example, you set 6/25/2015 as both the start and end dates, the effective |
| 21246 * placement date is just that day only, 6/25/2015. The hours, minutes, and | 21211 * placement date is just that day only, 6/25/2015. The hours, minutes, and |
| 21247 * seconds of the end date should not be set, as doing so will result in an | 21212 * seconds of the end date should not be set, as doing so will result in an |
| 21248 * error. This field is required on insertion. | 21213 * error. This field is required on insertion. |
| 21249 */ | 21214 */ |
| 21250 core.DateTime endDate; | 21215 core.DateTime endDate; |
| 21251 | 21216 |
| 21252 /** | 21217 /** |
| 21253 * Whether this placement is flighted. If true, pricing periods will be | 21218 * Whether this placement is flighted. If true, pricing periods will be |
| (...skipping 15 matching lines...) Expand all Loading... |
| 21269 * Possible string values are: | 21234 * Possible string values are: |
| 21270 * - "PRICING_TYPE_CPA" | 21235 * - "PRICING_TYPE_CPA" |
| 21271 * - "PRICING_TYPE_CPC" | 21236 * - "PRICING_TYPE_CPC" |
| 21272 * - "PRICING_TYPE_CPM" | 21237 * - "PRICING_TYPE_CPM" |
| 21273 * - "PRICING_TYPE_FLAT_RATE_CLICKS" | 21238 * - "PRICING_TYPE_FLAT_RATE_CLICKS" |
| 21274 * - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" | 21239 * - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" |
| 21275 */ | 21240 */ |
| 21276 core.String pricingType; | 21241 core.String pricingType; |
| 21277 | 21242 |
| 21278 /** | 21243 /** |
| 21279 * Placement start date. This date cannot be earlier than the campaign start | 21244 * Placement start date. This date must be later than, or the same day as, the |
| 21280 * date. The hours, minutes, and seconds of the start date should not be set, | 21245 * campaign start date. The hours, minutes, and seconds of the start date |
| 21281 * as doing so will result in an error. This field is required on insertion. | 21246 * should not be set, as doing so will result in an error. This field is |
| 21247 * required on insertion. |
| 21282 */ | 21248 */ |
| 21283 core.DateTime startDate; | 21249 core.DateTime startDate; |
| 21284 | 21250 |
| 21285 /** | 21251 /** |
| 21286 * Testing start date of this placement. The hours, minutes, and seconds of | 21252 * Testing start date of this placement. The hours, minutes, and seconds of |
| 21287 * the start date should not be set, as doing so will result in an error. | 21253 * the start date should not be set, as doing so will result in an error. |
| 21288 */ | 21254 */ |
| 21289 core.DateTime testingStartDate; | 21255 core.DateTime testingStartDate; |
| 21290 | 21256 |
| 21291 | 21257 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21351 _json["testingStartDate"] = "${(testingStartDate).year.toString().padLeft(
4, '0')}-${(testingStartDate).month.toString().padLeft(2, '0')}-${(testingStartD
ate).day.toString().padLeft(2, '0')}"; | 21317 _json["testingStartDate"] = "${(testingStartDate).year.toString().padLeft(
4, '0')}-${(testingStartDate).month.toString().padLeft(2, '0')}-${(testingStartD
ate).day.toString().padLeft(2, '0')}"; |
| 21352 } | 21318 } |
| 21353 return _json; | 21319 return _json; |
| 21354 } | 21320 } |
| 21355 } | 21321 } |
| 21356 | 21322 |
| 21357 | 21323 |
| 21358 /** Pricing Period */ | 21324 /** Pricing Period */ |
| 21359 class PricingSchedulePricingPeriod { | 21325 class PricingSchedulePricingPeriod { |
| 21360 /** | 21326 /** |
| 21361 * Pricing period end date. This date must be later than or be the same day as | 21327 * Pricing period end date. This date must be later than, or the same day as, |
| 21362 * the pricing period start date, but not later than the placement end date. | 21328 * the pricing period start date, but not later than the placement end date. |
| 21363 * The period end date can be the same date as the period start date. If, for | 21329 * The period end date can be the same date as the period start date. If, for |
| 21364 * example, you set 6/25/2015 as both the start and end dates, the effective | 21330 * example, you set 6/25/2015 as both the start and end dates, the effective |
| 21365 * pricing period date is just that day only, 6/25/2015. The hours, minutes, | 21331 * pricing period date is just that day only, 6/25/2015. The hours, minutes, |
| 21366 * and seconds of the end date should not be set, as doing so will result in | 21332 * and seconds of the end date should not be set, as doing so will result in |
| 21367 * an error. | 21333 * an error. |
| 21368 */ | 21334 */ |
| 21369 core.DateTime endDate; | 21335 core.DateTime endDate; |
| 21370 | 21336 |
| 21371 /** Comments for this pricing period. */ | 21337 /** Comments for this pricing period. */ |
| 21372 core.String pricingComment; | 21338 core.String pricingComment; |
| 21373 | 21339 |
| 21374 /** Rate or cost of this pricing period. */ | 21340 /** Rate or cost of this pricing period. */ |
| 21375 core.String rateOrCostNanos; | 21341 core.String rateOrCostNanos; |
| 21376 | 21342 |
| 21377 /** | 21343 /** |
| 21378 * Pricing period start date. This date cannot be earlier than the placement | 21344 * Pricing period start date. This date must be later than, or the same day |
| 21379 * start date. The hours, minutes, and seconds of the start date should not be | 21345 * as, the placement start date. The hours, minutes, and seconds of the start |
| 21380 * set, as doing so will result in an error. | 21346 * date should not be set, as doing so will result in an error. |
| 21381 */ | 21347 */ |
| 21382 core.DateTime startDate; | 21348 core.DateTime startDate; |
| 21383 | 21349 |
| 21384 /** Units of this pricing period. */ | 21350 /** Units of this pricing period. */ |
| 21385 core.String units; | 21351 core.String units; |
| 21386 | 21352 |
| 21387 | 21353 |
| 21388 PricingSchedulePricingPeriod(); | 21354 PricingSchedulePricingPeriod(); |
| 21389 | 21355 |
| 21390 PricingSchedulePricingPeriod.fromJson(core.Map _json) { | 21356 PricingSchedulePricingPeriod.fromJson(core.Map _json) { |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21709 | 21675 |
| 21710 | 21676 |
| 21711 /** Region List Response */ | 21677 /** Region List Response */ |
| 21712 class RegionsListResponse { | 21678 class RegionsListResponse { |
| 21713 /** | 21679 /** |
| 21714 * Identifies what kind of resource this is. Value: the fixed string | 21680 * Identifies what kind of resource this is. Value: the fixed string |
| 21715 * "dfareporting#regionsListResponse". | 21681 * "dfareporting#regionsListResponse". |
| 21716 */ | 21682 */ |
| 21717 core.String kind; | 21683 core.String kind; |
| 21718 | 21684 |
| 21719 /** Region Collection. */ | 21685 /** Region collection. */ |
| 21720 core.List<Region> regions; | 21686 core.List<Region> regions; |
| 21721 | 21687 |
| 21722 | 21688 |
| 21723 RegionsListResponse(); | 21689 RegionsListResponse(); |
| 21724 | 21690 |
| 21725 RegionsListResponse.fromJson(core.Map _json) { | 21691 RegionsListResponse.fromJson(core.Map _json) { |
| 21726 if (_json.containsKey("kind")) { | 21692 if (_json.containsKey("kind")) { |
| 21727 kind = _json["kind"]; | 21693 kind = _json["kind"]; |
| 21728 } | 21694 } |
| 21729 if (_json.containsKey("regions")) { | 21695 if (_json.containsKey("regions")) { |
| (...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23354 | 23320 |
| 23355 | 23321 |
| 23356 /** Size List Response */ | 23322 /** Size List Response */ |
| 23357 class SizesListResponse { | 23323 class SizesListResponse { |
| 23358 /** | 23324 /** |
| 23359 * Identifies what kind of resource this is. Value: the fixed string | 23325 * Identifies what kind of resource this is. Value: the fixed string |
| 23360 * "dfareporting#sizesListResponse". | 23326 * "dfareporting#sizesListResponse". |
| 23361 */ | 23327 */ |
| 23362 core.String kind; | 23328 core.String kind; |
| 23363 | 23329 |
| 23364 /** Size collection */ | 23330 /** Size collection. */ |
| 23365 core.List<Size> sizes; | 23331 core.List<Size> sizes; |
| 23366 | 23332 |
| 23367 | 23333 |
| 23368 SizesListResponse(); | 23334 SizesListResponse(); |
| 23369 | 23335 |
| 23370 SizesListResponse.fromJson(core.Map _json) { | 23336 SizesListResponse.fromJson(core.Map _json) { |
| 23371 if (_json.containsKey("kind")) { | 23337 if (_json.containsKey("kind")) { |
| 23372 kind = _json["kind"]; | 23338 kind = _json["kind"]; |
| 23373 } | 23339 } |
| 23374 if (_json.containsKey("sizes")) { | 23340 if (_json.containsKey("sizes")) { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23511 class SubaccountsListResponse { | 23477 class SubaccountsListResponse { |
| 23512 /** | 23478 /** |
| 23513 * Identifies what kind of resource this is. Value: the fixed string | 23479 * Identifies what kind of resource this is. Value: the fixed string |
| 23514 * "dfareporting#subaccountsListResponse". | 23480 * "dfareporting#subaccountsListResponse". |
| 23515 */ | 23481 */ |
| 23516 core.String kind; | 23482 core.String kind; |
| 23517 | 23483 |
| 23518 /** Pagination token to be used for the next list operation. */ | 23484 /** Pagination token to be used for the next list operation. */ |
| 23519 core.String nextPageToken; | 23485 core.String nextPageToken; |
| 23520 | 23486 |
| 23521 /** Subaccount collection */ | 23487 /** Subaccount collection. */ |
| 23522 core.List<Subaccount> subaccounts; | 23488 core.List<Subaccount> subaccounts; |
| 23523 | 23489 |
| 23524 | 23490 |
| 23525 SubaccountsListResponse(); | 23491 SubaccountsListResponse(); |
| 23526 | 23492 |
| 23527 SubaccountsListResponse.fromJson(core.Map _json) { | 23493 SubaccountsListResponse.fromJson(core.Map _json) { |
| 23528 if (_json.containsKey("kind")) { | 23494 if (_json.containsKey("kind")) { |
| 23529 kind = _json["kind"]; | 23495 kind = _json["kind"]; |
| 23530 } | 23496 } |
| 23531 if (_json.containsKey("nextPageToken")) { | 23497 if (_json.containsKey("nextPageToken")) { |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23925 /** | 23891 /** |
| 23926 * Data type for the variable. This is a required field. | 23892 * Data type for the variable. This is a required field. |
| 23927 * Possible string values are: | 23893 * Possible string values are: |
| 23928 * - "NUMBER" | 23894 * - "NUMBER" |
| 23929 * - "STRING" | 23895 * - "STRING" |
| 23930 */ | 23896 */ |
| 23931 core.String dataType; | 23897 core.String dataType; |
| 23932 | 23898 |
| 23933 /** | 23899 /** |
| 23934 * User-friendly name for the variable which will appear in reports. This is a | 23900 * User-friendly name for the variable which will appear in reports. This is a |
| 23935 * required field, must be less than 65 characters long, and cannot contain | 23901 * required field, must be less than 64 characters long, and cannot contain |
| 23936 * the following characters: """. | 23902 * the following characters: ""<>". |
| 23937 */ | 23903 */ |
| 23938 core.String reportName; | 23904 core.String reportName; |
| 23939 | 23905 |
| 23940 /** | 23906 /** |
| 23941 * Variable name in the tag. This is a required field. | 23907 * Variable name in the tag. This is a required field. |
| 23942 * Possible string values are: | 23908 * Possible string values are: |
| 23943 * - "U1" | 23909 * - "U1" |
| 23944 * - "U10" | 23910 * - "U10" |
| 23911 * - "U100" |
| 23945 * - "U11" | 23912 * - "U11" |
| 23946 * - "U12" | 23913 * - "U12" |
| 23947 * - "U13" | 23914 * - "U13" |
| 23948 * - "U14" | 23915 * - "U14" |
| 23949 * - "U15" | 23916 * - "U15" |
| 23950 * - "U16" | 23917 * - "U16" |
| 23951 * - "U17" | 23918 * - "U17" |
| 23952 * - "U18" | 23919 * - "U18" |
| 23953 * - "U19" | 23920 * - "U19" |
| 23954 * - "U2" | 23921 * - "U2" |
| 23955 * - "U20" | 23922 * - "U20" |
| 23923 * - "U21" |
| 23924 * - "U22" |
| 23925 * - "U23" |
| 23926 * - "U24" |
| 23927 * - "U25" |
| 23928 * - "U26" |
| 23929 * - "U27" |
| 23930 * - "U28" |
| 23931 * - "U29" |
| 23956 * - "U3" | 23932 * - "U3" |
| 23933 * - "U30" |
| 23934 * - "U31" |
| 23935 * - "U32" |
| 23936 * - "U33" |
| 23937 * - "U34" |
| 23938 * - "U35" |
| 23939 * - "U36" |
| 23940 * - "U37" |
| 23941 * - "U38" |
| 23942 * - "U39" |
| 23957 * - "U4" | 23943 * - "U4" |
| 23944 * - "U40" |
| 23945 * - "U41" |
| 23946 * - "U42" |
| 23947 * - "U43" |
| 23948 * - "U44" |
| 23949 * - "U45" |
| 23950 * - "U46" |
| 23951 * - "U47" |
| 23952 * - "U48" |
| 23953 * - "U49" |
| 23958 * - "U5" | 23954 * - "U5" |
| 23955 * - "U50" |
| 23956 * - "U51" |
| 23957 * - "U52" |
| 23958 * - "U53" |
| 23959 * - "U54" |
| 23960 * - "U55" |
| 23961 * - "U56" |
| 23962 * - "U57" |
| 23963 * - "U58" |
| 23964 * - "U59" |
| 23959 * - "U6" | 23965 * - "U6" |
| 23966 * - "U60" |
| 23967 * - "U61" |
| 23968 * - "U62" |
| 23969 * - "U63" |
| 23970 * - "U64" |
| 23971 * - "U65" |
| 23972 * - "U66" |
| 23973 * - "U67" |
| 23974 * - "U68" |
| 23975 * - "U69" |
| 23960 * - "U7" | 23976 * - "U7" |
| 23977 * - "U70" |
| 23978 * - "U71" |
| 23979 * - "U72" |
| 23980 * - "U73" |
| 23981 * - "U74" |
| 23982 * - "U75" |
| 23983 * - "U76" |
| 23984 * - "U77" |
| 23985 * - "U78" |
| 23986 * - "U79" |
| 23961 * - "U8" | 23987 * - "U8" |
| 23988 * - "U80" |
| 23989 * - "U81" |
| 23990 * - "U82" |
| 23991 * - "U83" |
| 23992 * - "U84" |
| 23993 * - "U85" |
| 23994 * - "U86" |
| 23995 * - "U87" |
| 23996 * - "U88" |
| 23997 * - "U89" |
| 23962 * - "U9" | 23998 * - "U9" |
| 23999 * - "U90" |
| 24000 * - "U91" |
| 24001 * - "U92" |
| 24002 * - "U93" |
| 24003 * - "U94" |
| 24004 * - "U95" |
| 24005 * - "U96" |
| 24006 * - "U97" |
| 24007 * - "U98" |
| 24008 * - "U99" |
| 23963 */ | 24009 */ |
| 23964 core.String variableType; | 24010 core.String variableType; |
| 23965 | 24011 |
| 23966 | 24012 |
| 23967 UserDefinedVariableConfiguration(); | 24013 UserDefinedVariableConfiguration(); |
| 23968 | 24014 |
| 23969 UserDefinedVariableConfiguration.fromJson(core.Map _json) { | 24015 UserDefinedVariableConfiguration.fromJson(core.Map _json) { |
| 23970 if (_json.containsKey("dataType")) { | 24016 if (_json.containsKey("dataType")) { |
| 23971 dataType = _json["dataType"]; | 24017 dataType = _json["dataType"]; |
| 23972 } | 24018 } |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24349 | 24395 |
| 24350 | 24396 |
| 24351 /** User Role Permission Group List Response */ | 24397 /** User Role Permission Group List Response */ |
| 24352 class UserRolePermissionGroupsListResponse { | 24398 class UserRolePermissionGroupsListResponse { |
| 24353 /** | 24399 /** |
| 24354 * Identifies what kind of resource this is. Value: the fixed string | 24400 * Identifies what kind of resource this is. Value: the fixed string |
| 24355 * "dfareporting#userRolePermissionGroupsListResponse". | 24401 * "dfareporting#userRolePermissionGroupsListResponse". |
| 24356 */ | 24402 */ |
| 24357 core.String kind; | 24403 core.String kind; |
| 24358 | 24404 |
| 24359 /** User role permission group collection */ | 24405 /** User role permission group collection. */ |
| 24360 core.List<UserRolePermissionGroup> userRolePermissionGroups; | 24406 core.List<UserRolePermissionGroup> userRolePermissionGroups; |
| 24361 | 24407 |
| 24362 | 24408 |
| 24363 UserRolePermissionGroupsListResponse(); | 24409 UserRolePermissionGroupsListResponse(); |
| 24364 | 24410 |
| 24365 UserRolePermissionGroupsListResponse.fromJson(core.Map _json) { | 24411 UserRolePermissionGroupsListResponse.fromJson(core.Map _json) { |
| 24366 if (_json.containsKey("kind")) { | 24412 if (_json.containsKey("kind")) { |
| 24367 kind = _json["kind"]; | 24413 kind = _json["kind"]; |
| 24368 } | 24414 } |
| 24369 if (_json.containsKey("userRolePermissionGroups")) { | 24415 if (_json.containsKey("userRolePermissionGroups")) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 24385 | 24431 |
| 24386 | 24432 |
| 24387 /** User Role Permission List Response */ | 24433 /** User Role Permission List Response */ |
| 24388 class UserRolePermissionsListResponse { | 24434 class UserRolePermissionsListResponse { |
| 24389 /** | 24435 /** |
| 24390 * Identifies what kind of resource this is. Value: the fixed string | 24436 * Identifies what kind of resource this is. Value: the fixed string |
| 24391 * "dfareporting#userRolePermissionsListResponse". | 24437 * "dfareporting#userRolePermissionsListResponse". |
| 24392 */ | 24438 */ |
| 24393 core.String kind; | 24439 core.String kind; |
| 24394 | 24440 |
| 24395 /** User role permission collection */ | 24441 /** User role permission collection. */ |
| 24396 core.List<UserRolePermission> userRolePermissions; | 24442 core.List<UserRolePermission> userRolePermissions; |
| 24397 | 24443 |
| 24398 | 24444 |
| 24399 UserRolePermissionsListResponse(); | 24445 UserRolePermissionsListResponse(); |
| 24400 | 24446 |
| 24401 UserRolePermissionsListResponse.fromJson(core.Map _json) { | 24447 UserRolePermissionsListResponse.fromJson(core.Map _json) { |
| 24402 if (_json.containsKey("kind")) { | 24448 if (_json.containsKey("kind")) { |
| 24403 kind = _json["kind"]; | 24449 kind = _json["kind"]; |
| 24404 } | 24450 } |
| 24405 if (_json.containsKey("userRolePermissions")) { | 24451 if (_json.containsKey("userRolePermissions")) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 24424 class UserRolesListResponse { | 24470 class UserRolesListResponse { |
| 24425 /** | 24471 /** |
| 24426 * Identifies what kind of resource this is. Value: the fixed string | 24472 * Identifies what kind of resource this is. Value: the fixed string |
| 24427 * "dfareporting#userRolesListResponse". | 24473 * "dfareporting#userRolesListResponse". |
| 24428 */ | 24474 */ |
| 24429 core.String kind; | 24475 core.String kind; |
| 24430 | 24476 |
| 24431 /** Pagination token to be used for the next list operation. */ | 24477 /** Pagination token to be used for the next list operation. */ |
| 24432 core.String nextPageToken; | 24478 core.String nextPageToken; |
| 24433 | 24479 |
| 24434 /** User role collection */ | 24480 /** User role collection. */ |
| 24435 core.List<UserRole> userRoles; | 24481 core.List<UserRole> userRoles; |
| 24436 | 24482 |
| 24437 | 24483 |
| 24438 UserRolesListResponse(); | 24484 UserRolesListResponse(); |
| 24439 | 24485 |
| 24440 UserRolesListResponse.fromJson(core.Map _json) { | 24486 UserRolesListResponse.fromJson(core.Map _json) { |
| 24441 if (_json.containsKey("kind")) { | 24487 if (_json.containsKey("kind")) { |
| 24442 kind = _json["kind"]; | 24488 kind = _json["kind"]; |
| 24443 } | 24489 } |
| 24444 if (_json.containsKey("nextPageToken")) { | 24490 if (_json.containsKey("nextPageToken")) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 24456 } | 24502 } |
| 24457 if (nextPageToken != null) { | 24503 if (nextPageToken != null) { |
| 24458 _json["nextPageToken"] = nextPageToken; | 24504 _json["nextPageToken"] = nextPageToken; |
| 24459 } | 24505 } |
| 24460 if (userRoles != null) { | 24506 if (userRoles != null) { |
| 24461 _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); | 24507 _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); |
| 24462 } | 24508 } |
| 24463 return _json; | 24509 return _json; |
| 24464 } | 24510 } |
| 24465 } | 24511 } |
| 24466 | |
| 24467 | |
| OLD | NEW |