| 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_beta.dlp.v2beta1; | 3 library googleapis_beta.dlp.v2beta1; |
| 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 dlp/v2beta1'; | 15 const core.String USER_AGENT = 'dart-api-client dlp/v2beta1'; |
| 16 | 16 |
| 17 /** | 17 /// The Google Data Loss Prevention API provides methods for detection of |
| 18 * The Google Data Loss Prevention API provides methods for detection of | 18 /// privacy-sensitive fragments in text, images, and Google Cloud Platform |
| 19 * privacy-sensitive fragments in text, images, and Google Cloud Platform | 19 /// storage repositories. |
| 20 * storage repositories. | |
| 21 */ | |
| 22 class DlpApi { | 20 class DlpApi { |
| 23 /** View and manage your data across Google Cloud Platform services */ | 21 /// View and manage your data across Google Cloud Platform services |
| 24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 22 static const CloudPlatformScope = |
| 25 | 23 "https://www.googleapis.com/auth/cloud-platform"; |
| 26 | 24 |
| 27 final commons.ApiRequester _requester; | 25 final commons.ApiRequester _requester; |
| 28 | 26 |
| 29 ContentResourceApi get content => new ContentResourceApi(_requester); | 27 ContentResourceApi get content => new ContentResourceApi(_requester); |
| 30 InspectResourceApi get inspect => new InspectResourceApi(_requester); | 28 InspectResourceApi get inspect => new InspectResourceApi(_requester); |
| 31 RootCategoriesResourceApi get rootCategories => new RootCategoriesResourceApi(
_requester); | 29 RiskAnalysisResourceApi get riskAnalysis => |
| 30 new RiskAnalysisResourceApi(_requester); |
| 31 RootCategoriesResourceApi get rootCategories => |
| 32 new RootCategoriesResourceApi(_requester); |
| 32 | 33 |
| 33 DlpApi(http.Client client, {core.String rootUrl: "https://dlp.googleapis.com/"
, core.String servicePath: ""}) : | 34 DlpApi(http.Client client, |
| 34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 35 {core.String rootUrl: "https://dlp.googleapis.com/", |
| 36 core.String servicePath: ""}) |
| 37 : _requester = |
| 38 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 35 } | 39 } |
| 36 | 40 |
| 37 | |
| 38 class ContentResourceApi { | 41 class ContentResourceApi { |
| 39 final commons.ApiRequester _requester; | 42 final commons.ApiRequester _requester; |
| 40 | 43 |
| 41 ContentResourceApi(commons.ApiRequester client) : | 44 ContentResourceApi(commons.ApiRequester client) : _requester = client; |
| 42 _requester = client; | |
| 43 | 45 |
| 44 /** | 46 /// Finds potentially sensitive info in a list of strings. |
| 45 * Finds potentially sensitive info in a list of strings. | 47 /// This method has limits on input size, processing time, and output size. |
| 46 * This method has limits on input size, processing time, and output size. | 48 /// |
| 47 * | 49 /// [request] - The metadata request object. |
| 48 * [request] - The metadata request object. | 50 /// |
| 49 * | 51 /// Request parameters: |
| 50 * Request parameters: | 52 /// |
| 51 * | 53 /// Completes with a [GooglePrivacyDlpV2beta1InspectContentResponse]. |
| 52 * Completes with a [GooglePrivacyDlpV2beta1InspectContentResponse]. | 54 /// |
| 53 * | 55 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 54 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 56 /// an error. |
| 55 * error. | 57 /// |
| 56 * | 58 /// If the used [http.Client] completes with an error when making a REST |
| 57 * If the used [http.Client] completes with an error when making a REST call, | 59 /// call, this method will complete with the same error. |
| 58 * this method will complete with the same error. | 60 async.Future<GooglePrivacyDlpV2beta1InspectContentResponse> inspect( |
| 59 */ | 61 GooglePrivacyDlpV2beta1InspectContentRequest request) { |
| 60 async.Future<GooglePrivacyDlpV2beta1InspectContentResponse> inspect(GooglePriv
acyDlpV2beta1InspectContentRequest request) { | |
| 61 var _url = null; | 62 var _url = null; |
| 62 var _queryParams = new core.Map(); | 63 var _queryParams = new core.Map(); |
| 63 var _uploadMedia = null; | 64 var _uploadMedia = null; |
| 64 var _uploadOptions = null; | 65 var _uploadOptions = null; |
| 65 var _downloadOptions = commons.DownloadOptions.Metadata; | 66 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 66 var _body = null; | 67 var _body = null; |
| 67 | 68 |
| 68 if (request != null) { | 69 if (request != null) { |
| 69 _body = convert.JSON.encode((request).toJson()); | 70 _body = convert.JSON.encode((request).toJson()); |
| 70 } | 71 } |
| 71 | 72 |
| 72 _url = 'v2beta1/content:inspect'; | 73 _url = 'v2beta1/content:inspect'; |
| 73 | 74 |
| 74 var _response = _requester.request(_url, | 75 var _response = _requester.request(_url, "POST", |
| 75 "POST", | 76 body: _body, |
| 76 body: _body, | 77 queryParams: _queryParams, |
| 77 queryParams: _queryParams, | 78 uploadOptions: _uploadOptions, |
| 78 uploadOptions: _uploadOptions, | 79 uploadMedia: _uploadMedia, |
| 79 uploadMedia: _uploadMedia, | 80 downloadOptions: _downloadOptions); |
| 80 downloadOptions: _downloadOptions); | 81 return _response.then((data) => |
| 81 return _response.then((data) => new GooglePrivacyDlpV2beta1InspectContentRes
ponse.fromJson(data)); | 82 new GooglePrivacyDlpV2beta1InspectContentResponse.fromJson(data)); |
| 82 } | 83 } |
| 83 | 84 |
| 84 /** | 85 /// Redacts potentially sensitive info from a list of strings. |
| 85 * Redacts potentially sensitive info from a list of strings. | 86 /// This method has limits on input size, processing time, and output size. |
| 86 * This method has limits on input size, processing time, and output size. | 87 /// |
| 87 * | 88 /// [request] - The metadata request object. |
| 88 * [request] - The metadata request object. | 89 /// |
| 89 * | 90 /// Request parameters: |
| 90 * Request parameters: | 91 /// |
| 91 * | 92 /// Completes with a [GooglePrivacyDlpV2beta1RedactContentResponse]. |
| 92 * Completes with a [GooglePrivacyDlpV2beta1RedactContentResponse]. | 93 /// |
| 93 * | 94 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 94 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 95 /// an error. |
| 95 * error. | 96 /// |
| 96 * | 97 /// If the used [http.Client] completes with an error when making a REST |
| 97 * If the used [http.Client] completes with an error when making a REST call, | 98 /// call, this method will complete with the same error. |
| 98 * this method will complete with the same error. | 99 async.Future<GooglePrivacyDlpV2beta1RedactContentResponse> redact( |
| 99 */ | 100 GooglePrivacyDlpV2beta1RedactContentRequest request) { |
| 100 async.Future<GooglePrivacyDlpV2beta1RedactContentResponse> redact(GooglePrivac
yDlpV2beta1RedactContentRequest request) { | |
| 101 var _url = null; | 101 var _url = null; |
| 102 var _queryParams = new core.Map(); | 102 var _queryParams = new core.Map(); |
| 103 var _uploadMedia = null; | 103 var _uploadMedia = null; |
| 104 var _uploadOptions = null; | 104 var _uploadOptions = null; |
| 105 var _downloadOptions = commons.DownloadOptions.Metadata; | 105 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 106 var _body = null; | 106 var _body = null; |
| 107 | 107 |
| 108 if (request != null) { | 108 if (request != null) { |
| 109 _body = convert.JSON.encode((request).toJson()); | 109 _body = convert.JSON.encode((request).toJson()); |
| 110 } | 110 } |
| 111 | 111 |
| 112 _url = 'v2beta1/content:redact'; | 112 _url = 'v2beta1/content:redact'; |
| 113 | 113 |
| 114 var _response = _requester.request(_url, | 114 var _response = _requester.request(_url, "POST", |
| 115 "POST", | 115 body: _body, |
| 116 body: _body, | 116 queryParams: _queryParams, |
| 117 queryParams: _queryParams, | 117 uploadOptions: _uploadOptions, |
| 118 uploadOptions: _uploadOptions, | 118 uploadMedia: _uploadMedia, |
| 119 uploadMedia: _uploadMedia, | 119 downloadOptions: _downloadOptions); |
| 120 downloadOptions: _downloadOptions); | 120 return _response.then((data) => |
| 121 return _response.then((data) => new GooglePrivacyDlpV2beta1RedactContentResp
onse.fromJson(data)); | 121 new GooglePrivacyDlpV2beta1RedactContentResponse.fromJson(data)); |
| 122 } | 122 } |
| 123 | |
| 124 } | 123 } |
| 125 | 124 |
| 126 | |
| 127 class InspectResourceApi { | 125 class InspectResourceApi { |
| 128 final commons.ApiRequester _requester; | 126 final commons.ApiRequester _requester; |
| 129 | 127 |
| 130 InspectOperationsResourceApi get operations => new InspectOperationsResourceAp
i(_requester); | 128 InspectOperationsResourceApi get operations => |
| 131 InspectResultsResourceApi get results => new InspectResultsResourceApi(_reques
ter); | 129 new InspectOperationsResourceApi(_requester); |
| 130 InspectResultsResourceApi get results => |
| 131 new InspectResultsResourceApi(_requester); |
| 132 | 132 |
| 133 InspectResourceApi(commons.ApiRequester client) : | 133 InspectResourceApi(commons.ApiRequester client) : _requester = client; |
| 134 _requester = client; | |
| 135 } | 134 } |
| 136 | 135 |
| 137 | |
| 138 class InspectOperationsResourceApi { | 136 class InspectOperationsResourceApi { |
| 139 final commons.ApiRequester _requester; | 137 final commons.ApiRequester _requester; |
| 140 | 138 |
| 141 InspectOperationsResourceApi(commons.ApiRequester client) : | 139 InspectOperationsResourceApi(commons.ApiRequester client) |
| 142 _requester = client; | 140 : _requester = client; |
| 143 | 141 |
| 144 /** | 142 /// Cancels an operation. Use the get method to check whether the |
| 145 * Cancels an operation. Use the get method to check whether the cancellation | 143 /// cancellation succeeded or whether the operation completed despite |
| 146 * succeeded or whether the operation completed despite cancellation. | 144 /// cancellation. |
| 147 * | 145 /// |
| 148 * [request] - The metadata request object. | 146 /// [request] - The metadata request object. |
| 149 * | 147 /// |
| 150 * Request parameters: | 148 /// Request parameters: |
| 151 * | 149 /// |
| 152 * [name] - The name of the operation resource to be cancelled. | 150 /// [name] - The name of the operation resource to be cancelled. |
| 153 * Value must have pattern "^inspect/operations/[^/]+$". | 151 /// Value must have pattern "^inspect/operations/[^/]+$". |
| 154 * | 152 /// |
| 155 * Completes with a [GoogleProtobufEmpty]. | 153 /// Completes with a [GoogleProtobufEmpty]. |
| 156 * | 154 /// |
| 157 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 155 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 158 * error. | 156 /// an error. |
| 159 * | 157 /// |
| 160 * If the used [http.Client] completes with an error when making a REST call, | 158 /// If the used [http.Client] completes with an error when making a REST |
| 161 * this method will complete with the same error. | 159 /// call, this method will complete with the same error. |
| 162 */ | 160 async.Future<GoogleProtobufEmpty> cancel( |
| 163 async.Future<GoogleProtobufEmpty> cancel(GoogleLongrunningCancelOperationReque
st request, core.String name) { | 161 GoogleLongrunningCancelOperationRequest request, core.String name) { |
| 164 var _url = null; | 162 var _url = null; |
| 165 var _queryParams = new core.Map(); | 163 var _queryParams = new core.Map(); |
| 166 var _uploadMedia = null; | 164 var _uploadMedia = null; |
| 167 var _uploadOptions = null; | 165 var _uploadOptions = null; |
| 168 var _downloadOptions = commons.DownloadOptions.Metadata; | 166 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 169 var _body = null; | 167 var _body = null; |
| 170 | 168 |
| 171 if (request != null) { | 169 if (request != null) { |
| 172 _body = convert.JSON.encode((request).toJson()); | 170 _body = convert.JSON.encode((request).toJson()); |
| 173 } | 171 } |
| 174 if (name == null) { | 172 if (name == null) { |
| 175 throw new core.ArgumentError("Parameter name is required."); | 173 throw new core.ArgumentError("Parameter name is required."); |
| 176 } | 174 } |
| 177 | 175 |
| 178 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cance
l'; | 176 _url = |
| 177 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; |
| 179 | 178 |
| 180 var _response = _requester.request(_url, | 179 var _response = _requester.request(_url, "POST", |
| 181 "POST", | 180 body: _body, |
| 182 body: _body, | 181 queryParams: _queryParams, |
| 183 queryParams: _queryParams, | 182 uploadOptions: _uploadOptions, |
| 184 uploadOptions: _uploadOptions, | 183 uploadMedia: _uploadMedia, |
| 185 uploadMedia: _uploadMedia, | 184 downloadOptions: _downloadOptions); |
| 186 downloadOptions: _downloadOptions); | |
| 187 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); | 185 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); |
| 188 } | 186 } |
| 189 | 187 |
| 190 /** | 188 /// Schedules a job scanning content in a Google Cloud Platform data |
| 191 * Schedules a job scanning content in a Google Cloud Platform data | 189 /// repository. |
| 192 * repository. | 190 /// |
| 193 * | 191 /// [request] - The metadata request object. |
| 194 * [request] - The metadata request object. | 192 /// |
| 195 * | 193 /// Request parameters: |
| 196 * Request parameters: | 194 /// |
| 197 * | 195 /// Completes with a [GoogleLongrunningOperation]. |
| 198 * Completes with a [GoogleLongrunningOperation]. | 196 /// |
| 199 * | 197 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 198 /// an error. |
| 201 * error. | 199 /// |
| 202 * | 200 /// If the used [http.Client] completes with an error when making a REST |
| 203 * If the used [http.Client] completes with an error when making a REST call, | 201 /// call, this method will complete with the same error. |
| 204 * this method will complete with the same error. | 202 async.Future<GoogleLongrunningOperation> create( |
| 205 */ | 203 GooglePrivacyDlpV2beta1CreateInspectOperationRequest request) { |
| 206 async.Future<GoogleLongrunningOperation> create(GooglePrivacyDlpV2beta1CreateI
nspectOperationRequest request) { | |
| 207 var _url = null; | 204 var _url = null; |
| 208 var _queryParams = new core.Map(); | 205 var _queryParams = new core.Map(); |
| 209 var _uploadMedia = null; | 206 var _uploadMedia = null; |
| 210 var _uploadOptions = null; | 207 var _uploadOptions = null; |
| 211 var _downloadOptions = commons.DownloadOptions.Metadata; | 208 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 212 var _body = null; | 209 var _body = null; |
| 213 | 210 |
| 214 if (request != null) { | 211 if (request != null) { |
| 215 _body = convert.JSON.encode((request).toJson()); | 212 _body = convert.JSON.encode((request).toJson()); |
| 216 } | 213 } |
| 217 | 214 |
| 218 _url = 'v2beta1/inspect/operations'; | 215 _url = 'v2beta1/inspect/operations'; |
| 219 | 216 |
| 220 var _response = _requester.request(_url, | 217 var _response = _requester.request(_url, "POST", |
| 221 "POST", | 218 body: _body, |
| 222 body: _body, | 219 queryParams: _queryParams, |
| 223 queryParams: _queryParams, | 220 uploadOptions: _uploadOptions, |
| 224 uploadOptions: _uploadOptions, | 221 uploadMedia: _uploadMedia, |
| 225 uploadMedia: _uploadMedia, | 222 downloadOptions: _downloadOptions); |
| 226 downloadOptions: _downloadOptions); | 223 return _response |
| 227 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data
)); | 224 .then((data) => new GoogleLongrunningOperation.fromJson(data)); |
| 228 } | 225 } |
| 229 | 226 |
| 230 /** | 227 /// This method is not supported and the server returns `UNIMPLEMENTED`. |
| 231 * This method is not supported and the server returns `UNIMPLEMENTED`. | 228 /// |
| 232 * | 229 /// Request parameters: |
| 233 * Request parameters: | 230 /// |
| 234 * | 231 /// [name] - The name of the operation resource to be deleted. |
| 235 * [name] - The name of the operation resource to be deleted. | 232 /// Value must have pattern "^inspect/operations/[^/]+$". |
| 236 * Value must have pattern "^inspect/operations/[^/]+$". | 233 /// |
| 237 * | 234 /// Completes with a [GoogleProtobufEmpty]. |
| 238 * Completes with a [GoogleProtobufEmpty]. | 235 /// |
| 239 * | 236 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 240 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 237 /// an error. |
| 241 * error. | 238 /// |
| 242 * | 239 /// If the used [http.Client] completes with an error when making a REST |
| 243 * If the used [http.Client] completes with an error when making a REST call, | 240 /// call, this method will complete with the same error. |
| 244 * this method will complete with the same error. | |
| 245 */ | |
| 246 async.Future<GoogleProtobufEmpty> delete(core.String name) { | 241 async.Future<GoogleProtobufEmpty> delete(core.String name) { |
| 247 var _url = null; | 242 var _url = null; |
| 248 var _queryParams = new core.Map(); | 243 var _queryParams = new core.Map(); |
| 249 var _uploadMedia = null; | 244 var _uploadMedia = null; |
| 250 var _uploadOptions = null; | 245 var _uploadOptions = null; |
| 251 var _downloadOptions = commons.DownloadOptions.Metadata; | 246 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 252 var _body = null; | 247 var _body = null; |
| 253 | 248 |
| 254 if (name == null) { | 249 if (name == null) { |
| 255 throw new core.ArgumentError("Parameter name is required."); | 250 throw new core.ArgumentError("Parameter name is required."); |
| 256 } | 251 } |
| 257 | 252 |
| 258 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 253 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 259 | 254 |
| 260 var _response = _requester.request(_url, | 255 var _response = _requester.request(_url, "DELETE", |
| 261 "DELETE", | 256 body: _body, |
| 262 body: _body, | 257 queryParams: _queryParams, |
| 263 queryParams: _queryParams, | 258 uploadOptions: _uploadOptions, |
| 264 uploadOptions: _uploadOptions, | 259 uploadMedia: _uploadMedia, |
| 265 uploadMedia: _uploadMedia, | 260 downloadOptions: _downloadOptions); |
| 266 downloadOptions: _downloadOptions); | |
| 267 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); | 261 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); |
| 268 } | 262 } |
| 269 | 263 |
| 270 /** | 264 /// Gets the latest state of a long-running operation. Clients can use this |
| 271 * Gets the latest state of a long-running operation. Clients can use this | 265 /// method to poll the operation result at intervals as recommended by the |
| 272 * method to poll the operation result at intervals as recommended by the API | 266 /// API |
| 273 * service. | 267 /// service. |
| 274 * | 268 /// |
| 275 * Request parameters: | 269 /// Request parameters: |
| 276 * | 270 /// |
| 277 * [name] - The name of the operation resource. | 271 /// [name] - The name of the operation resource. |
| 278 * Value must have pattern "^inspect/operations/[^/]+$". | 272 /// Value must have pattern "^inspect/operations/[^/]+$". |
| 279 * | 273 /// |
| 280 * Completes with a [GoogleLongrunningOperation]. | 274 /// Completes with a [GoogleLongrunningOperation]. |
| 281 * | 275 /// |
| 282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 276 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 283 * error. | 277 /// an error. |
| 284 * | 278 /// |
| 285 * If the used [http.Client] completes with an error when making a REST call, | 279 /// If the used [http.Client] completes with an error when making a REST |
| 286 * this method will complete with the same error. | 280 /// call, this method will complete with the same error. |
| 287 */ | |
| 288 async.Future<GoogleLongrunningOperation> get(core.String name) { | 281 async.Future<GoogleLongrunningOperation> get(core.String name) { |
| 289 var _url = null; | 282 var _url = null; |
| 290 var _queryParams = new core.Map(); | 283 var _queryParams = new core.Map(); |
| 291 var _uploadMedia = null; | 284 var _uploadMedia = null; |
| 292 var _uploadOptions = null; | 285 var _uploadOptions = null; |
| 293 var _downloadOptions = commons.DownloadOptions.Metadata; | 286 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 294 var _body = null; | 287 var _body = null; |
| 295 | 288 |
| 296 if (name == null) { | 289 if (name == null) { |
| 297 throw new core.ArgumentError("Parameter name is required."); | 290 throw new core.ArgumentError("Parameter name is required."); |
| 298 } | 291 } |
| 299 | 292 |
| 300 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 293 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 301 | 294 |
| 302 var _response = _requester.request(_url, | 295 var _response = _requester.request(_url, "GET", |
| 303 "GET", | 296 body: _body, |
| 304 body: _body, | 297 queryParams: _queryParams, |
| 305 queryParams: _queryParams, | 298 uploadOptions: _uploadOptions, |
| 306 uploadOptions: _uploadOptions, | 299 uploadMedia: _uploadMedia, |
| 307 uploadMedia: _uploadMedia, | 300 downloadOptions: _downloadOptions); |
| 308 downloadOptions: _downloadOptions); | 301 return _response |
| 309 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data
)); | 302 .then((data) => new GoogleLongrunningOperation.fromJson(data)); |
| 310 } | 303 } |
| 311 | 304 |
| 312 /** | 305 /// Fetch the list of long running operations. |
| 313 * Fetch the list of long running operations. | 306 /// |
| 314 * | 307 /// Request parameters: |
| 315 * Request parameters: | 308 /// |
| 316 * | 309 /// [name] - The name of the operation's parent resource. |
| 317 * [name] - The name of the operation's parent resource. | 310 /// Value must have pattern "^inspect/operations$". |
| 318 * Value must have pattern "^inspect/operations$". | 311 /// |
| 319 * | 312 /// [filter] - This parameter supports filtering by done, ie done=true or |
| 320 * [filter] - This parameter supports filtering by done, ie done=true or | 313 /// done=false. |
| 321 * done=false. | 314 /// |
| 322 * | 315 /// [pageToken] - The standard list page token. |
| 323 * [pageToken] - The standard list page token. | 316 /// |
| 324 * | 317 /// [pageSize] - The list page size. The max allowed value is 256 and default |
| 325 * [pageSize] - The list page size. The max allowed value is 256 and default | 318 /// is 100. |
| 326 * is 100. | 319 /// |
| 327 * | 320 /// Completes with a [GoogleLongrunningListOperationsResponse]. |
| 328 * Completes with a [GoogleLongrunningListOperationsResponse]. | 321 /// |
| 329 * | 322 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 323 /// an error. |
| 331 * error. | 324 /// |
| 332 * | 325 /// If the used [http.Client] completes with an error when making a REST |
| 333 * If the used [http.Client] completes with an error when making a REST call, | 326 /// call, this method will complete with the same error. |
| 334 * this method will complete with the same error. | 327 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, |
| 335 */ | 328 {core.String filter, core.String pageToken, core.int pageSize}) { |
| 336 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {
core.String filter, core.String pageToken, core.int pageSize}) { | |
| 337 var _url = null; | 329 var _url = null; |
| 338 var _queryParams = new core.Map(); | 330 var _queryParams = new core.Map(); |
| 339 var _uploadMedia = null; | 331 var _uploadMedia = null; |
| 340 var _uploadOptions = null; | 332 var _uploadOptions = null; |
| 341 var _downloadOptions = commons.DownloadOptions.Metadata; | 333 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 342 var _body = null; | 334 var _body = null; |
| 343 | 335 |
| 344 if (name == null) { | 336 if (name == null) { |
| 345 throw new core.ArgumentError("Parameter name is required."); | 337 throw new core.ArgumentError("Parameter name is required."); |
| 346 } | 338 } |
| 347 if (filter != null) { | 339 if (filter != null) { |
| 348 _queryParams["filter"] = [filter]; | 340 _queryParams["filter"] = [filter]; |
| 349 } | 341 } |
| 350 if (pageToken != null) { | 342 if (pageToken != null) { |
| 351 _queryParams["pageToken"] = [pageToken]; | 343 _queryParams["pageToken"] = [pageToken]; |
| 352 } | 344 } |
| 353 if (pageSize != null) { | 345 if (pageSize != null) { |
| 354 _queryParams["pageSize"] = ["${pageSize}"]; | 346 _queryParams["pageSize"] = ["${pageSize}"]; |
| 355 } | 347 } |
| 356 | 348 |
| 357 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 349 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 358 | 350 |
| 359 var _response = _requester.request(_url, | 351 var _response = _requester.request(_url, "GET", |
| 360 "GET", | 352 body: _body, |
| 361 body: _body, | 353 queryParams: _queryParams, |
| 362 queryParams: _queryParams, | 354 uploadOptions: _uploadOptions, |
| 363 uploadOptions: _uploadOptions, | 355 uploadMedia: _uploadMedia, |
| 364 uploadMedia: _uploadMedia, | 356 downloadOptions: _downloadOptions); |
| 365 downloadOptions: _downloadOptions); | 357 return _response.then( |
| 366 return _response.then((data) => new GoogleLongrunningListOperationsResponse.
fromJson(data)); | 358 (data) => new GoogleLongrunningListOperationsResponse.fromJson(data)); |
| 367 } | 359 } |
| 368 | |
| 369 } | 360 } |
| 370 | 361 |
| 371 | |
| 372 class InspectResultsResourceApi { | 362 class InspectResultsResourceApi { |
| 373 final commons.ApiRequester _requester; | 363 final commons.ApiRequester _requester; |
| 374 | 364 |
| 375 InspectResultsFindingsResourceApi get findings => new InspectResultsFindingsRe
sourceApi(_requester); | 365 InspectResultsFindingsResourceApi get findings => |
| 366 new InspectResultsFindingsResourceApi(_requester); |
| 376 | 367 |
| 377 InspectResultsResourceApi(commons.ApiRequester client) : | 368 InspectResultsResourceApi(commons.ApiRequester client) : _requester = client; |
| 378 _requester = client; | |
| 379 } | 369 } |
| 380 | 370 |
| 381 | |
| 382 class InspectResultsFindingsResourceApi { | 371 class InspectResultsFindingsResourceApi { |
| 383 final commons.ApiRequester _requester; | 372 final commons.ApiRequester _requester; |
| 384 | 373 |
| 385 InspectResultsFindingsResourceApi(commons.ApiRequester client) : | 374 InspectResultsFindingsResourceApi(commons.ApiRequester client) |
| 386 _requester = client; | 375 : _requester = client; |
| 387 | 376 |
| 388 /** | 377 /// Returns list of results for given inspect operation result set id. |
| 389 * Returns list of results for given inspect operation result set id. | 378 /// |
| 390 * | 379 /// Request parameters: |
| 391 * Request parameters: | 380 /// |
| 392 * | 381 /// [name] - Identifier of the results set returned as metadata of |
| 393 * [name] - Identifier of the results set returned as metadata of | 382 /// the longrunning operation created by a call to InspectDataSource. |
| 394 * the longrunning operation created by a call to CreateInspectOperation. | 383 /// Should be in the format of `inspect/results/{id}`. |
| 395 * Should be in the format of `inspect/results/{id}`. | 384 /// Value must have pattern "^inspect/results/[^/]+$". |
| 396 * Value must have pattern "^inspect/results/[^/]+$". | 385 /// |
| 397 * | 386 /// [pageToken] - The value returned by the last |
| 398 * [pageToken] - The value returned by the last `ListInspectFindingsResponse`; | 387 /// `ListInspectFindingsResponse`; indicates |
| 399 * indicates | 388 /// that this is a continuation of a prior `ListInspectFindings` call, and |
| 400 * that this is a continuation of a prior `ListInspectFindings` call, and that | 389 /// that |
| 401 * the system should return the next page of data. | 390 /// the system should return the next page of data. |
| 402 * | 391 /// |
| 403 * [pageSize] - Maximum number of results to return. | 392 /// [pageSize] - Maximum number of results to return. |
| 404 * If 0, the implementation selects a reasonable value. | 393 /// If 0, the implementation selects a reasonable value. |
| 405 * | 394 /// |
| 406 * [filter] - Restricts findings to items that match. Supports info_type and | 395 /// [filter] - Restricts findings to items that match. Supports info_type and |
| 407 * likelihood. | 396 /// likelihood. |
| 408 * <p>Examples:<br/> | 397 /// Examples: |
| 409 * <li>info_type=EMAIL_ADDRESS | 398 /// - info_type=EMAIL_ADDRESS |
| 410 * <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS | 399 /// - info_type=PHONE_NUMBER,EMAIL_ADDRESS |
| 411 * <li>likelihood=VERY_LIKELY | 400 /// - likelihood=VERY_LIKELY |
| 412 * <li>likelihood=VERY_LIKELY,LIKELY | 401 /// - likelihood=VERY_LIKELY,LIKELY |
| 413 * <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY | 402 /// - info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY |
| 414 * | 403 /// |
| 415 * Completes with a [GooglePrivacyDlpV2beta1ListInspectFindingsResponse]. | 404 /// Completes with a [GooglePrivacyDlpV2beta1ListInspectFindingsResponse]. |
| 416 * | 405 /// |
| 417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 406 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 418 * error. | 407 /// an error. |
| 419 * | 408 /// |
| 420 * If the used [http.Client] completes with an error when making a REST call, | 409 /// If the used [http.Client] completes with an error when making a REST |
| 421 * this method will complete with the same error. | 410 /// call, this method will complete with the same error. |
| 422 */ | 411 async.Future<GooglePrivacyDlpV2beta1ListInspectFindingsResponse> list( |
| 423 async.Future<GooglePrivacyDlpV2beta1ListInspectFindingsResponse> list(core.Str
ing name, {core.String pageToken, core.int pageSize, core.String filter}) { | 412 core.String name, |
| 413 {core.String pageToken, |
| 414 core.int pageSize, |
| 415 core.String filter}) { |
| 424 var _url = null; | 416 var _url = null; |
| 425 var _queryParams = new core.Map(); | 417 var _queryParams = new core.Map(); |
| 426 var _uploadMedia = null; | 418 var _uploadMedia = null; |
| 427 var _uploadOptions = null; | 419 var _uploadOptions = null; |
| 428 var _downloadOptions = commons.DownloadOptions.Metadata; | 420 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 429 var _body = null; | 421 var _body = null; |
| 430 | 422 |
| 431 if (name == null) { | 423 if (name == null) { |
| 432 throw new core.ArgumentError("Parameter name is required."); | 424 throw new core.ArgumentError("Parameter name is required."); |
| 433 } | 425 } |
| 434 if (pageToken != null) { | 426 if (pageToken != null) { |
| 435 _queryParams["pageToken"] = [pageToken]; | 427 _queryParams["pageToken"] = [pageToken]; |
| 436 } | 428 } |
| 437 if (pageSize != null) { | 429 if (pageSize != null) { |
| 438 _queryParams["pageSize"] = ["${pageSize}"]; | 430 _queryParams["pageSize"] = ["${pageSize}"]; |
| 439 } | 431 } |
| 440 if (filter != null) { | 432 if (filter != null) { |
| 441 _queryParams["filter"] = [filter]; | 433 _queryParams["filter"] = [filter]; |
| 442 } | 434 } |
| 443 | 435 |
| 444 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/findi
ngs'; | 436 _url = 'v2beta1/' + |
| 445 | 437 commons.Escaper.ecapeVariableReserved('$name') + |
| 446 var _response = _requester.request(_url, | 438 '/findings'; |
| 447 "GET", | 439 |
| 448 body: _body, | 440 var _response = _requester.request(_url, "GET", |
| 449 queryParams: _queryParams, | 441 body: _body, |
| 450 uploadOptions: _uploadOptions, | 442 queryParams: _queryParams, |
| 451 uploadMedia: _uploadMedia, | 443 uploadOptions: _uploadOptions, |
| 452 downloadOptions: _downloadOptions); | 444 uploadMedia: _uploadMedia, |
| 453 return _response.then((data) => new GooglePrivacyDlpV2beta1ListInspectFindin
gsResponse.fromJson(data)); | 445 downloadOptions: _downloadOptions); |
| 454 } | 446 return _response.then((data) => |
| 455 | 447 new GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJson(data)); |
| 448 } |
| 456 } | 449 } |
| 457 | 450 |
| 451 class RiskAnalysisResourceApi { |
| 452 final commons.ApiRequester _requester; |
| 453 |
| 454 RiskAnalysisOperationsResourceApi get operations => |
| 455 new RiskAnalysisOperationsResourceApi(_requester); |
| 456 |
| 457 RiskAnalysisResourceApi(commons.ApiRequester client) : _requester = client; |
| 458 } |
| 459 |
| 460 class RiskAnalysisOperationsResourceApi { |
| 461 final commons.ApiRequester _requester; |
| 462 |
| 463 RiskAnalysisOperationsResourceApi(commons.ApiRequester client) |
| 464 : _requester = client; |
| 465 |
| 466 /// Cancels an operation. Use the get method to check whether the |
| 467 /// cancellation succeeded or whether the operation completed despite |
| 468 /// cancellation. |
| 469 /// |
| 470 /// [request] - The metadata request object. |
| 471 /// |
| 472 /// Request parameters: |
| 473 /// |
| 474 /// [name] - The name of the operation resource to be cancelled. |
| 475 /// Value must have pattern "^riskAnalysis/operations/[^/]+$". |
| 476 /// |
| 477 /// Completes with a [GoogleProtobufEmpty]. |
| 478 /// |
| 479 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 480 /// an error. |
| 481 /// |
| 482 /// If the used [http.Client] completes with an error when making a REST |
| 483 /// call, this method will complete with the same error. |
| 484 async.Future<GoogleProtobufEmpty> cancel( |
| 485 GoogleLongrunningCancelOperationRequest request, core.String name) { |
| 486 var _url = null; |
| 487 var _queryParams = new core.Map(); |
| 488 var _uploadMedia = null; |
| 489 var _uploadOptions = null; |
| 490 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 491 var _body = null; |
| 492 |
| 493 if (request != null) { |
| 494 _body = convert.JSON.encode((request).toJson()); |
| 495 } |
| 496 if (name == null) { |
| 497 throw new core.ArgumentError("Parameter name is required."); |
| 498 } |
| 499 |
| 500 _url = |
| 501 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; |
| 502 |
| 503 var _response = _requester.request(_url, "POST", |
| 504 body: _body, |
| 505 queryParams: _queryParams, |
| 506 uploadOptions: _uploadOptions, |
| 507 uploadMedia: _uploadMedia, |
| 508 downloadOptions: _downloadOptions); |
| 509 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); |
| 510 } |
| 511 |
| 512 /// This method is not supported and the server returns `UNIMPLEMENTED`. |
| 513 /// |
| 514 /// Request parameters: |
| 515 /// |
| 516 /// [name] - The name of the operation resource to be deleted. |
| 517 /// Value must have pattern "^riskAnalysis/operations/[^/]+$". |
| 518 /// |
| 519 /// Completes with a [GoogleProtobufEmpty]. |
| 520 /// |
| 521 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 522 /// an error. |
| 523 /// |
| 524 /// If the used [http.Client] completes with an error when making a REST |
| 525 /// call, this method will complete with the same error. |
| 526 async.Future<GoogleProtobufEmpty> delete(core.String name) { |
| 527 var _url = null; |
| 528 var _queryParams = new core.Map(); |
| 529 var _uploadMedia = null; |
| 530 var _uploadOptions = null; |
| 531 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 532 var _body = null; |
| 533 |
| 534 if (name == null) { |
| 535 throw new core.ArgumentError("Parameter name is required."); |
| 536 } |
| 537 |
| 538 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 539 |
| 540 var _response = _requester.request(_url, "DELETE", |
| 541 body: _body, |
| 542 queryParams: _queryParams, |
| 543 uploadOptions: _uploadOptions, |
| 544 uploadMedia: _uploadMedia, |
| 545 downloadOptions: _downloadOptions); |
| 546 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); |
| 547 } |
| 548 |
| 549 /// Gets the latest state of a long-running operation. Clients can use this |
| 550 /// method to poll the operation result at intervals as recommended by the |
| 551 /// API |
| 552 /// service. |
| 553 /// |
| 554 /// Request parameters: |
| 555 /// |
| 556 /// [name] - The name of the operation resource. |
| 557 /// Value must have pattern "^riskAnalysis/operations/[^/]+$". |
| 558 /// |
| 559 /// Completes with a [GoogleLongrunningOperation]. |
| 560 /// |
| 561 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 562 /// an error. |
| 563 /// |
| 564 /// If the used [http.Client] completes with an error when making a REST |
| 565 /// call, this method will complete with the same error. |
| 566 async.Future<GoogleLongrunningOperation> get(core.String name) { |
| 567 var _url = null; |
| 568 var _queryParams = new core.Map(); |
| 569 var _uploadMedia = null; |
| 570 var _uploadOptions = null; |
| 571 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 572 var _body = null; |
| 573 |
| 574 if (name == null) { |
| 575 throw new core.ArgumentError("Parameter name is required."); |
| 576 } |
| 577 |
| 578 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 579 |
| 580 var _response = _requester.request(_url, "GET", |
| 581 body: _body, |
| 582 queryParams: _queryParams, |
| 583 uploadOptions: _uploadOptions, |
| 584 uploadMedia: _uploadMedia, |
| 585 downloadOptions: _downloadOptions); |
| 586 return _response |
| 587 .then((data) => new GoogleLongrunningOperation.fromJson(data)); |
| 588 } |
| 589 |
| 590 /// Fetch the list of long running operations. |
| 591 /// |
| 592 /// Request parameters: |
| 593 /// |
| 594 /// [name] - The name of the operation's parent resource. |
| 595 /// Value must have pattern "^riskAnalysis/operations$". |
| 596 /// |
| 597 /// [pageToken] - The standard list page token. |
| 598 /// |
| 599 /// [pageSize] - The list page size. The max allowed value is 256 and default |
| 600 /// is 100. |
| 601 /// |
| 602 /// [filter] - This parameter supports filtering by done, ie done=true or |
| 603 /// done=false. |
| 604 /// |
| 605 /// Completes with a [GoogleLongrunningListOperationsResponse]. |
| 606 /// |
| 607 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 608 /// an error. |
| 609 /// |
| 610 /// If the used [http.Client] completes with an error when making a REST |
| 611 /// call, this method will complete with the same error. |
| 612 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, |
| 613 {core.String pageToken, core.int pageSize, core.String filter}) { |
| 614 var _url = null; |
| 615 var _queryParams = new core.Map(); |
| 616 var _uploadMedia = null; |
| 617 var _uploadOptions = null; |
| 618 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 619 var _body = null; |
| 620 |
| 621 if (name == null) { |
| 622 throw new core.ArgumentError("Parameter name is required."); |
| 623 } |
| 624 if (pageToken != null) { |
| 625 _queryParams["pageToken"] = [pageToken]; |
| 626 } |
| 627 if (pageSize != null) { |
| 628 _queryParams["pageSize"] = ["${pageSize}"]; |
| 629 } |
| 630 if (filter != null) { |
| 631 _queryParams["filter"] = [filter]; |
| 632 } |
| 633 |
| 634 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 635 |
| 636 var _response = _requester.request(_url, "GET", |
| 637 body: _body, |
| 638 queryParams: _queryParams, |
| 639 uploadOptions: _uploadOptions, |
| 640 uploadMedia: _uploadMedia, |
| 641 downloadOptions: _downloadOptions); |
| 642 return _response.then( |
| 643 (data) => new GoogleLongrunningListOperationsResponse.fromJson(data)); |
| 644 } |
| 645 } |
| 458 | 646 |
| 459 class RootCategoriesResourceApi { | 647 class RootCategoriesResourceApi { |
| 460 final commons.ApiRequester _requester; | 648 final commons.ApiRequester _requester; |
| 461 | 649 |
| 462 RootCategoriesInfoTypesResourceApi get infoTypes => new RootCategoriesInfoType
sResourceApi(_requester); | 650 RootCategoriesInfoTypesResourceApi get infoTypes => |
| 463 | 651 new RootCategoriesInfoTypesResourceApi(_requester); |
| 464 RootCategoriesResourceApi(commons.ApiRequester client) : | 652 |
| 465 _requester = client; | 653 RootCategoriesResourceApi(commons.ApiRequester client) : _requester = client; |
| 466 | 654 |
| 467 /** | 655 /// Returns the list of root categories of sensitive information. |
| 468 * Returns the list of root categories of sensitive information. | 656 /// |
| 469 * | 657 /// Request parameters: |
| 470 * Request parameters: | 658 /// |
| 471 * | 659 /// [languageCode] - Optional language code for localized friendly category |
| 472 * [languageCode] - Optional language code for localized friendly category | 660 /// names. |
| 473 * names. | 661 /// If omitted or if localized strings are not available, |
| 474 * If omitted or if localized strings are not available, | 662 /// en-US strings will be returned. |
| 475 * en-US strings will be returned. | 663 /// |
| 476 * | 664 /// Completes with a [GooglePrivacyDlpV2beta1ListRootCategoriesResponse]. |
| 477 * Completes with a [GooglePrivacyDlpV2beta1ListRootCategoriesResponse]. | 665 /// |
| 478 * | 666 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 479 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 667 /// an error. |
| 480 * error. | 668 /// |
| 481 * | 669 /// If the used [http.Client] completes with an error when making a REST |
| 482 * If the used [http.Client] completes with an error when making a REST call, | 670 /// call, this method will complete with the same error. |
| 483 * this method will complete with the same error. | 671 async.Future<GooglePrivacyDlpV2beta1ListRootCategoriesResponse> list( |
| 484 */ | 672 {core.String languageCode}) { |
| 485 async.Future<GooglePrivacyDlpV2beta1ListRootCategoriesResponse> list({core.Str
ing languageCode}) { | 673 var _url = null; |
| 486 var _url = null; | 674 var _queryParams = new core.Map(); |
| 487 var _queryParams = new core.Map(); | 675 var _uploadMedia = null; |
| 488 var _uploadMedia = null; | |
| 489 var _uploadOptions = null; | 676 var _uploadOptions = null; |
| 490 var _downloadOptions = commons.DownloadOptions.Metadata; | 677 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 491 var _body = null; | 678 var _body = null; |
| 492 | 679 |
| 493 if (languageCode != null) { | 680 if (languageCode != null) { |
| 494 _queryParams["languageCode"] = [languageCode]; | 681 _queryParams["languageCode"] = [languageCode]; |
| 495 } | 682 } |
| 496 | 683 |
| 497 _url = 'v2beta1/rootCategories'; | 684 _url = 'v2beta1/rootCategories'; |
| 498 | 685 |
| 499 var _response = _requester.request(_url, | 686 var _response = _requester.request(_url, "GET", |
| 500 "GET", | 687 body: _body, |
| 501 body: _body, | 688 queryParams: _queryParams, |
| 502 queryParams: _queryParams, | 689 uploadOptions: _uploadOptions, |
| 503 uploadOptions: _uploadOptions, | 690 uploadMedia: _uploadMedia, |
| 504 uploadMedia: _uploadMedia, | 691 downloadOptions: _downloadOptions); |
| 505 downloadOptions: _downloadOptions); | 692 return _response.then((data) => |
| 506 return _response.then((data) => new GooglePrivacyDlpV2beta1ListRootCategorie
sResponse.fromJson(data)); | 693 new GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJson(data)); |
| 507 } | 694 } |
| 508 | |
| 509 } | 695 } |
| 510 | 696 |
| 511 | |
| 512 class RootCategoriesInfoTypesResourceApi { | 697 class RootCategoriesInfoTypesResourceApi { |
| 513 final commons.ApiRequester _requester; | 698 final commons.ApiRequester _requester; |
| 514 | 699 |
| 515 RootCategoriesInfoTypesResourceApi(commons.ApiRequester client) : | 700 RootCategoriesInfoTypesResourceApi(commons.ApiRequester client) |
| 516 _requester = client; | 701 : _requester = client; |
| 517 | 702 |
| 518 /** | 703 /// Returns sensitive information types for given category. |
| 519 * Returns sensitive information types for given category. | 704 /// |
| 520 * | 705 /// Request parameters: |
| 521 * Request parameters: | 706 /// |
| 522 * | 707 /// [category] - Category name as returned by ListRootCategories. |
| 523 * [category] - Category name as returned by ListRootCategories. | 708 /// Value must have pattern "^[^/]+$". |
| 524 * Value must have pattern "^[^/]+$". | 709 /// |
| 525 * | 710 /// [languageCode] - Optional BCP-47 language code for localized info type |
| 526 * [languageCode] - Optional BCP-47 language code for localized info type | 711 /// friendly |
| 527 * friendly | 712 /// names. If omitted, or if localized strings are not available, |
| 528 * names. If omitted, or if localized strings are not available, | 713 /// en-US strings will be returned. |
| 529 * en-US strings will be returned. | 714 /// |
| 530 * | 715 /// Completes with a [GooglePrivacyDlpV2beta1ListInfoTypesResponse]. |
| 531 * Completes with a [GooglePrivacyDlpV2beta1ListInfoTypesResponse]. | 716 /// |
| 532 * | 717 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 533 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 718 /// an error. |
| 534 * error. | 719 /// |
| 535 * | 720 /// If the used [http.Client] completes with an error when making a REST |
| 536 * If the used [http.Client] completes with an error when making a REST call, | 721 /// call, this method will complete with the same error. |
| 537 * this method will complete with the same error. | 722 async.Future<GooglePrivacyDlpV2beta1ListInfoTypesResponse> list( |
| 538 */ | 723 core.String category, |
| 539 async.Future<GooglePrivacyDlpV2beta1ListInfoTypesResponse> list(core.String ca
tegory, {core.String languageCode}) { | 724 {core.String languageCode}) { |
| 540 var _url = null; | 725 var _url = null; |
| 541 var _queryParams = new core.Map(); | 726 var _queryParams = new core.Map(); |
| 542 var _uploadMedia = null; | 727 var _uploadMedia = null; |
| 543 var _uploadOptions = null; | 728 var _uploadOptions = null; |
| 544 var _downloadOptions = commons.DownloadOptions.Metadata; | 729 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 545 var _body = null; | 730 var _body = null; |
| 546 | 731 |
| 547 if (category == null) { | 732 if (category == null) { |
| 548 throw new core.ArgumentError("Parameter category is required."); | 733 throw new core.ArgumentError("Parameter category is required."); |
| 549 } | 734 } |
| 550 if (languageCode != null) { | 735 if (languageCode != null) { |
| 551 _queryParams["languageCode"] = [languageCode]; | 736 _queryParams["languageCode"] = [languageCode]; |
| 552 } | 737 } |
| 553 | 738 |
| 554 _url = 'v2beta1/rootCategories/' + commons.Escaper.ecapeVariableReserved('$c
ategory') + '/infoTypes'; | 739 _url = 'v2beta1/rootCategories/' + |
| 740 commons.Escaper.ecapeVariableReserved('$category') + |
| 741 '/infoTypes'; |
| 555 | 742 |
| 556 var _response = _requester.request(_url, | 743 var _response = _requester.request(_url, "GET", |
| 557 "GET", | 744 body: _body, |
| 558 body: _body, | 745 queryParams: _queryParams, |
| 559 queryParams: _queryParams, | 746 uploadOptions: _uploadOptions, |
| 560 uploadOptions: _uploadOptions, | 747 uploadMedia: _uploadMedia, |
| 561 uploadMedia: _uploadMedia, | 748 downloadOptions: _downloadOptions); |
| 562 downloadOptions: _downloadOptions); | 749 return _response.then((data) => |
| 563 return _response.then((data) => new GooglePrivacyDlpV2beta1ListInfoTypesResp
onse.fromJson(data)); | 750 new GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson(data)); |
| 564 } | 751 } |
| 565 | |
| 566 } | 752 } |
| 567 | 753 |
| 568 | 754 /// The request message for Operations.CancelOperation. |
| 569 | |
| 570 /** The request message for Operations.CancelOperation. */ | |
| 571 class GoogleLongrunningCancelOperationRequest { | 755 class GoogleLongrunningCancelOperationRequest { |
| 572 | |
| 573 GoogleLongrunningCancelOperationRequest(); | 756 GoogleLongrunningCancelOperationRequest(); |
| 574 | 757 |
| 575 GoogleLongrunningCancelOperationRequest.fromJson(core.Map _json) { | 758 GoogleLongrunningCancelOperationRequest.fromJson(core.Map _json) {} |
| 576 } | |
| 577 | 759 |
| 578 core.Map<core.String, core.Object> toJson() { | 760 core.Map<core.String, core.Object> toJson() { |
| 579 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 761 final core.Map<core.String, core.Object> _json = |
| 762 new core.Map<core.String, core.Object>(); |
| 580 return _json; | 763 return _json; |
| 581 } | 764 } |
| 582 } | 765 } |
| 583 | 766 |
| 584 /** The response message for Operations.ListOperations. */ | 767 /// The response message for Operations.ListOperations. |
| 585 class GoogleLongrunningListOperationsResponse { | 768 class GoogleLongrunningListOperationsResponse { |
| 586 /** The standard List next-page token. */ | 769 /// The standard List next-page token. |
| 587 core.String nextPageToken; | 770 core.String nextPageToken; |
| 588 /** A list of operations that matches the specified filter in the request. */ | 771 |
| 772 /// A list of operations that matches the specified filter in the request. |
| 589 core.List<GoogleLongrunningOperation> operations; | 773 core.List<GoogleLongrunningOperation> operations; |
| 590 | 774 |
| 591 GoogleLongrunningListOperationsResponse(); | 775 GoogleLongrunningListOperationsResponse(); |
| 592 | 776 |
| 593 GoogleLongrunningListOperationsResponse.fromJson(core.Map _json) { | 777 GoogleLongrunningListOperationsResponse.fromJson(core.Map _json) { |
| 594 if (_json.containsKey("nextPageToken")) { | 778 if (_json.containsKey("nextPageToken")) { |
| 595 nextPageToken = _json["nextPageToken"]; | 779 nextPageToken = _json["nextPageToken"]; |
| 596 } | 780 } |
| 597 if (_json.containsKey("operations")) { | 781 if (_json.containsKey("operations")) { |
| 598 operations = _json["operations"].map((value) => new GoogleLongrunningOpera
tion.fromJson(value)).toList(); | 782 operations = _json["operations"] |
| 783 .map((value) => new GoogleLongrunningOperation.fromJson(value)) |
| 784 .toList(); |
| 599 } | 785 } |
| 600 } | 786 } |
| 601 | 787 |
| 602 core.Map<core.String, core.Object> toJson() { | 788 core.Map<core.String, core.Object> toJson() { |
| 603 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 789 final core.Map<core.String, core.Object> _json = |
| 790 new core.Map<core.String, core.Object>(); |
| 604 if (nextPageToken != null) { | 791 if (nextPageToken != null) { |
| 605 _json["nextPageToken"] = nextPageToken; | 792 _json["nextPageToken"] = nextPageToken; |
| 606 } | 793 } |
| 607 if (operations != null) { | 794 if (operations != null) { |
| 608 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 795 _json["operations"] = |
| 796 operations.map((value) => (value).toJson()).toList(); |
| 609 } | 797 } |
| 610 return _json; | 798 return _json; |
| 611 } | 799 } |
| 612 } | 800 } |
| 613 | 801 |
| 614 /** | 802 /// This resource represents a long-running operation that is the result of a |
| 615 * This resource represents a long-running operation that is the result of a | 803 /// network API call. |
| 616 * network API call. | |
| 617 */ | |
| 618 class GoogleLongrunningOperation { | 804 class GoogleLongrunningOperation { |
| 619 /** | 805 /// If the value is `false`, it means the operation is still in progress. |
| 620 * If the value is `false`, it means the operation is still in progress. | 806 /// If `true`, the operation is completed, and either `error` or `response` |
| 621 * If true, the operation is completed, and either `error` or `response` is | 807 /// is |
| 622 * available. | 808 /// available. |
| 623 */ | |
| 624 core.bool done; | 809 core.bool done; |
| 625 /** The error result of the operation in case of failure or cancellation. */ | 810 |
| 811 /// The error result of the operation in case of failure or cancellation. |
| 626 GoogleRpcStatus error; | 812 GoogleRpcStatus error; |
| 627 /** | 813 |
| 628 * This field will contain an InspectOperationMetadata object. This will | 814 /// This field will contain an InspectOperationMetadata object. This will |
| 629 * always be returned with the Operation. | 815 /// always be returned with the Operation. |
| 630 * | 816 /// |
| 631 * The values for Object must be JSON objects. It can consist of `num`, | 817 /// The values for Object must be JSON objects. It can consist of `num`, |
| 632 * `String`, `bool` and `null` as well as `Map` and `List` values. | 818 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 633 */ | |
| 634 core.Map<core.String, core.Object> metadata; | 819 core.Map<core.String, core.Object> metadata; |
| 635 /** | 820 |
| 636 * The server-assigned name, The `name` should have the format of | 821 /// The server-assigned name, The `name` should have the format of |
| 637 * `inspect/operations/<identifier>`. | 822 /// `inspect/operations/<identifier>`. |
| 638 */ | |
| 639 core.String name; | 823 core.String name; |
| 640 /** | 824 |
| 641 * This field will contain an InspectOperationResult object. | 825 /// This field will contain an InspectOperationResult object. |
| 642 * | 826 /// |
| 643 * The values for Object must be JSON objects. It can consist of `num`, | 827 /// The values for Object must be JSON objects. It can consist of `num`, |
| 644 * `String`, `bool` and `null` as well as `Map` and `List` values. | 828 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 645 */ | |
| 646 core.Map<core.String, core.Object> response; | 829 core.Map<core.String, core.Object> response; |
| 647 | 830 |
| 648 GoogleLongrunningOperation(); | 831 GoogleLongrunningOperation(); |
| 649 | 832 |
| 650 GoogleLongrunningOperation.fromJson(core.Map _json) { | 833 GoogleLongrunningOperation.fromJson(core.Map _json) { |
| 651 if (_json.containsKey("done")) { | 834 if (_json.containsKey("done")) { |
| 652 done = _json["done"]; | 835 done = _json["done"]; |
| 653 } | 836 } |
| 654 if (_json.containsKey("error")) { | 837 if (_json.containsKey("error")) { |
| 655 error = new GoogleRpcStatus.fromJson(_json["error"]); | 838 error = new GoogleRpcStatus.fromJson(_json["error"]); |
| 656 } | 839 } |
| 657 if (_json.containsKey("metadata")) { | 840 if (_json.containsKey("metadata")) { |
| 658 metadata = _json["metadata"]; | 841 metadata = _json["metadata"]; |
| 659 } | 842 } |
| 660 if (_json.containsKey("name")) { | 843 if (_json.containsKey("name")) { |
| 661 name = _json["name"]; | 844 name = _json["name"]; |
| 662 } | 845 } |
| 663 if (_json.containsKey("response")) { | 846 if (_json.containsKey("response")) { |
| 664 response = _json["response"]; | 847 response = _json["response"]; |
| 665 } | 848 } |
| 666 } | 849 } |
| 667 | 850 |
| 668 core.Map<core.String, core.Object> toJson() { | 851 core.Map<core.String, core.Object> toJson() { |
| 669 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 852 final core.Map<core.String, core.Object> _json = |
| 853 new core.Map<core.String, core.Object>(); |
| 670 if (done != null) { | 854 if (done != null) { |
| 671 _json["done"] = done; | 855 _json["done"] = done; |
| 672 } | 856 } |
| 673 if (error != null) { | 857 if (error != null) { |
| 674 _json["error"] = (error).toJson(); | 858 _json["error"] = (error).toJson(); |
| 675 } | 859 } |
| 676 if (metadata != null) { | 860 if (metadata != null) { |
| 677 _json["metadata"] = metadata; | 861 _json["metadata"] = metadata; |
| 678 } | 862 } |
| 679 if (name != null) { | 863 if (name != null) { |
| 680 _json["name"] = name; | 864 _json["name"] = name; |
| 681 } | 865 } |
| 682 if (response != null) { | 866 if (response != null) { |
| 683 _json["response"] = response; | 867 _json["response"] = response; |
| 684 } | 868 } |
| 685 return _json; | 869 return _json; |
| 686 } | 870 } |
| 687 } | 871 } |
| 688 | 872 |
| 689 /** Options defining BigQuery table and row identifiers. */ | 873 /// Options defining BigQuery table and row identifiers. |
| 690 class GooglePrivacyDlpV2beta1BigQueryOptions { | 874 class GooglePrivacyDlpV2beta1BigQueryOptions { |
| 691 /** | 875 /// References to fields uniquely identifying rows within the table. |
| 692 * References to fields uniquely identifying rows within the table. | 876 /// Nested fields in the format, like `person.birthdate.year`, are allowed. |
| 693 * Nested fields in the format, like `person.birthdate.year`, are allowed. | |
| 694 */ | |
| 695 core.List<GooglePrivacyDlpV2beta1FieldId> identifyingFields; | 877 core.List<GooglePrivacyDlpV2beta1FieldId> identifyingFields; |
| 696 /** Complete BigQuery table reference. */ | 878 |
| 879 /// Complete BigQuery table reference. |
| 697 GooglePrivacyDlpV2beta1BigQueryTable tableReference; | 880 GooglePrivacyDlpV2beta1BigQueryTable tableReference; |
| 698 | 881 |
| 699 GooglePrivacyDlpV2beta1BigQueryOptions(); | 882 GooglePrivacyDlpV2beta1BigQueryOptions(); |
| 700 | 883 |
| 701 GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(core.Map _json) { | 884 GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(core.Map _json) { |
| 702 if (_json.containsKey("identifyingFields")) { | 885 if (_json.containsKey("identifyingFields")) { |
| 703 identifyingFields = _json["identifyingFields"].map((value) => new GooglePr
ivacyDlpV2beta1FieldId.fromJson(value)).toList(); | 886 identifyingFields = _json["identifyingFields"] |
| 887 .map((value) => new GooglePrivacyDlpV2beta1FieldId.fromJson(value)) |
| 888 .toList(); |
| 704 } | 889 } |
| 705 if (_json.containsKey("tableReference")) { | 890 if (_json.containsKey("tableReference")) { |
| 706 tableReference = new GooglePrivacyDlpV2beta1BigQueryTable.fromJson(_json["
tableReference"]); | 891 tableReference = new GooglePrivacyDlpV2beta1BigQueryTable.fromJson( |
| 892 _json["tableReference"]); |
| 707 } | 893 } |
| 708 } | 894 } |
| 709 | 895 |
| 710 core.Map<core.String, core.Object> toJson() { | 896 core.Map<core.String, core.Object> toJson() { |
| 711 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 897 final core.Map<core.String, core.Object> _json = |
| 898 new core.Map<core.String, core.Object>(); |
| 712 if (identifyingFields != null) { | 899 if (identifyingFields != null) { |
| 713 _json["identifyingFields"] = identifyingFields.map((value) => (value).toJs
on()).toList(); | 900 _json["identifyingFields"] = |
| 901 identifyingFields.map((value) => (value).toJson()).toList(); |
| 714 } | 902 } |
| 715 if (tableReference != null) { | 903 if (tableReference != null) { |
| 716 _json["tableReference"] = (tableReference).toJson(); | 904 _json["tableReference"] = (tableReference).toJson(); |
| 717 } | 905 } |
| 718 return _json; | 906 return _json; |
| 719 } | 907 } |
| 720 } | 908 } |
| 721 | 909 |
| 722 /** | 910 /// Message defining the location of a BigQuery table. A table is uniquely |
| 723 * Message defining the location of a BigQuery table. A table is uniquely | 911 /// identified by its project_id, dataset_id, and table_name. Within a query |
| 724 * identified by its project_id, dataset_id, and table_name. Within a query | 912 /// a table is often referenced with a string in the format of: |
| 725 * a table is often referenced with a string in the format of: | 913 /// `<project_id>:<dataset_id>.<table_id>` or |
| 726 * `<project_id>:<dataset_id>.<table_id>` or | 914 /// `<project_id>.<dataset_id>.<table_id>`. |
| 727 * `<project_id>.<dataset_id>.<table_id>`. | |
| 728 */ | |
| 729 class GooglePrivacyDlpV2beta1BigQueryTable { | 915 class GooglePrivacyDlpV2beta1BigQueryTable { |
| 730 /** Dataset ID of the table. */ | 916 /// Dataset ID of the table. |
| 731 core.String datasetId; | 917 core.String datasetId; |
| 732 /** | 918 |
| 733 * The Google Cloud Platform project ID of the project containing the table. | 919 /// The Google Cloud Platform project ID of the project containing the table. |
| 734 * If omitted, project ID is inferred from the API call. | 920 /// If omitted, project ID is inferred from the API call. |
| 735 */ | |
| 736 core.String projectId; | 921 core.String projectId; |
| 737 /** Name of the table. */ | 922 |
| 923 /// Name of the table. |
| 738 core.String tableId; | 924 core.String tableId; |
| 739 | 925 |
| 740 GooglePrivacyDlpV2beta1BigQueryTable(); | 926 GooglePrivacyDlpV2beta1BigQueryTable(); |
| 741 | 927 |
| 742 GooglePrivacyDlpV2beta1BigQueryTable.fromJson(core.Map _json) { | 928 GooglePrivacyDlpV2beta1BigQueryTable.fromJson(core.Map _json) { |
| 743 if (_json.containsKey("datasetId")) { | 929 if (_json.containsKey("datasetId")) { |
| 744 datasetId = _json["datasetId"]; | 930 datasetId = _json["datasetId"]; |
| 745 } | 931 } |
| 746 if (_json.containsKey("projectId")) { | 932 if (_json.containsKey("projectId")) { |
| 747 projectId = _json["projectId"]; | 933 projectId = _json["projectId"]; |
| 748 } | 934 } |
| 749 if (_json.containsKey("tableId")) { | 935 if (_json.containsKey("tableId")) { |
| 750 tableId = _json["tableId"]; | 936 tableId = _json["tableId"]; |
| 751 } | 937 } |
| 752 } | 938 } |
| 753 | 939 |
| 754 core.Map<core.String, core.Object> toJson() { | 940 core.Map<core.String, core.Object> toJson() { |
| 755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 941 final core.Map<core.String, core.Object> _json = |
| 942 new core.Map<core.String, core.Object>(); |
| 756 if (datasetId != null) { | 943 if (datasetId != null) { |
| 757 _json["datasetId"] = datasetId; | 944 _json["datasetId"] = datasetId; |
| 758 } | 945 } |
| 759 if (projectId != null) { | 946 if (projectId != null) { |
| 760 _json["projectId"] = projectId; | 947 _json["projectId"] = projectId; |
| 761 } | 948 } |
| 762 if (tableId != null) { | 949 if (tableId != null) { |
| 763 _json["tableId"] = tableId; | 950 _json["tableId"] = tableId; |
| 764 } | 951 } |
| 765 return _json; | 952 return _json; |
| 766 } | 953 } |
| 767 } | 954 } |
| 768 | 955 |
| 769 /** Info Type Category description. */ | 956 /// Info Type Category description. |
| 770 class GooglePrivacyDlpV2beta1CategoryDescription { | 957 class GooglePrivacyDlpV2beta1CategoryDescription { |
| 771 /** Human readable form of the category name. */ | 958 /// Human readable form of the category name. |
| 772 core.String displayName; | 959 core.String displayName; |
| 773 /** Internal name of the category. */ | 960 |
| 961 /// Internal name of the category. |
| 774 core.String name; | 962 core.String name; |
| 775 | 963 |
| 776 GooglePrivacyDlpV2beta1CategoryDescription(); | 964 GooglePrivacyDlpV2beta1CategoryDescription(); |
| 777 | 965 |
| 778 GooglePrivacyDlpV2beta1CategoryDescription.fromJson(core.Map _json) { | 966 GooglePrivacyDlpV2beta1CategoryDescription.fromJson(core.Map _json) { |
| 779 if (_json.containsKey("displayName")) { | 967 if (_json.containsKey("displayName")) { |
| 780 displayName = _json["displayName"]; | 968 displayName = _json["displayName"]; |
| 781 } | 969 } |
| 782 if (_json.containsKey("name")) { | 970 if (_json.containsKey("name")) { |
| 783 name = _json["name"]; | 971 name = _json["name"]; |
| 784 } | 972 } |
| 785 } | 973 } |
| 786 | 974 |
| 787 core.Map<core.String, core.Object> toJson() { | 975 core.Map<core.String, core.Object> toJson() { |
| 788 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 976 final core.Map<core.String, core.Object> _json = |
| 977 new core.Map<core.String, core.Object>(); |
| 789 if (displayName != null) { | 978 if (displayName != null) { |
| 790 _json["displayName"] = displayName; | 979 _json["displayName"] = displayName; |
| 791 } | 980 } |
| 792 if (name != null) { | 981 if (name != null) { |
| 793 _json["name"] = name; | 982 _json["name"] = name; |
| 794 } | 983 } |
| 795 return _json; | 984 return _json; |
| 796 } | 985 } |
| 797 } | 986 } |
| 798 | 987 |
| 799 /** Record key for a finding in a Cloud Storage file. */ | 988 /// Record key for a finding in a Cloud Storage file. |
| 800 class GooglePrivacyDlpV2beta1CloudStorageKey { | 989 class GooglePrivacyDlpV2beta1CloudStorageKey { |
| 801 /** Path to the file. */ | 990 /// Path to the file. |
| 802 core.String filePath; | 991 core.String filePath; |
| 803 /** Byte offset of the referenced data in the file. */ | 992 |
| 993 /// Byte offset of the referenced data in the file. |
| 804 core.String startOffset; | 994 core.String startOffset; |
| 805 | 995 |
| 806 GooglePrivacyDlpV2beta1CloudStorageKey(); | 996 GooglePrivacyDlpV2beta1CloudStorageKey(); |
| 807 | 997 |
| 808 GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(core.Map _json) { | 998 GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(core.Map _json) { |
| 809 if (_json.containsKey("filePath")) { | 999 if (_json.containsKey("filePath")) { |
| 810 filePath = _json["filePath"]; | 1000 filePath = _json["filePath"]; |
| 811 } | 1001 } |
| 812 if (_json.containsKey("startOffset")) { | 1002 if (_json.containsKey("startOffset")) { |
| 813 startOffset = _json["startOffset"]; | 1003 startOffset = _json["startOffset"]; |
| 814 } | 1004 } |
| 815 } | 1005 } |
| 816 | 1006 |
| 817 core.Map<core.String, core.Object> toJson() { | 1007 core.Map<core.String, core.Object> toJson() { |
| 818 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1008 final core.Map<core.String, core.Object> _json = |
| 1009 new core.Map<core.String, core.Object>(); |
| 819 if (filePath != null) { | 1010 if (filePath != null) { |
| 820 _json["filePath"] = filePath; | 1011 _json["filePath"] = filePath; |
| 821 } | 1012 } |
| 822 if (startOffset != null) { | 1013 if (startOffset != null) { |
| 823 _json["startOffset"] = startOffset; | 1014 _json["startOffset"] = startOffset; |
| 824 } | 1015 } |
| 825 return _json; | 1016 return _json; |
| 826 } | 1017 } |
| 827 } | 1018 } |
| 828 | 1019 |
| 829 /** | 1020 /// Options defining a file or a set of files (path ending with *) within |
| 830 * Options defining a file or a set of files (path ending with *) within | 1021 /// a Google Cloud Storage bucket. |
| 831 * a Google Cloud Storage bucket. | |
| 832 */ | |
| 833 class GooglePrivacyDlpV2beta1CloudStorageOptions { | 1022 class GooglePrivacyDlpV2beta1CloudStorageOptions { |
| 834 GooglePrivacyDlpV2beta1FileSet fileSet; | 1023 GooglePrivacyDlpV2beta1FileSet fileSet; |
| 835 | 1024 |
| 836 GooglePrivacyDlpV2beta1CloudStorageOptions(); | 1025 GooglePrivacyDlpV2beta1CloudStorageOptions(); |
| 837 | 1026 |
| 838 GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson(core.Map _json) { | 1027 GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson(core.Map _json) { |
| 839 if (_json.containsKey("fileSet")) { | 1028 if (_json.containsKey("fileSet")) { |
| 840 fileSet = new GooglePrivacyDlpV2beta1FileSet.fromJson(_json["fileSet"]); | 1029 fileSet = new GooglePrivacyDlpV2beta1FileSet.fromJson(_json["fileSet"]); |
| 841 } | 1030 } |
| 842 } | 1031 } |
| 843 | 1032 |
| 844 core.Map<core.String, core.Object> toJson() { | 1033 core.Map<core.String, core.Object> toJson() { |
| 845 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1034 final core.Map<core.String, core.Object> _json = |
| 1035 new core.Map<core.String, core.Object>(); |
| 846 if (fileSet != null) { | 1036 if (fileSet != null) { |
| 847 _json["fileSet"] = (fileSet).toJson(); | 1037 _json["fileSet"] = (fileSet).toJson(); |
| 848 } | 1038 } |
| 849 return _json; | 1039 return _json; |
| 850 } | 1040 } |
| 851 } | 1041 } |
| 852 | 1042 |
| 853 /** A location in Cloud Storage. */ | 1043 /// A location in Cloud Storage. |
| 854 class GooglePrivacyDlpV2beta1CloudStoragePath { | 1044 class GooglePrivacyDlpV2beta1CloudStoragePath { |
| 855 /** The url, in the format of `gs://bucket/<path>`. */ | 1045 /// The url, in the format of `gs://bucket/<path>`. |
| 856 core.String path; | 1046 core.String path; |
| 857 | 1047 |
| 858 GooglePrivacyDlpV2beta1CloudStoragePath(); | 1048 GooglePrivacyDlpV2beta1CloudStoragePath(); |
| 859 | 1049 |
| 860 GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(core.Map _json) { | 1050 GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(core.Map _json) { |
| 861 if (_json.containsKey("path")) { | 1051 if (_json.containsKey("path")) { |
| 862 path = _json["path"]; | 1052 path = _json["path"]; |
| 863 } | 1053 } |
| 864 } | 1054 } |
| 865 | 1055 |
| 866 core.Map<core.String, core.Object> toJson() { | 1056 core.Map<core.String, core.Object> toJson() { |
| 867 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1057 final core.Map<core.String, core.Object> _json = |
| 1058 new core.Map<core.String, core.Object>(); |
| 868 if (path != null) { | 1059 if (path != null) { |
| 869 _json["path"] = path; | 1060 _json["path"] = path; |
| 870 } | 1061 } |
| 871 return _json; | 1062 return _json; |
| 872 } | 1063 } |
| 873 } | 1064 } |
| 874 | 1065 |
| 875 /** Represents a color in the RGB color space. */ | 1066 /// Represents a color in the RGB color space. |
| 876 class GooglePrivacyDlpV2beta1Color { | 1067 class GooglePrivacyDlpV2beta1Color { |
| 877 /** The amount of blue in the color as a value in the interval [0, 1]. */ | 1068 /// The amount of blue in the color as a value in the interval [0, 1]. |
| 878 core.double blue; | 1069 core.double blue; |
| 879 /** The amount of green in the color as a value in the interval [0, 1]. */ | 1070 |
| 1071 /// The amount of green in the color as a value in the interval [0, 1]. |
| 880 core.double green; | 1072 core.double green; |
| 881 /** The amount of red in the color as a value in the interval [0, 1]. */ | 1073 |
| 1074 /// The amount of red in the color as a value in the interval [0, 1]. |
| 882 core.double red; | 1075 core.double red; |
| 883 | 1076 |
| 884 GooglePrivacyDlpV2beta1Color(); | 1077 GooglePrivacyDlpV2beta1Color(); |
| 885 | 1078 |
| 886 GooglePrivacyDlpV2beta1Color.fromJson(core.Map _json) { | 1079 GooglePrivacyDlpV2beta1Color.fromJson(core.Map _json) { |
| 887 if (_json.containsKey("blue")) { | 1080 if (_json.containsKey("blue")) { |
| 888 blue = _json["blue"]; | 1081 blue = _json["blue"]; |
| 889 } | 1082 } |
| 890 if (_json.containsKey("green")) { | 1083 if (_json.containsKey("green")) { |
| 891 green = _json["green"]; | 1084 green = _json["green"]; |
| 892 } | 1085 } |
| 893 if (_json.containsKey("red")) { | 1086 if (_json.containsKey("red")) { |
| 894 red = _json["red"]; | 1087 red = _json["red"]; |
| 895 } | 1088 } |
| 896 } | 1089 } |
| 897 | 1090 |
| 898 core.Map<core.String, core.Object> toJson() { | 1091 core.Map<core.String, core.Object> toJson() { |
| 899 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1092 final core.Map<core.String, core.Object> _json = |
| 1093 new core.Map<core.String, core.Object>(); |
| 900 if (blue != null) { | 1094 if (blue != null) { |
| 901 _json["blue"] = blue; | 1095 _json["blue"] = blue; |
| 902 } | 1096 } |
| 903 if (green != null) { | 1097 if (green != null) { |
| 904 _json["green"] = green; | 1098 _json["green"] = green; |
| 905 } | 1099 } |
| 906 if (red != null) { | 1100 if (red != null) { |
| 907 _json["red"] = red; | 1101 _json["red"] = red; |
| 908 } | 1102 } |
| 909 return _json; | 1103 return _json; |
| 910 } | 1104 } |
| 911 } | 1105 } |
| 912 | 1106 |
| 913 /** Container structure for the content to inspect. */ | 1107 /// Container structure for the content to inspect. |
| 914 class GooglePrivacyDlpV2beta1ContentItem { | 1108 class GooglePrivacyDlpV2beta1ContentItem { |
| 915 /** Content data to inspect or redact. */ | 1109 /// Content data to inspect or redact. |
| 916 core.String data; | 1110 core.String data; |
| 917 core.List<core.int> get dataAsBytes { | 1111 core.List<core.int> get dataAsBytes { |
| 918 return convert.BASE64.decode(data); | 1112 return convert.BASE64.decode(data); |
| 919 } | 1113 } |
| 920 | 1114 |
| 921 void set dataAsBytes(core.List<core.int> _bytes) { | 1115 void set dataAsBytes(core.List<core.int> _bytes) { |
| 922 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 1116 data = |
| 1117 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
| 923 } | 1118 } |
| 924 /** Structured content for inspection. */ | 1119 |
| 1120 /// Structured content for inspection. |
| 925 GooglePrivacyDlpV2beta1Table table; | 1121 GooglePrivacyDlpV2beta1Table table; |
| 926 /** | 1122 |
| 927 * Type of the content, as defined in Content-Type HTTP header. | 1123 /// Type of the content, as defined in Content-Type HTTP header. |
| 928 * Supported types are: all "text" types, octet streams, PNG images, | 1124 /// Supported types are: all "text" types, octet streams, PNG images, |
| 929 * JPEG images. | 1125 /// JPEG images. |
| 930 */ | |
| 931 core.String type; | 1126 core.String type; |
| 932 /** String data to inspect or redact. */ | 1127 |
| 1128 /// String data to inspect or redact. |
| 933 core.String value; | 1129 core.String value; |
| 934 | 1130 |
| 935 GooglePrivacyDlpV2beta1ContentItem(); | 1131 GooglePrivacyDlpV2beta1ContentItem(); |
| 936 | 1132 |
| 937 GooglePrivacyDlpV2beta1ContentItem.fromJson(core.Map _json) { | 1133 GooglePrivacyDlpV2beta1ContentItem.fromJson(core.Map _json) { |
| 938 if (_json.containsKey("data")) { | 1134 if (_json.containsKey("data")) { |
| 939 data = _json["data"]; | 1135 data = _json["data"]; |
| 940 } | 1136 } |
| 941 if (_json.containsKey("table")) { | 1137 if (_json.containsKey("table")) { |
| 942 table = new GooglePrivacyDlpV2beta1Table.fromJson(_json["table"]); | 1138 table = new GooglePrivacyDlpV2beta1Table.fromJson(_json["table"]); |
| 943 } | 1139 } |
| 944 if (_json.containsKey("type")) { | 1140 if (_json.containsKey("type")) { |
| 945 type = _json["type"]; | 1141 type = _json["type"]; |
| 946 } | 1142 } |
| 947 if (_json.containsKey("value")) { | 1143 if (_json.containsKey("value")) { |
| 948 value = _json["value"]; | 1144 value = _json["value"]; |
| 949 } | 1145 } |
| 950 } | 1146 } |
| 951 | 1147 |
| 952 core.Map<core.String, core.Object> toJson() { | 1148 core.Map<core.String, core.Object> toJson() { |
| 953 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1149 final core.Map<core.String, core.Object> _json = |
| 1150 new core.Map<core.String, core.Object>(); |
| 954 if (data != null) { | 1151 if (data != null) { |
| 955 _json["data"] = data; | 1152 _json["data"] = data; |
| 956 } | 1153 } |
| 957 if (table != null) { | 1154 if (table != null) { |
| 958 _json["table"] = (table).toJson(); | 1155 _json["table"] = (table).toJson(); |
| 959 } | 1156 } |
| 960 if (type != null) { | 1157 if (type != null) { |
| 961 _json["type"] = type; | 1158 _json["type"] = type; |
| 962 } | 1159 } |
| 963 if (value != null) { | 1160 if (value != null) { |
| 964 _json["value"] = value; | 1161 _json["value"] = value; |
| 965 } | 1162 } |
| 966 return _json; | 1163 return _json; |
| 967 } | 1164 } |
| 968 } | 1165 } |
| 969 | 1166 |
| 970 /** | 1167 /// Request for scheduling a scan of a data subset from a Google Platform data |
| 971 * Request for scheduling a scan of a data subset from a Google Platform data | 1168 /// repository. |
| 972 * repository. | |
| 973 */ | |
| 974 class GooglePrivacyDlpV2beta1CreateInspectOperationRequest { | 1169 class GooglePrivacyDlpV2beta1CreateInspectOperationRequest { |
| 975 /** Configuration for the inspector. */ | 1170 /// Configuration for the inspector. |
| 976 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; | 1171 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; |
| 977 /** Additional configuration settings for long running operations. */ | 1172 |
| 1173 /// Additional configuration settings for long running operations. |
| 978 GooglePrivacyDlpV2beta1OperationConfig operationConfig; | 1174 GooglePrivacyDlpV2beta1OperationConfig operationConfig; |
| 979 /** | 1175 |
| 980 * Optional location to store findings. The bucket must already exist and | 1176 /// Optional location to store findings. The bucket must already exist and |
| 981 * the Google APIs service account for DLP must have write permission to | 1177 /// the Google APIs service account for DLP must have write permission to |
| 982 * write to the given bucket. | 1178 /// write to the given bucket. |
| 983 * <p>Results are split over multiple csv files with each file name matching | 1179 /// Results are split over multiple csv files with each file name matching |
| 984 * the pattern "[operation_id]_[count].csv", for example | 1180 /// the pattern "[operation_id]_[count].csv", for example |
| 985 * `3094877188788974909_1.csv`. The `operation_id` matches the | 1181 /// `3094877188788974909_1.csv`. The `operation_id` matches the |
| 986 * identifier for the Operation, and the `count` is a counter used for | 1182 /// identifier for the Operation, and the `count` is a counter used for |
| 987 * tracking the number of files written. <p>The CSV file(s) contain the | 1183 /// tracking the number of files written. |
| 988 * following columns regardless of storage type scanned: <li>id <li>info_type | 1184 /// The CSV file(s) contain the |
| 989 * <li>likelihood <li>byte size of finding <li>quote <li>timestamp<br/> | 1185 /// following columns regardless of storage type scanned: |
| 990 * <p>For Cloud Storage the next columns are: <li>file_path | 1186 /// - id |
| 991 * <li>start_offset<br/> | 1187 /// - info_type |
| 992 * <p>For Cloud Datastore the next columns are: <li>project_id | 1188 /// - likelihood |
| 993 * <li>namespace_id <li>path <li>column_name <li>offset<br/> | 1189 /// - byte size of finding |
| 994 * <p>For BigQuery the next columns are: <li>row_number <li>project_id | 1190 /// - quote |
| 995 * <li>dataset_id <li>table_id | 1191 /// - timestamp |
| 996 */ | 1192 /// |
| 1193 /// For Cloud Storage the next columns are: |
| 1194 /// - file_path |
| 1195 /// - start_offset |
| 1196 /// |
| 1197 /// For Cloud Datastore the next columns are: |
| 1198 /// - project_id |
| 1199 /// - namespace_id |
| 1200 /// - path |
| 1201 /// - column_name |
| 1202 /// - offset |
| 1203 /// |
| 1204 /// For BigQuery the next columns are: |
| 1205 /// - row_number |
| 1206 /// - project_id |
| 1207 /// - dataset_id |
| 1208 /// - table_id |
| 997 GooglePrivacyDlpV2beta1OutputStorageConfig outputConfig; | 1209 GooglePrivacyDlpV2beta1OutputStorageConfig outputConfig; |
| 998 /** Specification of the data set to process. */ | 1210 |
| 1211 /// Specification of the data set to process. |
| 999 GooglePrivacyDlpV2beta1StorageConfig storageConfig; | 1212 GooglePrivacyDlpV2beta1StorageConfig storageConfig; |
| 1000 | 1213 |
| 1001 GooglePrivacyDlpV2beta1CreateInspectOperationRequest(); | 1214 GooglePrivacyDlpV2beta1CreateInspectOperationRequest(); |
| 1002 | 1215 |
| 1003 GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson(core.Map _json)
{ | 1216 GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson( |
| 1217 core.Map _json) { |
| 1004 if (_json.containsKey("inspectConfig")) { | 1218 if (_json.containsKey("inspectConfig")) { |
| 1005 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_json["i
nspectConfig"]); | 1219 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson( |
| 1220 _json["inspectConfig"]); |
| 1006 } | 1221 } |
| 1007 if (_json.containsKey("operationConfig")) { | 1222 if (_json.containsKey("operationConfig")) { |
| 1008 operationConfig = new GooglePrivacyDlpV2beta1OperationConfig.fromJson(_jso
n["operationConfig"]); | 1223 operationConfig = new GooglePrivacyDlpV2beta1OperationConfig.fromJson( |
| 1224 _json["operationConfig"]); |
| 1009 } | 1225 } |
| 1010 if (_json.containsKey("outputConfig")) { | 1226 if (_json.containsKey("outputConfig")) { |
| 1011 outputConfig = new GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(_js
on["outputConfig"]); | 1227 outputConfig = new GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson( |
| 1228 _json["outputConfig"]); |
| 1012 } | 1229 } |
| 1013 if (_json.containsKey("storageConfig")) { | 1230 if (_json.containsKey("storageConfig")) { |
| 1014 storageConfig = new GooglePrivacyDlpV2beta1StorageConfig.fromJson(_json["s
torageConfig"]); | 1231 storageConfig = new GooglePrivacyDlpV2beta1StorageConfig.fromJson( |
| 1232 _json["storageConfig"]); |
| 1015 } | 1233 } |
| 1016 } | 1234 } |
| 1017 | 1235 |
| 1018 core.Map<core.String, core.Object> toJson() { | 1236 core.Map<core.String, core.Object> toJson() { |
| 1019 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1237 final core.Map<core.String, core.Object> _json = |
| 1238 new core.Map<core.String, core.Object>(); |
| 1020 if (inspectConfig != null) { | 1239 if (inspectConfig != null) { |
| 1021 _json["inspectConfig"] = (inspectConfig).toJson(); | 1240 _json["inspectConfig"] = (inspectConfig).toJson(); |
| 1022 } | 1241 } |
| 1023 if (operationConfig != null) { | 1242 if (operationConfig != null) { |
| 1024 _json["operationConfig"] = (operationConfig).toJson(); | 1243 _json["operationConfig"] = (operationConfig).toJson(); |
| 1025 } | 1244 } |
| 1026 if (outputConfig != null) { | 1245 if (outputConfig != null) { |
| 1027 _json["outputConfig"] = (outputConfig).toJson(); | 1246 _json["outputConfig"] = (outputConfig).toJson(); |
| 1028 } | 1247 } |
| 1029 if (storageConfig != null) { | 1248 if (storageConfig != null) { |
| 1030 _json["storageConfig"] = (storageConfig).toJson(); | 1249 _json["storageConfig"] = (storageConfig).toJson(); |
| 1031 } | 1250 } |
| 1032 return _json; | 1251 return _json; |
| 1033 } | 1252 } |
| 1034 } | 1253 } |
| 1035 | 1254 |
| 1036 /** Record key for a finding in Cloud Datastore. */ | 1255 /// Record key for a finding in Cloud Datastore. |
| 1037 class GooglePrivacyDlpV2beta1DatastoreKey { | 1256 class GooglePrivacyDlpV2beta1DatastoreKey { |
| 1038 /** Datastore entity key. */ | 1257 /// Datastore entity key. |
| 1039 GooglePrivacyDlpV2beta1Key entityKey; | 1258 GooglePrivacyDlpV2beta1Key entityKey; |
| 1040 | 1259 |
| 1041 GooglePrivacyDlpV2beta1DatastoreKey(); | 1260 GooglePrivacyDlpV2beta1DatastoreKey(); |
| 1042 | 1261 |
| 1043 GooglePrivacyDlpV2beta1DatastoreKey.fromJson(core.Map _json) { | 1262 GooglePrivacyDlpV2beta1DatastoreKey.fromJson(core.Map _json) { |
| 1044 if (_json.containsKey("entityKey")) { | 1263 if (_json.containsKey("entityKey")) { |
| 1045 entityKey = new GooglePrivacyDlpV2beta1Key.fromJson(_json["entityKey"]); | 1264 entityKey = new GooglePrivacyDlpV2beta1Key.fromJson(_json["entityKey"]); |
| 1046 } | 1265 } |
| 1047 } | 1266 } |
| 1048 | 1267 |
| 1049 core.Map<core.String, core.Object> toJson() { | 1268 core.Map<core.String, core.Object> toJson() { |
| 1050 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1269 final core.Map<core.String, core.Object> _json = |
| 1270 new core.Map<core.String, core.Object>(); |
| 1051 if (entityKey != null) { | 1271 if (entityKey != null) { |
| 1052 _json["entityKey"] = (entityKey).toJson(); | 1272 _json["entityKey"] = (entityKey).toJson(); |
| 1053 } | 1273 } |
| 1054 return _json; | 1274 return _json; |
| 1055 } | 1275 } |
| 1056 } | 1276 } |
| 1057 | 1277 |
| 1058 /** Options defining a data set within Google Cloud Datastore. */ | 1278 /// Options defining a data set within Google Cloud Datastore. |
| 1059 class GooglePrivacyDlpV2beta1DatastoreOptions { | 1279 class GooglePrivacyDlpV2beta1DatastoreOptions { |
| 1060 /** The kind to process. */ | 1280 /// The kind to process. |
| 1061 GooglePrivacyDlpV2beta1KindExpression kind; | 1281 GooglePrivacyDlpV2beta1KindExpression kind; |
| 1062 /** | 1282 |
| 1063 * A partition ID identifies a grouping of entities. The grouping is always | 1283 /// A partition ID identifies a grouping of entities. The grouping is always |
| 1064 * by project and namespace, however the namespace ID may be empty. | 1284 /// by project and namespace, however the namespace ID may be empty. |
| 1065 */ | |
| 1066 GooglePrivacyDlpV2beta1PartitionId partitionId; | 1285 GooglePrivacyDlpV2beta1PartitionId partitionId; |
| 1067 /** | 1286 |
| 1068 * Properties to scan. If none are specified, all properties will be scanned | 1287 /// Properties to scan. If none are specified, all properties will be scanned |
| 1069 * by default. | 1288 /// by default. |
| 1070 */ | |
| 1071 core.List<GooglePrivacyDlpV2beta1Projection> projection; | 1289 core.List<GooglePrivacyDlpV2beta1Projection> projection; |
| 1072 | 1290 |
| 1073 GooglePrivacyDlpV2beta1DatastoreOptions(); | 1291 GooglePrivacyDlpV2beta1DatastoreOptions(); |
| 1074 | 1292 |
| 1075 GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(core.Map _json) { | 1293 GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(core.Map _json) { |
| 1076 if (_json.containsKey("kind")) { | 1294 if (_json.containsKey("kind")) { |
| 1077 kind = new GooglePrivacyDlpV2beta1KindExpression.fromJson(_json["kind"]); | 1295 kind = new GooglePrivacyDlpV2beta1KindExpression.fromJson(_json["kind"]); |
| 1078 } | 1296 } |
| 1079 if (_json.containsKey("partitionId")) { | 1297 if (_json.containsKey("partitionId")) { |
| 1080 partitionId = new GooglePrivacyDlpV2beta1PartitionId.fromJson(_json["parti
tionId"]); | 1298 partitionId = |
| 1299 new GooglePrivacyDlpV2beta1PartitionId.fromJson(_json["partitionId"]); |
| 1081 } | 1300 } |
| 1082 if (_json.containsKey("projection")) { | 1301 if (_json.containsKey("projection")) { |
| 1083 projection = _json["projection"].map((value) => new GooglePrivacyDlpV2beta
1Projection.fromJson(value)).toList(); | 1302 projection = _json["projection"] |
| 1303 .map((value) => new GooglePrivacyDlpV2beta1Projection.fromJson(value)) |
| 1304 .toList(); |
| 1084 } | 1305 } |
| 1085 } | 1306 } |
| 1086 | 1307 |
| 1087 core.Map<core.String, core.Object> toJson() { | 1308 core.Map<core.String, core.Object> toJson() { |
| 1088 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1309 final core.Map<core.String, core.Object> _json = |
| 1310 new core.Map<core.String, core.Object>(); |
| 1089 if (kind != null) { | 1311 if (kind != null) { |
| 1090 _json["kind"] = (kind).toJson(); | 1312 _json["kind"] = (kind).toJson(); |
| 1091 } | 1313 } |
| 1092 if (partitionId != null) { | 1314 if (partitionId != null) { |
| 1093 _json["partitionId"] = (partitionId).toJson(); | 1315 _json["partitionId"] = (partitionId).toJson(); |
| 1094 } | 1316 } |
| 1095 if (projection != null) { | 1317 if (projection != null) { |
| 1096 _json["projection"] = projection.map((value) => (value).toJson()).toList()
; | 1318 _json["projection"] = |
| 1319 projection.map((value) => (value).toJson()).toList(); |
| 1097 } | 1320 } |
| 1098 return _json; | 1321 return _json; |
| 1099 } | 1322 } |
| 1100 } | 1323 } |
| 1101 | 1324 |
| 1102 /** General identifier of a data field in a storage service. */ | 1325 /// General identifier of a data field in a storage service. |
| 1103 class GooglePrivacyDlpV2beta1FieldId { | 1326 class GooglePrivacyDlpV2beta1FieldId { |
| 1104 /** Name describing the field. */ | 1327 /// Name describing the field. |
| 1105 core.String columnName; | 1328 core.String columnName; |
| 1106 | 1329 |
| 1107 GooglePrivacyDlpV2beta1FieldId(); | 1330 GooglePrivacyDlpV2beta1FieldId(); |
| 1108 | 1331 |
| 1109 GooglePrivacyDlpV2beta1FieldId.fromJson(core.Map _json) { | 1332 GooglePrivacyDlpV2beta1FieldId.fromJson(core.Map _json) { |
| 1110 if (_json.containsKey("columnName")) { | 1333 if (_json.containsKey("columnName")) { |
| 1111 columnName = _json["columnName"]; | 1334 columnName = _json["columnName"]; |
| 1112 } | 1335 } |
| 1113 } | 1336 } |
| 1114 | 1337 |
| 1115 core.Map<core.String, core.Object> toJson() { | 1338 core.Map<core.String, core.Object> toJson() { |
| 1116 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1339 final core.Map<core.String, core.Object> _json = |
| 1340 new core.Map<core.String, core.Object>(); |
| 1117 if (columnName != null) { | 1341 if (columnName != null) { |
| 1118 _json["columnName"] = columnName; | 1342 _json["columnName"] = columnName; |
| 1119 } | 1343 } |
| 1120 return _json; | 1344 return _json; |
| 1121 } | 1345 } |
| 1122 } | 1346 } |
| 1123 | 1347 |
| 1124 /** Set of files to scan. */ | 1348 /// Set of files to scan. |
| 1125 class GooglePrivacyDlpV2beta1FileSet { | 1349 class GooglePrivacyDlpV2beta1FileSet { |
| 1126 /** | 1350 /// The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the |
| 1127 * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the | 1351 /// path is allowed. |
| 1128 * path is allowed. | |
| 1129 */ | |
| 1130 core.String url; | 1352 core.String url; |
| 1131 | 1353 |
| 1132 GooglePrivacyDlpV2beta1FileSet(); | 1354 GooglePrivacyDlpV2beta1FileSet(); |
| 1133 | 1355 |
| 1134 GooglePrivacyDlpV2beta1FileSet.fromJson(core.Map _json) { | 1356 GooglePrivacyDlpV2beta1FileSet.fromJson(core.Map _json) { |
| 1135 if (_json.containsKey("url")) { | 1357 if (_json.containsKey("url")) { |
| 1136 url = _json["url"]; | 1358 url = _json["url"]; |
| 1137 } | 1359 } |
| 1138 } | 1360 } |
| 1139 | 1361 |
| 1140 core.Map<core.String, core.Object> toJson() { | 1362 core.Map<core.String, core.Object> toJson() { |
| 1141 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1363 final core.Map<core.String, core.Object> _json = |
| 1364 new core.Map<core.String, core.Object>(); |
| 1142 if (url != null) { | 1365 if (url != null) { |
| 1143 _json["url"] = url; | 1366 _json["url"] = url; |
| 1144 } | 1367 } |
| 1145 return _json; | 1368 return _json; |
| 1146 } | 1369 } |
| 1147 } | 1370 } |
| 1148 | 1371 |
| 1149 /** | 1372 /// Container structure describing a single finding within a string or image. |
| 1150 * Container structure describing a single finding within a string or image. | |
| 1151 */ | |
| 1152 class GooglePrivacyDlpV2beta1Finding { | 1373 class GooglePrivacyDlpV2beta1Finding { |
| 1153 /** Timestamp when finding was detected. */ | 1374 /// Timestamp when finding was detected. |
| 1154 core.String createTime; | 1375 core.String createTime; |
| 1155 /** The specific type of info the string might be. */ | 1376 |
| 1377 /// The specific type of info the string might be. |
| 1156 GooglePrivacyDlpV2beta1InfoType infoType; | 1378 GooglePrivacyDlpV2beta1InfoType infoType; |
| 1157 /** | 1379 |
| 1158 * Estimate of how likely it is that the info_type is correct. | 1380 /// Estimate of how likely it is that the info_type is correct. |
| 1159 * Possible string values are: | 1381 /// Possible string values are: |
| 1160 * - "LIKELIHOOD_UNSPECIFIED" : Default value; information with all | 1382 /// - "LIKELIHOOD_UNSPECIFIED" : Default value; information with all |
| 1161 * likelihoods is included. | 1383 /// likelihoods is included. |
| 1162 * - "VERY_UNLIKELY" : Few matching elements. | 1384 /// - "VERY_UNLIKELY" : Few matching elements. |
| 1163 * - "UNLIKELY" | 1385 /// - "UNLIKELY" |
| 1164 * - "POSSIBLE" : Some matching elements. | 1386 /// - "POSSIBLE" : Some matching elements. |
| 1165 * - "LIKELY" | 1387 /// - "LIKELY" |
| 1166 * - "VERY_LIKELY" : Many matching elements. | 1388 /// - "VERY_LIKELY" : Many matching elements. |
| 1167 */ | |
| 1168 core.String likelihood; | 1389 core.String likelihood; |
| 1169 /** Location of the info found. */ | 1390 |
| 1391 /// Location of the info found. |
| 1170 GooglePrivacyDlpV2beta1Location location; | 1392 GooglePrivacyDlpV2beta1Location location; |
| 1171 /** The specific string that may be potentially sensitive info. */ | 1393 |
| 1394 /// The specific string that may be potentially sensitive info. |
| 1172 core.String quote; | 1395 core.String quote; |
| 1173 | 1396 |
| 1174 GooglePrivacyDlpV2beta1Finding(); | 1397 GooglePrivacyDlpV2beta1Finding(); |
| 1175 | 1398 |
| 1176 GooglePrivacyDlpV2beta1Finding.fromJson(core.Map _json) { | 1399 GooglePrivacyDlpV2beta1Finding.fromJson(core.Map _json) { |
| 1177 if (_json.containsKey("createTime")) { | 1400 if (_json.containsKey("createTime")) { |
| 1178 createTime = _json["createTime"]; | 1401 createTime = _json["createTime"]; |
| 1179 } | 1402 } |
| 1180 if (_json.containsKey("infoType")) { | 1403 if (_json.containsKey("infoType")) { |
| 1181 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; | 1404 infoType = |
| 1405 new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"]); |
| 1182 } | 1406 } |
| 1183 if (_json.containsKey("likelihood")) { | 1407 if (_json.containsKey("likelihood")) { |
| 1184 likelihood = _json["likelihood"]; | 1408 likelihood = _json["likelihood"]; |
| 1185 } | 1409 } |
| 1186 if (_json.containsKey("location")) { | 1410 if (_json.containsKey("location")) { |
| 1187 location = new GooglePrivacyDlpV2beta1Location.fromJson(_json["location"])
; | 1411 location = |
| 1412 new GooglePrivacyDlpV2beta1Location.fromJson(_json["location"]); |
| 1188 } | 1413 } |
| 1189 if (_json.containsKey("quote")) { | 1414 if (_json.containsKey("quote")) { |
| 1190 quote = _json["quote"]; | 1415 quote = _json["quote"]; |
| 1191 } | 1416 } |
| 1192 } | 1417 } |
| 1193 | 1418 |
| 1194 core.Map<core.String, core.Object> toJson() { | 1419 core.Map<core.String, core.Object> toJson() { |
| 1195 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1420 final core.Map<core.String, core.Object> _json = |
| 1421 new core.Map<core.String, core.Object>(); |
| 1196 if (createTime != null) { | 1422 if (createTime != null) { |
| 1197 _json["createTime"] = createTime; | 1423 _json["createTime"] = createTime; |
| 1198 } | 1424 } |
| 1199 if (infoType != null) { | 1425 if (infoType != null) { |
| 1200 _json["infoType"] = (infoType).toJson(); | 1426 _json["infoType"] = (infoType).toJson(); |
| 1201 } | 1427 } |
| 1202 if (likelihood != null) { | 1428 if (likelihood != null) { |
| 1203 _json["likelihood"] = likelihood; | 1429 _json["likelihood"] = likelihood; |
| 1204 } | 1430 } |
| 1205 if (location != null) { | 1431 if (location != null) { |
| 1206 _json["location"] = (location).toJson(); | 1432 _json["location"] = (location).toJson(); |
| 1207 } | 1433 } |
| 1208 if (quote != null) { | 1434 if (quote != null) { |
| 1209 _json["quote"] = quote; | 1435 _json["quote"] = quote; |
| 1210 } | 1436 } |
| 1211 return _json; | 1437 return _json; |
| 1212 } | 1438 } |
| 1213 } | 1439 } |
| 1214 | 1440 |
| 1215 /** Bounding box encompassing detected text within an image. */ | 1441 /// Bounding box encompassing detected text within an image. |
| 1216 class GooglePrivacyDlpV2beta1ImageLocation { | 1442 class GooglePrivacyDlpV2beta1ImageLocation { |
| 1217 /** Height of the bounding box in pixels. */ | 1443 /// Height of the bounding box in pixels. |
| 1218 core.int height; | 1444 core.int height; |
| 1219 /** Left coordinate of the bounding box. (0,0) is upper left. */ | 1445 |
| 1446 /// Left coordinate of the bounding box. (0,0) is upper left. |
| 1220 core.int left; | 1447 core.int left; |
| 1221 /** Top coordinate of the bounding box. (0,0) is upper left. */ | 1448 |
| 1449 /// Top coordinate of the bounding box. (0,0) is upper left. |
| 1222 core.int top; | 1450 core.int top; |
| 1223 /** Width of the bounding box in pixels. */ | 1451 |
| 1452 /// Width of the bounding box in pixels. |
| 1224 core.int width; | 1453 core.int width; |
| 1225 | 1454 |
| 1226 GooglePrivacyDlpV2beta1ImageLocation(); | 1455 GooglePrivacyDlpV2beta1ImageLocation(); |
| 1227 | 1456 |
| 1228 GooglePrivacyDlpV2beta1ImageLocation.fromJson(core.Map _json) { | 1457 GooglePrivacyDlpV2beta1ImageLocation.fromJson(core.Map _json) { |
| 1229 if (_json.containsKey("height")) { | 1458 if (_json.containsKey("height")) { |
| 1230 height = _json["height"]; | 1459 height = _json["height"]; |
| 1231 } | 1460 } |
| 1232 if (_json.containsKey("left")) { | 1461 if (_json.containsKey("left")) { |
| 1233 left = _json["left"]; | 1462 left = _json["left"]; |
| 1234 } | 1463 } |
| 1235 if (_json.containsKey("top")) { | 1464 if (_json.containsKey("top")) { |
| 1236 top = _json["top"]; | 1465 top = _json["top"]; |
| 1237 } | 1466 } |
| 1238 if (_json.containsKey("width")) { | 1467 if (_json.containsKey("width")) { |
| 1239 width = _json["width"]; | 1468 width = _json["width"]; |
| 1240 } | 1469 } |
| 1241 } | 1470 } |
| 1242 | 1471 |
| 1243 core.Map<core.String, core.Object> toJson() { | 1472 core.Map<core.String, core.Object> toJson() { |
| 1244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1473 final core.Map<core.String, core.Object> _json = |
| 1474 new core.Map<core.String, core.Object>(); |
| 1245 if (height != null) { | 1475 if (height != null) { |
| 1246 _json["height"] = height; | 1476 _json["height"] = height; |
| 1247 } | 1477 } |
| 1248 if (left != null) { | 1478 if (left != null) { |
| 1249 _json["left"] = left; | 1479 _json["left"] = left; |
| 1250 } | 1480 } |
| 1251 if (top != null) { | 1481 if (top != null) { |
| 1252 _json["top"] = top; | 1482 _json["top"] = top; |
| 1253 } | 1483 } |
| 1254 if (width != null) { | 1484 if (width != null) { |
| 1255 _json["width"] = width; | 1485 _json["width"] = width; |
| 1256 } | 1486 } |
| 1257 return _json; | 1487 return _json; |
| 1258 } | 1488 } |
| 1259 } | 1489 } |
| 1260 | 1490 |
| 1261 /** Configuration for determing how redaction of images should occur. */ | 1491 /// Configuration for determing how redaction of images should occur. |
| 1262 class GooglePrivacyDlpV2beta1ImageRedactionConfig { | 1492 class GooglePrivacyDlpV2beta1ImageRedactionConfig { |
| 1263 /** | 1493 /// Only one per info_type should be provided per request. If not |
| 1264 * Only one per info_type should be provided per request. If not | 1494 /// specified, and redact_all_text is false, the DLP API will redact all |
| 1265 * specified, and redact_all_text is false, the DLP API will redact all | 1495 /// text that it matches against all info_types that are found, but not |
| 1266 * text that it matches against all info_types that are found, but not | 1496 /// specified in another ImageRedactionConfig. |
| 1267 * specified in another ImageRedactionConfig. | |
| 1268 */ | |
| 1269 GooglePrivacyDlpV2beta1InfoType infoType; | 1497 GooglePrivacyDlpV2beta1InfoType infoType; |
| 1270 /** | 1498 |
| 1271 * If true, all text found in the image, regardless whether it matches an | 1499 /// If true, all text found in the image, regardless whether it matches an |
| 1272 * info_type, is redacted. | 1500 /// info_type, is redacted. |
| 1273 */ | |
| 1274 core.bool redactAllText; | 1501 core.bool redactAllText; |
| 1275 /** | 1502 |
| 1276 * The color to use when redacting content from an image. If not specified, | 1503 /// The color to use when redacting content from an image. If not specified, |
| 1277 * the default is black. | 1504 /// the default is black. |
| 1278 */ | |
| 1279 GooglePrivacyDlpV2beta1Color redactionColor; | 1505 GooglePrivacyDlpV2beta1Color redactionColor; |
| 1280 | 1506 |
| 1281 GooglePrivacyDlpV2beta1ImageRedactionConfig(); | 1507 GooglePrivacyDlpV2beta1ImageRedactionConfig(); |
| 1282 | 1508 |
| 1283 GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(core.Map _json) { | 1509 GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(core.Map _json) { |
| 1284 if (_json.containsKey("infoType")) { | 1510 if (_json.containsKey("infoType")) { |
| 1285 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; | 1511 infoType = |
| 1512 new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"]); |
| 1286 } | 1513 } |
| 1287 if (_json.containsKey("redactAllText")) { | 1514 if (_json.containsKey("redactAllText")) { |
| 1288 redactAllText = _json["redactAllText"]; | 1515 redactAllText = _json["redactAllText"]; |
| 1289 } | 1516 } |
| 1290 if (_json.containsKey("redactionColor")) { | 1517 if (_json.containsKey("redactionColor")) { |
| 1291 redactionColor = new GooglePrivacyDlpV2beta1Color.fromJson(_json["redactio
nColor"]); | 1518 redactionColor = |
| 1519 new GooglePrivacyDlpV2beta1Color.fromJson(_json["redactionColor"]); |
| 1292 } | 1520 } |
| 1293 } | 1521 } |
| 1294 | 1522 |
| 1295 core.Map<core.String, core.Object> toJson() { | 1523 core.Map<core.String, core.Object> toJson() { |
| 1296 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1524 final core.Map<core.String, core.Object> _json = |
| 1525 new core.Map<core.String, core.Object>(); |
| 1297 if (infoType != null) { | 1526 if (infoType != null) { |
| 1298 _json["infoType"] = (infoType).toJson(); | 1527 _json["infoType"] = (infoType).toJson(); |
| 1299 } | 1528 } |
| 1300 if (redactAllText != null) { | 1529 if (redactAllText != null) { |
| 1301 _json["redactAllText"] = redactAllText; | 1530 _json["redactAllText"] = redactAllText; |
| 1302 } | 1531 } |
| 1303 if (redactionColor != null) { | 1532 if (redactionColor != null) { |
| 1304 _json["redactionColor"] = (redactionColor).toJson(); | 1533 _json["redactionColor"] = (redactionColor).toJson(); |
| 1305 } | 1534 } |
| 1306 return _json; | 1535 return _json; |
| 1307 } | 1536 } |
| 1308 } | 1537 } |
| 1309 | 1538 |
| 1310 /** Type of information detected by the API. */ | 1539 /// Type of information detected by the API. |
| 1311 class GooglePrivacyDlpV2beta1InfoType { | 1540 class GooglePrivacyDlpV2beta1InfoType { |
| 1312 /** Name of the information type. */ | 1541 /// Name of the information type. |
| 1313 core.String name; | 1542 core.String name; |
| 1314 | 1543 |
| 1315 GooglePrivacyDlpV2beta1InfoType(); | 1544 GooglePrivacyDlpV2beta1InfoType(); |
| 1316 | 1545 |
| 1317 GooglePrivacyDlpV2beta1InfoType.fromJson(core.Map _json) { | 1546 GooglePrivacyDlpV2beta1InfoType.fromJson(core.Map _json) { |
| 1318 if (_json.containsKey("name")) { | 1547 if (_json.containsKey("name")) { |
| 1319 name = _json["name"]; | 1548 name = _json["name"]; |
| 1320 } | 1549 } |
| 1321 } | 1550 } |
| 1322 | 1551 |
| 1323 core.Map<core.String, core.Object> toJson() { | 1552 core.Map<core.String, core.Object> toJson() { |
| 1324 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1553 final core.Map<core.String, core.Object> _json = |
| 1554 new core.Map<core.String, core.Object>(); |
| 1325 if (name != null) { | 1555 if (name != null) { |
| 1326 _json["name"] = name; | 1556 _json["name"] = name; |
| 1327 } | 1557 } |
| 1328 return _json; | 1558 return _json; |
| 1329 } | 1559 } |
| 1330 } | 1560 } |
| 1331 | 1561 |
| 1332 /** Info type description. */ | 1562 /// Info type description. |
| 1333 class GooglePrivacyDlpV2beta1InfoTypeDescription { | 1563 class GooglePrivacyDlpV2beta1InfoTypeDescription { |
| 1334 /** List of categories this info type belongs to. */ | 1564 /// List of categories this info type belongs to. |
| 1335 core.List<GooglePrivacyDlpV2beta1CategoryDescription> categories; | 1565 core.List<GooglePrivacyDlpV2beta1CategoryDescription> categories; |
| 1336 /** Human readable form of the info type name. */ | 1566 |
| 1567 /// Human readable form of the info type name. |
| 1337 core.String displayName; | 1568 core.String displayName; |
| 1338 /** Internal name of the info type. */ | 1569 |
| 1570 /// Internal name of the info type. |
| 1339 core.String name; | 1571 core.String name; |
| 1340 | 1572 |
| 1341 GooglePrivacyDlpV2beta1InfoTypeDescription(); | 1573 GooglePrivacyDlpV2beta1InfoTypeDescription(); |
| 1342 | 1574 |
| 1343 GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson(core.Map _json) { | 1575 GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson(core.Map _json) { |
| 1344 if (_json.containsKey("categories")) { | 1576 if (_json.containsKey("categories")) { |
| 1345 categories = _json["categories"].map((value) => new GooglePrivacyDlpV2beta
1CategoryDescription.fromJson(value)).toList(); | 1577 categories = _json["categories"] |
| 1578 .map((value) => |
| 1579 new GooglePrivacyDlpV2beta1CategoryDescription.fromJson(value)) |
| 1580 .toList(); |
| 1346 } | 1581 } |
| 1347 if (_json.containsKey("displayName")) { | 1582 if (_json.containsKey("displayName")) { |
| 1348 displayName = _json["displayName"]; | 1583 displayName = _json["displayName"]; |
| 1349 } | 1584 } |
| 1350 if (_json.containsKey("name")) { | 1585 if (_json.containsKey("name")) { |
| 1351 name = _json["name"]; | 1586 name = _json["name"]; |
| 1352 } | 1587 } |
| 1353 } | 1588 } |
| 1354 | 1589 |
| 1355 core.Map<core.String, core.Object> toJson() { | 1590 core.Map<core.String, core.Object> toJson() { |
| 1356 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1591 final core.Map<core.String, core.Object> _json = |
| 1592 new core.Map<core.String, core.Object>(); |
| 1357 if (categories != null) { | 1593 if (categories != null) { |
| 1358 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; | 1594 _json["categories"] = |
| 1595 categories.map((value) => (value).toJson()).toList(); |
| 1359 } | 1596 } |
| 1360 if (displayName != null) { | 1597 if (displayName != null) { |
| 1361 _json["displayName"] = displayName; | 1598 _json["displayName"] = displayName; |
| 1362 } | 1599 } |
| 1363 if (name != null) { | 1600 if (name != null) { |
| 1364 _json["name"] = name; | 1601 _json["name"] = name; |
| 1365 } | 1602 } |
| 1366 return _json; | 1603 return _json; |
| 1367 } | 1604 } |
| 1368 } | 1605 } |
| 1369 | 1606 |
| 1370 /** | 1607 /// Max findings configuration per info type, per content item or long running |
| 1371 * Max findings configuration per info type, per content item or long running | 1608 /// operation. |
| 1372 * operation. | |
| 1373 */ | |
| 1374 class GooglePrivacyDlpV2beta1InfoTypeLimit { | 1609 class GooglePrivacyDlpV2beta1InfoTypeLimit { |
| 1375 /** | 1610 /// Type of information the findings limit applies to. Only one limit per |
| 1376 * Type of information the findings limit applies to. Only one limit per | 1611 /// info_type should be provided. If InfoTypeLimit does not have an |
| 1377 * info_type should be provided. If InfoTypeLimit does not have an | 1612 /// info_type, the DLP API applies the limit against all info_types that are |
| 1378 * info_type, the DLP API applies the limit against all info_types that are | 1613 /// found but not specified in another InfoTypeLimit. |
| 1379 * found but not specified in another InfoTypeLimit. | |
| 1380 */ | |
| 1381 GooglePrivacyDlpV2beta1InfoType infoType; | 1614 GooglePrivacyDlpV2beta1InfoType infoType; |
| 1382 /** Max findings limit for the given info type. */ | 1615 |
| 1616 /// Max findings limit for the given infoType. |
| 1383 core.int maxFindings; | 1617 core.int maxFindings; |
| 1384 | 1618 |
| 1385 GooglePrivacyDlpV2beta1InfoTypeLimit(); | 1619 GooglePrivacyDlpV2beta1InfoTypeLimit(); |
| 1386 | 1620 |
| 1387 GooglePrivacyDlpV2beta1InfoTypeLimit.fromJson(core.Map _json) { | 1621 GooglePrivacyDlpV2beta1InfoTypeLimit.fromJson(core.Map _json) { |
| 1388 if (_json.containsKey("infoType")) { | 1622 if (_json.containsKey("infoType")) { |
| 1389 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; | 1623 infoType = |
| 1624 new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"]); |
| 1390 } | 1625 } |
| 1391 if (_json.containsKey("maxFindings")) { | 1626 if (_json.containsKey("maxFindings")) { |
| 1392 maxFindings = _json["maxFindings"]; | 1627 maxFindings = _json["maxFindings"]; |
| 1393 } | 1628 } |
| 1394 } | 1629 } |
| 1395 | 1630 |
| 1396 core.Map<core.String, core.Object> toJson() { | 1631 core.Map<core.String, core.Object> toJson() { |
| 1397 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1632 final core.Map<core.String, core.Object> _json = |
| 1633 new core.Map<core.String, core.Object>(); |
| 1398 if (infoType != null) { | 1634 if (infoType != null) { |
| 1399 _json["infoType"] = (infoType).toJson(); | 1635 _json["infoType"] = (infoType).toJson(); |
| 1400 } | 1636 } |
| 1401 if (maxFindings != null) { | 1637 if (maxFindings != null) { |
| 1402 _json["maxFindings"] = maxFindings; | 1638 _json["maxFindings"] = maxFindings; |
| 1403 } | 1639 } |
| 1404 return _json; | 1640 return _json; |
| 1405 } | 1641 } |
| 1406 } | 1642 } |
| 1407 | 1643 |
| 1408 /** Statistics regarding a specific InfoType. */ | 1644 /// Statistics regarding a specific InfoType. |
| 1409 class GooglePrivacyDlpV2beta1InfoTypeStatistics { | 1645 class GooglePrivacyDlpV2beta1InfoTypeStatistics { |
| 1410 /** Number of findings for this info type. */ | 1646 /// Number of findings for this info type. |
| 1411 core.String count; | 1647 core.String count; |
| 1412 /** The type of finding this stat is for. */ | 1648 |
| 1649 /// The type of finding this stat is for. |
| 1413 GooglePrivacyDlpV2beta1InfoType infoType; | 1650 GooglePrivacyDlpV2beta1InfoType infoType; |
| 1414 | 1651 |
| 1415 GooglePrivacyDlpV2beta1InfoTypeStatistics(); | 1652 GooglePrivacyDlpV2beta1InfoTypeStatistics(); |
| 1416 | 1653 |
| 1417 GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(core.Map _json) { | 1654 GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(core.Map _json) { |
| 1418 if (_json.containsKey("count")) { | 1655 if (_json.containsKey("count")) { |
| 1419 count = _json["count"]; | 1656 count = _json["count"]; |
| 1420 } | 1657 } |
| 1421 if (_json.containsKey("infoType")) { | 1658 if (_json.containsKey("infoType")) { |
| 1422 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; | 1659 infoType = |
| 1660 new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"]); |
| 1423 } | 1661 } |
| 1424 } | 1662 } |
| 1425 | 1663 |
| 1426 core.Map<core.String, core.Object> toJson() { | 1664 core.Map<core.String, core.Object> toJson() { |
| 1427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1665 final core.Map<core.String, core.Object> _json = |
| 1666 new core.Map<core.String, core.Object>(); |
| 1428 if (count != null) { | 1667 if (count != null) { |
| 1429 _json["count"] = count; | 1668 _json["count"] = count; |
| 1430 } | 1669 } |
| 1431 if (infoType != null) { | 1670 if (infoType != null) { |
| 1432 _json["infoType"] = (infoType).toJson(); | 1671 _json["infoType"] = (infoType).toJson(); |
| 1433 } | 1672 } |
| 1434 return _json; | 1673 return _json; |
| 1435 } | 1674 } |
| 1436 } | 1675 } |
| 1437 | 1676 |
| 1438 /** | 1677 /// Configuration description of the scanning process. |
| 1439 * Configuration description of the scanning process. | 1678 /// When used with redactContent only info_types and min_likelihood are |
| 1440 * When used with redactContent only info_types and min_likelihood are currently | 1679 /// currently |
| 1441 * used. | 1680 /// used. |
| 1442 */ | |
| 1443 class GooglePrivacyDlpV2beta1InspectConfig { | 1681 class GooglePrivacyDlpV2beta1InspectConfig { |
| 1444 /** When true, excludes type information of the findings. */ | 1682 /// When true, excludes type information of the findings. |
| 1445 core.bool excludeTypes; | 1683 core.bool excludeTypes; |
| 1446 /** | 1684 |
| 1447 * When true, a contextual quote from the data that triggered a finding is | 1685 /// When true, a contextual quote from the data that triggered a finding is |
| 1448 * included in the response; see Finding.quote. | 1686 /// included in the response; see Finding.quote. |
| 1449 */ | |
| 1450 core.bool includeQuote; | 1687 core.bool includeQuote; |
| 1451 /** Configuration of findings limit given for specified info types. */ | 1688 |
| 1689 /// Configuration of findings limit given for specified info types. |
| 1452 core.List<GooglePrivacyDlpV2beta1InfoTypeLimit> infoTypeLimits; | 1690 core.List<GooglePrivacyDlpV2beta1InfoTypeLimit> infoTypeLimits; |
| 1453 /** | 1691 |
| 1454 * Restricts what info_types to look for. The values must correspond to | 1692 /// Restricts what info_types to look for. The values must correspond to |
| 1455 * InfoType values returned by ListInfoTypes or found in documentation. | 1693 /// InfoType values returned by ListInfoTypes or found in documentation. |
| 1456 * Empty info_types runs all enabled detectors. | 1694 /// Empty info_types runs all enabled detectors. |
| 1457 */ | |
| 1458 core.List<GooglePrivacyDlpV2beta1InfoType> infoTypes; | 1695 core.List<GooglePrivacyDlpV2beta1InfoType> infoTypes; |
| 1459 /** | 1696 |
| 1460 * Limits the number of findings per content item or long running operation. | 1697 /// Limits the number of findings per content item or long running operation. |
| 1461 */ | |
| 1462 core.int maxFindings; | 1698 core.int maxFindings; |
| 1463 /** | 1699 |
| 1464 * Only returns findings equal or above this threshold. | 1700 /// Only returns findings equal or above this threshold. |
| 1465 * Possible string values are: | 1701 /// Possible string values are: |
| 1466 * - "LIKELIHOOD_UNSPECIFIED" : Default value; information with all | 1702 /// - "LIKELIHOOD_UNSPECIFIED" : Default value; information with all |
| 1467 * likelihoods is included. | 1703 /// likelihoods is included. |
| 1468 * - "VERY_UNLIKELY" : Few matching elements. | 1704 /// - "VERY_UNLIKELY" : Few matching elements. |
| 1469 * - "UNLIKELY" | 1705 /// - "UNLIKELY" |
| 1470 * - "POSSIBLE" : Some matching elements. | 1706 /// - "POSSIBLE" : Some matching elements. |
| 1471 * - "LIKELY" | 1707 /// - "LIKELY" |
| 1472 * - "VERY_LIKELY" : Many matching elements. | 1708 /// - "VERY_LIKELY" : Many matching elements. |
| 1473 */ | |
| 1474 core.String minLikelihood; | 1709 core.String minLikelihood; |
| 1475 | 1710 |
| 1476 GooglePrivacyDlpV2beta1InspectConfig(); | 1711 GooglePrivacyDlpV2beta1InspectConfig(); |
| 1477 | 1712 |
| 1478 GooglePrivacyDlpV2beta1InspectConfig.fromJson(core.Map _json) { | 1713 GooglePrivacyDlpV2beta1InspectConfig.fromJson(core.Map _json) { |
| 1479 if (_json.containsKey("excludeTypes")) { | 1714 if (_json.containsKey("excludeTypes")) { |
| 1480 excludeTypes = _json["excludeTypes"]; | 1715 excludeTypes = _json["excludeTypes"]; |
| 1481 } | 1716 } |
| 1482 if (_json.containsKey("includeQuote")) { | 1717 if (_json.containsKey("includeQuote")) { |
| 1483 includeQuote = _json["includeQuote"]; | 1718 includeQuote = _json["includeQuote"]; |
| 1484 } | 1719 } |
| 1485 if (_json.containsKey("infoTypeLimits")) { | 1720 if (_json.containsKey("infoTypeLimits")) { |
| 1486 infoTypeLimits = _json["infoTypeLimits"].map((value) => new GooglePrivacyD
lpV2beta1InfoTypeLimit.fromJson(value)).toList(); | 1721 infoTypeLimits = _json["infoTypeLimits"] |
| 1722 .map((value) => |
| 1723 new GooglePrivacyDlpV2beta1InfoTypeLimit.fromJson(value)) |
| 1724 .toList(); |
| 1487 } | 1725 } |
| 1488 if (_json.containsKey("infoTypes")) { | 1726 if (_json.containsKey("infoTypes")) { |
| 1489 infoTypes = _json["infoTypes"].map((value) => new GooglePrivacyDlpV2beta1I
nfoType.fromJson(value)).toList(); | 1727 infoTypes = _json["infoTypes"] |
| 1728 .map((value) => new GooglePrivacyDlpV2beta1InfoType.fromJson(value)) |
| 1729 .toList(); |
| 1490 } | 1730 } |
| 1491 if (_json.containsKey("maxFindings")) { | 1731 if (_json.containsKey("maxFindings")) { |
| 1492 maxFindings = _json["maxFindings"]; | 1732 maxFindings = _json["maxFindings"]; |
| 1493 } | 1733 } |
| 1494 if (_json.containsKey("minLikelihood")) { | 1734 if (_json.containsKey("minLikelihood")) { |
| 1495 minLikelihood = _json["minLikelihood"]; | 1735 minLikelihood = _json["minLikelihood"]; |
| 1496 } | 1736 } |
| 1497 } | 1737 } |
| 1498 | 1738 |
| 1499 core.Map<core.String, core.Object> toJson() { | 1739 core.Map<core.String, core.Object> toJson() { |
| 1500 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1740 final core.Map<core.String, core.Object> _json = |
| 1741 new core.Map<core.String, core.Object>(); |
| 1501 if (excludeTypes != null) { | 1742 if (excludeTypes != null) { |
| 1502 _json["excludeTypes"] = excludeTypes; | 1743 _json["excludeTypes"] = excludeTypes; |
| 1503 } | 1744 } |
| 1504 if (includeQuote != null) { | 1745 if (includeQuote != null) { |
| 1505 _json["includeQuote"] = includeQuote; | 1746 _json["includeQuote"] = includeQuote; |
| 1506 } | 1747 } |
| 1507 if (infoTypeLimits != null) { | 1748 if (infoTypeLimits != null) { |
| 1508 _json["infoTypeLimits"] = infoTypeLimits.map((value) => (value).toJson()).
toList(); | 1749 _json["infoTypeLimits"] = |
| 1750 infoTypeLimits.map((value) => (value).toJson()).toList(); |
| 1509 } | 1751 } |
| 1510 if (infoTypes != null) { | 1752 if (infoTypes != null) { |
| 1511 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); | 1753 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); |
| 1512 } | 1754 } |
| 1513 if (maxFindings != null) { | 1755 if (maxFindings != null) { |
| 1514 _json["maxFindings"] = maxFindings; | 1756 _json["maxFindings"] = maxFindings; |
| 1515 } | 1757 } |
| 1516 if (minLikelihood != null) { | 1758 if (minLikelihood != null) { |
| 1517 _json["minLikelihood"] = minLikelihood; | 1759 _json["minLikelihood"] = minLikelihood; |
| 1518 } | 1760 } |
| 1519 return _json; | 1761 return _json; |
| 1520 } | 1762 } |
| 1521 } | 1763 } |
| 1522 | 1764 |
| 1523 /** Request to search for potentially sensitive info in a list of items. */ | 1765 /// Request to search for potentially sensitive info in a list of items. |
| 1524 class GooglePrivacyDlpV2beta1InspectContentRequest { | 1766 class GooglePrivacyDlpV2beta1InspectContentRequest { |
| 1525 /** Configuration for the inspector. */ | 1767 /// Configuration for the inspector. |
| 1526 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; | 1768 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; |
| 1527 /** | 1769 |
| 1528 * The list of items to inspect. Items in a single request are | 1770 /// The list of items to inspect. Items in a single request are |
| 1529 * considered "related" unless inspect_config.independent_inputs is true. | 1771 /// considered "related" unless inspect_config.independent_inputs is true. |
| 1530 * Up to 100 are allowed per request. | 1772 /// Up to 100 are allowed per request. |
| 1531 */ | |
| 1532 core.List<GooglePrivacyDlpV2beta1ContentItem> items; | 1773 core.List<GooglePrivacyDlpV2beta1ContentItem> items; |
| 1533 | 1774 |
| 1534 GooglePrivacyDlpV2beta1InspectContentRequest(); | 1775 GooglePrivacyDlpV2beta1InspectContentRequest(); |
| 1535 | 1776 |
| 1536 GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(core.Map _json) { | 1777 GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(core.Map _json) { |
| 1537 if (_json.containsKey("inspectConfig")) { | 1778 if (_json.containsKey("inspectConfig")) { |
| 1538 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_json["i
nspectConfig"]); | 1779 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson( |
| 1780 _json["inspectConfig"]); |
| 1539 } | 1781 } |
| 1540 if (_json.containsKey("items")) { | 1782 if (_json.containsKey("items")) { |
| 1541 items = _json["items"].map((value) => new GooglePrivacyDlpV2beta1ContentIt
em.fromJson(value)).toList(); | 1783 items = _json["items"] |
| 1784 .map( |
| 1785 (value) => new GooglePrivacyDlpV2beta1ContentItem.fromJson(value)) |
| 1786 .toList(); |
| 1542 } | 1787 } |
| 1543 } | 1788 } |
| 1544 | 1789 |
| 1545 core.Map<core.String, core.Object> toJson() { | 1790 core.Map<core.String, core.Object> toJson() { |
| 1546 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1791 final core.Map<core.String, core.Object> _json = |
| 1792 new core.Map<core.String, core.Object>(); |
| 1547 if (inspectConfig != null) { | 1793 if (inspectConfig != null) { |
| 1548 _json["inspectConfig"] = (inspectConfig).toJson(); | 1794 _json["inspectConfig"] = (inspectConfig).toJson(); |
| 1549 } | 1795 } |
| 1550 if (items != null) { | 1796 if (items != null) { |
| 1551 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1797 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1552 } | 1798 } |
| 1553 return _json; | 1799 return _json; |
| 1554 } | 1800 } |
| 1555 } | 1801 } |
| 1556 | 1802 |
| 1557 /** Results of inspecting a list of items. */ | 1803 /// Results of inspecting a list of items. |
| 1558 class GooglePrivacyDlpV2beta1InspectContentResponse { | 1804 class GooglePrivacyDlpV2beta1InspectContentResponse { |
| 1559 /** | 1805 /// Each content_item from the request has a result in this list, in the |
| 1560 * Each content_item from the request has a result in this list, in the | 1806 /// same order as the request. |
| 1561 * same order as the request. | |
| 1562 */ | |
| 1563 core.List<GooglePrivacyDlpV2beta1InspectResult> results; | 1807 core.List<GooglePrivacyDlpV2beta1InspectResult> results; |
| 1564 | 1808 |
| 1565 GooglePrivacyDlpV2beta1InspectContentResponse(); | 1809 GooglePrivacyDlpV2beta1InspectContentResponse(); |
| 1566 | 1810 |
| 1567 GooglePrivacyDlpV2beta1InspectContentResponse.fromJson(core.Map _json) { | 1811 GooglePrivacyDlpV2beta1InspectContentResponse.fromJson(core.Map _json) { |
| 1568 if (_json.containsKey("results")) { | 1812 if (_json.containsKey("results")) { |
| 1569 results = _json["results"].map((value) => new GooglePrivacyDlpV2beta1Inspe
ctResult.fromJson(value)).toList(); | 1813 results = _json["results"] |
| 1814 .map((value) => |
| 1815 new GooglePrivacyDlpV2beta1InspectResult.fromJson(value)) |
| 1816 .toList(); |
| 1570 } | 1817 } |
| 1571 } | 1818 } |
| 1572 | 1819 |
| 1573 core.Map<core.String, core.Object> toJson() { | 1820 core.Map<core.String, core.Object> toJson() { |
| 1574 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1821 final core.Map<core.String, core.Object> _json = |
| 1822 new core.Map<core.String, core.Object>(); |
| 1575 if (results != null) { | 1823 if (results != null) { |
| 1576 _json["results"] = results.map((value) => (value).toJson()).toList(); | 1824 _json["results"] = results.map((value) => (value).toJson()).toList(); |
| 1577 } | 1825 } |
| 1578 return _json; | 1826 return _json; |
| 1579 } | 1827 } |
| 1580 } | 1828 } |
| 1581 | 1829 |
| 1582 /** Metadata returned within GetOperation for an inspect request. */ | 1830 /// Metadata returned within GetOperation for an inspect request. |
| 1583 class GooglePrivacyDlpV2beta1InspectOperationMetadata { | 1831 class GooglePrivacyDlpV2beta1InspectOperationMetadata { |
| 1584 /** The time which this request was started. */ | 1832 /// The time which this request was started. |
| 1585 core.String createTime; | 1833 core.String createTime; |
| 1586 core.List<GooglePrivacyDlpV2beta1InfoTypeStatistics> infoTypeStats; | 1834 core.List<GooglePrivacyDlpV2beta1InfoTypeStatistics> infoTypeStats; |
| 1587 /** Total size in bytes that were processed. */ | 1835 |
| 1836 /// Total size in bytes that were processed. |
| 1588 core.String processedBytes; | 1837 core.String processedBytes; |
| 1589 /** The inspect config used to create the Operation. */ | 1838 |
| 1839 /// The inspect config used to create the Operation. |
| 1590 GooglePrivacyDlpV2beta1InspectConfig requestInspectConfig; | 1840 GooglePrivacyDlpV2beta1InspectConfig requestInspectConfig; |
| 1591 /** Optional location to store findings. */ | 1841 |
| 1842 /// Optional location to store findings. |
| 1592 GooglePrivacyDlpV2beta1OutputStorageConfig requestOutputConfig; | 1843 GooglePrivacyDlpV2beta1OutputStorageConfig requestOutputConfig; |
| 1593 /** The storage config used to create the Operation. */ | 1844 |
| 1845 /// The storage config used to create the Operation. |
| 1594 GooglePrivacyDlpV2beta1StorageConfig requestStorageConfig; | 1846 GooglePrivacyDlpV2beta1StorageConfig requestStorageConfig; |
| 1595 /** Estimate of the number of bytes to process. */ | 1847 |
| 1848 /// Estimate of the number of bytes to process. |
| 1596 core.String totalEstimatedBytes; | 1849 core.String totalEstimatedBytes; |
| 1597 | 1850 |
| 1598 GooglePrivacyDlpV2beta1InspectOperationMetadata(); | 1851 GooglePrivacyDlpV2beta1InspectOperationMetadata(); |
| 1599 | 1852 |
| 1600 GooglePrivacyDlpV2beta1InspectOperationMetadata.fromJson(core.Map _json) { | 1853 GooglePrivacyDlpV2beta1InspectOperationMetadata.fromJson(core.Map _json) { |
| 1601 if (_json.containsKey("createTime")) { | 1854 if (_json.containsKey("createTime")) { |
| 1602 createTime = _json["createTime"]; | 1855 createTime = _json["createTime"]; |
| 1603 } | 1856 } |
| 1604 if (_json.containsKey("infoTypeStats")) { | 1857 if (_json.containsKey("infoTypeStats")) { |
| 1605 infoTypeStats = _json["infoTypeStats"].map((value) => new GooglePrivacyDlp
V2beta1InfoTypeStatistics.fromJson(value)).toList(); | 1858 infoTypeStats = _json["infoTypeStats"] |
| 1859 .map((value) => |
| 1860 new GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(value)) |
| 1861 .toList(); |
| 1606 } | 1862 } |
| 1607 if (_json.containsKey("processedBytes")) { | 1863 if (_json.containsKey("processedBytes")) { |
| 1608 processedBytes = _json["processedBytes"]; | 1864 processedBytes = _json["processedBytes"]; |
| 1609 } | 1865 } |
| 1610 if (_json.containsKey("requestInspectConfig")) { | 1866 if (_json.containsKey("requestInspectConfig")) { |
| 1611 requestInspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_
json["requestInspectConfig"]); | 1867 requestInspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson( |
| 1868 _json["requestInspectConfig"]); |
| 1612 } | 1869 } |
| 1613 if (_json.containsKey("requestOutputConfig")) { | 1870 if (_json.containsKey("requestOutputConfig")) { |
| 1614 requestOutputConfig = new GooglePrivacyDlpV2beta1OutputStorageConfig.fromJ
son(_json["requestOutputConfig"]); | 1871 requestOutputConfig = |
| 1872 new GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson( |
| 1873 _json["requestOutputConfig"]); |
| 1615 } | 1874 } |
| 1616 if (_json.containsKey("requestStorageConfig")) { | 1875 if (_json.containsKey("requestStorageConfig")) { |
| 1617 requestStorageConfig = new GooglePrivacyDlpV2beta1StorageConfig.fromJson(_
json["requestStorageConfig"]); | 1876 requestStorageConfig = new GooglePrivacyDlpV2beta1StorageConfig.fromJson( |
| 1877 _json["requestStorageConfig"]); |
| 1618 } | 1878 } |
| 1619 if (_json.containsKey("totalEstimatedBytes")) { | 1879 if (_json.containsKey("totalEstimatedBytes")) { |
| 1620 totalEstimatedBytes = _json["totalEstimatedBytes"]; | 1880 totalEstimatedBytes = _json["totalEstimatedBytes"]; |
| 1621 } | 1881 } |
| 1622 } | 1882 } |
| 1623 | 1883 |
| 1624 core.Map<core.String, core.Object> toJson() { | 1884 core.Map<core.String, core.Object> toJson() { |
| 1625 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1885 final core.Map<core.String, core.Object> _json = |
| 1886 new core.Map<core.String, core.Object>(); |
| 1626 if (createTime != null) { | 1887 if (createTime != null) { |
| 1627 _json["createTime"] = createTime; | 1888 _json["createTime"] = createTime; |
| 1628 } | 1889 } |
| 1629 if (infoTypeStats != null) { | 1890 if (infoTypeStats != null) { |
| 1630 _json["infoTypeStats"] = infoTypeStats.map((value) => (value).toJson()).to
List(); | 1891 _json["infoTypeStats"] = |
| 1892 infoTypeStats.map((value) => (value).toJson()).toList(); |
| 1631 } | 1893 } |
| 1632 if (processedBytes != null) { | 1894 if (processedBytes != null) { |
| 1633 _json["processedBytes"] = processedBytes; | 1895 _json["processedBytes"] = processedBytes; |
| 1634 } | 1896 } |
| 1635 if (requestInspectConfig != null) { | 1897 if (requestInspectConfig != null) { |
| 1636 _json["requestInspectConfig"] = (requestInspectConfig).toJson(); | 1898 _json["requestInspectConfig"] = (requestInspectConfig).toJson(); |
| 1637 } | 1899 } |
| 1638 if (requestOutputConfig != null) { | 1900 if (requestOutputConfig != null) { |
| 1639 _json["requestOutputConfig"] = (requestOutputConfig).toJson(); | 1901 _json["requestOutputConfig"] = (requestOutputConfig).toJson(); |
| 1640 } | 1902 } |
| 1641 if (requestStorageConfig != null) { | 1903 if (requestStorageConfig != null) { |
| 1642 _json["requestStorageConfig"] = (requestStorageConfig).toJson(); | 1904 _json["requestStorageConfig"] = (requestStorageConfig).toJson(); |
| 1643 } | 1905 } |
| 1644 if (totalEstimatedBytes != null) { | 1906 if (totalEstimatedBytes != null) { |
| 1645 _json["totalEstimatedBytes"] = totalEstimatedBytes; | 1907 _json["totalEstimatedBytes"] = totalEstimatedBytes; |
| 1646 } | 1908 } |
| 1647 return _json; | 1909 return _json; |
| 1648 } | 1910 } |
| 1649 } | 1911 } |
| 1650 | 1912 |
| 1651 /** The operational data. */ | 1913 /// The operational data. |
| 1652 class GooglePrivacyDlpV2beta1InspectOperationResult { | 1914 class GooglePrivacyDlpV2beta1InspectOperationResult { |
| 1653 /** | 1915 /// The server-assigned name, which is only unique within the same service |
| 1654 * The server-assigned name, which is only unique within the same service that | 1916 /// that |
| 1655 * originally returns it. If you use the default HTTP mapping, the | 1917 /// originally returns it. If you use the default HTTP mapping, the |
| 1656 * `name` should have the format of `inspect/results/{id}`. | 1918 /// `name` should have the format of `inspect/results/{id}`. |
| 1657 */ | |
| 1658 core.String name; | 1919 core.String name; |
| 1659 | 1920 |
| 1660 GooglePrivacyDlpV2beta1InspectOperationResult(); | 1921 GooglePrivacyDlpV2beta1InspectOperationResult(); |
| 1661 | 1922 |
| 1662 GooglePrivacyDlpV2beta1InspectOperationResult.fromJson(core.Map _json) { | 1923 GooglePrivacyDlpV2beta1InspectOperationResult.fromJson(core.Map _json) { |
| 1663 if (_json.containsKey("name")) { | 1924 if (_json.containsKey("name")) { |
| 1664 name = _json["name"]; | 1925 name = _json["name"]; |
| 1665 } | 1926 } |
| 1666 } | 1927 } |
| 1667 | 1928 |
| 1668 core.Map<core.String, core.Object> toJson() { | 1929 core.Map<core.String, core.Object> toJson() { |
| 1669 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1930 final core.Map<core.String, core.Object> _json = |
| 1931 new core.Map<core.String, core.Object>(); |
| 1670 if (name != null) { | 1932 if (name != null) { |
| 1671 _json["name"] = name; | 1933 _json["name"] = name; |
| 1672 } | 1934 } |
| 1673 return _json; | 1935 return _json; |
| 1674 } | 1936 } |
| 1675 } | 1937 } |
| 1676 | 1938 |
| 1677 /** All the findings for a single scanned item. */ | 1939 /// All the findings for a single scanned item. |
| 1678 class GooglePrivacyDlpV2beta1InspectResult { | 1940 class GooglePrivacyDlpV2beta1InspectResult { |
| 1679 /** List of findings for an item. */ | 1941 /// List of findings for an item. |
| 1680 core.List<GooglePrivacyDlpV2beta1Finding> findings; | 1942 core.List<GooglePrivacyDlpV2beta1Finding> findings; |
| 1681 /** | 1943 |
| 1682 * If true, then this item might have more findings than were returned, | 1944 /// If true, then this item might have more findings than were returned, |
| 1683 * and the findings returned are an arbitrary subset of all findings. | 1945 /// and the findings returned are an arbitrary subset of all findings. |
| 1684 * The findings list might be truncated because the input items were too | 1946 /// The findings list might be truncated because the input items were too |
| 1685 * large, or because the server reached the maximum amount of resources | 1947 /// large, or because the server reached the maximum amount of resources |
| 1686 * allowed for a single API call. For best results, divide the input into | 1948 /// allowed for a single API call. For best results, divide the input into |
| 1687 * smaller batches. | 1949 /// smaller batches. |
| 1688 */ | |
| 1689 core.bool findingsTruncated; | 1950 core.bool findingsTruncated; |
| 1690 | 1951 |
| 1691 GooglePrivacyDlpV2beta1InspectResult(); | 1952 GooglePrivacyDlpV2beta1InspectResult(); |
| 1692 | 1953 |
| 1693 GooglePrivacyDlpV2beta1InspectResult.fromJson(core.Map _json) { | 1954 GooglePrivacyDlpV2beta1InspectResult.fromJson(core.Map _json) { |
| 1694 if (_json.containsKey("findings")) { | 1955 if (_json.containsKey("findings")) { |
| 1695 findings = _json["findings"].map((value) => new GooglePrivacyDlpV2beta1Fin
ding.fromJson(value)).toList(); | 1956 findings = _json["findings"] |
| 1957 .map((value) => new GooglePrivacyDlpV2beta1Finding.fromJson(value)) |
| 1958 .toList(); |
| 1696 } | 1959 } |
| 1697 if (_json.containsKey("findingsTruncated")) { | 1960 if (_json.containsKey("findingsTruncated")) { |
| 1698 findingsTruncated = _json["findingsTruncated"]; | 1961 findingsTruncated = _json["findingsTruncated"]; |
| 1699 } | 1962 } |
| 1700 } | 1963 } |
| 1701 | 1964 |
| 1702 core.Map<core.String, core.Object> toJson() { | 1965 core.Map<core.String, core.Object> toJson() { |
| 1703 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1966 final core.Map<core.String, core.Object> _json = |
| 1967 new core.Map<core.String, core.Object>(); |
| 1704 if (findings != null) { | 1968 if (findings != null) { |
| 1705 _json["findings"] = findings.map((value) => (value).toJson()).toList(); | 1969 _json["findings"] = findings.map((value) => (value).toJson()).toList(); |
| 1706 } | 1970 } |
| 1707 if (findingsTruncated != null) { | 1971 if (findingsTruncated != null) { |
| 1708 _json["findingsTruncated"] = findingsTruncated; | 1972 _json["findingsTruncated"] = findingsTruncated; |
| 1709 } | 1973 } |
| 1710 return _json; | 1974 return _json; |
| 1711 } | 1975 } |
| 1712 } | 1976 } |
| 1713 | 1977 |
| 1714 /** | 1978 /// A unique identifier for a Datastore entity. |
| 1715 * A unique identifier for a Datastore entity. | 1979 /// If a key's partition ID or any of its path kinds or names are |
| 1716 * If a key's partition ID or any of its path kinds or names are | 1980 /// reserved/read-only, the key is reserved/read-only. |
| 1717 * reserved/read-only, the key is reserved/read-only. | 1981 /// A reserved/read-only key is forbidden in certain documented contexts. |
| 1718 * A reserved/read-only key is forbidden in certain documented contexts. | |
| 1719 */ | |
| 1720 class GooglePrivacyDlpV2beta1Key { | 1982 class GooglePrivacyDlpV2beta1Key { |
| 1721 /** | 1983 /// Entities are partitioned into subsets, currently identified by a project |
| 1722 * Entities are partitioned into subsets, currently identified by a project | 1984 /// ID and namespace ID. |
| 1723 * ID and namespace ID. | 1985 /// Queries are scoped to a single partition. |
| 1724 * Queries are scoped to a single partition. | |
| 1725 */ | |
| 1726 GooglePrivacyDlpV2beta1PartitionId partitionId; | 1986 GooglePrivacyDlpV2beta1PartitionId partitionId; |
| 1727 /** | 1987 |
| 1728 * The entity path. | 1988 /// The entity path. |
| 1729 * An entity path consists of one or more elements composed of a kind and a | 1989 /// An entity path consists of one or more elements composed of a kind and a |
| 1730 * string or numerical identifier, which identify entities. The first | 1990 /// string or numerical identifier, which identify entities. The first |
| 1731 * element identifies a _root entity_, the second element identifies | 1991 /// element identifies a _root entity_, the second element identifies |
| 1732 * a _child_ of the root entity, the third element identifies a child of the | 1992 /// a _child_ of the root entity, the third element identifies a child of the |
| 1733 * second entity, and so forth. The entities identified by all prefixes of | 1993 /// second entity, and so forth. The entities identified by all prefixes of |
| 1734 * the path are called the element's _ancestors_. | 1994 /// the path are called the element's _ancestors_. |
| 1735 * | 1995 /// |
| 1736 * A path can never be empty, and a path can have at most 100 elements. | 1996 /// A path can never be empty, and a path can have at most 100 elements. |
| 1737 */ | |
| 1738 core.List<GooglePrivacyDlpV2beta1PathElement> path; | 1997 core.List<GooglePrivacyDlpV2beta1PathElement> path; |
| 1739 | 1998 |
| 1740 GooglePrivacyDlpV2beta1Key(); | 1999 GooglePrivacyDlpV2beta1Key(); |
| 1741 | 2000 |
| 1742 GooglePrivacyDlpV2beta1Key.fromJson(core.Map _json) { | 2001 GooglePrivacyDlpV2beta1Key.fromJson(core.Map _json) { |
| 1743 if (_json.containsKey("partitionId")) { | 2002 if (_json.containsKey("partitionId")) { |
| 1744 partitionId = new GooglePrivacyDlpV2beta1PartitionId.fromJson(_json["parti
tionId"]); | 2003 partitionId = |
| 2004 new GooglePrivacyDlpV2beta1PartitionId.fromJson(_json["partitionId"]); |
| 1745 } | 2005 } |
| 1746 if (_json.containsKey("path")) { | 2006 if (_json.containsKey("path")) { |
| 1747 path = _json["path"].map((value) => new GooglePrivacyDlpV2beta1PathElement
.fromJson(value)).toList(); | 2007 path = _json["path"] |
| 2008 .map( |
| 2009 (value) => new GooglePrivacyDlpV2beta1PathElement.fromJson(value)) |
| 2010 .toList(); |
| 1748 } | 2011 } |
| 1749 } | 2012 } |
| 1750 | 2013 |
| 1751 core.Map<core.String, core.Object> toJson() { | 2014 core.Map<core.String, core.Object> toJson() { |
| 1752 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2015 final core.Map<core.String, core.Object> _json = |
| 2016 new core.Map<core.String, core.Object>(); |
| 1753 if (partitionId != null) { | 2017 if (partitionId != null) { |
| 1754 _json["partitionId"] = (partitionId).toJson(); | 2018 _json["partitionId"] = (partitionId).toJson(); |
| 1755 } | 2019 } |
| 1756 if (path != null) { | 2020 if (path != null) { |
| 1757 _json["path"] = path.map((value) => (value).toJson()).toList(); | 2021 _json["path"] = path.map((value) => (value).toJson()).toList(); |
| 1758 } | 2022 } |
| 1759 return _json; | 2023 return _json; |
| 1760 } | 2024 } |
| 1761 } | 2025 } |
| 1762 | 2026 |
| 1763 /** A representation of a Datastore kind. */ | 2027 /// A representation of a Datastore kind. |
| 1764 class GooglePrivacyDlpV2beta1KindExpression { | 2028 class GooglePrivacyDlpV2beta1KindExpression { |
| 1765 /** The name of the kind. */ | 2029 /// The name of the kind. |
| 1766 core.String name; | 2030 core.String name; |
| 1767 | 2031 |
| 1768 GooglePrivacyDlpV2beta1KindExpression(); | 2032 GooglePrivacyDlpV2beta1KindExpression(); |
| 1769 | 2033 |
| 1770 GooglePrivacyDlpV2beta1KindExpression.fromJson(core.Map _json) { | 2034 GooglePrivacyDlpV2beta1KindExpression.fromJson(core.Map _json) { |
| 1771 if (_json.containsKey("name")) { | 2035 if (_json.containsKey("name")) { |
| 1772 name = _json["name"]; | 2036 name = _json["name"]; |
| 1773 } | 2037 } |
| 1774 } | 2038 } |
| 1775 | 2039 |
| 1776 core.Map<core.String, core.Object> toJson() { | 2040 core.Map<core.String, core.Object> toJson() { |
| 1777 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2041 final core.Map<core.String, core.Object> _json = |
| 2042 new core.Map<core.String, core.Object>(); |
| 1778 if (name != null) { | 2043 if (name != null) { |
| 1779 _json["name"] = name; | 2044 _json["name"] = name; |
| 1780 } | 2045 } |
| 1781 return _json; | 2046 return _json; |
| 1782 } | 2047 } |
| 1783 } | 2048 } |
| 1784 | 2049 |
| 1785 /** Response to the ListInfoTypes request. */ | 2050 /// Response to the ListInfoTypes request. |
| 1786 class GooglePrivacyDlpV2beta1ListInfoTypesResponse { | 2051 class GooglePrivacyDlpV2beta1ListInfoTypesResponse { |
| 1787 /** Set of sensitive info types belonging to a category. */ | 2052 /// Set of sensitive info types belonging to a category. |
| 1788 core.List<GooglePrivacyDlpV2beta1InfoTypeDescription> infoTypes; | 2053 core.List<GooglePrivacyDlpV2beta1InfoTypeDescription> infoTypes; |
| 1789 | 2054 |
| 1790 GooglePrivacyDlpV2beta1ListInfoTypesResponse(); | 2055 GooglePrivacyDlpV2beta1ListInfoTypesResponse(); |
| 1791 | 2056 |
| 1792 GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson(core.Map _json) { | 2057 GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson(core.Map _json) { |
| 1793 if (_json.containsKey("infoTypes")) { | 2058 if (_json.containsKey("infoTypes")) { |
| 1794 infoTypes = _json["infoTypes"].map((value) => new GooglePrivacyDlpV2beta1I
nfoTypeDescription.fromJson(value)).toList(); | 2059 infoTypes = _json["infoTypes"] |
| 2060 .map((value) => |
| 2061 new GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson(value)) |
| 2062 .toList(); |
| 1795 } | 2063 } |
| 1796 } | 2064 } |
| 1797 | 2065 |
| 1798 core.Map<core.String, core.Object> toJson() { | 2066 core.Map<core.String, core.Object> toJson() { |
| 1799 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2067 final core.Map<core.String, core.Object> _json = |
| 2068 new core.Map<core.String, core.Object>(); |
| 1800 if (infoTypes != null) { | 2069 if (infoTypes != null) { |
| 1801 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); | 2070 _json["infoTypes"] = infoTypes.map((value) => (value).toJson()).toList(); |
| 1802 } | 2071 } |
| 1803 return _json; | 2072 return _json; |
| 1804 } | 2073 } |
| 1805 } | 2074 } |
| 1806 | 2075 |
| 1807 /** Response to the ListInspectFindings request. */ | 2076 /// Response to the ListInspectFindings request. |
| 1808 class GooglePrivacyDlpV2beta1ListInspectFindingsResponse { | 2077 class GooglePrivacyDlpV2beta1ListInspectFindingsResponse { |
| 1809 /** | 2078 /// If not empty, indicates that there may be more results that match the |
| 1810 * If not empty, indicates that there may be more results that match the | 2079 /// request; this value should be passed in a new |
| 1811 * request; this value should be passed in a new `ListInspectFindingsRequest`. | 2080 /// `ListInspectFindingsRequest`. |
| 1812 */ | |
| 1813 core.String nextPageToken; | 2081 core.String nextPageToken; |
| 1814 /** The results. */ | 2082 |
| 2083 /// The results. |
| 1815 GooglePrivacyDlpV2beta1InspectResult result; | 2084 GooglePrivacyDlpV2beta1InspectResult result; |
| 1816 | 2085 |
| 1817 GooglePrivacyDlpV2beta1ListInspectFindingsResponse(); | 2086 GooglePrivacyDlpV2beta1ListInspectFindingsResponse(); |
| 1818 | 2087 |
| 1819 GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJson(core.Map _json) { | 2088 GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJson(core.Map _json) { |
| 1820 if (_json.containsKey("nextPageToken")) { | 2089 if (_json.containsKey("nextPageToken")) { |
| 1821 nextPageToken = _json["nextPageToken"]; | 2090 nextPageToken = _json["nextPageToken"]; |
| 1822 } | 2091 } |
| 1823 if (_json.containsKey("result")) { | 2092 if (_json.containsKey("result")) { |
| 1824 result = new GooglePrivacyDlpV2beta1InspectResult.fromJson(_json["result"]
); | 2093 result = |
| 2094 new GooglePrivacyDlpV2beta1InspectResult.fromJson(_json["result"]); |
| 1825 } | 2095 } |
| 1826 } | 2096 } |
| 1827 | 2097 |
| 1828 core.Map<core.String, core.Object> toJson() { | 2098 core.Map<core.String, core.Object> toJson() { |
| 1829 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2099 final core.Map<core.String, core.Object> _json = |
| 2100 new core.Map<core.String, core.Object>(); |
| 1830 if (nextPageToken != null) { | 2101 if (nextPageToken != null) { |
| 1831 _json["nextPageToken"] = nextPageToken; | 2102 _json["nextPageToken"] = nextPageToken; |
| 1832 } | 2103 } |
| 1833 if (result != null) { | 2104 if (result != null) { |
| 1834 _json["result"] = (result).toJson(); | 2105 _json["result"] = (result).toJson(); |
| 1835 } | 2106 } |
| 1836 return _json; | 2107 return _json; |
| 1837 } | 2108 } |
| 1838 } | 2109 } |
| 1839 | 2110 |
| 1840 /** Response for ListRootCategories request. */ | 2111 /// Response for ListRootCategories request. |
| 1841 class GooglePrivacyDlpV2beta1ListRootCategoriesResponse { | 2112 class GooglePrivacyDlpV2beta1ListRootCategoriesResponse { |
| 1842 /** List of all into type categories supported by the API. */ | 2113 /// List of all into type categories supported by the API. |
| 1843 core.List<GooglePrivacyDlpV2beta1CategoryDescription> categories; | 2114 core.List<GooglePrivacyDlpV2beta1CategoryDescription> categories; |
| 1844 | 2115 |
| 1845 GooglePrivacyDlpV2beta1ListRootCategoriesResponse(); | 2116 GooglePrivacyDlpV2beta1ListRootCategoriesResponse(); |
| 1846 | 2117 |
| 1847 GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJson(core.Map _json) { | 2118 GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJson(core.Map _json) { |
| 1848 if (_json.containsKey("categories")) { | 2119 if (_json.containsKey("categories")) { |
| 1849 categories = _json["categories"].map((value) => new GooglePrivacyDlpV2beta
1CategoryDescription.fromJson(value)).toList(); | 2120 categories = _json["categories"] |
| 2121 .map((value) => |
| 2122 new GooglePrivacyDlpV2beta1CategoryDescription.fromJson(value)) |
| 2123 .toList(); |
| 1850 } | 2124 } |
| 1851 } | 2125 } |
| 1852 | 2126 |
| 1853 core.Map<core.String, core.Object> toJson() { | 2127 core.Map<core.String, core.Object> toJson() { |
| 1854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2128 final core.Map<core.String, core.Object> _json = |
| 2129 new core.Map<core.String, core.Object>(); |
| 1855 if (categories != null) { | 2130 if (categories != null) { |
| 1856 _json["categories"] = categories.map((value) => (value).toJson()).toList()
; | 2131 _json["categories"] = |
| 2132 categories.map((value) => (value).toJson()).toList(); |
| 1857 } | 2133 } |
| 1858 return _json; | 2134 return _json; |
| 1859 } | 2135 } |
| 1860 } | 2136 } |
| 1861 | 2137 |
| 1862 /** Specifies the location of a finding within its source item. */ | 2138 /// Specifies the location of a finding within its source item. |
| 1863 class GooglePrivacyDlpV2beta1Location { | 2139 class GooglePrivacyDlpV2beta1Location { |
| 1864 /** Zero-based byte offsets within a content item. */ | 2140 /// Zero-based byte offsets within a content item. |
| 1865 GooglePrivacyDlpV2beta1Range byteRange; | 2141 GooglePrivacyDlpV2beta1Range byteRange; |
| 1866 /** | 2142 |
| 1867 * Character offsets within a content item, included when content type | 2143 /// Character offsets within a content item, included when content type |
| 1868 * is a text. Default charset assumed to be UTF-8. | 2144 /// is a text. Default charset assumed to be UTF-8. |
| 1869 */ | |
| 1870 GooglePrivacyDlpV2beta1Range codepointRange; | 2145 GooglePrivacyDlpV2beta1Range codepointRange; |
| 1871 /** Field id of the field containing the finding. */ | 2146 |
| 2147 /// Field id of the field containing the finding. |
| 1872 GooglePrivacyDlpV2beta1FieldId fieldId; | 2148 GooglePrivacyDlpV2beta1FieldId fieldId; |
| 1873 /** Location within an image's pixels. */ | 2149 |
| 2150 /// Location within an image's pixels. |
| 1874 core.List<GooglePrivacyDlpV2beta1ImageLocation> imageBoxes; | 2151 core.List<GooglePrivacyDlpV2beta1ImageLocation> imageBoxes; |
| 1875 /** Key of the finding. */ | 2152 |
| 2153 /// Key of the finding. |
| 1876 GooglePrivacyDlpV2beta1RecordKey recordKey; | 2154 GooglePrivacyDlpV2beta1RecordKey recordKey; |
| 1877 /** Location within a `ContentItem.Table`. */ | 2155 |
| 2156 /// Location within a `ContentItem.Table`. |
| 1878 GooglePrivacyDlpV2beta1TableLocation tableLocation; | 2157 GooglePrivacyDlpV2beta1TableLocation tableLocation; |
| 1879 | 2158 |
| 1880 GooglePrivacyDlpV2beta1Location(); | 2159 GooglePrivacyDlpV2beta1Location(); |
| 1881 | 2160 |
| 1882 GooglePrivacyDlpV2beta1Location.fromJson(core.Map _json) { | 2161 GooglePrivacyDlpV2beta1Location.fromJson(core.Map _json) { |
| 1883 if (_json.containsKey("byteRange")) { | 2162 if (_json.containsKey("byteRange")) { |
| 1884 byteRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["byteRange"]); | 2163 byteRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["byteRange"]); |
| 1885 } | 2164 } |
| 1886 if (_json.containsKey("codepointRange")) { | 2165 if (_json.containsKey("codepointRange")) { |
| 1887 codepointRange = new GooglePrivacyDlpV2beta1Range.fromJson(_json["codepoin
tRange"]); | 2166 codepointRange = |
| 2167 new GooglePrivacyDlpV2beta1Range.fromJson(_json["codepointRange"]); |
| 1888 } | 2168 } |
| 1889 if (_json.containsKey("fieldId")) { | 2169 if (_json.containsKey("fieldId")) { |
| 1890 fieldId = new GooglePrivacyDlpV2beta1FieldId.fromJson(_json["fieldId"]); | 2170 fieldId = new GooglePrivacyDlpV2beta1FieldId.fromJson(_json["fieldId"]); |
| 1891 } | 2171 } |
| 1892 if (_json.containsKey("imageBoxes")) { | 2172 if (_json.containsKey("imageBoxes")) { |
| 1893 imageBoxes = _json["imageBoxes"].map((value) => new GooglePrivacyDlpV2beta
1ImageLocation.fromJson(value)).toList(); | 2173 imageBoxes = _json["imageBoxes"] |
| 2174 .map((value) => |
| 2175 new GooglePrivacyDlpV2beta1ImageLocation.fromJson(value)) |
| 2176 .toList(); |
| 1894 } | 2177 } |
| 1895 if (_json.containsKey("recordKey")) { | 2178 if (_json.containsKey("recordKey")) { |
| 1896 recordKey = new GooglePrivacyDlpV2beta1RecordKey.fromJson(_json["recordKey
"]); | 2179 recordKey = |
| 2180 new GooglePrivacyDlpV2beta1RecordKey.fromJson(_json["recordKey"]); |
| 1897 } | 2181 } |
| 1898 if (_json.containsKey("tableLocation")) { | 2182 if (_json.containsKey("tableLocation")) { |
| 1899 tableLocation = new GooglePrivacyDlpV2beta1TableLocation.fromJson(_json["t
ableLocation"]); | 2183 tableLocation = new GooglePrivacyDlpV2beta1TableLocation.fromJson( |
| 2184 _json["tableLocation"]); |
| 1900 } | 2185 } |
| 1901 } | 2186 } |
| 1902 | 2187 |
| 1903 core.Map<core.String, core.Object> toJson() { | 2188 core.Map<core.String, core.Object> toJson() { |
| 1904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2189 final core.Map<core.String, core.Object> _json = |
| 2190 new core.Map<core.String, core.Object>(); |
| 1905 if (byteRange != null) { | 2191 if (byteRange != null) { |
| 1906 _json["byteRange"] = (byteRange).toJson(); | 2192 _json["byteRange"] = (byteRange).toJson(); |
| 1907 } | 2193 } |
| 1908 if (codepointRange != null) { | 2194 if (codepointRange != null) { |
| 1909 _json["codepointRange"] = (codepointRange).toJson(); | 2195 _json["codepointRange"] = (codepointRange).toJson(); |
| 1910 } | 2196 } |
| 1911 if (fieldId != null) { | 2197 if (fieldId != null) { |
| 1912 _json["fieldId"] = (fieldId).toJson(); | 2198 _json["fieldId"] = (fieldId).toJson(); |
| 1913 } | 2199 } |
| 1914 if (imageBoxes != null) { | 2200 if (imageBoxes != null) { |
| 1915 _json["imageBoxes"] = imageBoxes.map((value) => (value).toJson()).toList()
; | 2201 _json["imageBoxes"] = |
| 2202 imageBoxes.map((value) => (value).toJson()).toList(); |
| 1916 } | 2203 } |
| 1917 if (recordKey != null) { | 2204 if (recordKey != null) { |
| 1918 _json["recordKey"] = (recordKey).toJson(); | 2205 _json["recordKey"] = (recordKey).toJson(); |
| 1919 } | 2206 } |
| 1920 if (tableLocation != null) { | 2207 if (tableLocation != null) { |
| 1921 _json["tableLocation"] = (tableLocation).toJson(); | 2208 _json["tableLocation"] = (tableLocation).toJson(); |
| 1922 } | 2209 } |
| 1923 return _json; | 2210 return _json; |
| 1924 } | 2211 } |
| 1925 } | 2212 } |
| 1926 | 2213 |
| 1927 /** Additional configuration for inspect long running operations. */ | 2214 /// Additional configuration for inspect long running operations. |
| 1928 class GooglePrivacyDlpV2beta1OperationConfig { | 2215 class GooglePrivacyDlpV2beta1OperationConfig { |
| 1929 /** Max number of findings per file, Datastore entity or database row. */ | 2216 /// Max number of findings per file, Datastore entity, or database row. |
| 1930 core.String maxItemFindings; | 2217 core.String maxItemFindings; |
| 1931 | 2218 |
| 1932 GooglePrivacyDlpV2beta1OperationConfig(); | 2219 GooglePrivacyDlpV2beta1OperationConfig(); |
| 1933 | 2220 |
| 1934 GooglePrivacyDlpV2beta1OperationConfig.fromJson(core.Map _json) { | 2221 GooglePrivacyDlpV2beta1OperationConfig.fromJson(core.Map _json) { |
| 1935 if (_json.containsKey("maxItemFindings")) { | 2222 if (_json.containsKey("maxItemFindings")) { |
| 1936 maxItemFindings = _json["maxItemFindings"]; | 2223 maxItemFindings = _json["maxItemFindings"]; |
| 1937 } | 2224 } |
| 1938 } | 2225 } |
| 1939 | 2226 |
| 1940 core.Map<core.String, core.Object> toJson() { | 2227 core.Map<core.String, core.Object> toJson() { |
| 1941 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2228 final core.Map<core.String, core.Object> _json = |
| 2229 new core.Map<core.String, core.Object>(); |
| 1942 if (maxItemFindings != null) { | 2230 if (maxItemFindings != null) { |
| 1943 _json["maxItemFindings"] = maxItemFindings; | 2231 _json["maxItemFindings"] = maxItemFindings; |
| 1944 } | 2232 } |
| 1945 return _json; | 2233 return _json; |
| 1946 } | 2234 } |
| 1947 } | 2235 } |
| 1948 | 2236 |
| 1949 /** Cloud repository for storing output. */ | 2237 /// Cloud repository for storing output. |
| 1950 class GooglePrivacyDlpV2beta1OutputStorageConfig { | 2238 class GooglePrivacyDlpV2beta1OutputStorageConfig { |
| 1951 /** The path to a Google Cloud Storage location to store output. */ | 2239 /// The path to a Google Cloud Storage location to store output. |
| 1952 GooglePrivacyDlpV2beta1CloudStoragePath storagePath; | 2240 GooglePrivacyDlpV2beta1CloudStoragePath storagePath; |
| 1953 /** Store findings in a new table in the dataset. */ | 2241 |
| 2242 /// Store findings in a new table in the dataset. |
| 1954 GooglePrivacyDlpV2beta1BigQueryTable table; | 2243 GooglePrivacyDlpV2beta1BigQueryTable table; |
| 1955 | 2244 |
| 1956 GooglePrivacyDlpV2beta1OutputStorageConfig(); | 2245 GooglePrivacyDlpV2beta1OutputStorageConfig(); |
| 1957 | 2246 |
| 1958 GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(core.Map _json) { | 2247 GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(core.Map _json) { |
| 1959 if (_json.containsKey("storagePath")) { | 2248 if (_json.containsKey("storagePath")) { |
| 1960 storagePath = new GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(_json["
storagePath"]); | 2249 storagePath = new GooglePrivacyDlpV2beta1CloudStoragePath.fromJson( |
| 2250 _json["storagePath"]); |
| 1961 } | 2251 } |
| 1962 if (_json.containsKey("table")) { | 2252 if (_json.containsKey("table")) { |
| 1963 table = new GooglePrivacyDlpV2beta1BigQueryTable.fromJson(_json["table"]); | 2253 table = new GooglePrivacyDlpV2beta1BigQueryTable.fromJson(_json["table"]); |
| 1964 } | 2254 } |
| 1965 } | 2255 } |
| 1966 | 2256 |
| 1967 core.Map<core.String, core.Object> toJson() { | 2257 core.Map<core.String, core.Object> toJson() { |
| 1968 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2258 final core.Map<core.String, core.Object> _json = |
| 2259 new core.Map<core.String, core.Object>(); |
| 1969 if (storagePath != null) { | 2260 if (storagePath != null) { |
| 1970 _json["storagePath"] = (storagePath).toJson(); | 2261 _json["storagePath"] = (storagePath).toJson(); |
| 1971 } | 2262 } |
| 1972 if (table != null) { | 2263 if (table != null) { |
| 1973 _json["table"] = (table).toJson(); | 2264 _json["table"] = (table).toJson(); |
| 1974 } | 2265 } |
| 1975 return _json; | 2266 return _json; |
| 1976 } | 2267 } |
| 1977 } | 2268 } |
| 1978 | 2269 |
| 1979 /** | 2270 /// Datastore partition ID. |
| 1980 * Datastore partition ID. | 2271 /// A partition ID identifies a grouping of entities. The grouping is always |
| 1981 * A partition ID identifies a grouping of entities. The grouping is always | 2272 /// by project and namespace, however the namespace ID may be empty. |
| 1982 * by project and namespace, however the namespace ID may be empty. | 2273 /// |
| 1983 * | 2274 /// A partition ID contains several dimensions: |
| 1984 * A partition ID contains several dimensions: | 2275 /// project ID and namespace ID. |
| 1985 * project ID and namespace ID. | |
| 1986 */ | |
| 1987 class GooglePrivacyDlpV2beta1PartitionId { | 2276 class GooglePrivacyDlpV2beta1PartitionId { |
| 1988 /** If not empty, the ID of the namespace to which the entities belong. */ | 2277 /// If not empty, the ID of the namespace to which the entities belong. |
| 1989 core.String namespaceId; | 2278 core.String namespaceId; |
| 1990 /** The ID of the project to which the entities belong. */ | 2279 |
| 2280 /// The ID of the project to which the entities belong. |
| 1991 core.String projectId; | 2281 core.String projectId; |
| 1992 | 2282 |
| 1993 GooglePrivacyDlpV2beta1PartitionId(); | 2283 GooglePrivacyDlpV2beta1PartitionId(); |
| 1994 | 2284 |
| 1995 GooglePrivacyDlpV2beta1PartitionId.fromJson(core.Map _json) { | 2285 GooglePrivacyDlpV2beta1PartitionId.fromJson(core.Map _json) { |
| 1996 if (_json.containsKey("namespaceId")) { | 2286 if (_json.containsKey("namespaceId")) { |
| 1997 namespaceId = _json["namespaceId"]; | 2287 namespaceId = _json["namespaceId"]; |
| 1998 } | 2288 } |
| 1999 if (_json.containsKey("projectId")) { | 2289 if (_json.containsKey("projectId")) { |
| 2000 projectId = _json["projectId"]; | 2290 projectId = _json["projectId"]; |
| 2001 } | 2291 } |
| 2002 } | 2292 } |
| 2003 | 2293 |
| 2004 core.Map<core.String, core.Object> toJson() { | 2294 core.Map<core.String, core.Object> toJson() { |
| 2005 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2295 final core.Map<core.String, core.Object> _json = |
| 2296 new core.Map<core.String, core.Object>(); |
| 2006 if (namespaceId != null) { | 2297 if (namespaceId != null) { |
| 2007 _json["namespaceId"] = namespaceId; | 2298 _json["namespaceId"] = namespaceId; |
| 2008 } | 2299 } |
| 2009 if (projectId != null) { | 2300 if (projectId != null) { |
| 2010 _json["projectId"] = projectId; | 2301 _json["projectId"] = projectId; |
| 2011 } | 2302 } |
| 2012 return _json; | 2303 return _json; |
| 2013 } | 2304 } |
| 2014 } | 2305 } |
| 2015 | 2306 |
| 2016 /** | 2307 /// A (kind, ID/name) pair used to construct a key path. |
| 2017 * A (kind, ID/name) pair used to construct a key path. | 2308 /// |
| 2018 * | 2309 /// If either name or ID is set, the element is complete. |
| 2019 * If either name or ID is set, the element is complete. | 2310 /// If neither is set, the element is incomplete. |
| 2020 * If neither is set, the element is incomplete. | |
| 2021 */ | |
| 2022 class GooglePrivacyDlpV2beta1PathElement { | 2311 class GooglePrivacyDlpV2beta1PathElement { |
| 2023 /** | 2312 /// The auto-allocated ID of the entity. |
| 2024 * The auto-allocated ID of the entity. | 2313 /// Never equal to zero. Values less than zero are discouraged and may not |
| 2025 * Never equal to zero. Values less than zero are discouraged and may not | 2314 /// be supported in the future. |
| 2026 * be supported in the future. | |
| 2027 */ | |
| 2028 core.String id; | 2315 core.String id; |
| 2029 /** | 2316 |
| 2030 * The kind of the entity. | 2317 /// The kind of the entity. |
| 2031 * A kind matching regex `__.*__` is reserved/read-only. | 2318 /// A kind matching regex `__.*__` is reserved/read-only. |
| 2032 * A kind must not contain more than 1500 bytes when UTF-8 encoded. | 2319 /// A kind must not contain more than 1500 bytes when UTF-8 encoded. |
| 2033 * Cannot be `""`. | 2320 /// Cannot be `""`. |
| 2034 */ | |
| 2035 core.String kind; | 2321 core.String kind; |
| 2036 /** | 2322 |
| 2037 * The name of the entity. | 2323 /// The name of the entity. |
| 2038 * A name matching regex `__.*__` is reserved/read-only. | 2324 /// A name matching regex `__.*__` is reserved/read-only. |
| 2039 * A name must not be more than 1500 bytes when UTF-8 encoded. | 2325 /// A name must not be more than 1500 bytes when UTF-8 encoded. |
| 2040 * Cannot be `""`. | 2326 /// Cannot be `""`. |
| 2041 */ | |
| 2042 core.String name; | 2327 core.String name; |
| 2043 | 2328 |
| 2044 GooglePrivacyDlpV2beta1PathElement(); | 2329 GooglePrivacyDlpV2beta1PathElement(); |
| 2045 | 2330 |
| 2046 GooglePrivacyDlpV2beta1PathElement.fromJson(core.Map _json) { | 2331 GooglePrivacyDlpV2beta1PathElement.fromJson(core.Map _json) { |
| 2047 if (_json.containsKey("id")) { | 2332 if (_json.containsKey("id")) { |
| 2048 id = _json["id"]; | 2333 id = _json["id"]; |
| 2049 } | 2334 } |
| 2050 if (_json.containsKey("kind")) { | 2335 if (_json.containsKey("kind")) { |
| 2051 kind = _json["kind"]; | 2336 kind = _json["kind"]; |
| 2052 } | 2337 } |
| 2053 if (_json.containsKey("name")) { | 2338 if (_json.containsKey("name")) { |
| 2054 name = _json["name"]; | 2339 name = _json["name"]; |
| 2055 } | 2340 } |
| 2056 } | 2341 } |
| 2057 | 2342 |
| 2058 core.Map<core.String, core.Object> toJson() { | 2343 core.Map<core.String, core.Object> toJson() { |
| 2059 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2344 final core.Map<core.String, core.Object> _json = |
| 2345 new core.Map<core.String, core.Object>(); |
| 2060 if (id != null) { | 2346 if (id != null) { |
| 2061 _json["id"] = id; | 2347 _json["id"] = id; |
| 2062 } | 2348 } |
| 2063 if (kind != null) { | 2349 if (kind != null) { |
| 2064 _json["kind"] = kind; | 2350 _json["kind"] = kind; |
| 2065 } | 2351 } |
| 2066 if (name != null) { | 2352 if (name != null) { |
| 2067 _json["name"] = name; | 2353 _json["name"] = name; |
| 2068 } | 2354 } |
| 2069 return _json; | 2355 return _json; |
| 2070 } | 2356 } |
| 2071 } | 2357 } |
| 2072 | 2358 |
| 2073 /** A representation of a Datastore property in a projection. */ | 2359 /// A representation of a Datastore property in a projection. |
| 2074 class GooglePrivacyDlpV2beta1Projection { | 2360 class GooglePrivacyDlpV2beta1Projection { |
| 2075 /** The property to project. */ | 2361 /// The property to project. |
| 2076 GooglePrivacyDlpV2beta1PropertyReference property; | 2362 GooglePrivacyDlpV2beta1PropertyReference property; |
| 2077 | 2363 |
| 2078 GooglePrivacyDlpV2beta1Projection(); | 2364 GooglePrivacyDlpV2beta1Projection(); |
| 2079 | 2365 |
| 2080 GooglePrivacyDlpV2beta1Projection.fromJson(core.Map _json) { | 2366 GooglePrivacyDlpV2beta1Projection.fromJson(core.Map _json) { |
| 2081 if (_json.containsKey("property")) { | 2367 if (_json.containsKey("property")) { |
| 2082 property = new GooglePrivacyDlpV2beta1PropertyReference.fromJson(_json["pr
operty"]); | 2368 property = new GooglePrivacyDlpV2beta1PropertyReference.fromJson( |
| 2369 _json["property"]); |
| 2083 } | 2370 } |
| 2084 } | 2371 } |
| 2085 | 2372 |
| 2086 core.Map<core.String, core.Object> toJson() { | 2373 core.Map<core.String, core.Object> toJson() { |
| 2087 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2374 final core.Map<core.String, core.Object> _json = |
| 2375 new core.Map<core.String, core.Object>(); |
| 2088 if (property != null) { | 2376 if (property != null) { |
| 2089 _json["property"] = (property).toJson(); | 2377 _json["property"] = (property).toJson(); |
| 2090 } | 2378 } |
| 2091 return _json; | 2379 return _json; |
| 2092 } | 2380 } |
| 2093 } | 2381 } |
| 2094 | 2382 |
| 2095 /** A reference to a property relative to the Datastore kind expressions. */ | 2383 /// A reference to a property relative to the Datastore kind expressions. |
| 2096 class GooglePrivacyDlpV2beta1PropertyReference { | 2384 class GooglePrivacyDlpV2beta1PropertyReference { |
| 2097 /** | 2385 /// The name of the property. |
| 2098 * The name of the property. | 2386 /// If name includes "."s, it may be interpreted as a property name path. |
| 2099 * If name includes "."s, it may be interpreted as a property name path. | |
| 2100 */ | |
| 2101 core.String name; | 2387 core.String name; |
| 2102 | 2388 |
| 2103 GooglePrivacyDlpV2beta1PropertyReference(); | 2389 GooglePrivacyDlpV2beta1PropertyReference(); |
| 2104 | 2390 |
| 2105 GooglePrivacyDlpV2beta1PropertyReference.fromJson(core.Map _json) { | 2391 GooglePrivacyDlpV2beta1PropertyReference.fromJson(core.Map _json) { |
| 2106 if (_json.containsKey("name")) { | 2392 if (_json.containsKey("name")) { |
| 2107 name = _json["name"]; | 2393 name = _json["name"]; |
| 2108 } | 2394 } |
| 2109 } | 2395 } |
| 2110 | 2396 |
| 2111 core.Map<core.String, core.Object> toJson() { | 2397 core.Map<core.String, core.Object> toJson() { |
| 2112 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2398 final core.Map<core.String, core.Object> _json = |
| 2399 new core.Map<core.String, core.Object>(); |
| 2113 if (name != null) { | 2400 if (name != null) { |
| 2114 _json["name"] = name; | 2401 _json["name"] = name; |
| 2115 } | 2402 } |
| 2116 return _json; | 2403 return _json; |
| 2117 } | 2404 } |
| 2118 } | 2405 } |
| 2119 | 2406 |
| 2120 /** Generic half-open interval [start, end) */ | 2407 /// Generic half-open interval [start, end) |
| 2121 class GooglePrivacyDlpV2beta1Range { | 2408 class GooglePrivacyDlpV2beta1Range { |
| 2122 /** Index of the last character of the range (exclusive). */ | 2409 /// Index of the last character of the range (exclusive). |
| 2123 core.String end; | 2410 core.String end; |
| 2124 /** Index of the first character of the range (inclusive). */ | 2411 |
| 2412 /// Index of the first character of the range (inclusive). |
| 2125 core.String start; | 2413 core.String start; |
| 2126 | 2414 |
| 2127 GooglePrivacyDlpV2beta1Range(); | 2415 GooglePrivacyDlpV2beta1Range(); |
| 2128 | 2416 |
| 2129 GooglePrivacyDlpV2beta1Range.fromJson(core.Map _json) { | 2417 GooglePrivacyDlpV2beta1Range.fromJson(core.Map _json) { |
| 2130 if (_json.containsKey("end")) { | 2418 if (_json.containsKey("end")) { |
| 2131 end = _json["end"]; | 2419 end = _json["end"]; |
| 2132 } | 2420 } |
| 2133 if (_json.containsKey("start")) { | 2421 if (_json.containsKey("start")) { |
| 2134 start = _json["start"]; | 2422 start = _json["start"]; |
| 2135 } | 2423 } |
| 2136 } | 2424 } |
| 2137 | 2425 |
| 2138 core.Map<core.String, core.Object> toJson() { | 2426 core.Map<core.String, core.Object> toJson() { |
| 2139 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2427 final core.Map<core.String, core.Object> _json = |
| 2428 new core.Map<core.String, core.Object>(); |
| 2140 if (end != null) { | 2429 if (end != null) { |
| 2141 _json["end"] = end; | 2430 _json["end"] = end; |
| 2142 } | 2431 } |
| 2143 if (start != null) { | 2432 if (start != null) { |
| 2144 _json["start"] = start; | 2433 _json["start"] = start; |
| 2145 } | 2434 } |
| 2146 return _json; | 2435 return _json; |
| 2147 } | 2436 } |
| 2148 } | 2437 } |
| 2149 | 2438 |
| 2150 /** Message for a unique key indicating a record that contains a finding. */ | 2439 /// Message for a unique key indicating a record that contains a finding. |
| 2151 class GooglePrivacyDlpV2beta1RecordKey { | 2440 class GooglePrivacyDlpV2beta1RecordKey { |
| 2152 GooglePrivacyDlpV2beta1CloudStorageKey cloudStorageKey; | 2441 GooglePrivacyDlpV2beta1CloudStorageKey cloudStorageKey; |
| 2153 GooglePrivacyDlpV2beta1DatastoreKey datastoreKey; | 2442 GooglePrivacyDlpV2beta1DatastoreKey datastoreKey; |
| 2154 | 2443 |
| 2155 GooglePrivacyDlpV2beta1RecordKey(); | 2444 GooglePrivacyDlpV2beta1RecordKey(); |
| 2156 | 2445 |
| 2157 GooglePrivacyDlpV2beta1RecordKey.fromJson(core.Map _json) { | 2446 GooglePrivacyDlpV2beta1RecordKey.fromJson(core.Map _json) { |
| 2158 if (_json.containsKey("cloudStorageKey")) { | 2447 if (_json.containsKey("cloudStorageKey")) { |
| 2159 cloudStorageKey = new GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(_jso
n["cloudStorageKey"]); | 2448 cloudStorageKey = new GooglePrivacyDlpV2beta1CloudStorageKey.fromJson( |
| 2449 _json["cloudStorageKey"]); |
| 2160 } | 2450 } |
| 2161 if (_json.containsKey("datastoreKey")) { | 2451 if (_json.containsKey("datastoreKey")) { |
| 2162 datastoreKey = new GooglePrivacyDlpV2beta1DatastoreKey.fromJson(_json["dat
astoreKey"]); | 2452 datastoreKey = new GooglePrivacyDlpV2beta1DatastoreKey.fromJson( |
| 2453 _json["datastoreKey"]); |
| 2163 } | 2454 } |
| 2164 } | 2455 } |
| 2165 | 2456 |
| 2166 core.Map<core.String, core.Object> toJson() { | 2457 core.Map<core.String, core.Object> toJson() { |
| 2167 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2458 final core.Map<core.String, core.Object> _json = |
| 2459 new core.Map<core.String, core.Object>(); |
| 2168 if (cloudStorageKey != null) { | 2460 if (cloudStorageKey != null) { |
| 2169 _json["cloudStorageKey"] = (cloudStorageKey).toJson(); | 2461 _json["cloudStorageKey"] = (cloudStorageKey).toJson(); |
| 2170 } | 2462 } |
| 2171 if (datastoreKey != null) { | 2463 if (datastoreKey != null) { |
| 2172 _json["datastoreKey"] = (datastoreKey).toJson(); | 2464 _json["datastoreKey"] = (datastoreKey).toJson(); |
| 2173 } | 2465 } |
| 2174 return _json; | 2466 return _json; |
| 2175 } | 2467 } |
| 2176 } | 2468 } |
| 2177 | 2469 |
| 2178 /** | 2470 /// Request to search for potentially sensitive info in a list of items |
| 2179 * Request to search for potentially sensitive info in a list of items | 2471 /// and replace it with a default or provided content. |
| 2180 * and replace it with a default or provided content. | |
| 2181 */ | |
| 2182 class GooglePrivacyDlpV2beta1RedactContentRequest { | 2472 class GooglePrivacyDlpV2beta1RedactContentRequest { |
| 2183 /** The configuration for specifying what content to redact from images. */ | 2473 /// The configuration for specifying what content to redact from images. |
| 2184 core.List<GooglePrivacyDlpV2beta1ImageRedactionConfig> imageRedactionConfigs; | 2474 core.List<GooglePrivacyDlpV2beta1ImageRedactionConfig> imageRedactionConfigs; |
| 2185 /** Configuration for the inspector. */ | 2475 |
| 2476 /// Configuration for the inspector. |
| 2186 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; | 2477 GooglePrivacyDlpV2beta1InspectConfig inspectConfig; |
| 2187 /** The list of items to inspect. Up to 100 are allowed per request. */ | 2478 |
| 2479 /// The list of items to inspect. Up to 100 are allowed per request. |
| 2188 core.List<GooglePrivacyDlpV2beta1ContentItem> items; | 2480 core.List<GooglePrivacyDlpV2beta1ContentItem> items; |
| 2189 /** | 2481 |
| 2190 * The strings to replace findings text findings with. Must specify at least | 2482 /// The strings to replace findings text findings with. Must specify at least |
| 2191 * one of these or one ImageRedactionConfig if redacting images. | 2483 /// one of these or one ImageRedactionConfig if redacting images. |
| 2192 */ | |
| 2193 core.List<GooglePrivacyDlpV2beta1ReplaceConfig> replaceConfigs; | 2484 core.List<GooglePrivacyDlpV2beta1ReplaceConfig> replaceConfigs; |
| 2194 | 2485 |
| 2195 GooglePrivacyDlpV2beta1RedactContentRequest(); | 2486 GooglePrivacyDlpV2beta1RedactContentRequest(); |
| 2196 | 2487 |
| 2197 GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(core.Map _json) { | 2488 GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(core.Map _json) { |
| 2198 if (_json.containsKey("imageRedactionConfigs")) { | 2489 if (_json.containsKey("imageRedactionConfigs")) { |
| 2199 imageRedactionConfigs = _json["imageRedactionConfigs"].map((value) => new
GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(value)).toList(); | 2490 imageRedactionConfigs = _json["imageRedactionConfigs"] |
| 2491 .map((value) => |
| 2492 new GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(value)) |
| 2493 .toList(); |
| 2200 } | 2494 } |
| 2201 if (_json.containsKey("inspectConfig")) { | 2495 if (_json.containsKey("inspectConfig")) { |
| 2202 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson(_json["i
nspectConfig"]); | 2496 inspectConfig = new GooglePrivacyDlpV2beta1InspectConfig.fromJson( |
| 2497 _json["inspectConfig"]); |
| 2203 } | 2498 } |
| 2204 if (_json.containsKey("items")) { | 2499 if (_json.containsKey("items")) { |
| 2205 items = _json["items"].map((value) => new GooglePrivacyDlpV2beta1ContentIt
em.fromJson(value)).toList(); | 2500 items = _json["items"] |
| 2501 .map( |
| 2502 (value) => new GooglePrivacyDlpV2beta1ContentItem.fromJson(value)) |
| 2503 .toList(); |
| 2206 } | 2504 } |
| 2207 if (_json.containsKey("replaceConfigs")) { | 2505 if (_json.containsKey("replaceConfigs")) { |
| 2208 replaceConfigs = _json["replaceConfigs"].map((value) => new GooglePrivacyD
lpV2beta1ReplaceConfig.fromJson(value)).toList(); | 2506 replaceConfigs = _json["replaceConfigs"] |
| 2507 .map((value) => |
| 2508 new GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(value)) |
| 2509 .toList(); |
| 2209 } | 2510 } |
| 2210 } | 2511 } |
| 2211 | 2512 |
| 2212 core.Map<core.String, core.Object> toJson() { | 2513 core.Map<core.String, core.Object> toJson() { |
| 2213 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2514 final core.Map<core.String, core.Object> _json = |
| 2515 new core.Map<core.String, core.Object>(); |
| 2214 if (imageRedactionConfigs != null) { | 2516 if (imageRedactionConfigs != null) { |
| 2215 _json["imageRedactionConfigs"] = imageRedactionConfigs.map((value) => (val
ue).toJson()).toList(); | 2517 _json["imageRedactionConfigs"] = |
| 2518 imageRedactionConfigs.map((value) => (value).toJson()).toList(); |
| 2216 } | 2519 } |
| 2217 if (inspectConfig != null) { | 2520 if (inspectConfig != null) { |
| 2218 _json["inspectConfig"] = (inspectConfig).toJson(); | 2521 _json["inspectConfig"] = (inspectConfig).toJson(); |
| 2219 } | 2522 } |
| 2220 if (items != null) { | 2523 if (items != null) { |
| 2221 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2524 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2222 } | 2525 } |
| 2223 if (replaceConfigs != null) { | 2526 if (replaceConfigs != null) { |
| 2224 _json["replaceConfigs"] = replaceConfigs.map((value) => (value).toJson()).
toList(); | 2527 _json["replaceConfigs"] = |
| 2528 replaceConfigs.map((value) => (value).toJson()).toList(); |
| 2225 } | 2529 } |
| 2226 return _json; | 2530 return _json; |
| 2227 } | 2531 } |
| 2228 } | 2532 } |
| 2229 | 2533 |
| 2230 /** Results of redacting a list of items. */ | 2534 /// Results of redacting a list of items. |
| 2231 class GooglePrivacyDlpV2beta1RedactContentResponse { | 2535 class GooglePrivacyDlpV2beta1RedactContentResponse { |
| 2232 /** The redacted content. */ | 2536 /// The redacted content. |
| 2233 core.List<GooglePrivacyDlpV2beta1ContentItem> items; | 2537 core.List<GooglePrivacyDlpV2beta1ContentItem> items; |
| 2234 | 2538 |
| 2235 GooglePrivacyDlpV2beta1RedactContentResponse(); | 2539 GooglePrivacyDlpV2beta1RedactContentResponse(); |
| 2236 | 2540 |
| 2237 GooglePrivacyDlpV2beta1RedactContentResponse.fromJson(core.Map _json) { | 2541 GooglePrivacyDlpV2beta1RedactContentResponse.fromJson(core.Map _json) { |
| 2238 if (_json.containsKey("items")) { | 2542 if (_json.containsKey("items")) { |
| 2239 items = _json["items"].map((value) => new GooglePrivacyDlpV2beta1ContentIt
em.fromJson(value)).toList(); | 2543 items = _json["items"] |
| 2544 .map( |
| 2545 (value) => new GooglePrivacyDlpV2beta1ContentItem.fromJson(value)) |
| 2546 .toList(); |
| 2240 } | 2547 } |
| 2241 } | 2548 } |
| 2242 | 2549 |
| 2243 core.Map<core.String, core.Object> toJson() { | 2550 core.Map<core.String, core.Object> toJson() { |
| 2244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2551 final core.Map<core.String, core.Object> _json = |
| 2552 new core.Map<core.String, core.Object>(); |
| 2245 if (items != null) { | 2553 if (items != null) { |
| 2246 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2554 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2247 } | 2555 } |
| 2248 return _json; | 2556 return _json; |
| 2249 } | 2557 } |
| 2250 } | 2558 } |
| 2251 | 2559 |
| 2252 class GooglePrivacyDlpV2beta1ReplaceConfig { | 2560 class GooglePrivacyDlpV2beta1ReplaceConfig { |
| 2253 /** | 2561 /// Type of information to replace. Only one ReplaceConfig per info_type |
| 2254 * Type of information to replace. Only one ReplaceConfig per info_type | 2562 /// should be provided. If ReplaceConfig does not have an info_type, the DLP |
| 2255 * should be provided. If ReplaceConfig does not have an info_type, the DLP | 2563 /// API matches it against all info_types that are found but not specified in |
| 2256 * API matches it against all info_types that are found but not specified in | 2564 /// another ReplaceConfig. |
| 2257 * another ReplaceConfig. | |
| 2258 */ | |
| 2259 GooglePrivacyDlpV2beta1InfoType infoType; | 2565 GooglePrivacyDlpV2beta1InfoType infoType; |
| 2260 /** Content replacing sensitive information of given type. Max 256 chars. */ | 2566 |
| 2567 /// Content replacing sensitive information of given type. Max 256 chars. |
| 2261 core.String replaceWith; | 2568 core.String replaceWith; |
| 2262 | 2569 |
| 2263 GooglePrivacyDlpV2beta1ReplaceConfig(); | 2570 GooglePrivacyDlpV2beta1ReplaceConfig(); |
| 2264 | 2571 |
| 2265 GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(core.Map _json) { | 2572 GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(core.Map _json) { |
| 2266 if (_json.containsKey("infoType")) { | 2573 if (_json.containsKey("infoType")) { |
| 2267 infoType = new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"])
; | 2574 infoType = |
| 2575 new GooglePrivacyDlpV2beta1InfoType.fromJson(_json["infoType"]); |
| 2268 } | 2576 } |
| 2269 if (_json.containsKey("replaceWith")) { | 2577 if (_json.containsKey("replaceWith")) { |
| 2270 replaceWith = _json["replaceWith"]; | 2578 replaceWith = _json["replaceWith"]; |
| 2271 } | 2579 } |
| 2272 } | 2580 } |
| 2273 | 2581 |
| 2274 core.Map<core.String, core.Object> toJson() { | 2582 core.Map<core.String, core.Object> toJson() { |
| 2275 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2583 final core.Map<core.String, core.Object> _json = |
| 2584 new core.Map<core.String, core.Object>(); |
| 2276 if (infoType != null) { | 2585 if (infoType != null) { |
| 2277 _json["infoType"] = (infoType).toJson(); | 2586 _json["infoType"] = (infoType).toJson(); |
| 2278 } | 2587 } |
| 2279 if (replaceWith != null) { | 2588 if (replaceWith != null) { |
| 2280 _json["replaceWith"] = replaceWith; | 2589 _json["replaceWith"] = replaceWith; |
| 2281 } | 2590 } |
| 2282 return _json; | 2591 return _json; |
| 2283 } | 2592 } |
| 2284 } | 2593 } |
| 2285 | 2594 |
| 2286 class GooglePrivacyDlpV2beta1Row { | 2595 class GooglePrivacyDlpV2beta1Row { |
| 2287 core.List<GooglePrivacyDlpV2beta1Value> values; | 2596 core.List<GooglePrivacyDlpV2beta1Value> values; |
| 2288 | 2597 |
| 2289 GooglePrivacyDlpV2beta1Row(); | 2598 GooglePrivacyDlpV2beta1Row(); |
| 2290 | 2599 |
| 2291 GooglePrivacyDlpV2beta1Row.fromJson(core.Map _json) { | 2600 GooglePrivacyDlpV2beta1Row.fromJson(core.Map _json) { |
| 2292 if (_json.containsKey("values")) { | 2601 if (_json.containsKey("values")) { |
| 2293 values = _json["values"].map((value) => new GooglePrivacyDlpV2beta1Value.f
romJson(value)).toList(); | 2602 values = _json["values"] |
| 2603 .map((value) => new GooglePrivacyDlpV2beta1Value.fromJson(value)) |
| 2604 .toList(); |
| 2294 } | 2605 } |
| 2295 } | 2606 } |
| 2296 | 2607 |
| 2297 core.Map<core.String, core.Object> toJson() { | 2608 core.Map<core.String, core.Object> toJson() { |
| 2298 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2609 final core.Map<core.String, core.Object> _json = |
| 2610 new core.Map<core.String, core.Object>(); |
| 2299 if (values != null) { | 2611 if (values != null) { |
| 2300 _json["values"] = values.map((value) => (value).toJson()).toList(); | 2612 _json["values"] = values.map((value) => (value).toJson()).toList(); |
| 2301 } | 2613 } |
| 2302 return _json; | 2614 return _json; |
| 2303 } | 2615 } |
| 2304 } | 2616 } |
| 2305 | 2617 |
| 2306 /** Shared message indicating Cloud storage type. */ | 2618 /// Shared message indicating Cloud storage type. |
| 2307 class GooglePrivacyDlpV2beta1StorageConfig { | 2619 class GooglePrivacyDlpV2beta1StorageConfig { |
| 2308 /** BigQuery options specification. */ | 2620 /// BigQuery options specification. |
| 2309 GooglePrivacyDlpV2beta1BigQueryOptions bigQueryOptions; | 2621 GooglePrivacyDlpV2beta1BigQueryOptions bigQueryOptions; |
| 2310 /** Google Cloud Storage options specification. */ | 2622 |
| 2623 /// Google Cloud Storage options specification. |
| 2311 GooglePrivacyDlpV2beta1CloudStorageOptions cloudStorageOptions; | 2624 GooglePrivacyDlpV2beta1CloudStorageOptions cloudStorageOptions; |
| 2312 /** Google Cloud Datastore options specification. */ | 2625 |
| 2626 /// Google Cloud Datastore options specification. |
| 2313 GooglePrivacyDlpV2beta1DatastoreOptions datastoreOptions; | 2627 GooglePrivacyDlpV2beta1DatastoreOptions datastoreOptions; |
| 2314 | 2628 |
| 2315 GooglePrivacyDlpV2beta1StorageConfig(); | 2629 GooglePrivacyDlpV2beta1StorageConfig(); |
| 2316 | 2630 |
| 2317 GooglePrivacyDlpV2beta1StorageConfig.fromJson(core.Map _json) { | 2631 GooglePrivacyDlpV2beta1StorageConfig.fromJson(core.Map _json) { |
| 2318 if (_json.containsKey("bigQueryOptions")) { | 2632 if (_json.containsKey("bigQueryOptions")) { |
| 2319 bigQueryOptions = new GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(_jso
n["bigQueryOptions"]); | 2633 bigQueryOptions = new GooglePrivacyDlpV2beta1BigQueryOptions.fromJson( |
| 2634 _json["bigQueryOptions"]); |
| 2320 } | 2635 } |
| 2321 if (_json.containsKey("cloudStorageOptions")) { | 2636 if (_json.containsKey("cloudStorageOptions")) { |
| 2322 cloudStorageOptions = new GooglePrivacyDlpV2beta1CloudStorageOptions.fromJ
son(_json["cloudStorageOptions"]); | 2637 cloudStorageOptions = |
| 2638 new GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson( |
| 2639 _json["cloudStorageOptions"]); |
| 2323 } | 2640 } |
| 2324 if (_json.containsKey("datastoreOptions")) { | 2641 if (_json.containsKey("datastoreOptions")) { |
| 2325 datastoreOptions = new GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(_j
son["datastoreOptions"]); | 2642 datastoreOptions = new GooglePrivacyDlpV2beta1DatastoreOptions.fromJson( |
| 2643 _json["datastoreOptions"]); |
| 2326 } | 2644 } |
| 2327 } | 2645 } |
| 2328 | 2646 |
| 2329 core.Map<core.String, core.Object> toJson() { | 2647 core.Map<core.String, core.Object> toJson() { |
| 2330 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2648 final core.Map<core.String, core.Object> _json = |
| 2649 new core.Map<core.String, core.Object>(); |
| 2331 if (bigQueryOptions != null) { | 2650 if (bigQueryOptions != null) { |
| 2332 _json["bigQueryOptions"] = (bigQueryOptions).toJson(); | 2651 _json["bigQueryOptions"] = (bigQueryOptions).toJson(); |
| 2333 } | 2652 } |
| 2334 if (cloudStorageOptions != null) { | 2653 if (cloudStorageOptions != null) { |
| 2335 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); | 2654 _json["cloudStorageOptions"] = (cloudStorageOptions).toJson(); |
| 2336 } | 2655 } |
| 2337 if (datastoreOptions != null) { | 2656 if (datastoreOptions != null) { |
| 2338 _json["datastoreOptions"] = (datastoreOptions).toJson(); | 2657 _json["datastoreOptions"] = (datastoreOptions).toJson(); |
| 2339 } | 2658 } |
| 2340 return _json; | 2659 return _json; |
| 2341 } | 2660 } |
| 2342 } | 2661 } |
| 2343 | 2662 |
| 2344 /** | 2663 /// Structured content to inspect. Up to 50,000 `Value`s per request allowed. |
| 2345 * Structured content to inspect. Up to 50,000 `Value`s per request allowed. | |
| 2346 */ | |
| 2347 class GooglePrivacyDlpV2beta1Table { | 2664 class GooglePrivacyDlpV2beta1Table { |
| 2348 core.List<GooglePrivacyDlpV2beta1FieldId> headers; | 2665 core.List<GooglePrivacyDlpV2beta1FieldId> headers; |
| 2349 core.List<GooglePrivacyDlpV2beta1Row> rows; | 2666 core.List<GooglePrivacyDlpV2beta1Row> rows; |
| 2350 | 2667 |
| 2351 GooglePrivacyDlpV2beta1Table(); | 2668 GooglePrivacyDlpV2beta1Table(); |
| 2352 | 2669 |
| 2353 GooglePrivacyDlpV2beta1Table.fromJson(core.Map _json) { | 2670 GooglePrivacyDlpV2beta1Table.fromJson(core.Map _json) { |
| 2354 if (_json.containsKey("headers")) { | 2671 if (_json.containsKey("headers")) { |
| 2355 headers = _json["headers"].map((value) => new GooglePrivacyDlpV2beta1Field
Id.fromJson(value)).toList(); | 2672 headers = _json["headers"] |
| 2673 .map((value) => new GooglePrivacyDlpV2beta1FieldId.fromJson(value)) |
| 2674 .toList(); |
| 2356 } | 2675 } |
| 2357 if (_json.containsKey("rows")) { | 2676 if (_json.containsKey("rows")) { |
| 2358 rows = _json["rows"].map((value) => new GooglePrivacyDlpV2beta1Row.fromJso
n(value)).toList(); | 2677 rows = _json["rows"] |
| 2678 .map((value) => new GooglePrivacyDlpV2beta1Row.fromJson(value)) |
| 2679 .toList(); |
| 2359 } | 2680 } |
| 2360 } | 2681 } |
| 2361 | 2682 |
| 2362 core.Map<core.String, core.Object> toJson() { | 2683 core.Map<core.String, core.Object> toJson() { |
| 2363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2684 final core.Map<core.String, core.Object> _json = |
| 2685 new core.Map<core.String, core.Object>(); |
| 2364 if (headers != null) { | 2686 if (headers != null) { |
| 2365 _json["headers"] = headers.map((value) => (value).toJson()).toList(); | 2687 _json["headers"] = headers.map((value) => (value).toJson()).toList(); |
| 2366 } | 2688 } |
| 2367 if (rows != null) { | 2689 if (rows != null) { |
| 2368 _json["rows"] = rows.map((value) => (value).toJson()).toList(); | 2690 _json["rows"] = rows.map((value) => (value).toJson()).toList(); |
| 2369 } | 2691 } |
| 2370 return _json; | 2692 return _json; |
| 2371 } | 2693 } |
| 2372 } | 2694 } |
| 2373 | 2695 |
| 2374 /** Location of a finding within a `ContentItem.Table`. */ | 2696 /// Location of a finding within a `ContentItem.Table`. |
| 2375 class GooglePrivacyDlpV2beta1TableLocation { | 2697 class GooglePrivacyDlpV2beta1TableLocation { |
| 2376 /** The zero-based index of the row where the finding is located. */ | 2698 /// The zero-based index of the row where the finding is located. |
| 2377 core.String rowIndex; | 2699 core.String rowIndex; |
| 2378 | 2700 |
| 2379 GooglePrivacyDlpV2beta1TableLocation(); | 2701 GooglePrivacyDlpV2beta1TableLocation(); |
| 2380 | 2702 |
| 2381 GooglePrivacyDlpV2beta1TableLocation.fromJson(core.Map _json) { | 2703 GooglePrivacyDlpV2beta1TableLocation.fromJson(core.Map _json) { |
| 2382 if (_json.containsKey("rowIndex")) { | 2704 if (_json.containsKey("rowIndex")) { |
| 2383 rowIndex = _json["rowIndex"]; | 2705 rowIndex = _json["rowIndex"]; |
| 2384 } | 2706 } |
| 2385 } | 2707 } |
| 2386 | 2708 |
| 2387 core.Map<core.String, core.Object> toJson() { | 2709 core.Map<core.String, core.Object> toJson() { |
| 2388 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2710 final core.Map<core.String, core.Object> _json = |
| 2711 new core.Map<core.String, core.Object>(); |
| 2389 if (rowIndex != null) { | 2712 if (rowIndex != null) { |
| 2390 _json["rowIndex"] = rowIndex; | 2713 _json["rowIndex"] = rowIndex; |
| 2391 } | 2714 } |
| 2392 return _json; | 2715 return _json; |
| 2393 } | 2716 } |
| 2394 } | 2717 } |
| 2395 | 2718 |
| 2396 /** Set of primitive values supported by the system. */ | 2719 /// Set of primitive values supported by the system. |
| 2397 class GooglePrivacyDlpV2beta1Value { | 2720 class GooglePrivacyDlpV2beta1Value { |
| 2398 core.bool booleanValue; | 2721 core.bool booleanValue; |
| 2399 GoogleTypeDate dateValue; | 2722 GoogleTypeDate dateValue; |
| 2400 core.double floatValue; | 2723 core.double floatValue; |
| 2401 core.String integerValue; | 2724 core.String integerValue; |
| 2402 core.String stringValue; | 2725 core.String stringValue; |
| 2403 GoogleTypeTimeOfDay timeValue; | 2726 GoogleTypeTimeOfDay timeValue; |
| 2404 core.String timestampValue; | 2727 core.String timestampValue; |
| 2405 | 2728 |
| 2406 GooglePrivacyDlpV2beta1Value(); | 2729 GooglePrivacyDlpV2beta1Value(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2423 } | 2746 } |
| 2424 if (_json.containsKey("timeValue")) { | 2747 if (_json.containsKey("timeValue")) { |
| 2425 timeValue = new GoogleTypeTimeOfDay.fromJson(_json["timeValue"]); | 2748 timeValue = new GoogleTypeTimeOfDay.fromJson(_json["timeValue"]); |
| 2426 } | 2749 } |
| 2427 if (_json.containsKey("timestampValue")) { | 2750 if (_json.containsKey("timestampValue")) { |
| 2428 timestampValue = _json["timestampValue"]; | 2751 timestampValue = _json["timestampValue"]; |
| 2429 } | 2752 } |
| 2430 } | 2753 } |
| 2431 | 2754 |
| 2432 core.Map<core.String, core.Object> toJson() { | 2755 core.Map<core.String, core.Object> toJson() { |
| 2433 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2756 final core.Map<core.String, core.Object> _json = |
| 2757 new core.Map<core.String, core.Object>(); |
| 2434 if (booleanValue != null) { | 2758 if (booleanValue != null) { |
| 2435 _json["booleanValue"] = booleanValue; | 2759 _json["booleanValue"] = booleanValue; |
| 2436 } | 2760 } |
| 2437 if (dateValue != null) { | 2761 if (dateValue != null) { |
| 2438 _json["dateValue"] = (dateValue).toJson(); | 2762 _json["dateValue"] = (dateValue).toJson(); |
| 2439 } | 2763 } |
| 2440 if (floatValue != null) { | 2764 if (floatValue != null) { |
| 2441 _json["floatValue"] = floatValue; | 2765 _json["floatValue"] = floatValue; |
| 2442 } | 2766 } |
| 2443 if (integerValue != null) { | 2767 if (integerValue != null) { |
| 2444 _json["integerValue"] = integerValue; | 2768 _json["integerValue"] = integerValue; |
| 2445 } | 2769 } |
| 2446 if (stringValue != null) { | 2770 if (stringValue != null) { |
| 2447 _json["stringValue"] = stringValue; | 2771 _json["stringValue"] = stringValue; |
| 2448 } | 2772 } |
| 2449 if (timeValue != null) { | 2773 if (timeValue != null) { |
| 2450 _json["timeValue"] = (timeValue).toJson(); | 2774 _json["timeValue"] = (timeValue).toJson(); |
| 2451 } | 2775 } |
| 2452 if (timestampValue != null) { | 2776 if (timestampValue != null) { |
| 2453 _json["timestampValue"] = timestampValue; | 2777 _json["timestampValue"] = timestampValue; |
| 2454 } | 2778 } |
| 2455 return _json; | 2779 return _json; |
| 2456 } | 2780 } |
| 2457 } | 2781 } |
| 2458 | 2782 |
| 2459 /** | 2783 /// A generic empty message that you can re-use to avoid defining duplicated |
| 2460 * A generic empty message that you can re-use to avoid defining duplicated | 2784 /// empty messages in your APIs. A typical example is to use it as the request |
| 2461 * empty messages in your APIs. A typical example is to use it as the request | 2785 /// or the response type of an API method. For instance: |
| 2462 * or the response type of an API method. For instance: | 2786 /// |
| 2463 * | 2787 /// service Foo { |
| 2464 * service Foo { | 2788 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 2465 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 2789 /// } |
| 2466 * } | 2790 /// |
| 2467 * | 2791 /// The JSON representation for `Empty` is empty JSON object `{}`. |
| 2468 * The JSON representation for `Empty` is empty JSON object `{}`. | |
| 2469 */ | |
| 2470 class GoogleProtobufEmpty { | 2792 class GoogleProtobufEmpty { |
| 2471 | |
| 2472 GoogleProtobufEmpty(); | 2793 GoogleProtobufEmpty(); |
| 2473 | 2794 |
| 2474 GoogleProtobufEmpty.fromJson(core.Map _json) { | 2795 GoogleProtobufEmpty.fromJson(core.Map _json) {} |
| 2475 } | |
| 2476 | 2796 |
| 2477 core.Map<core.String, core.Object> toJson() { | 2797 core.Map<core.String, core.Object> toJson() { |
| 2478 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2798 final core.Map<core.String, core.Object> _json = |
| 2799 new core.Map<core.String, core.Object>(); |
| 2479 return _json; | 2800 return _json; |
| 2480 } | 2801 } |
| 2481 } | 2802 } |
| 2482 | 2803 |
| 2483 /** | 2804 /// The `Status` type defines a logical error model that is suitable for |
| 2484 * The `Status` type defines a logical error model that is suitable for | 2805 /// different |
| 2485 * different | 2806 /// programming environments, including REST APIs and RPC APIs. It is used by |
| 2486 * programming environments, including REST APIs and RPC APIs. It is used by | 2807 /// [gRPC](https://github.com/grpc). The error model is designed to be: |
| 2487 * [gRPC](https://github.com/grpc). The error model is designed to be: | 2808 /// |
| 2488 * | 2809 /// - Simple to use and understand for most users |
| 2489 * - Simple to use and understand for most users | 2810 /// - Flexible enough to meet unexpected needs |
| 2490 * - Flexible enough to meet unexpected needs | 2811 /// |
| 2491 * | 2812 /// # Overview |
| 2492 * # Overview | 2813 /// |
| 2493 * | 2814 /// The `Status` message contains three pieces of data: error code, error |
| 2494 * The `Status` message contains three pieces of data: error code, error | 2815 /// message, |
| 2495 * message, | 2816 /// and error details. The error code should be an enum value of |
| 2496 * and error details. The error code should be an enum value of | 2817 /// google.rpc.Code, but it may accept additional error codes if needed. The |
| 2497 * google.rpc.Code, but it may accept additional error codes if needed. The | 2818 /// error message should be a developer-facing English message that helps |
| 2498 * error message should be a developer-facing English message that helps | 2819 /// developers *understand* and *resolve* the error. If a localized user-facing |
| 2499 * developers *understand* and *resolve* the error. If a localized user-facing | 2820 /// error message is needed, put the localized message in the error details or |
| 2500 * error message is needed, put the localized message in the error details or | 2821 /// localize it in the client. The optional error details may contain arbitrary |
| 2501 * localize it in the client. The optional error details may contain arbitrary | 2822 /// information about the error. There is a predefined set of error detail |
| 2502 * information about the error. There is a predefined set of error detail types | 2823 /// types |
| 2503 * in the package `google.rpc` that can be used for common error conditions. | 2824 /// in the package `google.rpc` that can be used for common error conditions. |
| 2504 * | 2825 /// |
| 2505 * # Language mapping | 2826 /// # Language mapping |
| 2506 * | 2827 /// |
| 2507 * The `Status` message is the logical representation of the error model, but it | 2828 /// The `Status` message is the logical representation of the error model, but |
| 2508 * is not necessarily the actual wire format. When the `Status` message is | 2829 /// it |
| 2509 * exposed in different client libraries and different wire protocols, it can be | 2830 /// is not necessarily the actual wire format. When the `Status` message is |
| 2510 * mapped differently. For example, it will likely be mapped to some exceptions | 2831 /// exposed in different client libraries and different wire protocols, it can |
| 2511 * in Java, but more likely mapped to some error codes in C. | 2832 /// be |
| 2512 * | 2833 /// mapped differently. For example, it will likely be mapped to some |
| 2513 * # Other uses | 2834 /// exceptions |
| 2514 * | 2835 /// in Java, but more likely mapped to some error codes in C. |
| 2515 * The error model and the `Status` message can be used in a variety of | 2836 /// |
| 2516 * environments, either with or without APIs, to provide a | 2837 /// # Other uses |
| 2517 * consistent developer experience across different environments. | 2838 /// |
| 2518 * | 2839 /// The error model and the `Status` message can be used in a variety of |
| 2519 * Example uses of this error model include: | 2840 /// environments, either with or without APIs, to provide a |
| 2520 * | 2841 /// consistent developer experience across different environments. |
| 2521 * - Partial errors. If a service needs to return partial errors to the client, | 2842 /// |
| 2522 * it may embed the `Status` in the normal response to indicate the partial | 2843 /// Example uses of this error model include: |
| 2523 * errors. | 2844 /// |
| 2524 * | 2845 /// - Partial errors. If a service needs to return partial errors to the |
| 2525 * - Workflow errors. A typical workflow has multiple steps. Each step may | 2846 /// client, |
| 2526 * have a `Status` message for error reporting. | 2847 /// it may embed the `Status` in the normal response to indicate the partial |
| 2527 * | 2848 /// errors. |
| 2528 * - Batch operations. If a client uses batch request and batch response, the | 2849 /// |
| 2529 * `Status` message should be used directly inside batch response, one for | 2850 /// - Workflow errors. A typical workflow has multiple steps. Each step may |
| 2530 * each error sub-response. | 2851 /// have a `Status` message for error reporting. |
| 2531 * | 2852 /// |
| 2532 * - Asynchronous operations. If an API call embeds asynchronous operation | 2853 /// - Batch operations. If a client uses batch request and batch response, the |
| 2533 * results in its response, the status of those operations should be | 2854 /// `Status` message should be used directly inside batch response, one for |
| 2534 * represented directly using the `Status` message. | 2855 /// each error sub-response. |
| 2535 * | 2856 /// |
| 2536 * - Logging. If some API errors are stored in logs, the message `Status` could | 2857 /// - Asynchronous operations. If an API call embeds asynchronous operation |
| 2537 * be used directly after any stripping needed for security/privacy reasons. | 2858 /// results in its response, the status of those operations should be |
| 2538 */ | 2859 /// represented directly using the `Status` message. |
| 2860 /// |
| 2861 /// - Logging. If some API errors are stored in logs, the message `Status` |
| 2862 /// could |
| 2863 /// be used directly after any stripping needed for security/privacy reasons. |
| 2539 class GoogleRpcStatus { | 2864 class GoogleRpcStatus { |
| 2540 /** The status code, which should be an enum value of google.rpc.Code. */ | 2865 /// The status code, which should be an enum value of google.rpc.Code. |
| 2541 core.int code; | 2866 core.int code; |
| 2542 /** | 2867 |
| 2543 * A list of messages that carry the error details. There is a common set of | 2868 /// A list of messages that carry the error details. There is a common set |
| 2544 * message types for APIs to use. | 2869 /// of |
| 2545 * | 2870 /// message types for APIs to use. |
| 2546 * The values for Object must be JSON objects. It can consist of `num`, | 2871 /// |
| 2547 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2872 /// The values for Object must be JSON objects. It can consist of `num`, |
| 2548 */ | 2873 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2549 core.List<core.Map<core.String, core.Object>> details; | 2874 core.List<core.Map<core.String, core.Object>> details; |
| 2550 /** | 2875 |
| 2551 * A developer-facing error message, which should be in English. Any | 2876 /// A developer-facing error message, which should be in English. Any |
| 2552 * user-facing error message should be localized and sent in the | 2877 /// user-facing error message should be localized and sent in the |
| 2553 * google.rpc.Status.details field, or localized by the client. | 2878 /// google.rpc.Status.details field, or localized by the client. |
| 2554 */ | |
| 2555 core.String message; | 2879 core.String message; |
| 2556 | 2880 |
| 2557 GoogleRpcStatus(); | 2881 GoogleRpcStatus(); |
| 2558 | 2882 |
| 2559 GoogleRpcStatus.fromJson(core.Map _json) { | 2883 GoogleRpcStatus.fromJson(core.Map _json) { |
| 2560 if (_json.containsKey("code")) { | 2884 if (_json.containsKey("code")) { |
| 2561 code = _json["code"]; | 2885 code = _json["code"]; |
| 2562 } | 2886 } |
| 2563 if (_json.containsKey("details")) { | 2887 if (_json.containsKey("details")) { |
| 2564 details = _json["details"]; | 2888 details = _json["details"]; |
| 2565 } | 2889 } |
| 2566 if (_json.containsKey("message")) { | 2890 if (_json.containsKey("message")) { |
| 2567 message = _json["message"]; | 2891 message = _json["message"]; |
| 2568 } | 2892 } |
| 2569 } | 2893 } |
| 2570 | 2894 |
| 2571 core.Map<core.String, core.Object> toJson() { | 2895 core.Map<core.String, core.Object> toJson() { |
| 2572 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2896 final core.Map<core.String, core.Object> _json = |
| 2897 new core.Map<core.String, core.Object>(); |
| 2573 if (code != null) { | 2898 if (code != null) { |
| 2574 _json["code"] = code; | 2899 _json["code"] = code; |
| 2575 } | 2900 } |
| 2576 if (details != null) { | 2901 if (details != null) { |
| 2577 _json["details"] = details; | 2902 _json["details"] = details; |
| 2578 } | 2903 } |
| 2579 if (message != null) { | 2904 if (message != null) { |
| 2580 _json["message"] = message; | 2905 _json["message"] = message; |
| 2581 } | 2906 } |
| 2582 return _json; | 2907 return _json; |
| 2583 } | 2908 } |
| 2584 } | 2909 } |
| 2585 | 2910 |
| 2586 /** | 2911 /// Represents a whole calendar date, e.g. date of birth. The time of day and |
| 2587 * Represents a whole calendar date, e.g. date of birth. The time of day and | 2912 /// time zone are either specified elsewhere or are not significant. The date |
| 2588 * time zone are either specified elsewhere or are not significant. The date | 2913 /// is relative to the Proleptic Gregorian Calendar. The day may be 0 to |
| 2589 * is relative to the Proleptic Gregorian Calendar. The day may be 0 to | 2914 /// represent a year and month where the day is not significant, e.g. credit |
| 2590 * represent a year and month where the day is not significant, e.g. credit card | 2915 /// card |
| 2591 * expiration date. The year may be 0 to represent a month and day independent | 2916 /// expiration date. The year may be 0 to represent a month and day independent |
| 2592 * of year, e.g. anniversary date. Related types are google.type.TimeOfDay | 2917 /// of year, e.g. anniversary date. Related types are google.type.TimeOfDay |
| 2593 * and `google.protobuf.Timestamp`. | 2918 /// and `google.protobuf.Timestamp`. |
| 2594 */ | |
| 2595 class GoogleTypeDate { | 2919 class GoogleTypeDate { |
| 2596 /** | 2920 /// Day of month. Must be from 1 to 31 and valid for the year and month, or 0 |
| 2597 * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 | 2921 /// if specifying a year/month where the day is not significant. |
| 2598 * if specifying a year/month where the day is not significant. | |
| 2599 */ | |
| 2600 core.int day; | 2922 core.int day; |
| 2601 /** Month of year. Must be from 1 to 12. */ | 2923 |
| 2924 /// Month of year. Must be from 1 to 12. |
| 2602 core.int month; | 2925 core.int month; |
| 2603 /** | 2926 |
| 2604 * Year of date. Must be from 1 to 9999, or 0 if specifying a date without | 2927 /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without |
| 2605 * a year. | 2928 /// a year. |
| 2606 */ | |
| 2607 core.int year; | 2929 core.int year; |
| 2608 | 2930 |
| 2609 GoogleTypeDate(); | 2931 GoogleTypeDate(); |
| 2610 | 2932 |
| 2611 GoogleTypeDate.fromJson(core.Map _json) { | 2933 GoogleTypeDate.fromJson(core.Map _json) { |
| 2612 if (_json.containsKey("day")) { | 2934 if (_json.containsKey("day")) { |
| 2613 day = _json["day"]; | 2935 day = _json["day"]; |
| 2614 } | 2936 } |
| 2615 if (_json.containsKey("month")) { | 2937 if (_json.containsKey("month")) { |
| 2616 month = _json["month"]; | 2938 month = _json["month"]; |
| 2617 } | 2939 } |
| 2618 if (_json.containsKey("year")) { | 2940 if (_json.containsKey("year")) { |
| 2619 year = _json["year"]; | 2941 year = _json["year"]; |
| 2620 } | 2942 } |
| 2621 } | 2943 } |
| 2622 | 2944 |
| 2623 core.Map<core.String, core.Object> toJson() { | 2945 core.Map<core.String, core.Object> toJson() { |
| 2624 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2946 final core.Map<core.String, core.Object> _json = |
| 2947 new core.Map<core.String, core.Object>(); |
| 2625 if (day != null) { | 2948 if (day != null) { |
| 2626 _json["day"] = day; | 2949 _json["day"] = day; |
| 2627 } | 2950 } |
| 2628 if (month != null) { | 2951 if (month != null) { |
| 2629 _json["month"] = month; | 2952 _json["month"] = month; |
| 2630 } | 2953 } |
| 2631 if (year != null) { | 2954 if (year != null) { |
| 2632 _json["year"] = year; | 2955 _json["year"] = year; |
| 2633 } | 2956 } |
| 2634 return _json; | 2957 return _json; |
| 2635 } | 2958 } |
| 2636 } | 2959 } |
| 2637 | 2960 |
| 2638 /** | 2961 /// Represents a time of day. The date and time zone are either not significant |
| 2639 * Represents a time of day. The date and time zone are either not significant | 2962 /// or are specified elsewhere. An API may choose to allow leap seconds. |
| 2640 * or are specified elsewhere. An API may choose to allow leap seconds. Related | 2963 /// Related |
| 2641 * types are google.type.Date and `google.protobuf.Timestamp`. | 2964 /// types are google.type.Date and `google.protobuf.Timestamp`. |
| 2642 */ | |
| 2643 class GoogleTypeTimeOfDay { | 2965 class GoogleTypeTimeOfDay { |
| 2644 /** | 2966 /// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose |
| 2645 * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose | 2967 /// to allow the value "24:00:00" for scenarios like business closing time. |
| 2646 * to allow the value "24:00:00" for scenarios like business closing time. | |
| 2647 */ | |
| 2648 core.int hours; | 2968 core.int hours; |
| 2649 /** Minutes of hour of day. Must be from 0 to 59. */ | 2969 |
| 2970 /// Minutes of hour of day. Must be from 0 to 59. |
| 2650 core.int minutes; | 2971 core.int minutes; |
| 2651 /** Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */ | 2972 |
| 2973 /// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
| 2652 core.int nanos; | 2974 core.int nanos; |
| 2653 /** | 2975 |
| 2654 * Seconds of minutes of the time. Must normally be from 0 to 59. An API may | 2976 /// Seconds of minutes of the time. Must normally be from 0 to 59. An API may |
| 2655 * allow the value 60 if it allows leap-seconds. | 2977 /// allow the value 60 if it allows leap-seconds. |
| 2656 */ | |
| 2657 core.int seconds; | 2978 core.int seconds; |
| 2658 | 2979 |
| 2659 GoogleTypeTimeOfDay(); | 2980 GoogleTypeTimeOfDay(); |
| 2660 | 2981 |
| 2661 GoogleTypeTimeOfDay.fromJson(core.Map _json) { | 2982 GoogleTypeTimeOfDay.fromJson(core.Map _json) { |
| 2662 if (_json.containsKey("hours")) { | 2983 if (_json.containsKey("hours")) { |
| 2663 hours = _json["hours"]; | 2984 hours = _json["hours"]; |
| 2664 } | 2985 } |
| 2665 if (_json.containsKey("minutes")) { | 2986 if (_json.containsKey("minutes")) { |
| 2666 minutes = _json["minutes"]; | 2987 minutes = _json["minutes"]; |
| 2667 } | 2988 } |
| 2668 if (_json.containsKey("nanos")) { | 2989 if (_json.containsKey("nanos")) { |
| 2669 nanos = _json["nanos"]; | 2990 nanos = _json["nanos"]; |
| 2670 } | 2991 } |
| 2671 if (_json.containsKey("seconds")) { | 2992 if (_json.containsKey("seconds")) { |
| 2672 seconds = _json["seconds"]; | 2993 seconds = _json["seconds"]; |
| 2673 } | 2994 } |
| 2674 } | 2995 } |
| 2675 | 2996 |
| 2676 core.Map<core.String, core.Object> toJson() { | 2997 core.Map<core.String, core.Object> toJson() { |
| 2677 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2998 final core.Map<core.String, core.Object> _json = |
| 2999 new core.Map<core.String, core.Object>(); |
| 2678 if (hours != null) { | 3000 if (hours != null) { |
| 2679 _json["hours"] = hours; | 3001 _json["hours"] = hours; |
| 2680 } | 3002 } |
| 2681 if (minutes != null) { | 3003 if (minutes != null) { |
| 2682 _json["minutes"] = minutes; | 3004 _json["minutes"] = minutes; |
| 2683 } | 3005 } |
| 2684 if (nanos != null) { | 3006 if (nanos != null) { |
| 2685 _json["nanos"] = nanos; | 3007 _json["nanos"] = nanos; |
| 2686 } | 3008 } |
| 2687 if (seconds != null) { | 3009 if (seconds != null) { |
| 2688 _json["seconds"] = seconds; | 3010 _json["seconds"] = seconds; |
| 2689 } | 3011 } |
| 2690 return _json; | 3012 return _json; |
| 2691 } | 3013 } |
| 2692 } | 3014 } |
| OLD | NEW |