"description":"A representation of a Datastore kind.",
"type":"object"
},
"GooglePrivacyDlpV2beta1RedactContentRequest":{
"description":"Request to search for potentially sensitive info in a list of items\nand replace it with a default or provided content.",
"type":"object",
"properties":{
"replaceConfigs":{
"description":"The strings to replace findings text findings with. Must specify at least\none of these or one ImageRedactionConfig if redacting images.",
"items":{
"$ref":"GooglePrivacyDlpV2beta1ReplaceConfig"
},
"type":"array"
},
"imageRedactionConfigs":{
"description":"The configuration for specifying what content to redact from images.",
"description":"General identifier of a data field in a storage service.",
"type":"object",
"properties":{
"columnName":{
"description":"Column name describing the field.",
"type":"string"
}
},
"id":"GooglePrivacyDlpV2beta1FieldId"
},
"GooglePrivacyDlpV2beta1FileSet":{
"description":"Set of files to scan.",
"type":"object",
"properties":{
"url":{
"description":"The url, in the format `gs://\u003cbucket\u003e/\u003cpath\u003e`. Trailing wildcard in the\npath is allowed.",
"type":"string"
}
},
"id":"GooglePrivacyDlpV2beta1FileSet"
},
"GooglePrivacyDlpV2beta1DatastoreOptions":{
"description":"Options defining a data set within Google Cloud Datastore.",
"type":"object",
"properties":{
"partitionId":{
"$ref":"GooglePrivacyDlpV2beta1PartitionId",
"description":"A partition ID identifies a grouping of entities. The grouping is always\nby project and namespace, however the namespace ID may be empty."
},
"projection":{
"description":"Properties to scan. If none are specified, all properties will be scanned\nby default.",
"description":"The request message for Operations.CancelOperation.",
"type":"object",
"properties":{},
"id":"GoogleLongrunningCancelOperationRequest"
},
"GoogleProtobufEmpty":{
"description":"A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"description":"Response to the ListInspectFindings request.",
"type":"object",
"properties":{
"nextPageToken":{
"description":"If not empty, indicates that there may be more results that match the\nrequest; this value should be passed in a new `ListInspectFindingsRequest`.",
"description":"Configuration description of the scanning process.\nWhen used with redactContent only info_types and min_likelihood are currently\nused.",
"type":"object",
"properties":{
"excludeTypes":{
"description":"When true, excludes type information of the findings.",
"type":"boolean"
},
"infoTypes":{
"description":"Restricts what info_types to look for. The values must correspond to\nInfoType values returned by ListInfoTypes or found in documentation.\nEmpty info_types runs all enabled detectors.",
"items":{
"$ref":"GooglePrivacyDlpV2beta1InfoType"
},
"type":"array"
},
"includeQuote":{
"description":"When true, a contextual quote from the data that triggered a finding is\nincluded in the response; see Finding.quote.",
"type":"boolean"
},
"minLikelihood":{
"enumDescriptions":[
"Default value; information with all likelihoods is included.",
"description":"Request for scheduling a scan of a data subset from a Google Platform data\nrepository.",
"type":"object",
"properties":{
"inspectConfig":{
"description":"Configuration for the inspector.",
"$ref":"GooglePrivacyDlpV2beta1InspectConfig"
},
"storageConfig":{
"$ref":"GooglePrivacyDlpV2beta1StorageConfig",
"description":"Specification of the data set to process."
},
"outputConfig":{
"description":"Optional location to store findings. The bucket must already exist and\nthe Google APIs service account for DLP must have write permission to\nwrite to the given bucket.\n\u003cp\u003eResults are split over multiple csv files with each file name matching\nthe pattern \"[operation_id]_[count].csv\", for example\n`3094877188788974909_1.csv`. The `operation_id` matches the\nidentifier for the Operation, and the `count` is a counter used for\ntracking the number of files written. \u003cp\u003eThe CSV file(s) contain the\nfollowing columns regardless of storage type scanned: \u003cli\u003eid \u003cli\u003einfo_type\n\u003cli\u003elikelihood \u003cli\u003ebyte size of finding \u003cli\u003equote \u003cli\u003etime_stamp\u003cbr/\u003e\n\u003cp\u003eFor Cloud Storage the next columns are: \u003cli\u003efile_path\n\u003cli\u003estart_offset\u003cbr/\u003e\n\u003cp\u003eFor Cloud Datastore the next columns are: \u003cli\u003eproject_id\n\u003cli\u003enamespace_id \u003cli\u003epath \u003cli\u003ecolumn_name \u003cli\u003eoffset",
"description":"A unique identifier for a Datastore entity.\nIf a key's partition ID or any of its path kinds or names are\nreserved/read-only, the key is reserved/read-only.\nA reserved/read-only key is forbidden in certain documented contexts.",
"type":"object",
"properties":{
"path":{
"description":"The entity path.\nAn entity path consists of one or more elements composed of a kind and a\nstring or numerical identifier, which identify entities. The first\nelement identifies a _root entity_, the second element identifies\na _child_ of the root entity, the third element identifies a child of the\nsecond entity, and so forth. The entities identified by all prefixes of\nthe path are called the element's _ancestors_.\n\nA path can never be empty, and a path can have at most 100 elements.",
"items":{
"$ref":"GooglePrivacyDlpV2beta1PathElement"
},
"type":"array"
},
"partitionId":{
"$ref":"GooglePrivacyDlpV2beta1PartitionId",
"description":"Entities are partitioned into subsets, currently identified by a project\nID and namespace ID.\nQueries are scoped to a single partition."
"description":"Request to search for potentially sensitive info in a list of items.",
"type":"object",
"properties":{
"inspectConfig":{
"$ref":"GooglePrivacyDlpV2beta1InspectConfig",
"description":"Configuration for the inspector."
},
"items":{
"description":"The list of items to inspect. Items in a single request are\nconsidered \"related\" unless inspect_config.independent_inputs is true.\nUp to 100 are allowed per request.",
"description":"The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `inspect/results/{id}`.",
"description":"If true, all text found in the image, regardless if it matches an\ninfo_type, is redacted.",
"type":"boolean"
},
"infoType":{
"description":"Only one per info_type should be provided per request. If not\nspecified, and redact_all_text is false, the DLP API will redacts all\ntext that it matches against all info_types that are found, but not\nspecified in another ImageRedactionConfig.",
"$ref":"GooglePrivacyDlpV2beta1InfoType"
},
"redactionColor":{
"description":"The color to use when redacting content from an image. If not specified,\nthe default is black.",
"description":"If true, then this item might have more findings than were returned,\nand the findings returned are an arbitrary subset of all findings.\nThe findings list might be truncated because the input items were too\nlarge, or because the server reached the maximum amount of resources\nallowed for a single API call. For best results, divide the input into\nsmaller batches.",
"description":"The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"description":"The status code, which should be an enum value of google.rpc.Code.",
"type":"integer"
},
"message":{
"description":"A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"description":"If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.",
"description":"Content data to inspect or redact.",
"type":"string"
},
"type":{
"description":"Type of the content, as defined in Content-Type HTTP header.\nSupported types are: all \"text\" types, octet streams, PNG images,\nJPEG images.",
"description":"Name of the information type. For built-in info types, this is provided by\nthe API call ListInfoTypes. For user-defined info types, this is\nprovided by the user. All user-defined info types must have unique names,\nand cannot conflict with built-in info type names.",
"description":"Type of information to replace. Only one ReplaceConfig per info_type\nshould be provided. If ReplaceConfig does not have an info_type, the DLP\nAPI matches it against all info_types that are found but not specified in\nanother ReplaceConfig.",
"$ref":"GooglePrivacyDlpV2beta1InfoType"
},
"replaceWith":{
"description":"Content replacing sensitive information of given type. Max 256 chars.",
"description":"A (kind, ID/name) pair used to construct a key path.\n\nIf either name or ID is set, the element is complete.\nIf neither is set, the element is incomplete.",
"description":"The kind of the entity.\nA kind matching regex `__.*__` is reserved/read-only.\nA kind must not contain more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.",
"description":"The auto-allocated ID of the entity.\nNever equal to zero. Values less than zero are discouraged and may not\nbe supported in the future.",
"description":"The name of the entity.\nA name matching regex `__.*__` is reserved/read-only.\nA name must not be more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.",
"description":"Datastore partition ID.\nA partition ID identifies a grouping of entities. The grouping is always\nby project and namespace, however the namespace ID may be empty.\n\nA partition ID contains several dimensions:\nproject ID and namespace ID.",
"description":"The value returned by the last `ListInspectFindingsResponse`; indicates\nthat this is a continuation of a prior `ListInspectFindings` call, and that\nthe system should return the next page of data.",
"type":"string",
"location":"query"
},
"name":{
"pattern":"^inspect/results/[^/]+$",
"location":"path",
"description":"Identifier of the results set returned as metadata of\nthe longrunning operation created by a call to CreateInspectOperation.\nShould be in the format of `inspect/results/{id}.",
"type":"string",
"required":true
},
"pageSize":{
"format":"int32",
"description":"Maximum number of results to return.\nIf 0, the implementation selects a reasonable value.",
"type":"integer",
"location":"query"
},
"filter":{
"description":"Restricts findings to items that match. Supports info_type and likelihood.\n\u003cp\u003eExamples:\u003cbr/\u003e\n\u003cli\u003einfo_type=EMAIL_ADDRESS\n\u003cli\u003einfo_type=PHONE_NUMBER,EMAIL_ADDRESS\n\u003cli\u003elikelihood=VERY_LIKELY\n\u003cli\u003elikelihood=VERY_LIKELY,LIKELY\n\u003cli\u003einfo_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY",
"description":"Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
"httpMethod":"GET",
"response":{
"$ref":"GoogleLongrunningOperation"
},
"parameterOrder":[
"name"
],
"parameters":{
"name":{
"description":"The name of the operation resource.",
"description":"Cancels an operation. Use the get method to check whether the cancellation succeeded or whether the operation completed despite cancellation.",
"response":{
"$ref":"GoogleProtobufEmpty"
},
"parameterOrder":[
"name"
],
"httpMethod":"POST",
"scopes":[
"https://www.googleapis.com/auth/cloud-platform"
],
"parameters":{
"name":{
"description":"The name of the operation resource to be cancelled.",
"description":"Optional language code for localized friendly category names.\nIf omitted or if localized strings are not available,\nen-US strings will be returned.",
"description":"Optional BCP-47 language code for localized info type friendly\nnames. If omitted, or if localized strings are not available,\nen-US strings will be returned.",
"type":"string"
},
"category":{
"description":"Category name as returned by ListRootCategories.",
"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"description":"The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.",