| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.storagetransfer.v1; | 3 library googleapis.storagetransfer.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
| 13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client storagetransfer/v1'; | 15 const core.String USER_AGENT = 'dart-api-client storagetransfer/v1'; |
| 16 | 16 |
| 17 /** | 17 /// Transfers data from external data sources to a Google Cloud Storage bucket |
| 18 * Transfers data from external data sources to a Google Cloud Storage bucket or | 18 /// or between Google Cloud Storage buckets. |
| 19 * between Google Cloud Storage buckets. | |
| 20 */ | |
| 21 class StoragetransferApi { | 19 class StoragetransferApi { |
| 22 /** View and manage your data across Google Cloud Platform services */ | 20 /// View and manage your data across Google Cloud Platform services |
| 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 21 static const CloudPlatformScope = |
| 24 | 22 "https://www.googleapis.com/auth/cloud-platform"; |
| 25 | 23 |
| 26 final commons.ApiRequester _requester; | 24 final commons.ApiRequester _requester; |
| 27 | 25 |
| 28 GoogleServiceAccountsResourceApi get googleServiceAccounts => new GoogleServic
eAccountsResourceApi(_requester); | 26 GoogleServiceAccountsResourceApi get googleServiceAccounts => |
| 29 TransferJobsResourceApi get transferJobs => new TransferJobsResourceApi(_reque
ster); | 27 new GoogleServiceAccountsResourceApi(_requester); |
| 30 TransferOperationsResourceApi get transferOperations => new TransferOperations
ResourceApi(_requester); | 28 TransferJobsResourceApi get transferJobs => |
| 29 new TransferJobsResourceApi(_requester); |
| 30 TransferOperationsResourceApi get transferOperations => |
| 31 new TransferOperationsResourceApi(_requester); |
| 31 | 32 |
| 32 StoragetransferApi(http.Client client, {core.String rootUrl: "https://storaget
ransfer.googleapis.com/", core.String servicePath: ""}) : | 33 StoragetransferApi(http.Client client, |
| 33 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 34 {core.String rootUrl: "https://storagetransfer.googleapis.com/", |
| 35 core.String servicePath: ""}) |
| 36 : _requester = |
| 37 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 34 } | 38 } |
| 35 | 39 |
| 36 | |
| 37 class GoogleServiceAccountsResourceApi { | 40 class GoogleServiceAccountsResourceApi { |
| 38 final commons.ApiRequester _requester; | 41 final commons.ApiRequester _requester; |
| 39 | 42 |
| 40 GoogleServiceAccountsResourceApi(commons.ApiRequester client) : | 43 GoogleServiceAccountsResourceApi(commons.ApiRequester client) |
| 41 _requester = client; | 44 : _requester = client; |
| 42 | 45 |
| 43 /** | 46 /// Returns the Google service account that is used by Storage Transfer |
| 44 * Returns the Google service account that is used by Storage Transfer | 47 /// Service to access buckets in the project where transfers |
| 45 * Service to access buckets in the project where transfers | 48 /// run or in other projects. Each Google service account is associated |
| 46 * run or in other projects. Each Google service account is associated | 49 /// with one Google Cloud Platform Console project. Users |
| 47 * with one Google Cloud Platform Console project. Users | 50 /// should add this service account to the Google Cloud Storage bucket |
| 48 * should add this service account to the Google Cloud Storage bucket | 51 /// ACLs to grant access to Storage Transfer Service. This service |
| 49 * ACLs to grant access to Storage Transfer Service. This service | 52 /// account is created and owned by Storage Transfer Service and can |
| 50 * account is created and owned by Storage Transfer Service and can | 53 /// only be used by Storage Transfer Service. |
| 51 * only be used by Storage Transfer Service. | 54 /// |
| 52 * | 55 /// Request parameters: |
| 53 * Request parameters: | 56 /// |
| 54 * | 57 /// [projectId] - The ID of the Google Cloud Platform Console project that |
| 55 * [projectId] - The ID of the Google Cloud Platform Console project that the | 58 /// the Google service |
| 56 * Google service | 59 /// account is associated with. |
| 57 * account is associated with. | 60 /// Required. |
| 58 * Required. | 61 /// |
| 59 * | 62 /// Completes with a [GoogleServiceAccount]. |
| 60 * Completes with a [GoogleServiceAccount]. | 63 /// |
| 61 * | 64 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 62 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 65 /// an error. |
| 63 * error. | 66 /// |
| 64 * | 67 /// If the used [http.Client] completes with an error when making a REST |
| 65 * If the used [http.Client] completes with an error when making a REST call, | 68 /// call, this method will complete with the same error. |
| 66 * this method will complete with the same error. | |
| 67 */ | |
| 68 async.Future<GoogleServiceAccount> get(core.String projectId) { | 69 async.Future<GoogleServiceAccount> get(core.String projectId) { |
| 69 var _url = null; | 70 var _url = null; |
| 70 var _queryParams = new core.Map(); | 71 var _queryParams = new core.Map(); |
| 71 var _uploadMedia = null; | 72 var _uploadMedia = null; |
| 72 var _uploadOptions = null; | 73 var _uploadOptions = null; |
| 73 var _downloadOptions = commons.DownloadOptions.Metadata; | 74 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 74 var _body = null; | 75 var _body = null; |
| 75 | 76 |
| 76 if (projectId == null) { | 77 if (projectId == null) { |
| 77 throw new core.ArgumentError("Parameter projectId is required."); | 78 throw new core.ArgumentError("Parameter projectId is required."); |
| 78 } | 79 } |
| 79 | 80 |
| 80 _url = 'v1/googleServiceAccounts/' + commons.Escaper.ecapeVariable('$project
Id'); | 81 _url = 'v1/googleServiceAccounts/' + |
| 82 commons.Escaper.ecapeVariable('$projectId'); |
| 81 | 83 |
| 82 var _response = _requester.request(_url, | 84 var _response = _requester.request(_url, "GET", |
| 83 "GET", | 85 body: _body, |
| 84 body: _body, | 86 queryParams: _queryParams, |
| 85 queryParams: _queryParams, | 87 uploadOptions: _uploadOptions, |
| 86 uploadOptions: _uploadOptions, | 88 uploadMedia: _uploadMedia, |
| 87 uploadMedia: _uploadMedia, | 89 downloadOptions: _downloadOptions); |
| 88 downloadOptions: _downloadOptions); | |
| 89 return _response.then((data) => new GoogleServiceAccount.fromJson(data)); | 90 return _response.then((data) => new GoogleServiceAccount.fromJson(data)); |
| 90 } | 91 } |
| 91 | |
| 92 } | 92 } |
| 93 | 93 |
| 94 | |
| 95 class TransferJobsResourceApi { | 94 class TransferJobsResourceApi { |
| 96 final commons.ApiRequester _requester; | 95 final commons.ApiRequester _requester; |
| 97 | 96 |
| 98 TransferJobsResourceApi(commons.ApiRequester client) : | 97 TransferJobsResourceApi(commons.ApiRequester client) : _requester = client; |
| 99 _requester = client; | |
| 100 | 98 |
| 101 /** | 99 /// Creates a transfer job that runs periodically. |
| 102 * Creates a transfer job that runs periodically. | 100 /// |
| 103 * | 101 /// [request] - The metadata request object. |
| 104 * [request] - The metadata request object. | 102 /// |
| 105 * | 103 /// Request parameters: |
| 106 * Request parameters: | 104 /// |
| 107 * | 105 /// Completes with a [TransferJob]. |
| 108 * Completes with a [TransferJob]. | 106 /// |
| 109 * | 107 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 110 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 108 /// an error. |
| 111 * error. | 109 /// |
| 112 * | 110 /// If the used [http.Client] completes with an error when making a REST |
| 113 * If the used [http.Client] completes with an error when making a REST call, | 111 /// call, this method will complete with the same error. |
| 114 * this method will complete with the same error. | |
| 115 */ | |
| 116 async.Future<TransferJob> create(TransferJob request) { | 112 async.Future<TransferJob> create(TransferJob request) { |
| 117 var _url = null; | 113 var _url = null; |
| 118 var _queryParams = new core.Map(); | 114 var _queryParams = new core.Map(); |
| 119 var _uploadMedia = null; | 115 var _uploadMedia = null; |
| 120 var _uploadOptions = null; | 116 var _uploadOptions = null; |
| 121 var _downloadOptions = commons.DownloadOptions.Metadata; | 117 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 122 var _body = null; | 118 var _body = null; |
| 123 | 119 |
| 124 if (request != null) { | 120 if (request != null) { |
| 125 _body = convert.JSON.encode((request).toJson()); | 121 _body = convert.JSON.encode((request).toJson()); |
| 126 } | 122 } |
| 127 | 123 |
| 128 _url = 'v1/transferJobs'; | 124 _url = 'v1/transferJobs'; |
| 129 | 125 |
| 130 var _response = _requester.request(_url, | 126 var _response = _requester.request(_url, "POST", |
| 131 "POST", | 127 body: _body, |
| 132 body: _body, | 128 queryParams: _queryParams, |
| 133 queryParams: _queryParams, | 129 uploadOptions: _uploadOptions, |
| 134 uploadOptions: _uploadOptions, | 130 uploadMedia: _uploadMedia, |
| 135 uploadMedia: _uploadMedia, | 131 downloadOptions: _downloadOptions); |
| 136 downloadOptions: _downloadOptions); | |
| 137 return _response.then((data) => new TransferJob.fromJson(data)); | 132 return _response.then((data) => new TransferJob.fromJson(data)); |
| 138 } | 133 } |
| 139 | 134 |
| 140 /** | 135 /// Gets a transfer job. |
| 141 * Gets a transfer job. | 136 /// |
| 142 * | 137 /// Request parameters: |
| 143 * Request parameters: | 138 /// |
| 144 * | 139 /// [jobName] - The job to get. |
| 145 * [jobName] - The job to get. | 140 /// Required. |
| 146 * Required. | 141 /// Value must have pattern "^transferJobs/.+$". |
| 147 * Value must have pattern "^transferJobs/.+$". | 142 /// |
| 148 * | 143 /// [projectId] - The ID of the Google Cloud Platform Console project that |
| 149 * [projectId] - The ID of the Google Cloud Platform Console project that owns | 144 /// owns the job. |
| 150 * the job. | 145 /// Required. |
| 151 * Required. | 146 /// |
| 152 * | 147 /// Completes with a [TransferJob]. |
| 153 * Completes with a [TransferJob]. | 148 /// |
| 154 * | 149 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 150 /// an error. |
| 156 * error. | 151 /// |
| 157 * | 152 /// If the used [http.Client] completes with an error when making a REST |
| 158 * If the used [http.Client] completes with an error when making a REST call, | 153 /// call, this method will complete with the same error. |
| 159 * this method will complete with the same error. | |
| 160 */ | |
| 161 async.Future<TransferJob> get(core.String jobName, {core.String projectId}) { | 154 async.Future<TransferJob> get(core.String jobName, {core.String projectId}) { |
| 162 var _url = null; | 155 var _url = null; |
| 163 var _queryParams = new core.Map(); | 156 var _queryParams = new core.Map(); |
| 164 var _uploadMedia = null; | 157 var _uploadMedia = null; |
| 165 var _uploadOptions = null; | 158 var _uploadOptions = null; |
| 166 var _downloadOptions = commons.DownloadOptions.Metadata; | 159 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 167 var _body = null; | 160 var _body = null; |
| 168 | 161 |
| 169 if (jobName == null) { | 162 if (jobName == null) { |
| 170 throw new core.ArgumentError("Parameter jobName is required."); | 163 throw new core.ArgumentError("Parameter jobName is required."); |
| 171 } | 164 } |
| 172 if (projectId != null) { | 165 if (projectId != null) { |
| 173 _queryParams["projectId"] = [projectId]; | 166 _queryParams["projectId"] = [projectId]; |
| 174 } | 167 } |
| 175 | 168 |
| 176 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$jobName'); | 169 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$jobName'); |
| 177 | 170 |
| 178 var _response = _requester.request(_url, | 171 var _response = _requester.request(_url, "GET", |
| 179 "GET", | 172 body: _body, |
| 180 body: _body, | 173 queryParams: _queryParams, |
| 181 queryParams: _queryParams, | 174 uploadOptions: _uploadOptions, |
| 182 uploadOptions: _uploadOptions, | 175 uploadMedia: _uploadMedia, |
| 183 uploadMedia: _uploadMedia, | 176 downloadOptions: _downloadOptions); |
| 184 downloadOptions: _downloadOptions); | |
| 185 return _response.then((data) => new TransferJob.fromJson(data)); | 177 return _response.then((data) => new TransferJob.fromJson(data)); |
| 186 } | 178 } |
| 187 | 179 |
| 188 /** | 180 /// Lists transfer jobs. |
| 189 * Lists transfer jobs. | 181 /// |
| 190 * | 182 /// Request parameters: |
| 191 * Request parameters: | 183 /// |
| 192 * | 184 /// [pageSize] - The list page size. The max allowed value is 256. |
| 193 * [filter] - A list of query parameters specified as JSON text in the form of | 185 /// |
| 194 * {"project_id":"my_project_id", | 186 /// [filter] - A list of query parameters specified as JSON text in the form |
| 195 * "job_names":["jobid1","jobid2",...], | 187 /// of |
| 196 * "job_statuses":["status1","status2",...]}. | 188 /// {"project_id":"my_project_id", |
| 197 * Since `job_names` and `job_statuses` support multiple values, their values | 189 /// "job_names":["jobid1","jobid2",...], |
| 198 * must be specified with array notation. `project_id` is required. | 190 /// "job_statuses":["status1","status2",...]}. |
| 199 * `job_names` | 191 /// Since `job_names` and `job_statuses` support multiple values, their |
| 200 * and `job_statuses` are optional. The valid values for `job_statuses` are | 192 /// values |
| 201 * case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`. | 193 /// must be specified with array notation. `project_id` is required. |
| 202 * | 194 /// `job_names` |
| 203 * [pageToken] - The list page token. | 195 /// and `job_statuses` are optional. The valid values for `job_statuses` are |
| 204 * | 196 /// case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`. |
| 205 * [pageSize] - The list page size. The max allowed value is 256. | 197 /// |
| 206 * | 198 /// [pageToken] - The list page token. |
| 207 * Completes with a [ListTransferJobsResponse]. | 199 /// |
| 208 * | 200 /// Completes with a [ListTransferJobsResponse]. |
| 209 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 201 /// |
| 210 * error. | 202 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 211 * | 203 /// an error. |
| 212 * If the used [http.Client] completes with an error when making a REST call, | 204 /// |
| 213 * this method will complete with the same error. | 205 /// If the used [http.Client] completes with an error when making a REST |
| 214 */ | 206 /// call, this method will complete with the same error. |
| 215 async.Future<ListTransferJobsResponse> list({core.String filter, core.String p
ageToken, core.int pageSize}) { | 207 async.Future<ListTransferJobsResponse> list( |
| 208 {core.int pageSize, core.String filter, core.String pageToken}) { |
| 216 var _url = null; | 209 var _url = null; |
| 217 var _queryParams = new core.Map(); | 210 var _queryParams = new core.Map(); |
| 218 var _uploadMedia = null; | 211 var _uploadMedia = null; |
| 219 var _uploadOptions = null; | 212 var _uploadOptions = null; |
| 220 var _downloadOptions = commons.DownloadOptions.Metadata; | 213 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 221 var _body = null; | 214 var _body = null; |
| 222 | 215 |
| 216 if (pageSize != null) { |
| 217 _queryParams["pageSize"] = ["${pageSize}"]; |
| 218 } |
| 223 if (filter != null) { | 219 if (filter != null) { |
| 224 _queryParams["filter"] = [filter]; | 220 _queryParams["filter"] = [filter]; |
| 225 } | 221 } |
| 226 if (pageToken != null) { | 222 if (pageToken != null) { |
| 227 _queryParams["pageToken"] = [pageToken]; | 223 _queryParams["pageToken"] = [pageToken]; |
| 228 } | 224 } |
| 229 if (pageSize != null) { | |
| 230 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 231 } | |
| 232 | 225 |
| 233 _url = 'v1/transferJobs'; | 226 _url = 'v1/transferJobs'; |
| 234 | 227 |
| 235 var _response = _requester.request(_url, | 228 var _response = _requester.request(_url, "GET", |
| 236 "GET", | 229 body: _body, |
| 237 body: _body, | 230 queryParams: _queryParams, |
| 238 queryParams: _queryParams, | 231 uploadOptions: _uploadOptions, |
| 239 uploadOptions: _uploadOptions, | 232 uploadMedia: _uploadMedia, |
| 240 uploadMedia: _uploadMedia, | 233 downloadOptions: _downloadOptions); |
| 241 downloadOptions: _downloadOptions); | 234 return _response |
| 242 return _response.then((data) => new ListTransferJobsResponse.fromJson(data))
; | 235 .then((data) => new ListTransferJobsResponse.fromJson(data)); |
| 243 } | 236 } |
| 244 | 237 |
| 245 /** | 238 /// Updates a transfer job. Updating a job's transfer spec does not affect |
| 246 * Updates a transfer job. Updating a job's transfer spec does not affect | 239 /// transfer operations that are running already. Updating the scheduling |
| 247 * transfer operations that are running already. Updating the scheduling | 240 /// of a job is not allowed. |
| 248 * of a job is not allowed. | 241 /// |
| 249 * | 242 /// [request] - The metadata request object. |
| 250 * [request] - The metadata request object. | 243 /// |
| 251 * | 244 /// Request parameters: |
| 252 * Request parameters: | 245 /// |
| 253 * | 246 /// [jobName] - The name of job to update. |
| 254 * [jobName] - The name of job to update. | 247 /// Required. |
| 255 * Required. | 248 /// Value must have pattern "^transferJobs/.+$". |
| 256 * Value must have pattern "^transferJobs/.+$". | 249 /// |
| 257 * | 250 /// Completes with a [TransferJob]. |
| 258 * Completes with a [TransferJob]. | 251 /// |
| 259 * | 252 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 260 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 253 /// an error. |
| 261 * error. | 254 /// |
| 262 * | 255 /// If the used [http.Client] completes with an error when making a REST |
| 263 * If the used [http.Client] completes with an error when making a REST call, | 256 /// call, this method will complete with the same error. |
| 264 * this method will complete with the same error. | 257 async.Future<TransferJob> patch( |
| 265 */ | 258 UpdateTransferJobRequest request, core.String jobName) { |
| 266 async.Future<TransferJob> patch(UpdateTransferJobRequest request, core.String
jobName) { | |
| 267 var _url = null; | 259 var _url = null; |
| 268 var _queryParams = new core.Map(); | 260 var _queryParams = new core.Map(); |
| 269 var _uploadMedia = null; | 261 var _uploadMedia = null; |
| 270 var _uploadOptions = null; | 262 var _uploadOptions = null; |
| 271 var _downloadOptions = commons.DownloadOptions.Metadata; | 263 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 272 var _body = null; | 264 var _body = null; |
| 273 | 265 |
| 274 if (request != null) { | 266 if (request != null) { |
| 275 _body = convert.JSON.encode((request).toJson()); | 267 _body = convert.JSON.encode((request).toJson()); |
| 276 } | 268 } |
| 277 if (jobName == null) { | 269 if (jobName == null) { |
| 278 throw new core.ArgumentError("Parameter jobName is required."); | 270 throw new core.ArgumentError("Parameter jobName is required."); |
| 279 } | 271 } |
| 280 | 272 |
| 281 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$jobName'); | 273 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$jobName'); |
| 282 | 274 |
| 283 var _response = _requester.request(_url, | 275 var _response = _requester.request(_url, "PATCH", |
| 284 "PATCH", | 276 body: _body, |
| 285 body: _body, | 277 queryParams: _queryParams, |
| 286 queryParams: _queryParams, | 278 uploadOptions: _uploadOptions, |
| 287 uploadOptions: _uploadOptions, | 279 uploadMedia: _uploadMedia, |
| 288 uploadMedia: _uploadMedia, | 280 downloadOptions: _downloadOptions); |
| 289 downloadOptions: _downloadOptions); | |
| 290 return _response.then((data) => new TransferJob.fromJson(data)); | 281 return _response.then((data) => new TransferJob.fromJson(data)); |
| 291 } | 282 } |
| 292 | |
| 293 } | 283 } |
| 294 | 284 |
| 295 | |
| 296 class TransferOperationsResourceApi { | 285 class TransferOperationsResourceApi { |
| 297 final commons.ApiRequester _requester; | 286 final commons.ApiRequester _requester; |
| 298 | 287 |
| 299 TransferOperationsResourceApi(commons.ApiRequester client) : | 288 TransferOperationsResourceApi(commons.ApiRequester client) |
| 300 _requester = client; | 289 : _requester = client; |
| 301 | 290 |
| 302 /** | 291 /// Cancels a transfer. Use the get method to check whether the cancellation |
| 303 * Cancels a transfer. Use the get method to check whether the cancellation | 292 /// succeeded or whether the operation completed despite cancellation. |
| 304 * succeeded or whether the operation completed despite cancellation. | 293 /// |
| 305 * | 294 /// Request parameters: |
| 306 * Request parameters: | 295 /// |
| 307 * | 296 /// [name] - The name of the operation resource to be cancelled. |
| 308 * [name] - The name of the operation resource to be cancelled. | 297 /// Value must have pattern "^transferOperations/.+$". |
| 309 * Value must have pattern "^transferOperations/.+$". | 298 /// |
| 310 * | 299 /// Completes with a [Empty]. |
| 311 * Completes with a [Empty]. | 300 /// |
| 312 * | 301 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 313 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 302 /// an error. |
| 314 * error. | 303 /// |
| 315 * | 304 /// If the used [http.Client] completes with an error when making a REST |
| 316 * If the used [http.Client] completes with an error when making a REST call, | 305 /// call, this method will complete with the same error. |
| 317 * this method will complete with the same error. | |
| 318 */ | |
| 319 async.Future<Empty> cancel(core.String name) { | 306 async.Future<Empty> cancel(core.String name) { |
| 320 var _url = null; | 307 var _url = null; |
| 321 var _queryParams = new core.Map(); | 308 var _queryParams = new core.Map(); |
| 322 var _uploadMedia = null; | 309 var _uploadMedia = null; |
| 323 var _uploadOptions = null; | 310 var _uploadOptions = null; |
| 324 var _downloadOptions = commons.DownloadOptions.Metadata; | 311 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 325 var _body = null; | 312 var _body = null; |
| 326 | 313 |
| 327 if (name == null) { | 314 if (name == null) { |
| 328 throw new core.ArgumentError("Parameter name is required."); | 315 throw new core.ArgumentError("Parameter name is required."); |
| 329 } | 316 } |
| 330 | 317 |
| 331 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; | 318 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; |
| 332 | 319 |
| 333 var _response = _requester.request(_url, | 320 var _response = _requester.request(_url, "POST", |
| 334 "POST", | 321 body: _body, |
| 335 body: _body, | 322 queryParams: _queryParams, |
| 336 queryParams: _queryParams, | 323 uploadOptions: _uploadOptions, |
| 337 uploadOptions: _uploadOptions, | 324 uploadMedia: _uploadMedia, |
| 338 uploadMedia: _uploadMedia, | 325 downloadOptions: _downloadOptions); |
| 339 downloadOptions: _downloadOptions); | |
| 340 return _response.then((data) => new Empty.fromJson(data)); | 326 return _response.then((data) => new Empty.fromJson(data)); |
| 341 } | 327 } |
| 342 | 328 |
| 343 /** | 329 /// This method is not supported and the server returns `UNIMPLEMENTED`. |
| 344 * This method is not supported and the server returns `UNIMPLEMENTED`. | 330 /// |
| 345 * | 331 /// Request parameters: |
| 346 * Request parameters: | 332 /// |
| 347 * | 333 /// [name] - The name of the operation resource to be deleted. |
| 348 * [name] - The name of the operation resource to be deleted. | 334 /// Value must have pattern "^transferOperations/.+$". |
| 349 * Value must have pattern "^transferOperations/.+$". | 335 /// |
| 350 * | 336 /// Completes with a [Empty]. |
| 351 * Completes with a [Empty]. | 337 /// |
| 352 * | 338 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 353 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 339 /// an error. |
| 354 * error. | 340 /// |
| 355 * | 341 /// If the used [http.Client] completes with an error when making a REST |
| 356 * If the used [http.Client] completes with an error when making a REST call, | 342 /// call, this method will complete with the same error. |
| 357 * this method will complete with the same error. | |
| 358 */ | |
| 359 async.Future<Empty> delete(core.String name) { | 343 async.Future<Empty> delete(core.String name) { |
| 360 var _url = null; | 344 var _url = null; |
| 361 var _queryParams = new core.Map(); | 345 var _queryParams = new core.Map(); |
| 362 var _uploadMedia = null; | 346 var _uploadMedia = null; |
| 363 var _uploadOptions = null; | 347 var _uploadOptions = null; |
| 364 var _downloadOptions = commons.DownloadOptions.Metadata; | 348 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 365 var _body = null; | 349 var _body = null; |
| 366 | 350 |
| 367 if (name == null) { | 351 if (name == null) { |
| 368 throw new core.ArgumentError("Parameter name is required."); | 352 throw new core.ArgumentError("Parameter name is required."); |
| 369 } | 353 } |
| 370 | 354 |
| 371 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 355 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 372 | 356 |
| 373 var _response = _requester.request(_url, | 357 var _response = _requester.request(_url, "DELETE", |
| 374 "DELETE", | 358 body: _body, |
| 375 body: _body, | 359 queryParams: _queryParams, |
| 376 queryParams: _queryParams, | 360 uploadOptions: _uploadOptions, |
| 377 uploadOptions: _uploadOptions, | 361 uploadMedia: _uploadMedia, |
| 378 uploadMedia: _uploadMedia, | 362 downloadOptions: _downloadOptions); |
| 379 downloadOptions: _downloadOptions); | |
| 380 return _response.then((data) => new Empty.fromJson(data)); | 363 return _response.then((data) => new Empty.fromJson(data)); |
| 381 } | 364 } |
| 382 | 365 |
| 383 /** | 366 /// Gets the latest state of a long-running operation. Clients can use this |
| 384 * Gets the latest state of a long-running operation. Clients can use this | 367 /// method to poll the operation result at intervals as recommended by the |
| 385 * method to poll the operation result at intervals as recommended by the API | 368 /// API |
| 386 * service. | 369 /// service. |
| 387 * | 370 /// |
| 388 * Request parameters: | 371 /// Request parameters: |
| 389 * | 372 /// |
| 390 * [name] - The name of the operation resource. | 373 /// [name] - The name of the operation resource. |
| 391 * Value must have pattern "^transferOperations/.+$". | 374 /// Value must have pattern "^transferOperations/.+$". |
| 392 * | 375 /// |
| 393 * Completes with a [Operation]. | 376 /// Completes with a [Operation]. |
| 394 * | 377 /// |
| 395 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 378 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 396 * error. | 379 /// an error. |
| 397 * | 380 /// |
| 398 * If the used [http.Client] completes with an error when making a REST call, | 381 /// If the used [http.Client] completes with an error when making a REST |
| 399 * this method will complete with the same error. | 382 /// call, this method will complete with the same error. |
| 400 */ | |
| 401 async.Future<Operation> get(core.String name) { | 383 async.Future<Operation> get(core.String name) { |
| 402 var _url = null; | 384 var _url = null; |
| 403 var _queryParams = new core.Map(); | 385 var _queryParams = new core.Map(); |
| 404 var _uploadMedia = null; | 386 var _uploadMedia = null; |
| 405 var _uploadOptions = null; | 387 var _uploadOptions = null; |
| 406 var _downloadOptions = commons.DownloadOptions.Metadata; | 388 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 407 var _body = null; | 389 var _body = null; |
| 408 | 390 |
| 409 if (name == null) { | 391 if (name == null) { |
| 410 throw new core.ArgumentError("Parameter name is required."); | 392 throw new core.ArgumentError("Parameter name is required."); |
| 411 } | 393 } |
| 412 | 394 |
| 413 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 395 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 414 | 396 |
| 415 var _response = _requester.request(_url, | 397 var _response = _requester.request(_url, "GET", |
| 416 "GET", | 398 body: _body, |
| 417 body: _body, | 399 queryParams: _queryParams, |
| 418 queryParams: _queryParams, | 400 uploadOptions: _uploadOptions, |
| 419 uploadOptions: _uploadOptions, | 401 uploadMedia: _uploadMedia, |
| 420 uploadMedia: _uploadMedia, | 402 downloadOptions: _downloadOptions); |
| 421 downloadOptions: _downloadOptions); | |
| 422 return _response.then((data) => new Operation.fromJson(data)); | 403 return _response.then((data) => new Operation.fromJson(data)); |
| 423 } | 404 } |
| 424 | 405 |
| 425 /** | 406 /// Lists operations that match the specified filter in the request. If the |
| 426 * Lists operations that match the specified filter in the request. If the | 407 /// server doesn't support this method, it returns `UNIMPLEMENTED`. |
| 427 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 408 /// |
| 428 * | 409 /// NOTE: the `name` binding allows API services to override the binding |
| 429 * NOTE: the `name` binding allows API services to override the binding | 410 /// to use different resource name schemes, such as `users / * /operations`. |
| 430 * to use different resource name schemes, such as `users / * /operations`. To | 411 /// To |
| 431 * override the binding, API services can add a binding such as | 412 /// override the binding, API services can add a binding such as |
| 432 * `"/v1/{name=users / * }/operations"` to their service configuration. | 413 /// `"/v1/{name=users / * }/operations"` to their service configuration. |
| 433 * For backwards compatibility, the default name includes the operations | 414 /// For backwards compatibility, the default name includes the operations |
| 434 * collection id, however overriding users must ensure the name binding | 415 /// collection id, however overriding users must ensure the name binding |
| 435 * is the parent resource, without the operations collection id. | 416 /// is the parent resource, without the operations collection id. |
| 436 * | 417 /// |
| 437 * Request parameters: | 418 /// Request parameters: |
| 438 * | 419 /// |
| 439 * [name] - The value `transferOperations`. | 420 /// [name] - The value `transferOperations`. |
| 440 * Value must have pattern "^transferOperations$". | 421 /// Value must have pattern "^transferOperations$". |
| 441 * | 422 /// |
| 442 * [pageToken] - The list page token. | 423 /// [pageSize] - The list page size. The max allowed value is 256. |
| 443 * | 424 /// |
| 444 * [pageSize] - The list page size. The max allowed value is 256. | 425 /// [filter] - A list of query parameters specified as JSON text in the form |
| 445 * | 426 /// of {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", |
| 446 * [filter] - A list of query parameters specified as JSON text in the form of | 427 /// \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], |
| 447 * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", | 428 /// \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`, |
| 448 * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], | 429 /// `operation_names`, and `transfer_statuses` support multiple values, they |
| 449 * \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`, | 430 /// must be specified with array notation. `job_names`, `operation_names`, |
| 450 * `operation_names`, and `transfer_statuses` support multiple values, they | 431 /// and `transfer_statuses` are optional. |
| 451 * must be specified with array notation. `job_names`, `operation_names`, and | 432 /// |
| 452 * `transfer_statuses` are optional. | 433 /// [pageToken] - The list page token. |
| 453 * | 434 /// |
| 454 * Completes with a [ListOperationsResponse]. | 435 /// Completes with a [ListOperationsResponse]. |
| 455 * | 436 /// |
| 456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 437 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 457 * error. | 438 /// an error. |
| 458 * | 439 /// |
| 459 * If the used [http.Client] completes with an error when making a REST call, | 440 /// If the used [http.Client] completes with an error when making a REST |
| 460 * this method will complete with the same error. | 441 /// call, this method will complete with the same error. |
| 461 */ | 442 async.Future<ListOperationsResponse> list(core.String name, |
| 462 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { | 443 {core.int pageSize, core.String filter, core.String pageToken}) { |
| 463 var _url = null; | 444 var _url = null; |
| 464 var _queryParams = new core.Map(); | 445 var _queryParams = new core.Map(); |
| 465 var _uploadMedia = null; | 446 var _uploadMedia = null; |
| 466 var _uploadOptions = null; | 447 var _uploadOptions = null; |
| 467 var _downloadOptions = commons.DownloadOptions.Metadata; | 448 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 468 var _body = null; | 449 var _body = null; |
| 469 | 450 |
| 470 if (name == null) { | 451 if (name == null) { |
| 471 throw new core.ArgumentError("Parameter name is required."); | 452 throw new core.ArgumentError("Parameter name is required."); |
| 472 } | 453 } |
| 473 if (pageToken != null) { | |
| 474 _queryParams["pageToken"] = [pageToken]; | |
| 475 } | |
| 476 if (pageSize != null) { | 454 if (pageSize != null) { |
| 477 _queryParams["pageSize"] = ["${pageSize}"]; | 455 _queryParams["pageSize"] = ["${pageSize}"]; |
| 478 } | 456 } |
| 479 if (filter != null) { | 457 if (filter != null) { |
| 480 _queryParams["filter"] = [filter]; | 458 _queryParams["filter"] = [filter]; |
| 481 } | 459 } |
| 460 if (pageToken != null) { |
| 461 _queryParams["pageToken"] = [pageToken]; |
| 462 } |
| 482 | 463 |
| 483 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 464 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 484 | 465 |
| 485 var _response = _requester.request(_url, | 466 var _response = _requester.request(_url, "GET", |
| 486 "GET", | 467 body: _body, |
| 487 body: _body, | 468 queryParams: _queryParams, |
| 488 queryParams: _queryParams, | 469 uploadOptions: _uploadOptions, |
| 489 uploadOptions: _uploadOptions, | 470 uploadMedia: _uploadMedia, |
| 490 uploadMedia: _uploadMedia, | 471 downloadOptions: _downloadOptions); |
| 491 downloadOptions: _downloadOptions); | |
| 492 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 472 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 493 } | 473 } |
| 494 | 474 |
| 495 /** | 475 /// Pauses a transfer operation. |
| 496 * Pauses a transfer operation. | 476 /// |
| 497 * | 477 /// [request] - The metadata request object. |
| 498 * [request] - The metadata request object. | 478 /// |
| 499 * | 479 /// Request parameters: |
| 500 * Request parameters: | 480 /// |
| 501 * | 481 /// [name] - The name of the transfer operation. |
| 502 * [name] - The name of the transfer operation. | 482 /// Required. |
| 503 * Required. | 483 /// Value must have pattern "^transferOperations/.+$". |
| 504 * Value must have pattern "^transferOperations/.+$". | 484 /// |
| 505 * | 485 /// Completes with a [Empty]. |
| 506 * Completes with a [Empty]. | 486 /// |
| 507 * | 487 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 508 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 488 /// an error. |
| 509 * error. | 489 /// |
| 510 * | 490 /// If the used [http.Client] completes with an error when making a REST |
| 511 * If the used [http.Client] completes with an error when making a REST call, | 491 /// call, this method will complete with the same error. |
| 512 * this method will complete with the same error. | 492 async.Future<Empty> pause( |
| 513 */ | 493 PauseTransferOperationRequest request, core.String name) { |
| 514 async.Future<Empty> pause(PauseTransferOperationRequest request, core.String n
ame) { | |
| 515 var _url = null; | 494 var _url = null; |
| 516 var _queryParams = new core.Map(); | 495 var _queryParams = new core.Map(); |
| 517 var _uploadMedia = null; | 496 var _uploadMedia = null; |
| 518 var _uploadOptions = null; | 497 var _uploadOptions = null; |
| 519 var _downloadOptions = commons.DownloadOptions.Metadata; | 498 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 520 var _body = null; | 499 var _body = null; |
| 521 | 500 |
| 522 if (request != null) { | 501 if (request != null) { |
| 523 _body = convert.JSON.encode((request).toJson()); | 502 _body = convert.JSON.encode((request).toJson()); |
| 524 } | 503 } |
| 525 if (name == null) { | 504 if (name == null) { |
| 526 throw new core.ArgumentError("Parameter name is required."); | 505 throw new core.ArgumentError("Parameter name is required."); |
| 527 } | 506 } |
| 528 | 507 |
| 529 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':pause'; | 508 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':pause'; |
| 530 | 509 |
| 531 var _response = _requester.request(_url, | 510 var _response = _requester.request(_url, "POST", |
| 532 "POST", | 511 body: _body, |
| 533 body: _body, | 512 queryParams: _queryParams, |
| 534 queryParams: _queryParams, | 513 uploadOptions: _uploadOptions, |
| 535 uploadOptions: _uploadOptions, | 514 uploadMedia: _uploadMedia, |
| 536 uploadMedia: _uploadMedia, | 515 downloadOptions: _downloadOptions); |
| 537 downloadOptions: _downloadOptions); | |
| 538 return _response.then((data) => new Empty.fromJson(data)); | 516 return _response.then((data) => new Empty.fromJson(data)); |
| 539 } | 517 } |
| 540 | 518 |
| 541 /** | 519 /// Resumes a transfer operation that is paused. |
| 542 * Resumes a transfer operation that is paused. | 520 /// |
| 543 * | 521 /// [request] - The metadata request object. |
| 544 * [request] - The metadata request object. | 522 /// |
| 545 * | 523 /// Request parameters: |
| 546 * Request parameters: | 524 /// |
| 547 * | 525 /// [name] - The name of the transfer operation. |
| 548 * [name] - The name of the transfer operation. | 526 /// Required. |
| 549 * Required. | 527 /// Value must have pattern "^transferOperations/.+$". |
| 550 * Value must have pattern "^transferOperations/.+$". | 528 /// |
| 551 * | 529 /// Completes with a [Empty]. |
| 552 * Completes with a [Empty]. | 530 /// |
| 553 * | 531 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 554 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 532 /// an error. |
| 555 * error. | 533 /// |
| 556 * | 534 /// If the used [http.Client] completes with an error when making a REST |
| 557 * If the used [http.Client] completes with an error when making a REST call, | 535 /// call, this method will complete with the same error. |
| 558 * this method will complete with the same error. | 536 async.Future<Empty> resume( |
| 559 */ | 537 ResumeTransferOperationRequest request, core.String name) { |
| 560 async.Future<Empty> resume(ResumeTransferOperationRequest request, core.String
name) { | |
| 561 var _url = null; | 538 var _url = null; |
| 562 var _queryParams = new core.Map(); | 539 var _queryParams = new core.Map(); |
| 563 var _uploadMedia = null; | 540 var _uploadMedia = null; |
| 564 var _uploadOptions = null; | 541 var _uploadOptions = null; |
| 565 var _downloadOptions = commons.DownloadOptions.Metadata; | 542 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 566 var _body = null; | 543 var _body = null; |
| 567 | 544 |
| 568 if (request != null) { | 545 if (request != null) { |
| 569 _body = convert.JSON.encode((request).toJson()); | 546 _body = convert.JSON.encode((request).toJson()); |
| 570 } | 547 } |
| 571 if (name == null) { | 548 if (name == null) { |
| 572 throw new core.ArgumentError("Parameter name is required."); | 549 throw new core.ArgumentError("Parameter name is required."); |
| 573 } | 550 } |
| 574 | 551 |
| 575 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':resume'; | 552 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':resume'; |
| 576 | 553 |
| 577 var _response = _requester.request(_url, | 554 var _response = _requester.request(_url, "POST", |
| 578 "POST", | 555 body: _body, |
| 579 body: _body, | 556 queryParams: _queryParams, |
| 580 queryParams: _queryParams, | 557 uploadOptions: _uploadOptions, |
| 581 uploadOptions: _uploadOptions, | 558 uploadMedia: _uploadMedia, |
| 582 uploadMedia: _uploadMedia, | 559 downloadOptions: _downloadOptions); |
| 583 downloadOptions: _downloadOptions); | |
| 584 return _response.then((data) => new Empty.fromJson(data)); | 560 return _response.then((data) => new Empty.fromJson(data)); |
| 585 } | 561 } |
| 586 | |
| 587 } | 562 } |
| 588 | 563 |
| 564 /// AWS access key (see |
| 565 /// [AWS Security |
| 566 /// Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-crede
ntials.html)). |
| 567 class AwsAccessKey { |
| 568 /// AWS access key ID. |
| 569 /// Required. |
| 570 core.String accessKeyId; |
| 589 | 571 |
| 590 | 572 /// AWS secret access key. This field is not returned in RPC responses. |
| 591 /** | 573 /// Required. |
| 592 * AWS access key (see | |
| 593 * [AWS Security | |
| 594 * Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-creden
tials.html)). | |
| 595 */ | |
| 596 class AwsAccessKey { | |
| 597 /** | |
| 598 * AWS access key ID. | |
| 599 * Required. | |
| 600 */ | |
| 601 core.String accessKeyId; | |
| 602 /** | |
| 603 * AWS secret access key. This field is not returned in RPC responses. | |
| 604 * Required. | |
| 605 */ | |
| 606 core.String secretAccessKey; | 574 core.String secretAccessKey; |
| 607 | 575 |
| 608 AwsAccessKey(); | 576 AwsAccessKey(); |
| 609 | 577 |
| 610 AwsAccessKey.fromJson(core.Map _json) { | 578 AwsAccessKey.fromJson(core.Map _json) { |
| 611 if (_json.containsKey("accessKeyId")) { | 579 if (_json.containsKey("accessKeyId")) { |
| 612 accessKeyId = _json["accessKeyId"]; | 580 accessKeyId = _json["accessKeyId"]; |
| 613 } | 581 } |
| 614 if (_json.containsKey("secretAccessKey")) { | 582 if (_json.containsKey("secretAccessKey")) { |
| 615 secretAccessKey = _json["secretAccessKey"]; | 583 secretAccessKey = _json["secretAccessKey"]; |
| 616 } | 584 } |
| 617 } | 585 } |
| 618 | 586 |
| 619 core.Map<core.String, core.Object> toJson() { | 587 core.Map<core.String, core.Object> toJson() { |
| 620 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 588 final core.Map<core.String, core.Object> _json = |
| 589 new core.Map<core.String, core.Object>(); |
| 621 if (accessKeyId != null) { | 590 if (accessKeyId != null) { |
| 622 _json["accessKeyId"] = accessKeyId; | 591 _json["accessKeyId"] = accessKeyId; |
| 623 } | 592 } |
| 624 if (secretAccessKey != null) { | 593 if (secretAccessKey != null) { |
| 625 _json["secretAccessKey"] = secretAccessKey; | 594 _json["secretAccessKey"] = secretAccessKey; |
| 626 } | 595 } |
| 627 return _json; | 596 return _json; |
| 628 } | 597 } |
| 629 } | 598 } |
| 630 | 599 |
| 631 /** | 600 /// An AwsS3Data can be a data source, but not a data sink. |
| 632 * An AwsS3Data can be a data source, but not a data sink. | 601 /// In an AwsS3Data, an object's name is the S3 object's key name. |
| 633 * In an AwsS3Data, an object's name is the S3 object's key name. | |
| 634 */ | |
| 635 class AwsS3Data { | 602 class AwsS3Data { |
| 636 /** | 603 /// AWS access key used to sign the API requests to the AWS S3 bucket. |
| 637 * AWS access key used to sign the API requests to the AWS S3 bucket. | 604 /// Permissions on the bucket must be granted to the access ID of the |
| 638 * Permissions on the bucket must be granted to the access ID of the | 605 /// AWS access key. |
| 639 * AWS access key. | 606 /// Required. |
| 640 * Required. | |
| 641 */ | |
| 642 AwsAccessKey awsAccessKey; | 607 AwsAccessKey awsAccessKey; |
| 643 /** | 608 |
| 644 * S3 Bucket name (see | 609 /// S3 Bucket name (see |
| 645 * [Creating a | 610 /// [Creating a |
| 646 * bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-lo
cation-example.html)). | 611 /// bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-l
ocation-example.html)). |
| 647 * Required. | 612 /// Required. |
| 648 */ | |
| 649 core.String bucketName; | 613 core.String bucketName; |
| 650 | 614 |
| 651 AwsS3Data(); | 615 AwsS3Data(); |
| 652 | 616 |
| 653 AwsS3Data.fromJson(core.Map _json) { | 617 AwsS3Data.fromJson(core.Map _json) { |
| 654 if (_json.containsKey("awsAccessKey")) { | 618 if (_json.containsKey("awsAccessKey")) { |
| 655 awsAccessKey = new AwsAccessKey.fromJson(_json["awsAccessKey"]); | 619 awsAccessKey = new AwsAccessKey.fromJson(_json["awsAccessKey"]); |
| 656 } | 620 } |
| 657 if (_json.containsKey("bucketName")) { | 621 if (_json.containsKey("bucketName")) { |
| 658 bucketName = _json["bucketName"]; | 622 bucketName = _json["bucketName"]; |
| 659 } | 623 } |
| 660 } | 624 } |
| 661 | 625 |
| 662 core.Map<core.String, core.Object> toJson() { | 626 core.Map<core.String, core.Object> toJson() { |
| 663 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 627 final core.Map<core.String, core.Object> _json = |
| 628 new core.Map<core.String, core.Object>(); |
| 664 if (awsAccessKey != null) { | 629 if (awsAccessKey != null) { |
| 665 _json["awsAccessKey"] = (awsAccessKey).toJson(); | 630 _json["awsAccessKey"] = (awsAccessKey).toJson(); |
| 666 } | 631 } |
| 667 if (bucketName != null) { | 632 if (bucketName != null) { |
| 668 _json["bucketName"] = bucketName; | 633 _json["bucketName"] = bucketName; |
| 669 } | 634 } |
| 670 return _json; | 635 return _json; |
| 671 } | 636 } |
| 672 } | 637 } |
| 673 | 638 |
| 674 /** | 639 /// Represents a whole calendar date, e.g. date of birth. The time of day and |
| 675 * Represents a whole calendar date, e.g. date of birth. The time of day and | 640 /// time zone are either specified elsewhere or are not significant. The date |
| 676 * time zone are either specified elsewhere or are not significant. The date | 641 /// is relative to the Proleptic Gregorian Calendar. The day may be 0 to |
| 677 * is relative to the Proleptic Gregorian Calendar. The day may be 0 to | 642 /// represent a year and month where the day is not significant, e.g. credit |
| 678 * represent a year and month where the day is not significant, e.g. credit card | 643 /// card |
| 679 * expiration date. The year may be 0 to represent a month and day independent | 644 /// expiration date. The year may be 0 to represent a month and day independent |
| 680 * of year, e.g. anniversary date. Related types are google.type.TimeOfDay | 645 /// of year, e.g. anniversary date. Related types are google.type.TimeOfDay |
| 681 * and `google.protobuf.Timestamp`. | 646 /// and `google.protobuf.Timestamp`. |
| 682 */ | |
| 683 class Date { | 647 class Date { |
| 684 /** | 648 /// Day of month. Must be from 1 to 31 and valid for the year and month, or 0 |
| 685 * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 | 649 /// if specifying a year/month where the day is not significant. |
| 686 * if specifying a year/month where the day is not significant. | |
| 687 */ | |
| 688 core.int day; | 650 core.int day; |
| 689 /** Month of year. Must be from 1 to 12. */ | 651 |
| 652 /// Month of year. Must be from 1 to 12. |
| 690 core.int month; | 653 core.int month; |
| 691 /** | 654 |
| 692 * Year of date. Must be from 1 to 9999, or 0 if specifying a date without | 655 /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without |
| 693 * a year. | 656 /// a year. |
| 694 */ | |
| 695 core.int year; | 657 core.int year; |
| 696 | 658 |
| 697 Date(); | 659 Date(); |
| 698 | 660 |
| 699 Date.fromJson(core.Map _json) { | 661 Date.fromJson(core.Map _json) { |
| 700 if (_json.containsKey("day")) { | 662 if (_json.containsKey("day")) { |
| 701 day = _json["day"]; | 663 day = _json["day"]; |
| 702 } | 664 } |
| 703 if (_json.containsKey("month")) { | 665 if (_json.containsKey("month")) { |
| 704 month = _json["month"]; | 666 month = _json["month"]; |
| 705 } | 667 } |
| 706 if (_json.containsKey("year")) { | 668 if (_json.containsKey("year")) { |
| 707 year = _json["year"]; | 669 year = _json["year"]; |
| 708 } | 670 } |
| 709 } | 671 } |
| 710 | 672 |
| 711 core.Map<core.String, core.Object> toJson() { | 673 core.Map<core.String, core.Object> toJson() { |
| 712 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 674 final core.Map<core.String, core.Object> _json = |
| 675 new core.Map<core.String, core.Object>(); |
| 713 if (day != null) { | 676 if (day != null) { |
| 714 _json["day"] = day; | 677 _json["day"] = day; |
| 715 } | 678 } |
| 716 if (month != null) { | 679 if (month != null) { |
| 717 _json["month"] = month; | 680 _json["month"] = month; |
| 718 } | 681 } |
| 719 if (year != null) { | 682 if (year != null) { |
| 720 _json["year"] = year; | 683 _json["year"] = year; |
| 721 } | 684 } |
| 722 return _json; | 685 return _json; |
| 723 } | 686 } |
| 724 } | 687 } |
| 725 | 688 |
| 726 /** | 689 /// A generic empty message that you can re-use to avoid defining duplicated |
| 727 * A generic empty message that you can re-use to avoid defining duplicated | 690 /// empty messages in your APIs. A typical example is to use it as the request |
| 728 * empty messages in your APIs. A typical example is to use it as the request | 691 /// or the response type of an API method. For instance: |
| 729 * or the response type of an API method. For instance: | 692 /// |
| 730 * | 693 /// service Foo { |
| 731 * service Foo { | 694 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 732 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 695 /// } |
| 733 * } | 696 /// |
| 734 * | 697 /// The JSON representation for `Empty` is empty JSON object `{}`. |
| 735 * The JSON representation for `Empty` is empty JSON object `{}`. | |
| 736 */ | |
| 737 class Empty { | 698 class Empty { |
| 738 | |
| 739 Empty(); | 699 Empty(); |
| 740 | 700 |
| 741 Empty.fromJson(core.Map _json) { | 701 Empty.fromJson(core.Map _json) {} |
| 742 } | |
| 743 | 702 |
| 744 core.Map<core.String, core.Object> toJson() { | 703 core.Map<core.String, core.Object> toJson() { |
| 745 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 704 final core.Map<core.String, core.Object> _json = |
| 705 new core.Map<core.String, core.Object>(); |
| 746 return _json; | 706 return _json; |
| 747 } | 707 } |
| 748 } | 708 } |
| 749 | 709 |
| 750 /** An entry describing an error that has occurred. */ | 710 /// An entry describing an error that has occurred. |
| 751 class ErrorLogEntry { | 711 class ErrorLogEntry { |
| 752 /** A list of messages that carry the error details. */ | 712 /// A list of messages that carry the error details. |
| 753 core.List<core.String> errorDetails; | 713 core.List<core.String> errorDetails; |
| 754 /** | 714 |
| 755 * A URL that refers to the target (a data source, a data sink, | 715 /// A URL that refers to the target (a data source, a data sink, |
| 756 * or an object) with which the error is associated. | 716 /// or an object) with which the error is associated. |
| 757 * Required. | 717 /// Required. |
| 758 */ | |
| 759 core.String url; | 718 core.String url; |
| 760 | 719 |
| 761 ErrorLogEntry(); | 720 ErrorLogEntry(); |
| 762 | 721 |
| 763 ErrorLogEntry.fromJson(core.Map _json) { | 722 ErrorLogEntry.fromJson(core.Map _json) { |
| 764 if (_json.containsKey("errorDetails")) { | 723 if (_json.containsKey("errorDetails")) { |
| 765 errorDetails = _json["errorDetails"]; | 724 errorDetails = _json["errorDetails"]; |
| 766 } | 725 } |
| 767 if (_json.containsKey("url")) { | 726 if (_json.containsKey("url")) { |
| 768 url = _json["url"]; | 727 url = _json["url"]; |
| 769 } | 728 } |
| 770 } | 729 } |
| 771 | 730 |
| 772 core.Map<core.String, core.Object> toJson() { | 731 core.Map<core.String, core.Object> toJson() { |
| 773 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 732 final core.Map<core.String, core.Object> _json = |
| 733 new core.Map<core.String, core.Object>(); |
| 774 if (errorDetails != null) { | 734 if (errorDetails != null) { |
| 775 _json["errorDetails"] = errorDetails; | 735 _json["errorDetails"] = errorDetails; |
| 776 } | 736 } |
| 777 if (url != null) { | 737 if (url != null) { |
| 778 _json["url"] = url; | 738 _json["url"] = url; |
| 779 } | 739 } |
| 780 return _json; | 740 return _json; |
| 781 } | 741 } |
| 782 } | 742 } |
| 783 | 743 |
| 784 /** | 744 /// A summary of errors by error code, plus a count and sample error log |
| 785 * A summary of errors by error code, plus a count and sample error log | 745 /// entries. |
| 786 * entries. | |
| 787 */ | |
| 788 class ErrorSummary { | 746 class ErrorSummary { |
| 789 /** | 747 /// Required. |
| 790 * Required. | 748 /// Possible string values are: |
| 791 * Possible string values are: | 749 /// - "OK" : Not an error; returned on success |
| 792 * - "OK" : Not an error; returned on success | 750 /// |
| 793 * | 751 /// HTTP Mapping: 200 OK |
| 794 * HTTP Mapping: 200 OK | 752 /// - "CANCELLED" : The operation was cancelled, typically by the caller. |
| 795 * - "CANCELLED" : The operation was cancelled, typically by the caller. | 753 /// |
| 796 * | 754 /// HTTP Mapping: 499 Client Closed Request |
| 797 * HTTP Mapping: 499 Client Closed Request | 755 /// - "UNKNOWN" : Unknown error. For example, this error may be returned |
| 798 * - "UNKNOWN" : Unknown error. For example, this error may be returned when | 756 /// when |
| 799 * a `Status` value received from another address space belongs to | 757 /// a `Status` value received from another address space belongs to |
| 800 * an error space that is not known in this address space. Also | 758 /// an error space that is not known in this address space. Also |
| 801 * errors raised by APIs that do not return enough error information | 759 /// errors raised by APIs that do not return enough error information |
| 802 * may be converted to this error. | 760 /// may be converted to this error. |
| 803 * | 761 /// |
| 804 * HTTP Mapping: 500 Internal Server Error | 762 /// HTTP Mapping: 500 Internal Server Error |
| 805 * - "INVALID_ARGUMENT" : The client specified an invalid argument. Note that | 763 /// - "INVALID_ARGUMENT" : The client specified an invalid argument. Note |
| 806 * this differs | 764 /// that this differs |
| 807 * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments | 765 /// from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments |
| 808 * that are problematic regardless of the state of the system | 766 /// that are problematic regardless of the state of the system |
| 809 * (e.g., a malformed file name). | 767 /// (e.g., a malformed file name). |
| 810 * | 768 /// |
| 811 * HTTP Mapping: 400 Bad Request | 769 /// HTTP Mapping: 400 Bad Request |
| 812 * - "DEADLINE_EXCEEDED" : The deadline expired before the operation could | 770 /// - "DEADLINE_EXCEEDED" : The deadline expired before the operation could |
| 813 * complete. For operations | 771 /// complete. For operations |
| 814 * that change the state of the system, this error may be returned | 772 /// that change the state of the system, this error may be returned |
| 815 * even if the operation has completed successfully. For example, a | 773 /// even if the operation has completed successfully. For example, a |
| 816 * successful response from a server could have been delayed long | 774 /// successful response from a server could have been delayed long |
| 817 * enough for the deadline to expire. | 775 /// enough for the deadline to expire. |
| 818 * | 776 /// |
| 819 * HTTP Mapping: 504 Gateway Timeout | 777 /// HTTP Mapping: 504 Gateway Timeout |
| 820 * - "NOT_FOUND" : Some requested entity (e.g., file or directory) was not | 778 /// - "NOT_FOUND" : Some requested entity (e.g., file or directory) was not |
| 821 * found. | 779 /// found. |
| 822 * | 780 /// |
| 823 * Note to server developers: if a request is denied for an entire class | 781 /// Note to server developers: if a request is denied for an entire class |
| 824 * of users, such as gradual feature rollout or undocumented whitelist, | 782 /// of users, such as gradual feature rollout or undocumented whitelist, |
| 825 * `NOT_FOUND` may be used. If a request is denied for some users within | 783 /// `NOT_FOUND` may be used. If a request is denied for some users within |
| 826 * a class of users, such as user-based access control, `PERMISSION_DENIED` | 784 /// a class of users, such as user-based access control, `PERMISSION_DENIED` |
| 827 * must be used. | 785 /// must be used. |
| 828 * | 786 /// |
| 829 * HTTP Mapping: 404 Not Found | 787 /// HTTP Mapping: 404 Not Found |
| 830 * - "ALREADY_EXISTS" : The entity that a client attempted to create (e.g., | 788 /// - "ALREADY_EXISTS" : The entity that a client attempted to create (e.g., |
| 831 * file or directory) | 789 /// file or directory) |
| 832 * already exists. | 790 /// already exists. |
| 833 * | 791 /// |
| 834 * HTTP Mapping: 409 Conflict | 792 /// HTTP Mapping: 409 Conflict |
| 835 * - "PERMISSION_DENIED" : The caller does not have permission to execute the | 793 /// - "PERMISSION_DENIED" : The caller does not have permission to execute |
| 836 * specified | 794 /// the specified |
| 837 * operation. `PERMISSION_DENIED` must not be used for rejections | 795 /// operation. `PERMISSION_DENIED` must not be used for rejections |
| 838 * caused by exhausting some resource (use `RESOURCE_EXHAUSTED` | 796 /// caused by exhausting some resource (use `RESOURCE_EXHAUSTED` |
| 839 * instead for those errors). `PERMISSION_DENIED` must not be | 797 /// instead for those errors). `PERMISSION_DENIED` must not be |
| 840 * used if the caller can not be identified (use `UNAUTHENTICATED` | 798 /// used if the caller can not be identified (use `UNAUTHENTICATED` |
| 841 * instead for those errors). This error code does not imply the | 799 /// instead for those errors). This error code does not imply the |
| 842 * request is valid or the requested entity exists or satisfies | 800 /// request is valid or the requested entity exists or satisfies |
| 843 * other pre-conditions. | 801 /// other pre-conditions. |
| 844 * | 802 /// |
| 845 * HTTP Mapping: 403 Forbidden | 803 /// HTTP Mapping: 403 Forbidden |
| 846 * - "UNAUTHENTICATED" : The request does not have valid authentication | 804 /// - "UNAUTHENTICATED" : The request does not have valid authentication |
| 847 * credentials for the | 805 /// credentials for the |
| 848 * operation. | 806 /// operation. |
| 849 * | 807 /// |
| 850 * HTTP Mapping: 401 Unauthorized | 808 /// HTTP Mapping: 401 Unauthorized |
| 851 * - "RESOURCE_EXHAUSTED" : Some resource has been exhausted, perhaps a | 809 /// - "RESOURCE_EXHAUSTED" : Some resource has been exhausted, perhaps a |
| 852 * per-user quota, or | 810 /// per-user quota, or |
| 853 * perhaps the entire file system is out of space. | 811 /// perhaps the entire file system is out of space. |
| 854 * | 812 /// |
| 855 * HTTP Mapping: 429 Too Many Requests | 813 /// HTTP Mapping: 429 Too Many Requests |
| 856 * - "FAILED_PRECONDITION" : The operation was rejected because the system is | 814 /// - "FAILED_PRECONDITION" : The operation was rejected because the system |
| 857 * not in a state | 815 /// is not in a state |
| 858 * required for the operation's execution. For example, the directory | 816 /// required for the operation's execution. For example, the directory |
| 859 * to be deleted is non-empty, an rmdir operation is applied to | 817 /// to be deleted is non-empty, an rmdir operation is applied to |
| 860 * a non-directory, etc. | 818 /// a non-directory, etc. |
| 861 * | 819 /// |
| 862 * Service implementors can use the following guidelines to decide | 820 /// Service implementors can use the following guidelines to decide |
| 863 * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: | 821 /// between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: |
| 864 * (a) Use `UNAVAILABLE` if the client can retry just the failing call. | 822 /// (a) Use `UNAVAILABLE` if the client can retry just the failing call. |
| 865 * (b) Use `ABORTED` if the client should retry at a higher level | 823 /// (b) Use `ABORTED` if the client should retry at a higher level |
| 866 * (e.g., when a client-specified test-and-set fails, indicating the | 824 /// (e.g., when a client-specified test-and-set fails, indicating the |
| 867 * client should restart a read-modify-write sequence). | 825 /// client should restart a read-modify-write sequence). |
| 868 * (c) Use `FAILED_PRECONDITION` if the client should not retry until | 826 /// (c) Use `FAILED_PRECONDITION` if the client should not retry until |
| 869 * the system state has been explicitly fixed. E.g., if an "rmdir" | 827 /// the system state has been explicitly fixed. E.g., if an "rmdir" |
| 870 * fails because the directory is non-empty, `FAILED_PRECONDITION` | 828 /// fails because the directory is non-empty, `FAILED_PRECONDITION` |
| 871 * should be returned since the client should not retry unless | 829 /// should be returned since the client should not retry unless |
| 872 * the files are deleted from the directory. | 830 /// the files are deleted from the directory. |
| 873 * | 831 /// |
| 874 * HTTP Mapping: 400 Bad Request | 832 /// HTTP Mapping: 400 Bad Request |
| 875 * - "ABORTED" : The operation was aborted, typically due to a concurrency | 833 /// - "ABORTED" : The operation was aborted, typically due to a concurrency |
| 876 * issue such as | 834 /// issue such as |
| 877 * a sequencer check failure or transaction abort. | 835 /// a sequencer check failure or transaction abort. |
| 878 * | 836 /// |
| 879 * See the guidelines above for deciding between `FAILED_PRECONDITION`, | 837 /// See the guidelines above for deciding between `FAILED_PRECONDITION`, |
| 880 * `ABORTED`, and `UNAVAILABLE`. | 838 /// `ABORTED`, and `UNAVAILABLE`. |
| 881 * | 839 /// |
| 882 * HTTP Mapping: 409 Conflict | 840 /// HTTP Mapping: 409 Conflict |
| 883 * - "OUT_OF_RANGE" : The operation was attempted past the valid range. E.g., | 841 /// - "OUT_OF_RANGE" : The operation was attempted past the valid range. |
| 884 * seeking or | 842 /// E.g., seeking or |
| 885 * reading past end-of-file. | 843 /// reading past end-of-file. |
| 886 * | 844 /// |
| 887 * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may | 845 /// Unlike `INVALID_ARGUMENT`, this error indicates a problem that may |
| 888 * be fixed if the system state changes. For example, a 32-bit file | 846 /// be fixed if the system state changes. For example, a 32-bit file |
| 889 * system will generate `INVALID_ARGUMENT` if asked to read at an | 847 /// system will generate `INVALID_ARGUMENT` if asked to read at an |
| 890 * offset that is not in the range [0,2^32-1], but it will generate | 848 /// offset that is not in the range [0,2^32-1], but it will generate |
| 891 * `OUT_OF_RANGE` if asked to read from an offset past the current | 849 /// `OUT_OF_RANGE` if asked to read from an offset past the current |
| 892 * file size. | 850 /// file size. |
| 893 * | 851 /// |
| 894 * There is a fair bit of overlap between `FAILED_PRECONDITION` and | 852 /// There is a fair bit of overlap between `FAILED_PRECONDITION` and |
| 895 * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific | 853 /// `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific |
| 896 * error) when it applies so that callers who are iterating through | 854 /// error) when it applies so that callers who are iterating through |
| 897 * a space can easily look for an `OUT_OF_RANGE` error to detect when | 855 /// a space can easily look for an `OUT_OF_RANGE` error to detect when |
| 898 * they are done. | 856 /// they are done. |
| 899 * | 857 /// |
| 900 * HTTP Mapping: 400 Bad Request | 858 /// HTTP Mapping: 400 Bad Request |
| 901 * - "UNIMPLEMENTED" : The operation is not implemented or is not | 859 /// - "UNIMPLEMENTED" : The operation is not implemented or is not |
| 902 * supported/enabled in this | 860 /// supported/enabled in this |
| 903 * service. | 861 /// service. |
| 904 * | 862 /// |
| 905 * HTTP Mapping: 501 Not Implemented | 863 /// HTTP Mapping: 501 Not Implemented |
| 906 * - "INTERNAL" : Internal errors. This means that some invariants expected | 864 /// - "INTERNAL" : Internal errors. This means that some invariants expected |
| 907 * by the | 865 /// by the |
| 908 * underlying system have been broken. This error code is reserved | 866 /// underlying system have been broken. This error code is reserved |
| 909 * for serious errors. | 867 /// for serious errors. |
| 910 * | 868 /// |
| 911 * HTTP Mapping: 500 Internal Server Error | 869 /// HTTP Mapping: 500 Internal Server Error |
| 912 * - "UNAVAILABLE" : The service is currently unavailable. This is most | 870 /// - "UNAVAILABLE" : The service is currently unavailable. This is most |
| 913 * likely a | 871 /// likely a |
| 914 * transient condition, which can be corrected by retrying with | 872 /// transient condition, which can be corrected by retrying with |
| 915 * a backoff. | 873 /// a backoff. |
| 916 * | 874 /// |
| 917 * See the guidelines above for deciding between `FAILED_PRECONDITION`, | 875 /// See the guidelines above for deciding between `FAILED_PRECONDITION`, |
| 918 * `ABORTED`, and `UNAVAILABLE`. | 876 /// `ABORTED`, and `UNAVAILABLE`. |
| 919 * | 877 /// |
| 920 * HTTP Mapping: 503 Service Unavailable | 878 /// HTTP Mapping: 503 Service Unavailable |
| 921 * - "DATA_LOSS" : Unrecoverable data loss or corruption. | 879 /// - "DATA_LOSS" : Unrecoverable data loss or corruption. |
| 922 * | 880 /// |
| 923 * HTTP Mapping: 500 Internal Server Error | 881 /// HTTP Mapping: 500 Internal Server Error |
| 924 */ | |
| 925 core.String errorCode; | 882 core.String errorCode; |
| 926 /** | 883 |
| 927 * Count of this type of error. | 884 /// Count of this type of error. |
| 928 * Required. | 885 /// Required. |
| 929 */ | |
| 930 core.String errorCount; | 886 core.String errorCount; |
| 931 /** Error samples. */ | 887 |
| 888 /// Error samples. |
| 932 core.List<ErrorLogEntry> errorLogEntries; | 889 core.List<ErrorLogEntry> errorLogEntries; |
| 933 | 890 |
| 934 ErrorSummary(); | 891 ErrorSummary(); |
| 935 | 892 |
| 936 ErrorSummary.fromJson(core.Map _json) { | 893 ErrorSummary.fromJson(core.Map _json) { |
| 937 if (_json.containsKey("errorCode")) { | 894 if (_json.containsKey("errorCode")) { |
| 938 errorCode = _json["errorCode"]; | 895 errorCode = _json["errorCode"]; |
| 939 } | 896 } |
| 940 if (_json.containsKey("errorCount")) { | 897 if (_json.containsKey("errorCount")) { |
| 941 errorCount = _json["errorCount"]; | 898 errorCount = _json["errorCount"]; |
| 942 } | 899 } |
| 943 if (_json.containsKey("errorLogEntries")) { | 900 if (_json.containsKey("errorLogEntries")) { |
| 944 errorLogEntries = _json["errorLogEntries"].map((value) => new ErrorLogEntr
y.fromJson(value)).toList(); | 901 errorLogEntries = _json["errorLogEntries"] |
| 902 .map((value) => new ErrorLogEntry.fromJson(value)) |
| 903 .toList(); |
| 945 } | 904 } |
| 946 } | 905 } |
| 947 | 906 |
| 948 core.Map<core.String, core.Object> toJson() { | 907 core.Map<core.String, core.Object> toJson() { |
| 949 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 908 final core.Map<core.String, core.Object> _json = |
| 909 new core.Map<core.String, core.Object>(); |
| 950 if (errorCode != null) { | 910 if (errorCode != null) { |
| 951 _json["errorCode"] = errorCode; | 911 _json["errorCode"] = errorCode; |
| 952 } | 912 } |
| 953 if (errorCount != null) { | 913 if (errorCount != null) { |
| 954 _json["errorCount"] = errorCount; | 914 _json["errorCount"] = errorCount; |
| 955 } | 915 } |
| 956 if (errorLogEntries != null) { | 916 if (errorLogEntries != null) { |
| 957 _json["errorLogEntries"] = errorLogEntries.map((value) => (value).toJson()
).toList(); | 917 _json["errorLogEntries"] = |
| 918 errorLogEntries.map((value) => (value).toJson()).toList(); |
| 958 } | 919 } |
| 959 return _json; | 920 return _json; |
| 960 } | 921 } |
| 961 } | 922 } |
| 962 | 923 |
| 963 /** | 924 /// In a GcsData, an object's name is the Google Cloud Storage object's name |
| 964 * In a GcsData, an object's name is the Google Cloud Storage object's name and | 925 /// and |
| 965 * its `lastModificationTime` refers to the object's updated time, which changes | 926 /// its `lastModificationTime` refers to the object's updated time, which |
| 966 * when the content or the metadata of the object is updated. | 927 /// changes |
| 967 */ | 928 /// when the content or the metadata of the object is updated. |
| 968 class GcsData { | 929 class GcsData { |
| 969 /** | 930 /// Google Cloud Storage bucket name (see |
| 970 * Google Cloud Storage bucket name (see | 931 /// [Bucket Name |
| 971 * [Bucket Name | 932 /// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirem
ents)). |
| 972 * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requireme
nts)). | 933 /// Required. |
| 973 * Required. | |
| 974 */ | |
| 975 core.String bucketName; | 934 core.String bucketName; |
| 976 | 935 |
| 977 GcsData(); | 936 GcsData(); |
| 978 | 937 |
| 979 GcsData.fromJson(core.Map _json) { | 938 GcsData.fromJson(core.Map _json) { |
| 980 if (_json.containsKey("bucketName")) { | 939 if (_json.containsKey("bucketName")) { |
| 981 bucketName = _json["bucketName"]; | 940 bucketName = _json["bucketName"]; |
| 982 } | 941 } |
| 983 } | 942 } |
| 984 | 943 |
| 985 core.Map<core.String, core.Object> toJson() { | 944 core.Map<core.String, core.Object> toJson() { |
| 986 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 945 final core.Map<core.String, core.Object> _json = |
| 946 new core.Map<core.String, core.Object>(); |
| 987 if (bucketName != null) { | 947 if (bucketName != null) { |
| 988 _json["bucketName"] = bucketName; | 948 _json["bucketName"] = bucketName; |
| 989 } | 949 } |
| 990 return _json; | 950 return _json; |
| 991 } | 951 } |
| 992 } | 952 } |
| 993 | 953 |
| 994 /** Google service account */ | 954 /// Google service account |
| 995 class GoogleServiceAccount { | 955 class GoogleServiceAccount { |
| 996 /** Required. */ | 956 /// Required. |
| 997 core.String accountEmail; | 957 core.String accountEmail; |
| 998 | 958 |
| 999 GoogleServiceAccount(); | 959 GoogleServiceAccount(); |
| 1000 | 960 |
| 1001 GoogleServiceAccount.fromJson(core.Map _json) { | 961 GoogleServiceAccount.fromJson(core.Map _json) { |
| 1002 if (_json.containsKey("accountEmail")) { | 962 if (_json.containsKey("accountEmail")) { |
| 1003 accountEmail = _json["accountEmail"]; | 963 accountEmail = _json["accountEmail"]; |
| 1004 } | 964 } |
| 1005 } | 965 } |
| 1006 | 966 |
| 1007 core.Map<core.String, core.Object> toJson() { | 967 core.Map<core.String, core.Object> toJson() { |
| 1008 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 968 final core.Map<core.String, core.Object> _json = |
| 969 new core.Map<core.String, core.Object>(); |
| 1009 if (accountEmail != null) { | 970 if (accountEmail != null) { |
| 1010 _json["accountEmail"] = accountEmail; | 971 _json["accountEmail"] = accountEmail; |
| 1011 } | 972 } |
| 1012 return _json; | 973 return _json; |
| 1013 } | 974 } |
| 1014 } | 975 } |
| 1015 | 976 |
| 1016 /** | 977 /// An HttpData specifies a list of objects on the web to be transferred over |
| 1017 * An HttpData specifies a list of objects on the web to be transferred over | 978 /// HTTP. The information of the objects to be transferred is contained in a |
| 1018 * HTTP. The information of the objects to be transferred is contained in a | 979 /// file referenced by a URL. The first line in the file must be |
| 1019 * file referenced by a URL. The first line in the file must be | 980 /// "TsvHttpData-1.0", which specifies the format of the file. Subsequent |
| 1020 * "TsvHttpData-1.0", which specifies the format of the file. Subsequent lines | 981 /// lines |
| 1021 * specify the information of the list of objects, one object per list entry. | 982 /// specify the information of the list of objects, one object per list entry. |
| 1022 * Each entry has the following tab-delimited fields: | 983 /// Each entry has the following tab-delimited fields: |
| 1023 * | 984 /// |
| 1024 * * HTTP URL - The location of the object. | 985 /// * HTTP URL - The location of the object. |
| 1025 * | 986 /// |
| 1026 * * Length - The size of the object in bytes. | 987 /// * Length - The size of the object in bytes. |
| 1027 * | 988 /// |
| 1028 * * MD5 - The base64-encoded MD5 hash of the object. | 989 /// * MD5 - The base64-encoded MD5 hash of the object. |
| 1029 * | 990 /// |
| 1030 * For an example of a valid TSV file, see | 991 /// For an example of a valid TSV file, see |
| 1031 * [Transferring data from | 992 /// [Transferring data from |
| 1032 * URLs](https://cloud.google.com/storage/transfer/#urls) | 993 /// URLs](https://cloud.google.com/storage/transfer/create-url-list). |
| 1033 * | 994 /// |
| 1034 * When transferring data based on a URL list, keep the following in mind: | 995 /// When transferring data based on a URL list, keep the following in mind: |
| 1035 * | 996 /// |
| 1036 * * When an object located at `http(s)://hostname:port/<URL-path>` is | 997 /// * When an object located at `http(s)://hostname:port/<URL-path>` is |
| 1037 * transferred | 998 /// transferred |
| 1038 * to a data sink, the name of the object at the data sink is | 999 /// to a data sink, the name of the object at the data sink is |
| 1039 * `<hostname>/<URL-path>`. | 1000 /// `<hostname>/<URL-path>`. |
| 1040 * | 1001 /// |
| 1041 * * If the specified size of an object does not match the actual size of the | 1002 /// * If the specified size of an object does not match the actual size of the |
| 1042 * object fetched, the object will not be transferred. | 1003 /// object fetched, the object will not be transferred. |
| 1043 * | 1004 /// |
| 1044 * * If the specified MD5 does not match the MD5 computed from the transferred | 1005 /// * If the specified MD5 does not match the MD5 computed from the transferred |
| 1045 * bytes, the object transfer will fail. For more information, see | 1006 /// bytes, the object transfer will fail. For more information, see |
| 1046 * [Generating MD5 hashes](https://cloud.google.com/storage/transfer/#md5) | 1007 /// [Generating MD5 hashes](https://cloud.google.com/storage/transfer/#md5) |
| 1047 * | 1008 /// |
| 1048 * * Ensure that each URL you specify is publicly accessible. For | 1009 /// * Ensure that each URL you specify is publicly accessible. For |
| 1049 * example, in Google Cloud Storage you can | 1010 /// example, in Google Cloud Storage you can |
| 1050 * [share an object publicly] | 1011 /// [share an object publicly] |
| 1051 * (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get | 1012 /// (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get |
| 1052 * a link to it. | 1013 /// a link to it. |
| 1053 * | 1014 /// |
| 1054 * * Storage Transfer Service obeys `robots.txt` rules and requires the source | 1015 /// * Storage Transfer Service obeys `robots.txt` rules and requires the source |
| 1055 * HTTP server to support `Range` requests and to return a `Content-Length` | 1016 /// HTTP server to support `Range` requests and to return a `Content-Length` |
| 1056 * header in each response. | 1017 /// header in each response. |
| 1057 * | 1018 /// |
| 1058 * * [ObjectConditions](#ObjectConditions) have no effect when filtering objects | 1019 /// * [ObjectConditions](#ObjectConditions) have no effect when filtering |
| 1059 * to transfer. | 1020 /// objects |
| 1060 */ | 1021 /// to transfer. |
| 1061 class HttpData { | 1022 class HttpData { |
| 1062 /** | 1023 /// The URL that points to the file that stores the object list entries. |
| 1063 * The URL that points to the file that stores the object list entries. | 1024 /// This file must allow public access. Currently, only URLs with HTTP and |
| 1064 * This file must allow public access. Currently, only URLs with HTTP and | 1025 /// HTTPS schemes are supported. |
| 1065 * HTTPS schemes are supported. | 1026 /// Required. |
| 1066 * Required. | |
| 1067 */ | |
| 1068 core.String listUrl; | 1027 core.String listUrl; |
| 1069 | 1028 |
| 1070 HttpData(); | 1029 HttpData(); |
| 1071 | 1030 |
| 1072 HttpData.fromJson(core.Map _json) { | 1031 HttpData.fromJson(core.Map _json) { |
| 1073 if (_json.containsKey("listUrl")) { | 1032 if (_json.containsKey("listUrl")) { |
| 1074 listUrl = _json["listUrl"]; | 1033 listUrl = _json["listUrl"]; |
| 1075 } | 1034 } |
| 1076 } | 1035 } |
| 1077 | 1036 |
| 1078 core.Map<core.String, core.Object> toJson() { | 1037 core.Map<core.String, core.Object> toJson() { |
| 1079 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1038 final core.Map<core.String, core.Object> _json = |
| 1039 new core.Map<core.String, core.Object>(); |
| 1080 if (listUrl != null) { | 1040 if (listUrl != null) { |
| 1081 _json["listUrl"] = listUrl; | 1041 _json["listUrl"] = listUrl; |
| 1082 } | 1042 } |
| 1083 return _json; | 1043 return _json; |
| 1084 } | 1044 } |
| 1085 } | 1045 } |
| 1086 | 1046 |
| 1087 /** The response message for Operations.ListOperations. */ | 1047 /// The response message for Operations.ListOperations. |
| 1088 class ListOperationsResponse { | 1048 class ListOperationsResponse { |
| 1089 /** The standard List next-page token. */ | 1049 /// The standard List next-page token. |
| 1090 core.String nextPageToken; | 1050 core.String nextPageToken; |
| 1091 /** A list of operations that matches the specified filter in the request. */ | 1051 |
| 1052 /// A list of operations that matches the specified filter in the request. |
| 1092 core.List<Operation> operations; | 1053 core.List<Operation> operations; |
| 1093 | 1054 |
| 1094 ListOperationsResponse(); | 1055 ListOperationsResponse(); |
| 1095 | 1056 |
| 1096 ListOperationsResponse.fromJson(core.Map _json) { | 1057 ListOperationsResponse.fromJson(core.Map _json) { |
| 1097 if (_json.containsKey("nextPageToken")) { | 1058 if (_json.containsKey("nextPageToken")) { |
| 1098 nextPageToken = _json["nextPageToken"]; | 1059 nextPageToken = _json["nextPageToken"]; |
| 1099 } | 1060 } |
| 1100 if (_json.containsKey("operations")) { | 1061 if (_json.containsKey("operations")) { |
| 1101 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 1062 operations = _json["operations"] |
| 1063 .map((value) => new Operation.fromJson(value)) |
| 1064 .toList(); |
| 1102 } | 1065 } |
| 1103 } | 1066 } |
| 1104 | 1067 |
| 1105 core.Map<core.String, core.Object> toJson() { | 1068 core.Map<core.String, core.Object> toJson() { |
| 1106 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1069 final core.Map<core.String, core.Object> _json = |
| 1070 new core.Map<core.String, core.Object>(); |
| 1107 if (nextPageToken != null) { | 1071 if (nextPageToken != null) { |
| 1108 _json["nextPageToken"] = nextPageToken; | 1072 _json["nextPageToken"] = nextPageToken; |
| 1109 } | 1073 } |
| 1110 if (operations != null) { | 1074 if (operations != null) { |
| 1111 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 1075 _json["operations"] = |
| 1076 operations.map((value) => (value).toJson()).toList(); |
| 1112 } | 1077 } |
| 1113 return _json; | 1078 return _json; |
| 1114 } | 1079 } |
| 1115 } | 1080 } |
| 1116 | 1081 |
| 1117 /** Response from ListTransferJobs. */ | 1082 /// Response from ListTransferJobs. |
| 1118 class ListTransferJobsResponse { | 1083 class ListTransferJobsResponse { |
| 1119 /** The list next page token. */ | 1084 /// The list next page token. |
| 1120 core.String nextPageToken; | 1085 core.String nextPageToken; |
| 1121 /** A list of transfer jobs. */ | 1086 |
| 1087 /// A list of transfer jobs. |
| 1122 core.List<TransferJob> transferJobs; | 1088 core.List<TransferJob> transferJobs; |
| 1123 | 1089 |
| 1124 ListTransferJobsResponse(); | 1090 ListTransferJobsResponse(); |
| 1125 | 1091 |
| 1126 ListTransferJobsResponse.fromJson(core.Map _json) { | 1092 ListTransferJobsResponse.fromJson(core.Map _json) { |
| 1127 if (_json.containsKey("nextPageToken")) { | 1093 if (_json.containsKey("nextPageToken")) { |
| 1128 nextPageToken = _json["nextPageToken"]; | 1094 nextPageToken = _json["nextPageToken"]; |
| 1129 } | 1095 } |
| 1130 if (_json.containsKey("transferJobs")) { | 1096 if (_json.containsKey("transferJobs")) { |
| 1131 transferJobs = _json["transferJobs"].map((value) => new TransferJob.fromJs
on(value)).toList(); | 1097 transferJobs = _json["transferJobs"] |
| 1098 .map((value) => new TransferJob.fromJson(value)) |
| 1099 .toList(); |
| 1132 } | 1100 } |
| 1133 } | 1101 } |
| 1134 | 1102 |
| 1135 core.Map<core.String, core.Object> toJson() { | 1103 core.Map<core.String, core.Object> toJson() { |
| 1136 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1104 final core.Map<core.String, core.Object> _json = |
| 1105 new core.Map<core.String, core.Object>(); |
| 1137 if (nextPageToken != null) { | 1106 if (nextPageToken != null) { |
| 1138 _json["nextPageToken"] = nextPageToken; | 1107 _json["nextPageToken"] = nextPageToken; |
| 1139 } | 1108 } |
| 1140 if (transferJobs != null) { | 1109 if (transferJobs != null) { |
| 1141 _json["transferJobs"] = transferJobs.map((value) => (value).toJson()).toLi
st(); | 1110 _json["transferJobs"] = |
| 1111 transferJobs.map((value) => (value).toJson()).toList(); |
| 1142 } | 1112 } |
| 1143 return _json; | 1113 return _json; |
| 1144 } | 1114 } |
| 1145 } | 1115 } |
| 1146 | 1116 |
| 1147 /** Conditions that determine which objects will be transferred. */ | 1117 /// Conditions that determine which objects will be transferred. |
| 1148 class ObjectConditions { | 1118 class ObjectConditions { |
| 1149 /** | 1119 /// `excludePrefixes` must follow the requirements described for |
| 1150 * `excludePrefixes` must follow the requirements described for | 1120 /// `includePrefixes`. |
| 1151 * `includePrefixes`. | 1121 /// |
| 1152 * | 1122 /// The max size of `excludePrefixes` is 1000. |
| 1153 * The max size of `excludePrefixes` is 1000. | |
| 1154 */ | |
| 1155 core.List<core.String> excludePrefixes; | 1123 core.List<core.String> excludePrefixes; |
| 1156 /** | 1124 |
| 1157 * If `includePrefixes` is specified, objects that satisfy the object | 1125 /// If `includePrefixes` is specified, objects that satisfy the object |
| 1158 * conditions must have names that start with one of the `includePrefixes` | 1126 /// conditions must have names that start with one of the `includePrefixes` |
| 1159 * and that do not start with any of the `excludePrefixes`. If | 1127 /// and that do not start with any of the `excludePrefixes`. If |
| 1160 * `includePrefixes` | 1128 /// `includePrefixes` |
| 1161 * is not specified, all objects except those that have names starting with | 1129 /// is not specified, all objects except those that have names starting with |
| 1162 * one of the `excludePrefixes` must satisfy the object conditions. | 1130 /// one of the `excludePrefixes` must satisfy the object conditions. |
| 1163 * | 1131 /// |
| 1164 * Requirements: | 1132 /// Requirements: |
| 1165 * | 1133 /// |
| 1166 * * Each include-prefix and exclude-prefix can contain any sequence of | 1134 /// * Each include-prefix and exclude-prefix can contain any sequence of |
| 1167 * Unicode characters, of max length 1024 bytes when UTF8-encoded, and | 1135 /// Unicode characters, of max length 1024 bytes when UTF8-encoded, and |
| 1168 * must not contain Carriage Return or Line Feed characters. Wildcard | 1136 /// must not contain Carriage Return or Line Feed characters. Wildcard |
| 1169 * matching and regular expression matching are not supported. | 1137 /// matching and regular expression matching are not supported. |
| 1170 * | 1138 /// |
| 1171 * * Each include-prefix and exclude-prefix must omit the leading slash. | 1139 /// * Each include-prefix and exclude-prefix must omit the leading slash. |
| 1172 * For example, to include the `requests.gz` object in a transfer from | 1140 /// For example, to include the `requests.gz` object in a transfer from |
| 1173 * `s3://my-aws-bucket/logs/y=2015/requests.gz`, specify the include | 1141 /// `s3://my-aws-bucket/logs/y=2015/requests.gz`, specify the include |
| 1174 * prefix as `logs/y=2015/requests.gz`. | 1142 /// prefix as `logs/y=2015/requests.gz`. |
| 1175 * | 1143 /// |
| 1176 * * None of the include-prefix or the exclude-prefix values can be empty, | 1144 /// * None of the include-prefix or the exclude-prefix values can be empty, |
| 1177 * if specified. | 1145 /// if specified. |
| 1178 * | 1146 /// |
| 1179 * * Each include-prefix must include a distinct portion of the object | 1147 /// * Each include-prefix must include a distinct portion of the object |
| 1180 * namespace, i.e., no include-prefix may be a prefix of another | 1148 /// namespace, i.e., no include-prefix may be a prefix of another |
| 1181 * include-prefix. | 1149 /// include-prefix. |
| 1182 * | 1150 /// |
| 1183 * * Each exclude-prefix must exclude a distinct portion of the object | 1151 /// * Each exclude-prefix must exclude a distinct portion of the object |
| 1184 * namespace, i.e., no exclude-prefix may be a prefix of another | 1152 /// namespace, i.e., no exclude-prefix may be a prefix of another |
| 1185 * exclude-prefix. | 1153 /// exclude-prefix. |
| 1186 * | 1154 /// |
| 1187 * * If `includePrefixes` is specified, then each exclude-prefix must start | 1155 /// * If `includePrefixes` is specified, then each exclude-prefix must start |
| 1188 * with the value of a path explicitly included by `includePrefixes`. | 1156 /// with the value of a path explicitly included by `includePrefixes`. |
| 1189 * | 1157 /// |
| 1190 * The max size of `includePrefixes` is 1000. | 1158 /// The max size of `includePrefixes` is 1000. |
| 1191 */ | |
| 1192 core.List<core.String> includePrefixes; | 1159 core.List<core.String> includePrefixes; |
| 1193 /** | 1160 |
| 1194 * `maxTimeElapsedSinceLastModification` is the complement to | 1161 /// `maxTimeElapsedSinceLastModification` is the complement to |
| 1195 * `minTimeElapsedSinceLastModification`. | 1162 /// `minTimeElapsedSinceLastModification`. |
| 1196 */ | |
| 1197 core.String maxTimeElapsedSinceLastModification; | 1163 core.String maxTimeElapsedSinceLastModification; |
| 1198 /** | 1164 |
| 1199 * If unspecified, `minTimeElapsedSinceLastModification` takes a zero value | 1165 /// If unspecified, `minTimeElapsedSinceLastModification` takes a zero value |
| 1200 * and `maxTimeElapsedSinceLastModification` takes the maximum possible | 1166 /// and `maxTimeElapsedSinceLastModification` takes the maximum possible |
| 1201 * value of Duration. Objects that satisfy the object conditions | 1167 /// value of Duration. Objects that satisfy the object conditions |
| 1202 * must either have a `lastModificationTime` greater or equal to | 1168 /// must either have a `lastModificationTime` greater or equal to |
| 1203 * `NOW` - `maxTimeElapsedSinceLastModification` and less than | 1169 /// `NOW` - `maxTimeElapsedSinceLastModification` and less than |
| 1204 * `NOW` - `minTimeElapsedSinceLastModification`, or not have a | 1170 /// `NOW` - `minTimeElapsedSinceLastModification`, or not have a |
| 1205 * `lastModificationTime`. | 1171 /// `lastModificationTime`. |
| 1206 */ | |
| 1207 core.String minTimeElapsedSinceLastModification; | 1172 core.String minTimeElapsedSinceLastModification; |
| 1208 | 1173 |
| 1209 ObjectConditions(); | 1174 ObjectConditions(); |
| 1210 | 1175 |
| 1211 ObjectConditions.fromJson(core.Map _json) { | 1176 ObjectConditions.fromJson(core.Map _json) { |
| 1212 if (_json.containsKey("excludePrefixes")) { | 1177 if (_json.containsKey("excludePrefixes")) { |
| 1213 excludePrefixes = _json["excludePrefixes"]; | 1178 excludePrefixes = _json["excludePrefixes"]; |
| 1214 } | 1179 } |
| 1215 if (_json.containsKey("includePrefixes")) { | 1180 if (_json.containsKey("includePrefixes")) { |
| 1216 includePrefixes = _json["includePrefixes"]; | 1181 includePrefixes = _json["includePrefixes"]; |
| 1217 } | 1182 } |
| 1218 if (_json.containsKey("maxTimeElapsedSinceLastModification")) { | 1183 if (_json.containsKey("maxTimeElapsedSinceLastModification")) { |
| 1219 maxTimeElapsedSinceLastModification = _json["maxTimeElapsedSinceLastModifi
cation"]; | 1184 maxTimeElapsedSinceLastModification = |
| 1185 _json["maxTimeElapsedSinceLastModification"]; |
| 1220 } | 1186 } |
| 1221 if (_json.containsKey("minTimeElapsedSinceLastModification")) { | 1187 if (_json.containsKey("minTimeElapsedSinceLastModification")) { |
| 1222 minTimeElapsedSinceLastModification = _json["minTimeElapsedSinceLastModifi
cation"]; | 1188 minTimeElapsedSinceLastModification = |
| 1189 _json["minTimeElapsedSinceLastModification"]; |
| 1223 } | 1190 } |
| 1224 } | 1191 } |
| 1225 | 1192 |
| 1226 core.Map<core.String, core.Object> toJson() { | 1193 core.Map<core.String, core.Object> toJson() { |
| 1227 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1194 final core.Map<core.String, core.Object> _json = |
| 1195 new core.Map<core.String, core.Object>(); |
| 1228 if (excludePrefixes != null) { | 1196 if (excludePrefixes != null) { |
| 1229 _json["excludePrefixes"] = excludePrefixes; | 1197 _json["excludePrefixes"] = excludePrefixes; |
| 1230 } | 1198 } |
| 1231 if (includePrefixes != null) { | 1199 if (includePrefixes != null) { |
| 1232 _json["includePrefixes"] = includePrefixes; | 1200 _json["includePrefixes"] = includePrefixes; |
| 1233 } | 1201 } |
| 1234 if (maxTimeElapsedSinceLastModification != null) { | 1202 if (maxTimeElapsedSinceLastModification != null) { |
| 1235 _json["maxTimeElapsedSinceLastModification"] = maxTimeElapsedSinceLastModi
fication; | 1203 _json["maxTimeElapsedSinceLastModification"] = |
| 1204 maxTimeElapsedSinceLastModification; |
| 1236 } | 1205 } |
| 1237 if (minTimeElapsedSinceLastModification != null) { | 1206 if (minTimeElapsedSinceLastModification != null) { |
| 1238 _json["minTimeElapsedSinceLastModification"] = minTimeElapsedSinceLastModi
fication; | 1207 _json["minTimeElapsedSinceLastModification"] = |
| 1208 minTimeElapsedSinceLastModification; |
| 1239 } | 1209 } |
| 1240 return _json; | 1210 return _json; |
| 1241 } | 1211 } |
| 1242 } | 1212 } |
| 1243 | 1213 |
| 1244 /** | 1214 /// This resource represents a long-running operation that is the result of a |
| 1245 * This resource represents a long-running operation that is the result of a | 1215 /// network API call. |
| 1246 * network API call. | |
| 1247 */ | |
| 1248 class Operation { | 1216 class Operation { |
| 1249 /** | 1217 /// If the value is `false`, it means the operation is still in progress. |
| 1250 * If the value is `false`, it means the operation is still in progress. | 1218 /// If `true`, the operation is completed, and either `error` or `response` |
| 1251 * If true, the operation is completed, and either `error` or `response` is | 1219 /// is |
| 1252 * available. | 1220 /// available. |
| 1253 */ | |
| 1254 core.bool done; | 1221 core.bool done; |
| 1255 /** The error result of the operation in case of failure or cancellation. */ | 1222 |
| 1223 /// The error result of the operation in case of failure or cancellation. |
| 1256 Status error; | 1224 Status error; |
| 1257 /** | 1225 |
| 1258 * Represents the transfer operation object. | 1226 /// Represents the transfer operation object. |
| 1259 * | 1227 /// |
| 1260 * The values for Object must be JSON objects. It can consist of `num`, | 1228 /// The values for Object must be JSON objects. It can consist of `num`, |
| 1261 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1229 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 1262 */ | |
| 1263 core.Map<core.String, core.Object> metadata; | 1230 core.Map<core.String, core.Object> metadata; |
| 1264 /** | 1231 |
| 1265 * The server-assigned name, which is only unique within the same service that | 1232 /// The server-assigned name, which is only unique within the same service |
| 1266 * originally returns it. If you use the default HTTP mapping, the `name` | 1233 /// that originally returns it. If you use the default HTTP mapping, the |
| 1267 * should have the format of `transferOperations/some/unique/name`. | 1234 /// `name` should have the format of `transferOperations/some/unique/name`. |
| 1268 */ | |
| 1269 core.String name; | 1235 core.String name; |
| 1270 /** | 1236 |
| 1271 * The normal response of the operation in case of success. If the original | 1237 /// The normal response of the operation in case of success. If the original |
| 1272 * method returns no data on success, such as `Delete`, the response is | 1238 /// method returns no data on success, such as `Delete`, the response is |
| 1273 * `google.protobuf.Empty`. If the original method is standard | 1239 /// `google.protobuf.Empty`. If the original method is standard |
| 1274 * `Get`/`Create`/`Update`, the response should be the resource. For other | 1240 /// `Get`/`Create`/`Update`, the response should be the resource. For other |
| 1275 * methods, the response should have the type `XxxResponse`, where `Xxx` | 1241 /// methods, the response should have the type `XxxResponse`, where `Xxx` |
| 1276 * is the original method name. For example, if the original method name | 1242 /// is the original method name. For example, if the original method name |
| 1277 * is `TakeSnapshot()`, the inferred response type is | 1243 /// is `TakeSnapshot()`, the inferred response type is |
| 1278 * `TakeSnapshotResponse`. | 1244 /// `TakeSnapshotResponse`. |
| 1279 * | 1245 /// |
| 1280 * The values for Object must be JSON objects. It can consist of `num`, | 1246 /// The values for Object must be JSON objects. It can consist of `num`, |
| 1281 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1247 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 1282 */ | |
| 1283 core.Map<core.String, core.Object> response; | 1248 core.Map<core.String, core.Object> response; |
| 1284 | 1249 |
| 1285 Operation(); | 1250 Operation(); |
| 1286 | 1251 |
| 1287 Operation.fromJson(core.Map _json) { | 1252 Operation.fromJson(core.Map _json) { |
| 1288 if (_json.containsKey("done")) { | 1253 if (_json.containsKey("done")) { |
| 1289 done = _json["done"]; | 1254 done = _json["done"]; |
| 1290 } | 1255 } |
| 1291 if (_json.containsKey("error")) { | 1256 if (_json.containsKey("error")) { |
| 1292 error = new Status.fromJson(_json["error"]); | 1257 error = new Status.fromJson(_json["error"]); |
| 1293 } | 1258 } |
| 1294 if (_json.containsKey("metadata")) { | 1259 if (_json.containsKey("metadata")) { |
| 1295 metadata = _json["metadata"]; | 1260 metadata = _json["metadata"]; |
| 1296 } | 1261 } |
| 1297 if (_json.containsKey("name")) { | 1262 if (_json.containsKey("name")) { |
| 1298 name = _json["name"]; | 1263 name = _json["name"]; |
| 1299 } | 1264 } |
| 1300 if (_json.containsKey("response")) { | 1265 if (_json.containsKey("response")) { |
| 1301 response = _json["response"]; | 1266 response = _json["response"]; |
| 1302 } | 1267 } |
| 1303 } | 1268 } |
| 1304 | 1269 |
| 1305 core.Map<core.String, core.Object> toJson() { | 1270 core.Map<core.String, core.Object> toJson() { |
| 1306 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1271 final core.Map<core.String, core.Object> _json = |
| 1272 new core.Map<core.String, core.Object>(); |
| 1307 if (done != null) { | 1273 if (done != null) { |
| 1308 _json["done"] = done; | 1274 _json["done"] = done; |
| 1309 } | 1275 } |
| 1310 if (error != null) { | 1276 if (error != null) { |
| 1311 _json["error"] = (error).toJson(); | 1277 _json["error"] = (error).toJson(); |
| 1312 } | 1278 } |
| 1313 if (metadata != null) { | 1279 if (metadata != null) { |
| 1314 _json["metadata"] = metadata; | 1280 _json["metadata"] = metadata; |
| 1315 } | 1281 } |
| 1316 if (name != null) { | 1282 if (name != null) { |
| 1317 _json["name"] = name; | 1283 _json["name"] = name; |
| 1318 } | 1284 } |
| 1319 if (response != null) { | 1285 if (response != null) { |
| 1320 _json["response"] = response; | 1286 _json["response"] = response; |
| 1321 } | 1287 } |
| 1322 return _json; | 1288 return _json; |
| 1323 } | 1289 } |
| 1324 } | 1290 } |
| 1325 | 1291 |
| 1326 /** Request passed to PauseTransferOperation. */ | 1292 /// Request passed to PauseTransferOperation. |
| 1327 class PauseTransferOperationRequest { | 1293 class PauseTransferOperationRequest { |
| 1328 | |
| 1329 PauseTransferOperationRequest(); | 1294 PauseTransferOperationRequest(); |
| 1330 | 1295 |
| 1331 PauseTransferOperationRequest.fromJson(core.Map _json) { | 1296 PauseTransferOperationRequest.fromJson(core.Map _json) {} |
| 1332 } | |
| 1333 | 1297 |
| 1334 core.Map<core.String, core.Object> toJson() { | 1298 core.Map<core.String, core.Object> toJson() { |
| 1335 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1299 final core.Map<core.String, core.Object> _json = |
| 1300 new core.Map<core.String, core.Object>(); |
| 1336 return _json; | 1301 return _json; |
| 1337 } | 1302 } |
| 1338 } | 1303 } |
| 1339 | 1304 |
| 1340 /** Request passed to ResumeTransferOperation. */ | 1305 /// Request passed to ResumeTransferOperation. |
| 1341 class ResumeTransferOperationRequest { | 1306 class ResumeTransferOperationRequest { |
| 1342 | |
| 1343 ResumeTransferOperationRequest(); | 1307 ResumeTransferOperationRequest(); |
| 1344 | 1308 |
| 1345 ResumeTransferOperationRequest.fromJson(core.Map _json) { | 1309 ResumeTransferOperationRequest.fromJson(core.Map _json) {} |
| 1346 } | |
| 1347 | 1310 |
| 1348 core.Map<core.String, core.Object> toJson() { | 1311 core.Map<core.String, core.Object> toJson() { |
| 1349 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1312 final core.Map<core.String, core.Object> _json = |
| 1313 new core.Map<core.String, core.Object>(); |
| 1350 return _json; | 1314 return _json; |
| 1351 } | 1315 } |
| 1352 } | 1316 } |
| 1353 | 1317 |
| 1354 /** Transfers can be scheduled to recur or to run just once. */ | 1318 /// Transfers can be scheduled to recur or to run just once. |
| 1355 class Schedule { | 1319 class Schedule { |
| 1356 /** | 1320 /// The last day the recurring transfer will be run. If `scheduleEndDate` |
| 1357 * The last day the recurring transfer will be run. If `scheduleEndDate` | 1321 /// is the same as `scheduleStartDate`, the transfer will be executed only |
| 1358 * is the same as `scheduleStartDate`, the transfer will be executed only | 1322 /// once. |
| 1359 * once. | |
| 1360 */ | |
| 1361 Date scheduleEndDate; | 1323 Date scheduleEndDate; |
| 1362 /** | 1324 |
| 1363 * The first day the recurring transfer is scheduled to run. If | 1325 /// The first day the recurring transfer is scheduled to run. If |
| 1364 * `scheduleStartDate` is in the past, the transfer will run for the first | 1326 /// `scheduleStartDate` is in the past, the transfer will run for the first |
| 1365 * time on the following day. | 1327 /// time on the following day. |
| 1366 * Required. | 1328 /// Required. |
| 1367 */ | |
| 1368 Date scheduleStartDate; | 1329 Date scheduleStartDate; |
| 1369 /** | 1330 |
| 1370 * The time in UTC at which the transfer will be scheduled to start in a day. | 1331 /// The time in UTC at which the transfer will be scheduled to start in a |
| 1371 * Transfers may start later than this time. If not specified, recurring and | 1332 /// day. |
| 1372 * one-time transfers that are scheduled to run today will run immediately; | 1333 /// Transfers may start later than this time. If not specified, recurring and |
| 1373 * recurring transfers that are scheduled to run on a future date will start | 1334 /// one-time transfers that are scheduled to run today will run immediately; |
| 1374 * at approximately midnight UTC on that date. Note that when configuring a | 1335 /// recurring transfers that are scheduled to run on a future date will start |
| 1375 * transfer with the Cloud Platform Console, the transfer's start time in a | 1336 /// at approximately midnight UTC on that date. Note that when configuring a |
| 1376 * day is specified in your local timezone. | 1337 /// transfer with the Cloud Platform Console, the transfer's start time in a |
| 1377 */ | 1338 /// day is specified in your local timezone. |
| 1378 TimeOfDay startTimeOfDay; | 1339 TimeOfDay startTimeOfDay; |
| 1379 | 1340 |
| 1380 Schedule(); | 1341 Schedule(); |
| 1381 | 1342 |
| 1382 Schedule.fromJson(core.Map _json) { | 1343 Schedule.fromJson(core.Map _json) { |
| 1383 if (_json.containsKey("scheduleEndDate")) { | 1344 if (_json.containsKey("scheduleEndDate")) { |
| 1384 scheduleEndDate = new Date.fromJson(_json["scheduleEndDate"]); | 1345 scheduleEndDate = new Date.fromJson(_json["scheduleEndDate"]); |
| 1385 } | 1346 } |
| 1386 if (_json.containsKey("scheduleStartDate")) { | 1347 if (_json.containsKey("scheduleStartDate")) { |
| 1387 scheduleStartDate = new Date.fromJson(_json["scheduleStartDate"]); | 1348 scheduleStartDate = new Date.fromJson(_json["scheduleStartDate"]); |
| 1388 } | 1349 } |
| 1389 if (_json.containsKey("startTimeOfDay")) { | 1350 if (_json.containsKey("startTimeOfDay")) { |
| 1390 startTimeOfDay = new TimeOfDay.fromJson(_json["startTimeOfDay"]); | 1351 startTimeOfDay = new TimeOfDay.fromJson(_json["startTimeOfDay"]); |
| 1391 } | 1352 } |
| 1392 } | 1353 } |
| 1393 | 1354 |
| 1394 core.Map<core.String, core.Object> toJson() { | 1355 core.Map<core.String, core.Object> toJson() { |
| 1395 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1356 final core.Map<core.String, core.Object> _json = |
| 1357 new core.Map<core.String, core.Object>(); |
| 1396 if (scheduleEndDate != null) { | 1358 if (scheduleEndDate != null) { |
| 1397 _json["scheduleEndDate"] = (scheduleEndDate).toJson(); | 1359 _json["scheduleEndDate"] = (scheduleEndDate).toJson(); |
| 1398 } | 1360 } |
| 1399 if (scheduleStartDate != null) { | 1361 if (scheduleStartDate != null) { |
| 1400 _json["scheduleStartDate"] = (scheduleStartDate).toJson(); | 1362 _json["scheduleStartDate"] = (scheduleStartDate).toJson(); |
| 1401 } | 1363 } |
| 1402 if (startTimeOfDay != null) { | 1364 if (startTimeOfDay != null) { |
| 1403 _json["startTimeOfDay"] = (startTimeOfDay).toJson(); | 1365 _json["startTimeOfDay"] = (startTimeOfDay).toJson(); |
| 1404 } | 1366 } |
| 1405 return _json; | 1367 return _json; |
| 1406 } | 1368 } |
| 1407 } | 1369 } |
| 1408 | 1370 |
| 1409 /** | 1371 /// The `Status` type defines a logical error model that is suitable for |
| 1410 * The `Status` type defines a logical error model that is suitable for | 1372 /// different |
| 1411 * different | 1373 /// programming environments, including REST APIs and RPC APIs. It is used by |
| 1412 * programming environments, including REST APIs and RPC APIs. It is used by | 1374 /// [gRPC](https://github.com/grpc). The error model is designed to be: |
| 1413 * [gRPC](https://github.com/grpc). The error model is designed to be: | 1375 /// |
| 1414 * | 1376 /// - Simple to use and understand for most users |
| 1415 * - Simple to use and understand for most users | 1377 /// - Flexible enough to meet unexpected needs |
| 1416 * - Flexible enough to meet unexpected needs | 1378 /// |
| 1417 * | 1379 /// # Overview |
| 1418 * # Overview | 1380 /// |
| 1419 * | 1381 /// The `Status` message contains three pieces of data: error code, error |
| 1420 * The `Status` message contains three pieces of data: error code, error | 1382 /// message, |
| 1421 * message, | 1383 /// and error details. The error code should be an enum value of |
| 1422 * and error details. The error code should be an enum value of | 1384 /// google.rpc.Code, but it may accept additional error codes if needed. The |
| 1423 * google.rpc.Code, but it may accept additional error codes if needed. The | 1385 /// error message should be a developer-facing English message that helps |
| 1424 * error message should be a developer-facing English message that helps | 1386 /// developers *understand* and *resolve* the error. If a localized user-facing |
| 1425 * developers *understand* and *resolve* the error. If a localized user-facing | 1387 /// error message is needed, put the localized message in the error details or |
| 1426 * error message is needed, put the localized message in the error details or | 1388 /// localize it in the client. The optional error details may contain arbitrary |
| 1427 * localize it in the client. The optional error details may contain arbitrary | 1389 /// information about the error. There is a predefined set of error detail |
| 1428 * information about the error. There is a predefined set of error detail types | 1390 /// types |
| 1429 * in the package `google.rpc` that can be used for common error conditions. | 1391 /// in the package `google.rpc` that can be used for common error conditions. |
| 1430 * | 1392 /// |
| 1431 * # Language mapping | 1393 /// # Language mapping |
| 1432 * | 1394 /// |
| 1433 * The `Status` message is the logical representation of the error model, but it | 1395 /// The `Status` message is the logical representation of the error model, but |
| 1434 * is not necessarily the actual wire format. When the `Status` message is | 1396 /// it |
| 1435 * exposed in different client libraries and different wire protocols, it can be | 1397 /// is not necessarily the actual wire format. When the `Status` message is |
| 1436 * mapped differently. For example, it will likely be mapped to some exceptions | 1398 /// exposed in different client libraries and different wire protocols, it can |
| 1437 * in Java, but more likely mapped to some error codes in C. | 1399 /// be |
| 1438 * | 1400 /// mapped differently. For example, it will likely be mapped to some |
| 1439 * # Other uses | 1401 /// exceptions |
| 1440 * | 1402 /// in Java, but more likely mapped to some error codes in C. |
| 1441 * The error model and the `Status` message can be used in a variety of | 1403 /// |
| 1442 * environments, either with or without APIs, to provide a | 1404 /// # Other uses |
| 1443 * consistent developer experience across different environments. | 1405 /// |
| 1444 * | 1406 /// The error model and the `Status` message can be used in a variety of |
| 1445 * Example uses of this error model include: | 1407 /// environments, either with or without APIs, to provide a |
| 1446 * | 1408 /// consistent developer experience across different environments. |
| 1447 * - Partial errors. If a service needs to return partial errors to the client, | 1409 /// |
| 1448 * it may embed the `Status` in the normal response to indicate the partial | 1410 /// Example uses of this error model include: |
| 1449 * errors. | 1411 /// |
| 1450 * | 1412 /// - Partial errors. If a service needs to return partial errors to the |
| 1451 * - Workflow errors. A typical workflow has multiple steps. Each step may | 1413 /// client, |
| 1452 * have a `Status` message for error reporting. | 1414 /// it may embed the `Status` in the normal response to indicate the partial |
| 1453 * | 1415 /// errors. |
| 1454 * - Batch operations. If a client uses batch request and batch response, the | 1416 /// |
| 1455 * `Status` message should be used directly inside batch response, one for | 1417 /// - Workflow errors. A typical workflow has multiple steps. Each step may |
| 1456 * each error sub-response. | 1418 /// have a `Status` message for error reporting. |
| 1457 * | 1419 /// |
| 1458 * - Asynchronous operations. If an API call embeds asynchronous operation | 1420 /// - Batch operations. If a client uses batch request and batch response, the |
| 1459 * results in its response, the status of those operations should be | 1421 /// `Status` message should be used directly inside batch response, one for |
| 1460 * represented directly using the `Status` message. | 1422 /// each error sub-response. |
| 1461 * | 1423 /// |
| 1462 * - Logging. If some API errors are stored in logs, the message `Status` could | 1424 /// - Asynchronous operations. If an API call embeds asynchronous operation |
| 1463 * be used directly after any stripping needed for security/privacy reasons. | 1425 /// results in its response, the status of those operations should be |
| 1464 */ | 1426 /// represented directly using the `Status` message. |
| 1427 /// |
| 1428 /// - Logging. If some API errors are stored in logs, the message `Status` |
| 1429 /// could |
| 1430 /// be used directly after any stripping needed for security/privacy reasons. |
| 1465 class Status { | 1431 class Status { |
| 1466 /** The status code, which should be an enum value of google.rpc.Code. */ | 1432 /// The status code, which should be an enum value of google.rpc.Code. |
| 1467 core.int code; | 1433 core.int code; |
| 1468 /** | 1434 |
| 1469 * A list of messages that carry the error details. There is a common set of | 1435 /// A list of messages that carry the error details. There is a common set |
| 1470 * message types for APIs to use. | 1436 /// of |
| 1471 * | 1437 /// message types for APIs to use. |
| 1472 * The values for Object must be JSON objects. It can consist of `num`, | 1438 /// |
| 1473 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1439 /// The values for Object must be JSON objects. It can consist of `num`, |
| 1474 */ | 1440 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 1475 core.List<core.Map<core.String, core.Object>> details; | 1441 core.List<core.Map<core.String, core.Object>> details; |
| 1476 /** | 1442 |
| 1477 * A developer-facing error message, which should be in English. Any | 1443 /// A developer-facing error message, which should be in English. Any |
| 1478 * user-facing error message should be localized and sent in the | 1444 /// user-facing error message should be localized and sent in the |
| 1479 * google.rpc.Status.details field, or localized by the client. | 1445 /// google.rpc.Status.details field, or localized by the client. |
| 1480 */ | |
| 1481 core.String message; | 1446 core.String message; |
| 1482 | 1447 |
| 1483 Status(); | 1448 Status(); |
| 1484 | 1449 |
| 1485 Status.fromJson(core.Map _json) { | 1450 Status.fromJson(core.Map _json) { |
| 1486 if (_json.containsKey("code")) { | 1451 if (_json.containsKey("code")) { |
| 1487 code = _json["code"]; | 1452 code = _json["code"]; |
| 1488 } | 1453 } |
| 1489 if (_json.containsKey("details")) { | 1454 if (_json.containsKey("details")) { |
| 1490 details = _json["details"]; | 1455 details = _json["details"]; |
| 1491 } | 1456 } |
| 1492 if (_json.containsKey("message")) { | 1457 if (_json.containsKey("message")) { |
| 1493 message = _json["message"]; | 1458 message = _json["message"]; |
| 1494 } | 1459 } |
| 1495 } | 1460 } |
| 1496 | 1461 |
| 1497 core.Map<core.String, core.Object> toJson() { | 1462 core.Map<core.String, core.Object> toJson() { |
| 1498 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1463 final core.Map<core.String, core.Object> _json = |
| 1464 new core.Map<core.String, core.Object>(); |
| 1499 if (code != null) { | 1465 if (code != null) { |
| 1500 _json["code"] = code; | 1466 _json["code"] = code; |
| 1501 } | 1467 } |
| 1502 if (details != null) { | 1468 if (details != null) { |
| 1503 _json["details"] = details; | 1469 _json["details"] = details; |
| 1504 } | 1470 } |
| 1505 if (message != null) { | 1471 if (message != null) { |
| 1506 _json["message"] = message; | 1472 _json["message"] = message; |
| 1507 } | 1473 } |
| 1508 return _json; | 1474 return _json; |
| 1509 } | 1475 } |
| 1510 } | 1476 } |
| 1511 | 1477 |
| 1512 /** | 1478 /// Represents a time of day. The date and time zone are either not significant |
| 1513 * Represents a time of day. The date and time zone are either not significant | 1479 /// or are specified elsewhere. An API may choose to allow leap seconds. |
| 1514 * or are specified elsewhere. An API may choose to allow leap seconds. Related | 1480 /// Related |
| 1515 * types are google.type.Date and `google.protobuf.Timestamp`. | 1481 /// types are google.type.Date and `google.protobuf.Timestamp`. |
| 1516 */ | |
| 1517 class TimeOfDay { | 1482 class TimeOfDay { |
| 1518 /** | 1483 /// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose |
| 1519 * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose | 1484 /// to allow the value "24:00:00" for scenarios like business closing time. |
| 1520 * to allow the value "24:00:00" for scenarios like business closing time. | |
| 1521 */ | |
| 1522 core.int hours; | 1485 core.int hours; |
| 1523 /** Minutes of hour of day. Must be from 0 to 59. */ | 1486 |
| 1487 /// Minutes of hour of day. Must be from 0 to 59. |
| 1524 core.int minutes; | 1488 core.int minutes; |
| 1525 /** Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */ | 1489 |
| 1490 /// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
| 1526 core.int nanos; | 1491 core.int nanos; |
| 1527 /** | 1492 |
| 1528 * Seconds of minutes of the time. Must normally be from 0 to 59. An API may | 1493 /// Seconds of minutes of the time. Must normally be from 0 to 59. An API may |
| 1529 * allow the value 60 if it allows leap-seconds. | 1494 /// allow the value 60 if it allows leap-seconds. |
| 1530 */ | |
| 1531 core.int seconds; | 1495 core.int seconds; |
| 1532 | 1496 |
| 1533 TimeOfDay(); | 1497 TimeOfDay(); |
| 1534 | 1498 |
| 1535 TimeOfDay.fromJson(core.Map _json) { | 1499 TimeOfDay.fromJson(core.Map _json) { |
| 1536 if (_json.containsKey("hours")) { | 1500 if (_json.containsKey("hours")) { |
| 1537 hours = _json["hours"]; | 1501 hours = _json["hours"]; |
| 1538 } | 1502 } |
| 1539 if (_json.containsKey("minutes")) { | 1503 if (_json.containsKey("minutes")) { |
| 1540 minutes = _json["minutes"]; | 1504 minutes = _json["minutes"]; |
| 1541 } | 1505 } |
| 1542 if (_json.containsKey("nanos")) { | 1506 if (_json.containsKey("nanos")) { |
| 1543 nanos = _json["nanos"]; | 1507 nanos = _json["nanos"]; |
| 1544 } | 1508 } |
| 1545 if (_json.containsKey("seconds")) { | 1509 if (_json.containsKey("seconds")) { |
| 1546 seconds = _json["seconds"]; | 1510 seconds = _json["seconds"]; |
| 1547 } | 1511 } |
| 1548 } | 1512 } |
| 1549 | 1513 |
| 1550 core.Map<core.String, core.Object> toJson() { | 1514 core.Map<core.String, core.Object> toJson() { |
| 1551 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1515 final core.Map<core.String, core.Object> _json = |
| 1516 new core.Map<core.String, core.Object>(); |
| 1552 if (hours != null) { | 1517 if (hours != null) { |
| 1553 _json["hours"] = hours; | 1518 _json["hours"] = hours; |
| 1554 } | 1519 } |
| 1555 if (minutes != null) { | 1520 if (minutes != null) { |
| 1556 _json["minutes"] = minutes; | 1521 _json["minutes"] = minutes; |
| 1557 } | 1522 } |
| 1558 if (nanos != null) { | 1523 if (nanos != null) { |
| 1559 _json["nanos"] = nanos; | 1524 _json["nanos"] = nanos; |
| 1560 } | 1525 } |
| 1561 if (seconds != null) { | 1526 if (seconds != null) { |
| 1562 _json["seconds"] = seconds; | 1527 _json["seconds"] = seconds; |
| 1563 } | 1528 } |
| 1564 return _json; | 1529 return _json; |
| 1565 } | 1530 } |
| 1566 } | 1531 } |
| 1567 | 1532 |
| 1568 /** | 1533 /// A collection of counters that report the progress of a transfer operation. |
| 1569 * A collection of counters that report the progress of a transfer operation. | |
| 1570 */ | |
| 1571 class TransferCounters { | 1534 class TransferCounters { |
| 1572 /** Bytes that are copied to the data sink. */ | 1535 /// Bytes that are copied to the data sink. |
| 1573 core.String bytesCopiedToSink; | 1536 core.String bytesCopiedToSink; |
| 1574 /** Bytes that are deleted from the data sink. */ | 1537 |
| 1538 /// Bytes that are deleted from the data sink. |
| 1575 core.String bytesDeletedFromSink; | 1539 core.String bytesDeletedFromSink; |
| 1576 /** Bytes that are deleted from the data source. */ | 1540 |
| 1541 /// Bytes that are deleted from the data source. |
| 1577 core.String bytesDeletedFromSource; | 1542 core.String bytesDeletedFromSource; |
| 1578 /** Bytes that failed to be deleted from the data sink. */ | 1543 |
| 1544 /// Bytes that failed to be deleted from the data sink. |
| 1579 core.String bytesFailedToDeleteFromSink; | 1545 core.String bytesFailedToDeleteFromSink; |
| 1580 /** | 1546 |
| 1581 * Bytes found in the data source that are scheduled to be transferred, | 1547 /// Bytes found in the data source that are scheduled to be transferred, |
| 1582 * which will be copied, excluded based on conditions, or skipped due to | 1548 /// which will be copied, excluded based on conditions, or skipped due to |
| 1583 * failures. | 1549 /// failures. |
| 1584 */ | |
| 1585 core.String bytesFoundFromSource; | 1550 core.String bytesFoundFromSource; |
| 1586 /** Bytes found only in the data sink that are scheduled to be deleted. */ | 1551 |
| 1552 /// Bytes found only in the data sink that are scheduled to be deleted. |
| 1587 core.String bytesFoundOnlyFromSink; | 1553 core.String bytesFoundOnlyFromSink; |
| 1588 /** Bytes in the data source that failed during the transfer. */ | 1554 |
| 1555 /// Bytes in the data source that failed during the transfer. |
| 1589 core.String bytesFromSourceFailed; | 1556 core.String bytesFromSourceFailed; |
| 1590 /** | 1557 |
| 1591 * Bytes in the data source that are not transferred because they already | 1558 /// Bytes in the data source that are not transferred because they already |
| 1592 * exist in the data sink. | 1559 /// exist in the data sink. |
| 1593 */ | |
| 1594 core.String bytesFromSourceSkippedBySync; | 1560 core.String bytesFromSourceSkippedBySync; |
| 1595 /** Objects that are copied to the data sink. */ | 1561 |
| 1562 /// Objects that are copied to the data sink. |
| 1596 core.String objectsCopiedToSink; | 1563 core.String objectsCopiedToSink; |
| 1597 /** Objects that are deleted from the data sink. */ | 1564 |
| 1565 /// Objects that are deleted from the data sink. |
| 1598 core.String objectsDeletedFromSink; | 1566 core.String objectsDeletedFromSink; |
| 1599 /** Objects that are deleted from the data source. */ | 1567 |
| 1568 /// Objects that are deleted from the data source. |
| 1600 core.String objectsDeletedFromSource; | 1569 core.String objectsDeletedFromSource; |
| 1601 /** Objects that failed to be deleted from the data sink. */ | 1570 |
| 1571 /// Objects that failed to be deleted from the data sink. |
| 1602 core.String objectsFailedToDeleteFromSink; | 1572 core.String objectsFailedToDeleteFromSink; |
| 1603 /** | 1573 |
| 1604 * Objects found in the data source that are scheduled to be transferred, | 1574 /// Objects found in the data source that are scheduled to be transferred, |
| 1605 * which will be copied, excluded based on conditions, or skipped due to | 1575 /// which will be copied, excluded based on conditions, or skipped due to |
| 1606 * failures. | 1576 /// failures. |
| 1607 */ | |
| 1608 core.String objectsFoundFromSource; | 1577 core.String objectsFoundFromSource; |
| 1609 /** Objects found only in the data sink that are scheduled to be deleted. */ | 1578 |
| 1579 /// Objects found only in the data sink that are scheduled to be deleted. |
| 1610 core.String objectsFoundOnlyFromSink; | 1580 core.String objectsFoundOnlyFromSink; |
| 1611 /** Objects in the data source that failed during the transfer. */ | 1581 |
| 1582 /// Objects in the data source that failed during the transfer. |
| 1612 core.String objectsFromSourceFailed; | 1583 core.String objectsFromSourceFailed; |
| 1613 /** | 1584 |
| 1614 * Objects in the data source that are not transferred because they already | 1585 /// Objects in the data source that are not transferred because they already |
| 1615 * exist in the data sink. | 1586 /// exist in the data sink. |
| 1616 */ | |
| 1617 core.String objectsFromSourceSkippedBySync; | 1587 core.String objectsFromSourceSkippedBySync; |
| 1618 | 1588 |
| 1619 TransferCounters(); | 1589 TransferCounters(); |
| 1620 | 1590 |
| 1621 TransferCounters.fromJson(core.Map _json) { | 1591 TransferCounters.fromJson(core.Map _json) { |
| 1622 if (_json.containsKey("bytesCopiedToSink")) { | 1592 if (_json.containsKey("bytesCopiedToSink")) { |
| 1623 bytesCopiedToSink = _json["bytesCopiedToSink"]; | 1593 bytesCopiedToSink = _json["bytesCopiedToSink"]; |
| 1624 } | 1594 } |
| 1625 if (_json.containsKey("bytesDeletedFromSink")) { | 1595 if (_json.containsKey("bytesDeletedFromSink")) { |
| 1626 bytesDeletedFromSink = _json["bytesDeletedFromSink"]; | 1596 bytesDeletedFromSink = _json["bytesDeletedFromSink"]; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1663 } | 1633 } |
| 1664 if (_json.containsKey("objectsFromSourceFailed")) { | 1634 if (_json.containsKey("objectsFromSourceFailed")) { |
| 1665 objectsFromSourceFailed = _json["objectsFromSourceFailed"]; | 1635 objectsFromSourceFailed = _json["objectsFromSourceFailed"]; |
| 1666 } | 1636 } |
| 1667 if (_json.containsKey("objectsFromSourceSkippedBySync")) { | 1637 if (_json.containsKey("objectsFromSourceSkippedBySync")) { |
| 1668 objectsFromSourceSkippedBySync = _json["objectsFromSourceSkippedBySync"]; | 1638 objectsFromSourceSkippedBySync = _json["objectsFromSourceSkippedBySync"]; |
| 1669 } | 1639 } |
| 1670 } | 1640 } |
| 1671 | 1641 |
| 1672 core.Map<core.String, core.Object> toJson() { | 1642 core.Map<core.String, core.Object> toJson() { |
| 1673 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1643 final core.Map<core.String, core.Object> _json = |
| 1644 new core.Map<core.String, core.Object>(); |
| 1674 if (bytesCopiedToSink != null) { | 1645 if (bytesCopiedToSink != null) { |
| 1675 _json["bytesCopiedToSink"] = bytesCopiedToSink; | 1646 _json["bytesCopiedToSink"] = bytesCopiedToSink; |
| 1676 } | 1647 } |
| 1677 if (bytesDeletedFromSink != null) { | 1648 if (bytesDeletedFromSink != null) { |
| 1678 _json["bytesDeletedFromSink"] = bytesDeletedFromSink; | 1649 _json["bytesDeletedFromSink"] = bytesDeletedFromSink; |
| 1679 } | 1650 } |
| 1680 if (bytesDeletedFromSource != null) { | 1651 if (bytesDeletedFromSource != null) { |
| 1681 _json["bytesDeletedFromSource"] = bytesDeletedFromSource; | 1652 _json["bytesDeletedFromSource"] = bytesDeletedFromSource; |
| 1682 } | 1653 } |
| 1683 if (bytesFailedToDeleteFromSink != null) { | 1654 if (bytesFailedToDeleteFromSink != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1716 if (objectsFromSourceFailed != null) { | 1687 if (objectsFromSourceFailed != null) { |
| 1717 _json["objectsFromSourceFailed"] = objectsFromSourceFailed; | 1688 _json["objectsFromSourceFailed"] = objectsFromSourceFailed; |
| 1718 } | 1689 } |
| 1719 if (objectsFromSourceSkippedBySync != null) { | 1690 if (objectsFromSourceSkippedBySync != null) { |
| 1720 _json["objectsFromSourceSkippedBySync"] = objectsFromSourceSkippedBySync; | 1691 _json["objectsFromSourceSkippedBySync"] = objectsFromSourceSkippedBySync; |
| 1721 } | 1692 } |
| 1722 return _json; | 1693 return _json; |
| 1723 } | 1694 } |
| 1724 } | 1695 } |
| 1725 | 1696 |
| 1726 /** | 1697 /// This resource represents the configuration of a transfer job that runs |
| 1727 * This resource represents the configuration of a transfer job that runs | 1698 /// periodically. |
| 1728 * periodically. | |
| 1729 */ | |
| 1730 class TransferJob { | 1699 class TransferJob { |
| 1731 /** This field cannot be changed by user requests. */ | 1700 /// This field cannot be changed by user requests. |
| 1732 core.String creationTime; | 1701 core.String creationTime; |
| 1733 /** This field cannot be changed by user requests. */ | 1702 |
| 1703 /// This field cannot be changed by user requests. |
| 1734 core.String deletionTime; | 1704 core.String deletionTime; |
| 1735 /** | 1705 |
| 1736 * A description provided by the user for the job. Its max length is 1024 | 1706 /// A description provided by the user for the job. Its max length is 1024 |
| 1737 * bytes when Unicode-encoded. | 1707 /// bytes when Unicode-encoded. |
| 1738 */ | |
| 1739 core.String description; | 1708 core.String description; |
| 1740 /** This field cannot be changed by user requests. */ | 1709 |
| 1710 /// This field cannot be changed by user requests. |
| 1741 core.String lastModificationTime; | 1711 core.String lastModificationTime; |
| 1742 /** | 1712 |
| 1743 * A globally unique name assigned by Storage Transfer Service when the | 1713 /// A globally unique name assigned by Storage Transfer Service when the |
| 1744 * job is created. This field should be left empty in requests to create a new | 1714 /// job is created. This field should be left empty in requests to create a |
| 1745 * transfer job; otherwise, the requests result in an `INVALID_ARGUMENT` | 1715 /// new |
| 1746 * error. | 1716 /// transfer job; otherwise, the requests result in an `INVALID_ARGUMENT` |
| 1747 */ | 1717 /// error. |
| 1748 core.String name; | 1718 core.String name; |
| 1749 /** | 1719 |
| 1750 * The ID of the Google Cloud Platform Console project that owns the job. | 1720 /// The ID of the Google Cloud Platform Console project that owns the job. |
| 1751 * Required. | 1721 /// Required. |
| 1752 */ | |
| 1753 core.String projectId; | 1722 core.String projectId; |
| 1754 /** | 1723 |
| 1755 * Schedule specification. | 1724 /// Schedule specification. |
| 1756 * Required. | 1725 /// Required. |
| 1757 */ | |
| 1758 Schedule schedule; | 1726 Schedule schedule; |
| 1759 /** | 1727 |
| 1760 * Status of the job. This value MUST be specified for | 1728 /// Status of the job. This value MUST be specified for |
| 1761 * `CreateTransferJobRequests`. | 1729 /// `CreateTransferJobRequests`. |
| 1762 * | 1730 /// |
| 1763 * NOTE: The effect of the new job status takes place during a subsequent job | 1731 /// NOTE: The effect of the new job status takes place during a subsequent |
| 1764 * run. For example, if you change the job status from `ENABLED` to | 1732 /// job |
| 1765 * `DISABLED`, and an operation spawned by the transfer is running, the status | 1733 /// run. For example, if you change the job status from `ENABLED` to |
| 1766 * change would not affect the current operation. | 1734 /// `DISABLED`, and an operation spawned by the transfer is running, the |
| 1767 * Possible string values are: | 1735 /// status |
| 1768 * - "STATUS_UNSPECIFIED" : Zero is an illegal value. | 1736 /// change would not affect the current operation. |
| 1769 * - "ENABLED" : New transfers will be performed based on the schedule. | 1737 /// Possible string values are: |
| 1770 * - "DISABLED" : New transfers will not be scheduled. | 1738 /// - "STATUS_UNSPECIFIED" : Zero is an illegal value. |
| 1771 * - "DELETED" : This is a soft delete state. After a transfer job is set to | 1739 /// - "ENABLED" : New transfers will be performed based on the schedule. |
| 1772 * this | 1740 /// - "DISABLED" : New transfers will not be scheduled. |
| 1773 * state, the job and all the transfer executions are subject to | 1741 /// - "DELETED" : This is a soft delete state. After a transfer job is set to |
| 1774 * garbage collection. | 1742 /// this |
| 1775 */ | 1743 /// state, the job and all the transfer executions are subject to |
| 1744 /// garbage collection. |
| 1776 core.String status; | 1745 core.String status; |
| 1777 /** | 1746 |
| 1778 * Transfer specification. | 1747 /// Transfer specification. |
| 1779 * Required. | 1748 /// Required. |
| 1780 */ | |
| 1781 TransferSpec transferSpec; | 1749 TransferSpec transferSpec; |
| 1782 | 1750 |
| 1783 TransferJob(); | 1751 TransferJob(); |
| 1784 | 1752 |
| 1785 TransferJob.fromJson(core.Map _json) { | 1753 TransferJob.fromJson(core.Map _json) { |
| 1786 if (_json.containsKey("creationTime")) { | 1754 if (_json.containsKey("creationTime")) { |
| 1787 creationTime = _json["creationTime"]; | 1755 creationTime = _json["creationTime"]; |
| 1788 } | 1756 } |
| 1789 if (_json.containsKey("deletionTime")) { | 1757 if (_json.containsKey("deletionTime")) { |
| 1790 deletionTime = _json["deletionTime"]; | 1758 deletionTime = _json["deletionTime"]; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1806 } | 1774 } |
| 1807 if (_json.containsKey("status")) { | 1775 if (_json.containsKey("status")) { |
| 1808 status = _json["status"]; | 1776 status = _json["status"]; |
| 1809 } | 1777 } |
| 1810 if (_json.containsKey("transferSpec")) { | 1778 if (_json.containsKey("transferSpec")) { |
| 1811 transferSpec = new TransferSpec.fromJson(_json["transferSpec"]); | 1779 transferSpec = new TransferSpec.fromJson(_json["transferSpec"]); |
| 1812 } | 1780 } |
| 1813 } | 1781 } |
| 1814 | 1782 |
| 1815 core.Map<core.String, core.Object> toJson() { | 1783 core.Map<core.String, core.Object> toJson() { |
| 1816 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1784 final core.Map<core.String, core.Object> _json = |
| 1785 new core.Map<core.String, core.Object>(); |
| 1817 if (creationTime != null) { | 1786 if (creationTime != null) { |
| 1818 _json["creationTime"] = creationTime; | 1787 _json["creationTime"] = creationTime; |
| 1819 } | 1788 } |
| 1820 if (deletionTime != null) { | 1789 if (deletionTime != null) { |
| 1821 _json["deletionTime"] = deletionTime; | 1790 _json["deletionTime"] = deletionTime; |
| 1822 } | 1791 } |
| 1823 if (description != null) { | 1792 if (description != null) { |
| 1824 _json["description"] = description; | 1793 _json["description"] = description; |
| 1825 } | 1794 } |
| 1826 if (lastModificationTime != null) { | 1795 if (lastModificationTime != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1838 if (status != null) { | 1807 if (status != null) { |
| 1839 _json["status"] = status; | 1808 _json["status"] = status; |
| 1840 } | 1809 } |
| 1841 if (transferSpec != null) { | 1810 if (transferSpec != null) { |
| 1842 _json["transferSpec"] = (transferSpec).toJson(); | 1811 _json["transferSpec"] = (transferSpec).toJson(); |
| 1843 } | 1812 } |
| 1844 return _json; | 1813 return _json; |
| 1845 } | 1814 } |
| 1846 } | 1815 } |
| 1847 | 1816 |
| 1848 /** A description of the execution of a transfer. */ | 1817 /// A description of the execution of a transfer. |
| 1849 class TransferOperation { | 1818 class TransferOperation { |
| 1850 /** Information about the progress of the transfer operation. */ | 1819 /// Information about the progress of the transfer operation. |
| 1851 TransferCounters counters; | 1820 TransferCounters counters; |
| 1852 /** End time of this transfer execution. */ | 1821 |
| 1822 /// End time of this transfer execution. |
| 1853 core.String endTime; | 1823 core.String endTime; |
| 1854 /** Summarizes errors encountered with sample error log entries. */ | 1824 |
| 1825 /// Summarizes errors encountered with sample error log entries. |
| 1855 core.List<ErrorSummary> errorBreakdowns; | 1826 core.List<ErrorSummary> errorBreakdowns; |
| 1856 /** A globally unique ID assigned by the system. */ | 1827 |
| 1828 /// A globally unique ID assigned by the system. |
| 1857 core.String name; | 1829 core.String name; |
| 1858 /** | 1830 |
| 1859 * The ID of the Google Cloud Platform Console project that owns the | 1831 /// The ID of the Google Cloud Platform Console project that owns the |
| 1860 * operation. | 1832 /// operation. |
| 1861 * Required. | 1833 /// Required. |
| 1862 */ | |
| 1863 core.String projectId; | 1834 core.String projectId; |
| 1864 /** Start time of this transfer execution. */ | 1835 |
| 1836 /// Start time of this transfer execution. |
| 1865 core.String startTime; | 1837 core.String startTime; |
| 1866 /** | 1838 |
| 1867 * Status of the transfer operation. | 1839 /// Status of the transfer operation. |
| 1868 * Possible string values are: | 1840 /// Possible string values are: |
| 1869 * - "STATUS_UNSPECIFIED" : Zero is an illegal value. | 1841 /// - "STATUS_UNSPECIFIED" : Zero is an illegal value. |
| 1870 * - "IN_PROGRESS" : In progress. | 1842 /// - "IN_PROGRESS" : In progress. |
| 1871 * - "PAUSED" : Paused. | 1843 /// - "PAUSED" : Paused. |
| 1872 * - "SUCCESS" : Completed successfully. | 1844 /// - "SUCCESS" : Completed successfully. |
| 1873 * - "FAILED" : Terminated due to an unrecoverable failure. | 1845 /// - "FAILED" : Terminated due to an unrecoverable failure. |
| 1874 * - "ABORTED" : Aborted by the user. | 1846 /// - "ABORTED" : Aborted by the user. |
| 1875 */ | |
| 1876 core.String status; | 1847 core.String status; |
| 1877 /** The name of the transfer job that triggers this transfer operation. */ | 1848 |
| 1849 /// The name of the transfer job that triggers this transfer operation. |
| 1878 core.String transferJobName; | 1850 core.String transferJobName; |
| 1879 /** | 1851 |
| 1880 * Transfer specification. | 1852 /// Transfer specification. |
| 1881 * Required. | 1853 /// Required. |
| 1882 */ | |
| 1883 TransferSpec transferSpec; | 1854 TransferSpec transferSpec; |
| 1884 | 1855 |
| 1885 TransferOperation(); | 1856 TransferOperation(); |
| 1886 | 1857 |
| 1887 TransferOperation.fromJson(core.Map _json) { | 1858 TransferOperation.fromJson(core.Map _json) { |
| 1888 if (_json.containsKey("counters")) { | 1859 if (_json.containsKey("counters")) { |
| 1889 counters = new TransferCounters.fromJson(_json["counters"]); | 1860 counters = new TransferCounters.fromJson(_json["counters"]); |
| 1890 } | 1861 } |
| 1891 if (_json.containsKey("endTime")) { | 1862 if (_json.containsKey("endTime")) { |
| 1892 endTime = _json["endTime"]; | 1863 endTime = _json["endTime"]; |
| 1893 } | 1864 } |
| 1894 if (_json.containsKey("errorBreakdowns")) { | 1865 if (_json.containsKey("errorBreakdowns")) { |
| 1895 errorBreakdowns = _json["errorBreakdowns"].map((value) => new ErrorSummary
.fromJson(value)).toList(); | 1866 errorBreakdowns = _json["errorBreakdowns"] |
| 1867 .map((value) => new ErrorSummary.fromJson(value)) |
| 1868 .toList(); |
| 1896 } | 1869 } |
| 1897 if (_json.containsKey("name")) { | 1870 if (_json.containsKey("name")) { |
| 1898 name = _json["name"]; | 1871 name = _json["name"]; |
| 1899 } | 1872 } |
| 1900 if (_json.containsKey("projectId")) { | 1873 if (_json.containsKey("projectId")) { |
| 1901 projectId = _json["projectId"]; | 1874 projectId = _json["projectId"]; |
| 1902 } | 1875 } |
| 1903 if (_json.containsKey("startTime")) { | 1876 if (_json.containsKey("startTime")) { |
| 1904 startTime = _json["startTime"]; | 1877 startTime = _json["startTime"]; |
| 1905 } | 1878 } |
| 1906 if (_json.containsKey("status")) { | 1879 if (_json.containsKey("status")) { |
| 1907 status = _json["status"]; | 1880 status = _json["status"]; |
| 1908 } | 1881 } |
| 1909 if (_json.containsKey("transferJobName")) { | 1882 if (_json.containsKey("transferJobName")) { |
| 1910 transferJobName = _json["transferJobName"]; | 1883 transferJobName = _json["transferJobName"]; |
| 1911 } | 1884 } |
| 1912 if (_json.containsKey("transferSpec")) { | 1885 if (_json.containsKey("transferSpec")) { |
| 1913 transferSpec = new TransferSpec.fromJson(_json["transferSpec"]); | 1886 transferSpec = new TransferSpec.fromJson(_json["transferSpec"]); |
| 1914 } | 1887 } |
| 1915 } | 1888 } |
| 1916 | 1889 |
| 1917 core.Map<core.String, core.Object> toJson() { | 1890 core.Map<core.String, core.Object> toJson() { |
| 1918 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1891 final core.Map<core.String, core.Object> _json = |
| 1892 new core.Map<core.String, core.Object>(); |
| 1919 if (counters != null) { | 1893 if (counters != null) { |
| 1920 _json["counters"] = (counters).toJson(); | 1894 _json["counters"] = (counters).toJson(); |
| 1921 } | 1895 } |
| 1922 if (endTime != null) { | 1896 if (endTime != null) { |
| 1923 _json["endTime"] = endTime; | 1897 _json["endTime"] = endTime; |
| 1924 } | 1898 } |
| 1925 if (errorBreakdowns != null) { | 1899 if (errorBreakdowns != null) { |
| 1926 _json["errorBreakdowns"] = errorBreakdowns.map((value) => (value).toJson()
).toList(); | 1900 _json["errorBreakdowns"] = |
| 1901 errorBreakdowns.map((value) => (value).toJson()).toList(); |
| 1927 } | 1902 } |
| 1928 if (name != null) { | 1903 if (name != null) { |
| 1929 _json["name"] = name; | 1904 _json["name"] = name; |
| 1930 } | 1905 } |
| 1931 if (projectId != null) { | 1906 if (projectId != null) { |
| 1932 _json["projectId"] = projectId; | 1907 _json["projectId"] = projectId; |
| 1933 } | 1908 } |
| 1934 if (startTime != null) { | 1909 if (startTime != null) { |
| 1935 _json["startTime"] = startTime; | 1910 _json["startTime"] = startTime; |
| 1936 } | 1911 } |
| 1937 if (status != null) { | 1912 if (status != null) { |
| 1938 _json["status"] = status; | 1913 _json["status"] = status; |
| 1939 } | 1914 } |
| 1940 if (transferJobName != null) { | 1915 if (transferJobName != null) { |
| 1941 _json["transferJobName"] = transferJobName; | 1916 _json["transferJobName"] = transferJobName; |
| 1942 } | 1917 } |
| 1943 if (transferSpec != null) { | 1918 if (transferSpec != null) { |
| 1944 _json["transferSpec"] = (transferSpec).toJson(); | 1919 _json["transferSpec"] = (transferSpec).toJson(); |
| 1945 } | 1920 } |
| 1946 return _json; | 1921 return _json; |
| 1947 } | 1922 } |
| 1948 } | 1923 } |
| 1949 | 1924 |
| 1950 /** | 1925 /// TransferOptions uses three boolean parameters to define the actions |
| 1951 * TransferOptions uses three boolean parameters to define the actions | 1926 /// to be performed on objects in a transfer. |
| 1952 * to be performed on objects in a transfer. | |
| 1953 */ | |
| 1954 class TransferOptions { | 1927 class TransferOptions { |
| 1955 /** | 1928 /// Whether objects should be deleted from the source after they are |
| 1956 * Whether objects should be deleted from the source after they are | 1929 /// transferred to the sink. Note that this option and |
| 1957 * transferred to the sink. Note that this option and | 1930 /// `deleteObjectsUniqueInSink` are mutually exclusive. |
| 1958 * `deleteObjectsUniqueInSink` are mutually exclusive. | |
| 1959 */ | |
| 1960 core.bool deleteObjectsFromSourceAfterTransfer; | 1931 core.bool deleteObjectsFromSourceAfterTransfer; |
| 1961 /** | 1932 |
| 1962 * Whether objects that exist only in the sink should be deleted. Note that | 1933 /// Whether objects that exist only in the sink should be deleted. Note that |
| 1963 * this option and `deleteObjectsFromSourceAfterTransfer` are mutually | 1934 /// this option and `deleteObjectsFromSourceAfterTransfer` are mutually |
| 1964 * exclusive. | 1935 /// exclusive. |
| 1965 */ | |
| 1966 core.bool deleteObjectsUniqueInSink; | 1936 core.bool deleteObjectsUniqueInSink; |
| 1967 /** Whether overwriting objects that already exist in the sink is allowed. */ | 1937 |
| 1938 /// Whether overwriting objects that already exist in the sink is allowed. |
| 1968 core.bool overwriteObjectsAlreadyExistingInSink; | 1939 core.bool overwriteObjectsAlreadyExistingInSink; |
| 1969 | 1940 |
| 1970 TransferOptions(); | 1941 TransferOptions(); |
| 1971 | 1942 |
| 1972 TransferOptions.fromJson(core.Map _json) { | 1943 TransferOptions.fromJson(core.Map _json) { |
| 1973 if (_json.containsKey("deleteObjectsFromSourceAfterTransfer")) { | 1944 if (_json.containsKey("deleteObjectsFromSourceAfterTransfer")) { |
| 1974 deleteObjectsFromSourceAfterTransfer = _json["deleteObjectsFromSourceAfter
Transfer"]; | 1945 deleteObjectsFromSourceAfterTransfer = |
| 1946 _json["deleteObjectsFromSourceAfterTransfer"]; |
| 1975 } | 1947 } |
| 1976 if (_json.containsKey("deleteObjectsUniqueInSink")) { | 1948 if (_json.containsKey("deleteObjectsUniqueInSink")) { |
| 1977 deleteObjectsUniqueInSink = _json["deleteObjectsUniqueInSink"]; | 1949 deleteObjectsUniqueInSink = _json["deleteObjectsUniqueInSink"]; |
| 1978 } | 1950 } |
| 1979 if (_json.containsKey("overwriteObjectsAlreadyExistingInSink")) { | 1951 if (_json.containsKey("overwriteObjectsAlreadyExistingInSink")) { |
| 1980 overwriteObjectsAlreadyExistingInSink = _json["overwriteObjectsAlreadyExis
tingInSink"]; | 1952 overwriteObjectsAlreadyExistingInSink = |
| 1953 _json["overwriteObjectsAlreadyExistingInSink"]; |
| 1981 } | 1954 } |
| 1982 } | 1955 } |
| 1983 | 1956 |
| 1984 core.Map<core.String, core.Object> toJson() { | 1957 core.Map<core.String, core.Object> toJson() { |
| 1985 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1958 final core.Map<core.String, core.Object> _json = |
| 1959 new core.Map<core.String, core.Object>(); |
| 1986 if (deleteObjectsFromSourceAfterTransfer != null) { | 1960 if (deleteObjectsFromSourceAfterTransfer != null) { |
| 1987 _json["deleteObjectsFromSourceAfterTransfer"] = deleteObjectsFromSourceAft
erTransfer; | 1961 _json["deleteObjectsFromSourceAfterTransfer"] = |
| 1962 deleteObjectsFromSourceAfterTransfer; |
| 1988 } | 1963 } |
| 1989 if (deleteObjectsUniqueInSink != null) { | 1964 if (deleteObjectsUniqueInSink != null) { |
| 1990 _json["deleteObjectsUniqueInSink"] = deleteObjectsUniqueInSink; | 1965 _json["deleteObjectsUniqueInSink"] = deleteObjectsUniqueInSink; |
| 1991 } | 1966 } |
| 1992 if (overwriteObjectsAlreadyExistingInSink != null) { | 1967 if (overwriteObjectsAlreadyExistingInSink != null) { |
| 1993 _json["overwriteObjectsAlreadyExistingInSink"] = overwriteObjectsAlreadyEx
istingInSink; | 1968 _json["overwriteObjectsAlreadyExistingInSink"] = |
| 1969 overwriteObjectsAlreadyExistingInSink; |
| 1994 } | 1970 } |
| 1995 return _json; | 1971 return _json; |
| 1996 } | 1972 } |
| 1997 } | 1973 } |
| 1998 | 1974 |
| 1999 /** Configuration for running a transfer. */ | 1975 /// Configuration for running a transfer. |
| 2000 class TransferSpec { | 1976 class TransferSpec { |
| 2001 /** An AWS S3 data source. */ | 1977 /// An AWS S3 data source. |
| 2002 AwsS3Data awsS3DataSource; | 1978 AwsS3Data awsS3DataSource; |
| 2003 /** A Google Cloud Storage data sink. */ | 1979 |
| 1980 /// A Google Cloud Storage data sink. |
| 2004 GcsData gcsDataSink; | 1981 GcsData gcsDataSink; |
| 2005 /** A Google Cloud Storage data source. */ | 1982 |
| 1983 /// A Google Cloud Storage data source. |
| 2006 GcsData gcsDataSource; | 1984 GcsData gcsDataSource; |
| 2007 /** An HTTP URL data source. */ | 1985 |
| 1986 /// An HTTP URL data source. |
| 2008 HttpData httpDataSource; | 1987 HttpData httpDataSource; |
| 2009 /** | 1988 |
| 2010 * Only objects that satisfy these object conditions are included in the set | 1989 /// Only objects that satisfy these object conditions are included in the set |
| 2011 * of data source and data sink objects. Object conditions based on | 1990 /// of data source and data sink objects. Object conditions based on |
| 2012 * objects' `lastModificationTime` do not exclude objects in a data sink. | 1991 /// objects' `lastModificationTime` do not exclude objects in a data sink. |
| 2013 */ | |
| 2014 ObjectConditions objectConditions; | 1992 ObjectConditions objectConditions; |
| 2015 /** | 1993 |
| 2016 * If the option `deleteObjectsUniqueInSink` is `true`, object conditions | 1994 /// If the option `deleteObjectsUniqueInSink` is `true`, object conditions |
| 2017 * based on objects' `lastModificationTime` are ignored and do not exclude | 1995 /// based on objects' `lastModificationTime` are ignored and do not exclude |
| 2018 * objects in a data source or a data sink. | 1996 /// objects in a data source or a data sink. |
| 2019 */ | |
| 2020 TransferOptions transferOptions; | 1997 TransferOptions transferOptions; |
| 2021 | 1998 |
| 2022 TransferSpec(); | 1999 TransferSpec(); |
| 2023 | 2000 |
| 2024 TransferSpec.fromJson(core.Map _json) { | 2001 TransferSpec.fromJson(core.Map _json) { |
| 2025 if (_json.containsKey("awsS3DataSource")) { | 2002 if (_json.containsKey("awsS3DataSource")) { |
| 2026 awsS3DataSource = new AwsS3Data.fromJson(_json["awsS3DataSource"]); | 2003 awsS3DataSource = new AwsS3Data.fromJson(_json["awsS3DataSource"]); |
| 2027 } | 2004 } |
| 2028 if (_json.containsKey("gcsDataSink")) { | 2005 if (_json.containsKey("gcsDataSink")) { |
| 2029 gcsDataSink = new GcsData.fromJson(_json["gcsDataSink"]); | 2006 gcsDataSink = new GcsData.fromJson(_json["gcsDataSink"]); |
| 2030 } | 2007 } |
| 2031 if (_json.containsKey("gcsDataSource")) { | 2008 if (_json.containsKey("gcsDataSource")) { |
| 2032 gcsDataSource = new GcsData.fromJson(_json["gcsDataSource"]); | 2009 gcsDataSource = new GcsData.fromJson(_json["gcsDataSource"]); |
| 2033 } | 2010 } |
| 2034 if (_json.containsKey("httpDataSource")) { | 2011 if (_json.containsKey("httpDataSource")) { |
| 2035 httpDataSource = new HttpData.fromJson(_json["httpDataSource"]); | 2012 httpDataSource = new HttpData.fromJson(_json["httpDataSource"]); |
| 2036 } | 2013 } |
| 2037 if (_json.containsKey("objectConditions")) { | 2014 if (_json.containsKey("objectConditions")) { |
| 2038 objectConditions = new ObjectConditions.fromJson(_json["objectConditions"]
); | 2015 objectConditions = |
| 2016 new ObjectConditions.fromJson(_json["objectConditions"]); |
| 2039 } | 2017 } |
| 2040 if (_json.containsKey("transferOptions")) { | 2018 if (_json.containsKey("transferOptions")) { |
| 2041 transferOptions = new TransferOptions.fromJson(_json["transferOptions"]); | 2019 transferOptions = new TransferOptions.fromJson(_json["transferOptions"]); |
| 2042 } | 2020 } |
| 2043 } | 2021 } |
| 2044 | 2022 |
| 2045 core.Map<core.String, core.Object> toJson() { | 2023 core.Map<core.String, core.Object> toJson() { |
| 2046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2024 final core.Map<core.String, core.Object> _json = |
| 2025 new core.Map<core.String, core.Object>(); |
| 2047 if (awsS3DataSource != null) { | 2026 if (awsS3DataSource != null) { |
| 2048 _json["awsS3DataSource"] = (awsS3DataSource).toJson(); | 2027 _json["awsS3DataSource"] = (awsS3DataSource).toJson(); |
| 2049 } | 2028 } |
| 2050 if (gcsDataSink != null) { | 2029 if (gcsDataSink != null) { |
| 2051 _json["gcsDataSink"] = (gcsDataSink).toJson(); | 2030 _json["gcsDataSink"] = (gcsDataSink).toJson(); |
| 2052 } | 2031 } |
| 2053 if (gcsDataSource != null) { | 2032 if (gcsDataSource != null) { |
| 2054 _json["gcsDataSource"] = (gcsDataSource).toJson(); | 2033 _json["gcsDataSource"] = (gcsDataSource).toJson(); |
| 2055 } | 2034 } |
| 2056 if (httpDataSource != null) { | 2035 if (httpDataSource != null) { |
| 2057 _json["httpDataSource"] = (httpDataSource).toJson(); | 2036 _json["httpDataSource"] = (httpDataSource).toJson(); |
| 2058 } | 2037 } |
| 2059 if (objectConditions != null) { | 2038 if (objectConditions != null) { |
| 2060 _json["objectConditions"] = (objectConditions).toJson(); | 2039 _json["objectConditions"] = (objectConditions).toJson(); |
| 2061 } | 2040 } |
| 2062 if (transferOptions != null) { | 2041 if (transferOptions != null) { |
| 2063 _json["transferOptions"] = (transferOptions).toJson(); | 2042 _json["transferOptions"] = (transferOptions).toJson(); |
| 2064 } | 2043 } |
| 2065 return _json; | 2044 return _json; |
| 2066 } | 2045 } |
| 2067 } | 2046 } |
| 2068 | 2047 |
| 2069 /** Request passed to UpdateTransferJob. */ | 2048 /// Request passed to UpdateTransferJob. |
| 2070 class UpdateTransferJobRequest { | 2049 class UpdateTransferJobRequest { |
| 2071 /** | 2050 /// The ID of the Google Cloud Platform Console project that owns the job. |
| 2072 * The ID of the Google Cloud Platform Console project that owns the job. | 2051 /// Required. |
| 2073 * Required. | |
| 2074 */ | |
| 2075 core.String projectId; | 2052 core.String projectId; |
| 2076 /** | 2053 |
| 2077 * The job to update. `transferJob` is expected to specify only three fields: | 2054 /// The job to update. `transferJob` is expected to specify only three |
| 2078 * `description`, `transferSpec`, and `status`. An UpdateTransferJobRequest | 2055 /// fields: |
| 2079 * that specifies other fields will be rejected with an error | 2056 /// `description`, `transferSpec`, and `status`. An UpdateTransferJobRequest |
| 2080 * `INVALID_ARGUMENT`. | 2057 /// that specifies other fields will be rejected with an error |
| 2081 * Required. | 2058 /// `INVALID_ARGUMENT`. |
| 2082 */ | 2059 /// Required. |
| 2083 TransferJob transferJob; | 2060 TransferJob transferJob; |
| 2084 /** | 2061 |
| 2085 * The field mask of the fields in `transferJob` that are to be updated in | 2062 /// The field mask of the fields in `transferJob` that are to be updated in |
| 2086 * this request. Fields in `transferJob` that can be updated are: | 2063 /// this request. Fields in `transferJob` that can be updated are: |
| 2087 * `description`, `transferSpec`, and `status`. To update the `transferSpec` | 2064 /// `description`, `transferSpec`, and `status`. To update the |
| 2088 * of the job, a complete transfer specification has to be provided. An | 2065 /// `transferSpec` |
| 2089 * incomplete specification which misses any required fields will be rejected | 2066 /// of the job, a complete transfer specification has to be provided. An |
| 2090 * with the error `INVALID_ARGUMENT`. | 2067 /// incomplete specification which misses any required fields will be |
| 2091 */ | 2068 /// rejected |
| 2069 /// with the error `INVALID_ARGUMENT`. |
| 2092 core.String updateTransferJobFieldMask; | 2070 core.String updateTransferJobFieldMask; |
| 2093 | 2071 |
| 2094 UpdateTransferJobRequest(); | 2072 UpdateTransferJobRequest(); |
| 2095 | 2073 |
| 2096 UpdateTransferJobRequest.fromJson(core.Map _json) { | 2074 UpdateTransferJobRequest.fromJson(core.Map _json) { |
| 2097 if (_json.containsKey("projectId")) { | 2075 if (_json.containsKey("projectId")) { |
| 2098 projectId = _json["projectId"]; | 2076 projectId = _json["projectId"]; |
| 2099 } | 2077 } |
| 2100 if (_json.containsKey("transferJob")) { | 2078 if (_json.containsKey("transferJob")) { |
| 2101 transferJob = new TransferJob.fromJson(_json["transferJob"]); | 2079 transferJob = new TransferJob.fromJson(_json["transferJob"]); |
| 2102 } | 2080 } |
| 2103 if (_json.containsKey("updateTransferJobFieldMask")) { | 2081 if (_json.containsKey("updateTransferJobFieldMask")) { |
| 2104 updateTransferJobFieldMask = _json["updateTransferJobFieldMask"]; | 2082 updateTransferJobFieldMask = _json["updateTransferJobFieldMask"]; |
| 2105 } | 2083 } |
| 2106 } | 2084 } |
| 2107 | 2085 |
| 2108 core.Map<core.String, core.Object> toJson() { | 2086 core.Map<core.String, core.Object> toJson() { |
| 2109 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2087 final core.Map<core.String, core.Object> _json = |
| 2088 new core.Map<core.String, core.Object>(); |
| 2110 if (projectId != null) { | 2089 if (projectId != null) { |
| 2111 _json["projectId"] = projectId; | 2090 _json["projectId"] = projectId; |
| 2112 } | 2091 } |
| 2113 if (transferJob != null) { | 2092 if (transferJob != null) { |
| 2114 _json["transferJob"] = (transferJob).toJson(); | 2093 _json["transferJob"] = (transferJob).toJson(); |
| 2115 } | 2094 } |
| 2116 if (updateTransferJobFieldMask != null) { | 2095 if (updateTransferJobFieldMask != null) { |
| 2117 _json["updateTransferJobFieldMask"] = updateTransferJobFieldMask; | 2096 _json["updateTransferJobFieldMask"] = updateTransferJobFieldMask; |
| 2118 } | 2097 } |
| 2119 return _json; | 2098 return _json; |
| 2120 } | 2099 } |
| 2121 } | 2100 } |
| OLD | NEW |