| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis.siteVerification.v1; | 3 library googleapis.siteVerification.v1; |
| 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; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client siteVerification/v1'; |
| 15 | 18 |
| 16 /** | 19 /** |
| 17 * Lets you programatically verify ownership of websites or domains with Google. | 20 * Lets you programatically verify ownership of websites or domains with Google. |
| 18 */ | 21 */ |
| 19 class SiteVerificationApi { | 22 class SiteVerificationApi { |
| 20 /** Manage the list of sites and domains you control */ | 23 /** Manage the list of sites and domains you control */ |
| 21 static const SiteverificationScope = "https://www.googleapis.com/auth/siteveri
fication"; | 24 static const SiteverificationScope = "https://www.googleapis.com/auth/siteveri
fication"; |
| 22 | 25 |
| 23 /** Manage your new site verifications with Google */ | 26 /** Manage your new site verifications with Google */ |
| 24 static const SiteverificationVerifyOnlyScope = "https://www.googleapis.com/aut
h/siteverification.verify_only"; | 27 static const SiteverificationVerifyOnlyScope = "https://www.googleapis.com/aut
h/siteverification.verify_only"; |
| 25 | 28 |
| 26 | 29 |
| 27 final common_internal.ApiRequester _requester; | 30 final commons.ApiRequester _requester; |
| 28 | 31 |
| 29 WebResourceResourceApi get webResource => new WebResourceResourceApi(_requeste
r); | 32 WebResourceResourceApi get webResource => new WebResourceResourceApi(_requeste
r); |
| 30 | 33 |
| 31 SiteVerificationApi(http.Client client, {core.String rootUrl: "https://www.goo
gleapis.com/", core.String servicePath: "siteVerification/v1/"}) : | 34 SiteVerificationApi(http.Client client, {core.String rootUrl: "https://www.goo
gleapis.com/", core.String servicePath: "siteVerification/v1/"}) : |
| 32 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 35 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 33 } | 36 } |
| 34 | 37 |
| 35 | 38 |
| 36 /** Not documented yet. */ | |
| 37 class WebResourceResourceApi { | 39 class WebResourceResourceApi { |
| 38 final common_internal.ApiRequester _requester; | 40 final commons.ApiRequester _requester; |
| 39 | 41 |
| 40 WebResourceResourceApi(common_internal.ApiRequester client) : | 42 WebResourceResourceApi(commons.ApiRequester client) : |
| 41 _requester = client; | 43 _requester = client; |
| 42 | 44 |
| 43 /** | 45 /** |
| 44 * Relinquish ownership of a website or domain. | 46 * Relinquish ownership of a website or domain. |
| 45 * | 47 * |
| 46 * Request parameters: | 48 * Request parameters: |
| 47 * | 49 * |
| 48 * [id] - The id of a verified site or domain. | 50 * [id] - The id of a verified site or domain. |
| 49 * | 51 * |
| 50 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 52 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 51 * error. | 53 * error. |
| 52 * | 54 * |
| 53 * If the used [http.Client] completes with an error when making a REST call, | 55 * If the used [http.Client] completes with an error when making a REST call, |
| 54 * this method will complete with the same error. | 56 * this method will complete with the same error. |
| 55 */ | 57 */ |
| 56 async.Future delete(core.String id) { | 58 async.Future delete(core.String id) { |
| 57 var _url = null; | 59 var _url = null; |
| 58 var _queryParams = new core.Map(); | 60 var _queryParams = new core.Map(); |
| 59 var _uploadMedia = null; | 61 var _uploadMedia = null; |
| 60 var _uploadOptions = null; | 62 var _uploadOptions = null; |
| 61 var _downloadOptions = common.DownloadOptions.Metadata; | 63 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 62 var _body = null; | 64 var _body = null; |
| 63 | 65 |
| 64 if (id == null) { | 66 if (id == null) { |
| 65 throw new core.ArgumentError("Parameter id is required."); | 67 throw new core.ArgumentError("Parameter id is required."); |
| 66 } | 68 } |
| 67 | 69 |
| 68 _downloadOptions = null; | 70 _downloadOptions = null; |
| 69 | 71 |
| 70 _url = 'webResource/' + common_internal.Escaper.ecapeVariable('$id'); | 72 _url = 'webResource/' + commons.Escaper.ecapeVariable('$id'); |
| 71 | 73 |
| 72 var _response = _requester.request(_url, | 74 var _response = _requester.request(_url, |
| 73 "DELETE", | 75 "DELETE", |
| 74 body: _body, | 76 body: _body, |
| 75 queryParams: _queryParams, | 77 queryParams: _queryParams, |
| 76 uploadOptions: _uploadOptions, | 78 uploadOptions: _uploadOptions, |
| 77 uploadMedia: _uploadMedia, | 79 uploadMedia: _uploadMedia, |
| 78 downloadOptions: _downloadOptions); | 80 downloadOptions: _downloadOptions); |
| 79 return _response.then((data) => null); | 81 return _response.then((data) => null); |
| 80 } | 82 } |
| 81 | 83 |
| 82 /** | 84 /** |
| 83 * Get the most current data for a website or domain. | 85 * Get the most current data for a website or domain. |
| 84 * | 86 * |
| 85 * Request parameters: | 87 * Request parameters: |
| 86 * | 88 * |
| 87 * [id] - The id of a verified site or domain. | 89 * [id] - The id of a verified site or domain. |
| 88 * | 90 * |
| 89 * Completes with a [SiteVerificationWebResourceResource]. | 91 * Completes with a [SiteVerificationWebResourceResource]. |
| 90 * | 92 * |
| 91 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 93 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 92 * error. | 94 * error. |
| 93 * | 95 * |
| 94 * If the used [http.Client] completes with an error when making a REST call, | 96 * If the used [http.Client] completes with an error when making a REST call, |
| 95 * this method will complete with the same error. | 97 * this method will complete with the same error. |
| 96 */ | 98 */ |
| 97 async.Future<SiteVerificationWebResourceResource> get(core.String id) { | 99 async.Future<SiteVerificationWebResourceResource> get(core.String id) { |
| 98 var _url = null; | 100 var _url = null; |
| 99 var _queryParams = new core.Map(); | 101 var _queryParams = new core.Map(); |
| 100 var _uploadMedia = null; | 102 var _uploadMedia = null; |
| 101 var _uploadOptions = null; | 103 var _uploadOptions = null; |
| 102 var _downloadOptions = common.DownloadOptions.Metadata; | 104 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 103 var _body = null; | 105 var _body = null; |
| 104 | 106 |
| 105 if (id == null) { | 107 if (id == null) { |
| 106 throw new core.ArgumentError("Parameter id is required."); | 108 throw new core.ArgumentError("Parameter id is required."); |
| 107 } | 109 } |
| 108 | 110 |
| 109 | 111 |
| 110 _url = 'webResource/' + common_internal.Escaper.ecapeVariable('$id'); | 112 _url = 'webResource/' + commons.Escaper.ecapeVariable('$id'); |
| 111 | 113 |
| 112 var _response = _requester.request(_url, | 114 var _response = _requester.request(_url, |
| 113 "GET", | 115 "GET", |
| 114 body: _body, | 116 body: _body, |
| 115 queryParams: _queryParams, | 117 queryParams: _queryParams, |
| 116 uploadOptions: _uploadOptions, | 118 uploadOptions: _uploadOptions, |
| 117 uploadMedia: _uploadMedia, | 119 uploadMedia: _uploadMedia, |
| 118 downloadOptions: _downloadOptions); | 120 downloadOptions: _downloadOptions); |
| 119 return _response.then((data) => new SiteVerificationWebResourceResource.from
Json(data)); | 121 return _response.then((data) => new SiteVerificationWebResourceResource.from
Json(data)); |
| 120 } | 122 } |
| 121 | 123 |
| 122 /** | 124 /** |
| 123 * Get a verification token for placing on a website or domain. | 125 * Get a verification token for placing on a website or domain. |
| 124 * | 126 * |
| 125 * [request] - The metadata request object. | 127 * [request] - The metadata request object. |
| 126 * | 128 * |
| 127 * Request parameters: | 129 * Request parameters: |
| 128 * | 130 * |
| 129 * Completes with a [SiteVerificationWebResourceGettokenResponse]. | 131 * Completes with a [SiteVerificationWebResourceGettokenResponse]. |
| 130 * | 132 * |
| 131 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 132 * error. | 134 * error. |
| 133 * | 135 * |
| 134 * If the used [http.Client] completes with an error when making a REST call, | 136 * If the used [http.Client] completes with an error when making a REST call, |
| 135 * this method will complete with the same error. | 137 * this method will complete with the same error. |
| 136 */ | 138 */ |
| 137 async.Future<SiteVerificationWebResourceGettokenResponse> getToken(SiteVerific
ationWebResourceGettokenRequest request) { | 139 async.Future<SiteVerificationWebResourceGettokenResponse> getToken(SiteVerific
ationWebResourceGettokenRequest request) { |
| 138 var _url = null; | 140 var _url = null; |
| 139 var _queryParams = new core.Map(); | 141 var _queryParams = new core.Map(); |
| 140 var _uploadMedia = null; | 142 var _uploadMedia = null; |
| 141 var _uploadOptions = null; | 143 var _uploadOptions = null; |
| 142 var _downloadOptions = common.DownloadOptions.Metadata; | 144 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 143 var _body = null; | 145 var _body = null; |
| 144 | 146 |
| 145 if (request != null) { | 147 if (request != null) { |
| 146 _body = convert.JSON.encode((request).toJson()); | 148 _body = convert.JSON.encode((request).toJson()); |
| 147 } | 149 } |
| 148 | 150 |
| 149 | 151 |
| 150 _url = 'token'; | 152 _url = 'token'; |
| 151 | 153 |
| 152 var _response = _requester.request(_url, | 154 var _response = _requester.request(_url, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 163 * Attempt verification of a website or domain. | 165 * Attempt verification of a website or domain. |
| 164 * | 166 * |
| 165 * [request] - The metadata request object. | 167 * [request] - The metadata request object. |
| 166 * | 168 * |
| 167 * Request parameters: | 169 * Request parameters: |
| 168 * | 170 * |
| 169 * [verificationMethod] - The method to use for verifying a site or domain. | 171 * [verificationMethod] - The method to use for verifying a site or domain. |
| 170 * | 172 * |
| 171 * Completes with a [SiteVerificationWebResourceResource]. | 173 * Completes with a [SiteVerificationWebResourceResource]. |
| 172 * | 174 * |
| 173 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 175 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 174 * error. | 176 * error. |
| 175 * | 177 * |
| 176 * If the used [http.Client] completes with an error when making a REST call, | 178 * If the used [http.Client] completes with an error when making a REST call, |
| 177 * this method will complete with the same error. | 179 * this method will complete with the same error. |
| 178 */ | 180 */ |
| 179 async.Future<SiteVerificationWebResourceResource> insert(SiteVerificationWebRe
sourceResource request, core.String verificationMethod) { | 181 async.Future<SiteVerificationWebResourceResource> insert(SiteVerificationWebRe
sourceResource request, core.String verificationMethod) { |
| 180 var _url = null; | 182 var _url = null; |
| 181 var _queryParams = new core.Map(); | 183 var _queryParams = new core.Map(); |
| 182 var _uploadMedia = null; | 184 var _uploadMedia = null; |
| 183 var _uploadOptions = null; | 185 var _uploadOptions = null; |
| 184 var _downloadOptions = common.DownloadOptions.Metadata; | 186 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 185 var _body = null; | 187 var _body = null; |
| 186 | 188 |
| 187 if (request != null) { | 189 if (request != null) { |
| 188 _body = convert.JSON.encode((request).toJson()); | 190 _body = convert.JSON.encode((request).toJson()); |
| 189 } | 191 } |
| 190 if (verificationMethod == null) { | 192 if (verificationMethod == null) { |
| 191 throw new core.ArgumentError("Parameter verificationMethod is required."); | 193 throw new core.ArgumentError("Parameter verificationMethod is required."); |
| 192 } | 194 } |
| 193 _queryParams["verificationMethod"] = [verificationMethod]; | 195 _queryParams["verificationMethod"] = [verificationMethod]; |
| 194 | 196 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 205 return _response.then((data) => new SiteVerificationWebResourceResource.from
Json(data)); | 207 return _response.then((data) => new SiteVerificationWebResourceResource.from
Json(data)); |
| 206 } | 208 } |
| 207 | 209 |
| 208 /** | 210 /** |
| 209 * Get the list of your verified websites and domains. | 211 * Get the list of your verified websites and domains. |
| 210 * | 212 * |
| 211 * Request parameters: | 213 * Request parameters: |
| 212 * | 214 * |
| 213 * Completes with a [SiteVerificationWebResourceListResponse]. | 215 * Completes with a [SiteVerificationWebResourceListResponse]. |
| 214 * | 216 * |
| 215 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 216 * error. | 218 * error. |
| 217 * | 219 * |
| 218 * If the used [http.Client] completes with an error when making a REST call, | 220 * If the used [http.Client] completes with an error when making a REST call, |
| 219 * this method will complete with the same error. | 221 * this method will complete with the same error. |
| 220 */ | 222 */ |
| 221 async.Future<SiteVerificationWebResourceListResponse> list() { | 223 async.Future<SiteVerificationWebResourceListResponse> list() { |
| 222 var _url = null; | 224 var _url = null; |
| 223 var _queryParams = new core.Map(); | 225 var _queryParams = new core.Map(); |
| 224 var _uploadMedia = null; | 226 var _uploadMedia = null; |
| 225 var _uploadOptions = null; | 227 var _uploadOptions = null; |
| 226 var _downloadOptions = common.DownloadOptions.Metadata; | 228 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 227 var _body = null; | 229 var _body = null; |
| 228 | 230 |
| 229 | 231 |
| 230 | 232 |
| 231 _url = 'webResource'; | 233 _url = 'webResource'; |
| 232 | 234 |
| 233 var _response = _requester.request(_url, | 235 var _response = _requester.request(_url, |
| 234 "GET", | 236 "GET", |
| 235 body: _body, | 237 body: _body, |
| 236 queryParams: _queryParams, | 238 queryParams: _queryParams, |
| 237 uploadOptions: _uploadOptions, | 239 uploadOptions: _uploadOptions, |
| 238 uploadMedia: _uploadMedia, | 240 uploadMedia: _uploadMedia, |
| 239 downloadOptions: _downloadOptions); | 241 downloadOptions: _downloadOptions); |
| 240 return _response.then((data) => new SiteVerificationWebResourceListResponse.
fromJson(data)); | 242 return _response.then((data) => new SiteVerificationWebResourceListResponse.
fromJson(data)); |
| 241 } | 243 } |
| 242 | 244 |
| 243 /** | 245 /** |
| 244 * Modify the list of owners for your website or domain. This method supports | 246 * Modify the list of owners for your website or domain. This method supports |
| 245 * patch semantics. | 247 * patch semantics. |
| 246 * | 248 * |
| 247 * [request] - The metadata request object. | 249 * [request] - The metadata request object. |
| 248 * | 250 * |
| 249 * Request parameters: | 251 * Request parameters: |
| 250 * | 252 * |
| 251 * [id] - The id of a verified site or domain. | 253 * [id] - The id of a verified site or domain. |
| 252 * | 254 * |
| 253 * Completes with a [SiteVerificationWebResourceResource]. | 255 * Completes with a [SiteVerificationWebResourceResource]. |
| 254 * | 256 * |
| 255 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 257 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 256 * error. | 258 * error. |
| 257 * | 259 * |
| 258 * If the used [http.Client] completes with an error when making a REST call, | 260 * If the used [http.Client] completes with an error when making a REST call, |
| 259 * this method will complete with the same error. | 261 * this method will complete with the same error. |
| 260 */ | 262 */ |
| 261 async.Future<SiteVerificationWebResourceResource> patch(SiteVerificationWebRes
ourceResource request, core.String id) { | 263 async.Future<SiteVerificationWebResourceResource> patch(SiteVerificationWebRes
ourceResource request, core.String id) { |
| 262 var _url = null; | 264 var _url = null; |
| 263 var _queryParams = new core.Map(); | 265 var _queryParams = new core.Map(); |
| 264 var _uploadMedia = null; | 266 var _uploadMedia = null; |
| 265 var _uploadOptions = null; | 267 var _uploadOptions = null; |
| 266 var _downloadOptions = common.DownloadOptions.Metadata; | 268 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 267 var _body = null; | 269 var _body = null; |
| 268 | 270 |
| 269 if (request != null) { | 271 if (request != null) { |
| 270 _body = convert.JSON.encode((request).toJson()); | 272 _body = convert.JSON.encode((request).toJson()); |
| 271 } | 273 } |
| 272 if (id == null) { | 274 if (id == null) { |
| 273 throw new core.ArgumentError("Parameter id is required."); | 275 throw new core.ArgumentError("Parameter id is required."); |
| 274 } | 276 } |
| 275 | 277 |
| 276 | 278 |
| 277 _url = 'webResource/' + common_internal.Escaper.ecapeVariable('$id'); | 279 _url = 'webResource/' + commons.Escaper.ecapeVariable('$id'); |
| 278 | 280 |
| 279 var _response = _requester.request(_url, | 281 var _response = _requester.request(_url, |
| 280 "PATCH", | 282 "PATCH", |
| 281 body: _body, | 283 body: _body, |
| 282 queryParams: _queryParams, | 284 queryParams: _queryParams, |
| 283 uploadOptions: _uploadOptions, | 285 uploadOptions: _uploadOptions, |
| 284 uploadMedia: _uploadMedia, | 286 uploadMedia: _uploadMedia, |
| 285 downloadOptions: _downloadOptions); | 287 downloadOptions: _downloadOptions); |
| 286 return _response.then((data) => new SiteVerificationWebResourceResource.from
Json(data)); | 288 return _response.then((data) => new SiteVerificationWebResourceResource.from
Json(data)); |
| 287 } | 289 } |
| 288 | 290 |
| 289 /** | 291 /** |
| 290 * Modify the list of owners for your website or domain. | 292 * Modify the list of owners for your website or domain. |
| 291 * | 293 * |
| 292 * [request] - The metadata request object. | 294 * [request] - The metadata request object. |
| 293 * | 295 * |
| 294 * Request parameters: | 296 * Request parameters: |
| 295 * | 297 * |
| 296 * [id] - The id of a verified site or domain. | 298 * [id] - The id of a verified site or domain. |
| 297 * | 299 * |
| 298 * Completes with a [SiteVerificationWebResourceResource]. | 300 * Completes with a [SiteVerificationWebResourceResource]. |
| 299 * | 301 * |
| 300 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 302 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 301 * error. | 303 * error. |
| 302 * | 304 * |
| 303 * If the used [http.Client] completes with an error when making a REST call, | 305 * If the used [http.Client] completes with an error when making a REST call, |
| 304 * this method will complete with the same error. | 306 * this method will complete with the same error. |
| 305 */ | 307 */ |
| 306 async.Future<SiteVerificationWebResourceResource> update(SiteVerificationWebRe
sourceResource request, core.String id) { | 308 async.Future<SiteVerificationWebResourceResource> update(SiteVerificationWebRe
sourceResource request, core.String id) { |
| 307 var _url = null; | 309 var _url = null; |
| 308 var _queryParams = new core.Map(); | 310 var _queryParams = new core.Map(); |
| 309 var _uploadMedia = null; | 311 var _uploadMedia = null; |
| 310 var _uploadOptions = null; | 312 var _uploadOptions = null; |
| 311 var _downloadOptions = common.DownloadOptions.Metadata; | 313 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 312 var _body = null; | 314 var _body = null; |
| 313 | 315 |
| 314 if (request != null) { | 316 if (request != null) { |
| 315 _body = convert.JSON.encode((request).toJson()); | 317 _body = convert.JSON.encode((request).toJson()); |
| 316 } | 318 } |
| 317 if (id == null) { | 319 if (id == null) { |
| 318 throw new core.ArgumentError("Parameter id is required."); | 320 throw new core.ArgumentError("Parameter id is required."); |
| 319 } | 321 } |
| 320 | 322 |
| 321 | 323 |
| 322 _url = 'webResource/' + common_internal.Escaper.ecapeVariable('$id'); | 324 _url = 'webResource/' + commons.Escaper.ecapeVariable('$id'); |
| 323 | 325 |
| 324 var _response = _requester.request(_url, | 326 var _response = _requester.request(_url, |
| 325 "PUT", | 327 "PUT", |
| 326 body: _body, | 328 body: _body, |
| 327 queryParams: _queryParams, | 329 queryParams: _queryParams, |
| 328 uploadOptions: _uploadOptions, | 330 uploadOptions: _uploadOptions, |
| 329 uploadMedia: _uploadMedia, | 331 uploadMedia: _uploadMedia, |
| 330 downloadOptions: _downloadOptions); | 332 downloadOptions: _downloadOptions); |
| 331 return _response.then((data) => new SiteVerificationWebResourceResource.from
Json(data)); | 333 return _response.then((data) => new SiteVerificationWebResourceResource.from
Json(data)); |
| 332 } | 334 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 _json["identifier"] = identifier; | 369 _json["identifier"] = identifier; |
| 368 } | 370 } |
| 369 if (type != null) { | 371 if (type != null) { |
| 370 _json["type"] = type; | 372 _json["type"] = type; |
| 371 } | 373 } |
| 372 return _json; | 374 return _json; |
| 373 } | 375 } |
| 374 } | 376 } |
| 375 | 377 |
| 376 | 378 |
| 377 /** Not documented yet. */ | |
| 378 class SiteVerificationWebResourceGettokenRequest { | 379 class SiteVerificationWebResourceGettokenRequest { |
| 379 /** The site for which a verification token will be generated. */ | 380 /** The site for which a verification token will be generated. */ |
| 380 SiteVerificationWebResourceGettokenRequestSite site; | 381 SiteVerificationWebResourceGettokenRequestSite site; |
| 381 | 382 |
| 382 /** | 383 /** |
| 383 * The verification method that will be used to verify this site. For sites, | 384 * The verification method that will be used to verify this site. For sites, |
| 384 * 'FILE' or 'META' methods may be used. For domains, only 'DNS' may be used. | 385 * 'FILE' or 'META' methods may be used. For domains, only 'DNS' may be used. |
| 385 */ | 386 */ |
| 386 core.String verificationMethod; | 387 core.String verificationMethod; |
| 387 | 388 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 403 _json["site"] = (site).toJson(); | 404 _json["site"] = (site).toJson(); |
| 404 } | 405 } |
| 405 if (verificationMethod != null) { | 406 if (verificationMethod != null) { |
| 406 _json["verificationMethod"] = verificationMethod; | 407 _json["verificationMethod"] = verificationMethod; |
| 407 } | 408 } |
| 408 return _json; | 409 return _json; |
| 409 } | 410 } |
| 410 } | 411 } |
| 411 | 412 |
| 412 | 413 |
| 413 /** Not documented yet. */ | |
| 414 class SiteVerificationWebResourceGettokenResponse { | 414 class SiteVerificationWebResourceGettokenResponse { |
| 415 /** | 415 /** |
| 416 * The verification method to use in conjunction with this token. For FILE, | 416 * The verification method to use in conjunction with this token. For FILE, |
| 417 * the token should be placed in the top-level directory of the site, stored | 417 * the token should be placed in the top-level directory of the site, stored |
| 418 * inside a file of the same name. For META, the token should be placed in the | 418 * inside a file of the same name. For META, the token should be placed in the |
| 419 * HEAD tag of the default page that is loaded for the site. For DNS, the | 419 * HEAD tag of the default page that is loaded for the site. For DNS, the |
| 420 * token should be placed in a TXT record of the domain. | 420 * token should be placed in a TXT record of the domain. |
| 421 */ | 421 */ |
| 422 core.String method; | 422 core.String method; |
| 423 | 423 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 445 _json["method"] = method; | 445 _json["method"] = method; |
| 446 } | 446 } |
| 447 if (token != null) { | 447 if (token != null) { |
| 448 _json["token"] = token; | 448 _json["token"] = token; |
| 449 } | 449 } |
| 450 return _json; | 450 return _json; |
| 451 } | 451 } |
| 452 } | 452 } |
| 453 | 453 |
| 454 | 454 |
| 455 /** Not documented yet. */ | |
| 456 class SiteVerificationWebResourceListResponse { | 455 class SiteVerificationWebResourceListResponse { |
| 457 /** The list of sites that are owned by the authenticated user. */ | 456 /** The list of sites that are owned by the authenticated user. */ |
| 458 core.List<SiteVerificationWebResourceResource> items; | 457 core.List<SiteVerificationWebResourceResource> items; |
| 459 | 458 |
| 460 | 459 |
| 461 SiteVerificationWebResourceListResponse(); | 460 SiteVerificationWebResourceListResponse(); |
| 462 | 461 |
| 463 SiteVerificationWebResourceListResponse.fromJson(core.Map _json) { | 462 SiteVerificationWebResourceListResponse.fromJson(core.Map _json) { |
| 464 if (_json.containsKey("items")) { | 463 if (_json.containsKey("items")) { |
| 465 items = _json["items"].map((value) => new SiteVerificationWebResourceResou
rce.fromJson(value)).toList(); | 464 items = _json["items"].map((value) => new SiteVerificationWebResourceResou
rce.fromJson(value)).toList(); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 _json["identifier"] = identifier; | 504 _json["identifier"] = identifier; |
| 506 } | 505 } |
| 507 if (type != null) { | 506 if (type != null) { |
| 508 _json["type"] = type; | 507 _json["type"] = type; |
| 509 } | 508 } |
| 510 return _json; | 509 return _json; |
| 511 } | 510 } |
| 512 } | 511 } |
| 513 | 512 |
| 514 | 513 |
| 515 /** Not documented yet. */ | |
| 516 class SiteVerificationWebResourceResource { | 514 class SiteVerificationWebResourceResource { |
| 517 /** | 515 /** |
| 518 * The string used to identify this site. This value should be used in the | 516 * The string used to identify this site. This value should be used in the |
| 519 * "id" portion of the REST URL for the Get, Update, and Delete operations. | 517 * "id" portion of the REST URL for the Get, Update, and Delete operations. |
| 520 */ | 518 */ |
| 521 core.String id; | 519 core.String id; |
| 522 | 520 |
| 523 /** The email addresses of all verified owners. */ | 521 /** The email addresses of all verified owners. */ |
| 524 core.List<core.String> owners; | 522 core.List<core.String> owners; |
| 525 | 523 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 548 } | 546 } |
| 549 if (owners != null) { | 547 if (owners != null) { |
| 550 _json["owners"] = owners; | 548 _json["owners"] = owners; |
| 551 } | 549 } |
| 552 if (site != null) { | 550 if (site != null) { |
| 553 _json["site"] = (site).toJson(); | 551 _json["site"] = (site).toJson(); |
| 554 } | 552 } |
| 555 return _json; | 553 return _json; |
| 556 } | 554 } |
| 557 } | 555 } |
| 558 | |
| 559 | |
| OLD | NEW |