import type * as gax from 'google-gax'; import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, LocationsClient, LocationProtos } from 'google-gax'; import { Transform } from 'stream'; import * as protos from '../../protos/protos'; /** * Sensitive Data Protection provides access to a powerful sensitive data * inspection, classification, and de-identification platform that works * on text, images, and Google Cloud storage repositories. * To learn more about concepts and find how-to guides see * https://cloud.google.com/sensitive-data-protection/docs/. * @class * @memberof v2 */ export declare class DlpServiceClient { private _terminated; private _opts; private _providedCustomServicePath; private _gaxModule; private _gaxGrpc; private _protos; private _defaults; private _universeDomain; private _servicePath; private _log; auth: gax.GoogleAuth; descriptors: Descriptors; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: { [name: string]: Function; }; locationsClient: LocationsClient; pathTemplates: { [name: string]: gax.PathTemplate; }; dlpServiceStub?: Promise<{ [name: string]: Function; }>; /** * Construct an instance of DlpServiceClient. * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] * @param {string} [options.credentials.private_key] * @param {string} [options.email] - Account email address. Required when * using a .pem or .p12 keyFilename. * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or * .p12 key downloaded from the Google Developers Console. If you provide * a path to a JSON file, the projectId option below is not necessary. * NOTE: .pem and .p12 require you to specify options.email as well. * @param {number} [options.port] - The port on which to connect to * the remote host. * @param {string} [options.projectId] - The project ID from the Google * Developer's Console, e.g. 'grape-spaceship-123'. We will also check * the environment variable GCLOUD_PROJECT for your project ID. If your * app is running in an environment which supports * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you * need to avoid loading the default gRPC version and want to use the fallback * HTTP implementation. Load only fallback version and pass it to the constructor: * ``` * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC * const client = new DlpServiceClient({fallback: true}, gax); * ``` */ constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback); /** * Initialize the client. * Performs asynchronous operations (such as authentication) and prepares the client. * This function will be called automatically when any class method is called for the * first time, but if you need to initialize it before calling an actual method, * feel free to call initialize() directly. * * You can await on this method if you want to make sure the client is initialized. * * @returns {Promise} A promise that resolves to an authenticated service stub. */ initialize(): Promise<{ [name: string]: Function; }>; /** * The DNS address for this API service. * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get servicePath(): string; /** * The DNS address for this API service - same as servicePath. * @deprecated Use the apiEndpoint method of the client instance. * @returns {string} The DNS address for this service. */ static get apiEndpoint(): string; /** * The DNS address for this API service. * @returns {string} The DNS address for this service. */ get apiEndpoint(): string; get universeDomain(): string; /** * The port for this API service. * @returns {number} The default port for this service. */ static get port(): number; /** * The scopes needed to make gRPC calls for every method defined * in this service. * @returns {string[]} List of default scopes. */ static get scopes(): string[]; getProjectId(): Promise; getProjectId(callback: Callback): void; /** * Finds potentially sensitive info in content. * This method has limits on input size, processing time, and output size. * * When no InfoTypes or CustomInfoTypes are specified in this request, the * system will automatically choose what detectors to run. By default this may * be all types, but may change over time as detectors are updated. * * For how to guides, see * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images * and * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig * Configuration for the inspector. What specified here will override * the template referenced by the inspect_template_name argument. * @param {google.privacy.dlp.v2.ContentItem} request.item * The item to inspect. * @param {string} request.inspectTemplateName * Template to use. Any configuration directly specified in * inspect_config will override those set in the template. Singular fields * that are set in this request will replace their corresponding fields in the * template. Repeated fields are appended. Singular sub-messages and groups * are recursively merged. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.InspectContentResponse|InspectContentResponse}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.inspect_content.js * region_tag:dlp_v2_generated_DlpService_InspectContent_async */ inspectContent(request?: protos.google.privacy.dlp.v2.IInspectContentRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IInspectContentResponse, protos.google.privacy.dlp.v2.IInspectContentRequest | undefined, {} | undefined ]>; inspectContent(request: protos.google.privacy.dlp.v2.IInspectContentRequest, options: CallOptions, callback: Callback): void; inspectContent(request: protos.google.privacy.dlp.v2.IInspectContentRequest, callback: Callback): void; /** * Redacts potentially sensitive info from an image. * This method has limits on input size, processing time, and output size. * See * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images * to learn more. * * When no InfoTypes or CustomInfoTypes are specified in this request, the * system will automatically choose what detectors to run. By default this may * be all types, but may change over time as detectors are updated. * * Only the first frame of each multiframe image is redacted. Metadata and * other frames are omitted in the response. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.locationId * Deprecated. This field has no effect. * @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig * Configuration for the inspector. * @param {number[]} request.imageRedactionConfigs * The configuration for specifying what content to redact from images. * @param {boolean} request.includeFindings * Whether the response should include findings along with the redacted * image. * @param {google.privacy.dlp.v2.ByteContentItem} request.byteItem * The content must be PNG, JPEG, SVG or BMP. * @param {string} request.inspectTemplate * The full resource name of the inspection template to use. Settings in the * main `inspect_config` field override the corresponding settings in this * inspection template. * * The merge behavior is as follows: * * - Singular field: The main field's value replaces the value of the * corresponding field in the template. * - Repeated fields: The field values are appended to the list defined in * the template. * - Sub-messages and groups: The fields are recursively merged. * @param {string} request.deidentifyTemplate * The full resource name of the de-identification template to use. Settings * in the main `image_redaction_configs` field override the corresponding * settings in this de-identification template. The request fails if the * type of the template's deidentify_config is not image_transformations. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.RedactImageResponse|RedactImageResponse}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.redact_image.js * region_tag:dlp_v2_generated_DlpService_RedactImage_async */ redactImage(request?: protos.google.privacy.dlp.v2.IRedactImageRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IRedactImageResponse, protos.google.privacy.dlp.v2.IRedactImageRequest | undefined, {} | undefined ]>; redactImage(request: protos.google.privacy.dlp.v2.IRedactImageRequest, options: CallOptions, callback: Callback): void; redactImage(request: protos.google.privacy.dlp.v2.IRedactImageRequest, callback: Callback): void; /** * De-identifies potentially sensitive info from a ContentItem. * This method has limits on input size and output size. * See * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data * to learn more. * * When no InfoTypes or CustomInfoTypes are specified in this request, the * system will automatically choose what detectors to run. By default this may * be all types, but may change over time as detectors are updated. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.DeidentifyConfig} request.deidentifyConfig * Configuration for the de-identification of the content item. * Items specified here will override the template referenced by the * deidentify_template_name argument. * @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig * Configuration for the inspector. * Items specified here will override the template referenced by the * inspect_template_name argument. * @param {google.privacy.dlp.v2.ContentItem} request.item * The item to de-identify. Will be treated as text. * * This value must be of type * {@link protos.google.privacy.dlp.v2.Table|Table} if your * {@link protos.google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config|deidentify_config} * is a * {@link protos.google.privacy.dlp.v2.RecordTransformations|RecordTransformations} * object. * @param {string} request.inspectTemplateName * Template to use. Any configuration directly specified in * inspect_config will override those set in the template. Singular fields * that are set in this request will replace their corresponding fields in the * template. Repeated fields are appended. Singular sub-messages and groups * are recursively merged. * @param {string} request.deidentifyTemplateName * Template to use. Any configuration directly specified in * deidentify_config will override those set in the template. Singular fields * that are set in this request will replace their corresponding fields in the * template. Repeated fields are appended. Singular sub-messages and groups * are recursively merged. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DeidentifyContentResponse|DeidentifyContentResponse}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.deidentify_content.js * region_tag:dlp_v2_generated_DlpService_DeidentifyContent_async */ deidentifyContent(request?: protos.google.privacy.dlp.v2.IDeidentifyContentRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDeidentifyContentResponse, protos.google.privacy.dlp.v2.IDeidentifyContentRequest | undefined, {} | undefined ]>; deidentifyContent(request: protos.google.privacy.dlp.v2.IDeidentifyContentRequest, options: CallOptions, callback: Callback): void; deidentifyContent(request: protos.google.privacy.dlp.v2.IDeidentifyContentRequest, callback: Callback): void; /** * Re-identifies content that has been de-identified. * See * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.DeidentifyConfig} request.reidentifyConfig * Configuration for the re-identification of the content item. * This field shares the same proto message type that is used for * de-identification, however its usage here is for the reversal of the * previous de-identification. Re-identification is performed by examining * the transformations used to de-identify the items and executing the * reverse. This requires that only reversible transformations * be provided here. The reversible transformations are: * * - `CryptoDeterministicConfig` * - `CryptoReplaceFfxFpeConfig` * @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig * Configuration for the inspector. * @param {google.privacy.dlp.v2.ContentItem} request.item * The item to re-identify. Will be treated as text. * @param {string} request.inspectTemplateName * Template to use. Any configuration directly specified in * `inspect_config` will override those set in the template. Singular fields * that are set in this request will replace their corresponding fields in the * template. Repeated fields are appended. Singular sub-messages and groups * are recursively merged. * @param {string} request.reidentifyTemplateName * Template to use. References an instance of `DeidentifyTemplate`. * Any configuration directly specified in `reidentify_config` or * `inspect_config` will override those set in the template. The * `DeidentifyTemplate` used must include only reversible transformations. * Singular fields that are set in this request will replace their * corresponding fields in the template. Repeated fields are appended. * Singular sub-messages and groups are recursively merged. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.ReidentifyContentResponse|ReidentifyContentResponse}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.reidentify_content.js * region_tag:dlp_v2_generated_DlpService_ReidentifyContent_async */ reidentifyContent(request?: protos.google.privacy.dlp.v2.IReidentifyContentRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IReidentifyContentResponse, protos.google.privacy.dlp.v2.IReidentifyContentRequest | undefined, {} | undefined ]>; reidentifyContent(request: protos.google.privacy.dlp.v2.IReidentifyContentRequest, options: CallOptions, callback: Callback): void; reidentifyContent(request: protos.google.privacy.dlp.v2.IReidentifyContentRequest, callback: Callback): void; /** * Returns a list of the sensitive information types that the DLP API * supports. See * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * The parent resource name. * * The format of this value is as follows: * * `locations/{location_id}` * @param {string} request.languageCode * BCP-47 language code for localized infoType friendly * names. If omitted, or if localized strings are not available, * en-US strings will be returned. * @param {string} request.filter * filter to only return infoTypes supported by certain parts of the * API. Defaults to supported_by=INSPECT. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.ListInfoTypesResponse|ListInfoTypesResponse}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_info_types.js * region_tag:dlp_v2_generated_DlpService_ListInfoTypes_async */ listInfoTypes(request?: protos.google.privacy.dlp.v2.IListInfoTypesRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IListInfoTypesResponse, protos.google.privacy.dlp.v2.IListInfoTypesRequest | undefined, {} | undefined ]>; listInfoTypes(request: protos.google.privacy.dlp.v2.IListInfoTypesRequest, options: CallOptions, callback: Callback): void; listInfoTypes(request: protos.google.privacy.dlp.v2.IListInfoTypesRequest, callback: Callback): void; /** * Creates an InspectTemplate for reusing frequently used configuration * for inspecting content, images, and storage. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.InspectTemplate} request.inspectTemplate * Required. The InspectTemplate to create. * @param {string} request.templateId * The template id can contain uppercase and lowercase letters, * numbers, and hyphens; that is, it must match the regular * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 * characters. Can be empty to allow the system to generate one. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.InspectTemplate|InspectTemplate}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.create_inspect_template.js * region_tag:dlp_v2_generated_DlpService_CreateInspectTemplate_async */ createInspectTemplate(request?: protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest | undefined, {} | undefined ]>; createInspectTemplate(request: protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest, options: CallOptions, callback: Callback): void; createInspectTemplate(request: protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest, callback: Callback): void; /** * Updates the InspectTemplate. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of organization and inspectTemplate to be updated, * for example `organizations/433245324/inspectTemplates/432452342` or * projects/project-id/inspectTemplates/432452342. * @param {google.privacy.dlp.v2.InspectTemplate} request.inspectTemplate * New InspectTemplate value. * @param {google.protobuf.FieldMask} request.updateMask * Mask to control which fields get updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.InspectTemplate|InspectTemplate}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.update_inspect_template.js * region_tag:dlp_v2_generated_DlpService_UpdateInspectTemplate_async */ updateInspectTemplate(request?: protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest | undefined, {} | undefined ]>; updateInspectTemplate(request: protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest, options: CallOptions, callback: Callback): void; updateInspectTemplate(request: protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest, callback: Callback): void; /** * Gets an InspectTemplate. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the organization and inspectTemplate to be read, * for example `organizations/433245324/inspectTemplates/432452342` or * projects/project-id/inspectTemplates/432452342. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.InspectTemplate|InspectTemplate}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_inspect_template.js * region_tag:dlp_v2_generated_DlpService_GetInspectTemplate_async */ getInspectTemplate(request?: protos.google.privacy.dlp.v2.IGetInspectTemplateRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.IGetInspectTemplateRequest | undefined, {} | undefined ]>; getInspectTemplate(request: protos.google.privacy.dlp.v2.IGetInspectTemplateRequest, options: CallOptions, callback: Callback): void; getInspectTemplate(request: protos.google.privacy.dlp.v2.IGetInspectTemplateRequest, callback: Callback): void; /** * Deletes an InspectTemplate. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the organization and inspectTemplate to be * deleted, for example `organizations/433245324/inspectTemplates/432452342` * or projects/project-id/inspectTemplates/432452342. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_inspect_template.js * region_tag:dlp_v2_generated_DlpService_DeleteInspectTemplate_async */ deleteInspectTemplate(request?: protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest | undefined, {} | undefined ]>; deleteInspectTemplate(request: protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest, options: CallOptions, callback: Callback): void; deleteInspectTemplate(request: protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest, callback: Callback): void; /** * Creates a DeidentifyTemplate for reusing frequently used configuration * for de-identifying content, images, and storage. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.DeidentifyTemplate} request.deidentifyTemplate * Required. The DeidentifyTemplate to create. * @param {string} request.templateId * The template id can contain uppercase and lowercase letters, * numbers, and hyphens; that is, it must match the regular * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 * characters. Can be empty to allow the system to generate one. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DeidentifyTemplate|DeidentifyTemplate}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.create_deidentify_template.js * region_tag:dlp_v2_generated_DlpService_CreateDeidentifyTemplate_async */ createDeidentifyTemplate(request?: protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest | undefined, {} | undefined ]>; createDeidentifyTemplate(request: protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest, options: CallOptions, callback: Callback): void; createDeidentifyTemplate(request: protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest, callback: Callback): void; /** * Updates the DeidentifyTemplate. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of organization and deidentify template to be * updated, for example * `organizations/433245324/deidentifyTemplates/432452342` or * projects/project-id/deidentifyTemplates/432452342. * @param {google.privacy.dlp.v2.DeidentifyTemplate} request.deidentifyTemplate * New DeidentifyTemplate value. * @param {google.protobuf.FieldMask} request.updateMask * Mask to control which fields get updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DeidentifyTemplate|DeidentifyTemplate}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.update_deidentify_template.js * region_tag:dlp_v2_generated_DlpService_UpdateDeidentifyTemplate_async */ updateDeidentifyTemplate(request?: protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest | undefined, {} | undefined ]>; updateDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest, options: CallOptions, callback: Callback): void; updateDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest, callback: Callback): void; /** * Gets a DeidentifyTemplate. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the organization and deidentify template to be * read, for example `organizations/433245324/deidentifyTemplates/432452342` * or projects/project-id/deidentifyTemplates/432452342. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DeidentifyTemplate|DeidentifyTemplate}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_deidentify_template.js * region_tag:dlp_v2_generated_DlpService_GetDeidentifyTemplate_async */ getDeidentifyTemplate(request?: protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest | undefined, {} | undefined ]>; getDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest, options: CallOptions, callback: Callback): void; getDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest, callback: Callback): void; /** * Deletes a DeidentifyTemplate. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the organization and deidentify template to be * deleted, for example * `organizations/433245324/deidentifyTemplates/432452342` or * projects/project-id/deidentifyTemplates/432452342. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_deidentify_template.js * region_tag:dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_async */ deleteDeidentifyTemplate(request?: protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest | undefined, {} | undefined ]>; deleteDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest, options: CallOptions, callback: Callback): void; deleteDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest, callback: Callback): void; /** * Creates a job trigger to run DLP actions such as scanning storage for * sensitive information on a set schedule. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.JobTrigger} request.jobTrigger * Required. The JobTrigger to create. * @param {string} request.triggerId * The trigger id can contain uppercase and lowercase letters, * numbers, and hyphens; that is, it must match the regular * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 * characters. Can be empty to allow the system to generate one. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.JobTrigger|JobTrigger}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.create_job_trigger.js * region_tag:dlp_v2_generated_DlpService_CreateJobTrigger_async */ createJobTrigger(request?: protos.google.privacy.dlp.v2.ICreateJobTriggerRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.ICreateJobTriggerRequest | undefined, {} | undefined ]>; createJobTrigger(request: protos.google.privacy.dlp.v2.ICreateJobTriggerRequest, options: CallOptions, callback: Callback): void; createJobTrigger(request: protos.google.privacy.dlp.v2.ICreateJobTriggerRequest, callback: Callback): void; /** * Updates a job trigger. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the project and the triggeredJob, for example * `projects/dlp-test-project/jobTriggers/53234423`. * @param {google.privacy.dlp.v2.JobTrigger} request.jobTrigger * New JobTrigger value. * @param {google.protobuf.FieldMask} request.updateMask * Mask to control which fields get updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.JobTrigger|JobTrigger}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.update_job_trigger.js * region_tag:dlp_v2_generated_DlpService_UpdateJobTrigger_async */ updateJobTrigger(request?: protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest | undefined, {} | undefined ]>; updateJobTrigger(request: protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest, options: CallOptions, callback: Callback): void; updateJobTrigger(request: protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest, callback: Callback): void; /** * Inspect hybrid content and store findings to a trigger. The inspection * will be processed asynchronously. To review the findings monitor the * jobs within the trigger. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the trigger to execute a hybrid inspect on, for * example `projects/dlp-test-project/jobTriggers/53234423`. * @param {google.privacy.dlp.v2.HybridContentItem} request.hybridItem * The item to inspect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.HybridInspectResponse|HybridInspectResponse}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.hybrid_inspect_job_trigger.js * region_tag:dlp_v2_generated_DlpService_HybridInspectJobTrigger_async */ hybridInspectJobTrigger(request?: protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IHybridInspectResponse, protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest | undefined, {} | undefined ]>; hybridInspectJobTrigger(request: protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest, options: CallOptions, callback: Callback): void; hybridInspectJobTrigger(request: protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest, callback: Callback): void; /** * Gets a job trigger. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the project and the triggeredJob, for example * `projects/dlp-test-project/jobTriggers/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.JobTrigger|JobTrigger}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_job_trigger.js * region_tag:dlp_v2_generated_DlpService_GetJobTrigger_async */ getJobTrigger(request?: protos.google.privacy.dlp.v2.IGetJobTriggerRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.IGetJobTriggerRequest | undefined, {} | undefined ]>; getJobTrigger(request: protos.google.privacy.dlp.v2.IGetJobTriggerRequest, options: CallOptions, callback: Callback): void; getJobTrigger(request: protos.google.privacy.dlp.v2.IGetJobTriggerRequest, callback: Callback): void; /** * Deletes a job trigger. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the project and the triggeredJob, for example * `projects/dlp-test-project/jobTriggers/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_job_trigger.js * region_tag:dlp_v2_generated_DlpService_DeleteJobTrigger_async */ deleteJobTrigger(request?: protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest | undefined, {} | undefined ]>; deleteJobTrigger(request: protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest, options: CallOptions, callback: Callback): void; deleteJobTrigger(request: protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest, callback: Callback): void; /** * Activate a job trigger. Causes the immediate execute of a trigger * instead of waiting on the trigger event to occur. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the trigger to activate, for example * `projects/dlp-test-project/jobTriggers/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DlpJob|DlpJob}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.activate_job_trigger.js * region_tag:dlp_v2_generated_DlpService_ActivateJobTrigger_async */ activateJobTrigger(request?: protos.google.privacy.dlp.v2.IActivateJobTriggerRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.IActivateJobTriggerRequest | undefined, {} | undefined ]>; activateJobTrigger(request: protos.google.privacy.dlp.v2.IActivateJobTriggerRequest, options: CallOptions, callback: Callback): void; activateJobTrigger(request: protos.google.privacy.dlp.v2.IActivateJobTriggerRequest, callback: Callback): void; /** * Creates a config for discovery to scan and profile storage. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization): * * + Projects scope: * `projects/{project_id}/locations/{location_id}` * + Organizations scope: * `organizations/{org_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.DiscoveryConfig} request.discoveryConfig * Required. The DiscoveryConfig to create. * @param {string} request.configId * The config ID can contain uppercase and lowercase letters, * numbers, and hyphens; that is, it must match the regular * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 * characters. Can be empty to allow the system to generate one. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.create_discovery_config.js * region_tag:dlp_v2_generated_DlpService_CreateDiscoveryConfig_async */ createDiscoveryConfig(request?: protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest | undefined, {} | undefined ]>; createDiscoveryConfig(request: protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest, options: CallOptions, callback: Callback): void; createDiscoveryConfig(request: protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest, callback: Callback): void; /** * Updates a discovery configuration. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the project and the configuration, for example * `projects/dlp-test-project/discoveryConfigs/53234423`. * @param {google.privacy.dlp.v2.DiscoveryConfig} request.discoveryConfig * Required. New DiscoveryConfig value. * @param {google.protobuf.FieldMask} request.updateMask * Mask to control which fields get updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.update_discovery_config.js * region_tag:dlp_v2_generated_DlpService_UpdateDiscoveryConfig_async */ updateDiscoveryConfig(request?: protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest | undefined, {} | undefined ]>; updateDiscoveryConfig(request: protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest, options: CallOptions, callback: Callback): void; updateDiscoveryConfig(request: protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest, callback: Callback): void; /** * Gets a discovery configuration. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the project and the configuration, for example * `projects/dlp-test-project/discoveryConfigs/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_discovery_config.js * region_tag:dlp_v2_generated_DlpService_GetDiscoveryConfig_async */ getDiscoveryConfig(request?: protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest | undefined, {} | undefined ]>; getDiscoveryConfig(request: protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest, options: CallOptions, callback: Callback): void; getDiscoveryConfig(request: protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest, callback: Callback): void; /** * Deletes a discovery configuration. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the project and the config, for example * `projects/dlp-test-project/discoveryConfigs/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_discovery_config.js * region_tag:dlp_v2_generated_DlpService_DeleteDiscoveryConfig_async */ deleteDiscoveryConfig(request?: protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest | undefined, {} | undefined ]>; deleteDiscoveryConfig(request: protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest, options: CallOptions, callback: Callback): void; deleteDiscoveryConfig(request: protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest, callback: Callback): void; /** * Creates a new job to inspect storage or calculate risk metrics. * See * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage * and * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis * to learn more. * * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the * system will automatically choose what detectors to run. By default this may * be all types, but may change over time as detectors are updated. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.InspectJobConfig} request.inspectJob * An inspection job scans a storage repository for InfoTypes. * @param {google.privacy.dlp.v2.RiskAnalysisJobConfig} request.riskJob * A risk analysis job calculates re-identification risk metrics for a * BigQuery table. * @param {string} request.jobId * The job id can contain uppercase and lowercase letters, * numbers, and hyphens; that is, it must match the regular * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 * characters. Can be empty to allow the system to generate one. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DlpJob|DlpJob}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.create_dlp_job.js * region_tag:dlp_v2_generated_DlpService_CreateDlpJob_async */ createDlpJob(request?: protos.google.privacy.dlp.v2.ICreateDlpJobRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.ICreateDlpJobRequest | undefined, {} | undefined ]>; createDlpJob(request: protos.google.privacy.dlp.v2.ICreateDlpJobRequest, options: CallOptions, callback: Callback): void; createDlpJob(request: protos.google.privacy.dlp.v2.ICreateDlpJobRequest, callback: Callback): void; /** * Gets the latest state of a long-running DlpJob. * See * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage * and * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. The name of the DlpJob resource. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DlpJob|DlpJob}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_dlp_job.js * region_tag:dlp_v2_generated_DlpService_GetDlpJob_async */ getDlpJob(request?: protos.google.privacy.dlp.v2.IGetDlpJobRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.IGetDlpJobRequest | undefined, {} | undefined ]>; getDlpJob(request: protos.google.privacy.dlp.v2.IGetDlpJobRequest, options: CallOptions, callback: Callback): void; getDlpJob(request: protos.google.privacy.dlp.v2.IGetDlpJobRequest, callback: Callback): void; /** * Deletes a long-running DlpJob. This method indicates that the client is * no longer interested in the DlpJob result. The job will be canceled if * possible. * See * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage * and * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. The name of the DlpJob resource to be deleted. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_dlp_job.js * region_tag:dlp_v2_generated_DlpService_DeleteDlpJob_async */ deleteDlpJob(request?: protos.google.privacy.dlp.v2.IDeleteDlpJobRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDlpJobRequest | undefined, {} | undefined ]>; deleteDlpJob(request: protos.google.privacy.dlp.v2.IDeleteDlpJobRequest, options: CallOptions, callback: Callback): void; deleteDlpJob(request: protos.google.privacy.dlp.v2.IDeleteDlpJobRequest, callback: Callback): void; /** * Starts asynchronous cancellation on a long-running DlpJob. The server * makes a best effort to cancel the DlpJob, but success is not * guaranteed. * See * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage * and * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. The name of the DlpJob resource to be cancelled. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.cancel_dlp_job.js * region_tag:dlp_v2_generated_DlpService_CancelDlpJob_async */ cancelDlpJob(request?: protos.google.privacy.dlp.v2.ICancelDlpJobRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.ICancelDlpJobRequest | undefined, {} | undefined ]>; cancelDlpJob(request: protos.google.privacy.dlp.v2.ICancelDlpJobRequest, options: CallOptions, callback: Callback): void; cancelDlpJob(request: protos.google.privacy.dlp.v2.ICancelDlpJobRequest, callback: Callback): void; /** * Creates a pre-built stored infoType to be used for inspection. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {google.privacy.dlp.v2.StoredInfoTypeConfig} request.config * Required. Configuration of the storedInfoType to create. * @param {string} request.storedInfoTypeId * The storedInfoType ID can contain uppercase and lowercase letters, * numbers, and hyphens; that is, it must match the regular * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 * characters. Can be empty to allow the system to generate one. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.StoredInfoType|StoredInfoType}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.create_stored_info_type.js * region_tag:dlp_v2_generated_DlpService_CreateStoredInfoType_async */ createStoredInfoType(request?: protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest | undefined, {} | undefined ]>; createStoredInfoType(request: protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest, options: CallOptions, callback: Callback): void; createStoredInfoType(request: protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest, callback: Callback): void; /** * Updates the stored infoType by creating a new version. The existing version * will continue to be used until the new version is ready. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of organization and storedInfoType to be updated, * for example `organizations/433245324/storedInfoTypes/432452342` or * projects/project-id/storedInfoTypes/432452342. * @param {google.privacy.dlp.v2.StoredInfoTypeConfig} request.config * Updated configuration for the storedInfoType. If not provided, a new * version of the storedInfoType will be created with the existing * configuration. * @param {google.protobuf.FieldMask} request.updateMask * Mask to control which fields get updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.StoredInfoType|StoredInfoType}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.update_stored_info_type.js * region_tag:dlp_v2_generated_DlpService_UpdateStoredInfoType_async */ updateStoredInfoType(request?: protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest | undefined, {} | undefined ]>; updateStoredInfoType(request: protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest, options: CallOptions, callback: Callback): void; updateStoredInfoType(request: protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest, callback: Callback): void; /** * Gets a stored infoType. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the organization and storedInfoType to be read, * for example `organizations/433245324/storedInfoTypes/432452342` or * projects/project-id/storedInfoTypes/432452342. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.StoredInfoType|StoredInfoType}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_stored_info_type.js * region_tag:dlp_v2_generated_DlpService_GetStoredInfoType_async */ getStoredInfoType(request?: protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest | undefined, {} | undefined ]>; getStoredInfoType(request: protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest, options: CallOptions, callback: Callback): void; getStoredInfoType(request: protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest, callback: Callback): void; /** * Deletes a stored infoType. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the organization and storedInfoType to be * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or * projects/project-id/storedInfoTypes/432452342. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_stored_info_type.js * region_tag:dlp_v2_generated_DlpService_DeleteStoredInfoType_async */ deleteStoredInfoType(request?: protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest | undefined, {} | undefined ]>; deleteStoredInfoType(request: protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest, options: CallOptions, callback: Callback): void; deleteStoredInfoType(request: protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest, callback: Callback): void; /** * Gets a project data profile. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name, for example * `organizations/12345/locations/us/projectDataProfiles/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.ProjectDataProfile|ProjectDataProfile}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_project_data_profile.js * region_tag:dlp_v2_generated_DlpService_GetProjectDataProfile_async */ getProjectDataProfile(request?: protos.google.privacy.dlp.v2.IGetProjectDataProfileRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IProjectDataProfile, protos.google.privacy.dlp.v2.IGetProjectDataProfileRequest | undefined, {} | undefined ]>; getProjectDataProfile(request: protos.google.privacy.dlp.v2.IGetProjectDataProfileRequest, options: CallOptions, callback: Callback): void; getProjectDataProfile(request: protos.google.privacy.dlp.v2.IGetProjectDataProfileRequest, callback: Callback): void; /** * Gets a file store data profile. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name, for example * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.FileStoreDataProfile|FileStoreDataProfile}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_file_store_data_profile.js * region_tag:dlp_v2_generated_DlpService_GetFileStoreDataProfile_async */ getFileStoreDataProfile(request?: protos.google.privacy.dlp.v2.IGetFileStoreDataProfileRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IFileStoreDataProfile, protos.google.privacy.dlp.v2.IGetFileStoreDataProfileRequest | undefined, {} | undefined ]>; getFileStoreDataProfile(request: protos.google.privacy.dlp.v2.IGetFileStoreDataProfileRequest, options: CallOptions, callback: Callback): void; getFileStoreDataProfile(request: protos.google.privacy.dlp.v2.IGetFileStoreDataProfileRequest, callback: Callback): void; /** * Delete a FileStoreDataProfile. Will not prevent the profile from being * regenerated if the resource is still included in a discovery configuration. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the file store data profile. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_file_store_data_profile.js * region_tag:dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_async */ deleteFileStoreDataProfile(request?: protos.google.privacy.dlp.v2.IDeleteFileStoreDataProfileRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteFileStoreDataProfileRequest | undefined, {} | undefined ]>; deleteFileStoreDataProfile(request: protos.google.privacy.dlp.v2.IDeleteFileStoreDataProfileRequest, options: CallOptions, callback: Callback): void; deleteFileStoreDataProfile(request: protos.google.privacy.dlp.v2.IDeleteFileStoreDataProfileRequest, callback: Callback): void; /** * Gets a table data profile. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name, for example * `organizations/12345/locations/us/tableDataProfiles/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.TableDataProfile|TableDataProfile}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_table_data_profile.js * region_tag:dlp_v2_generated_DlpService_GetTableDataProfile_async */ getTableDataProfile(request?: protos.google.privacy.dlp.v2.IGetTableDataProfileRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.ITableDataProfile, protos.google.privacy.dlp.v2.IGetTableDataProfileRequest | undefined, {} | undefined ]>; getTableDataProfile(request: protos.google.privacy.dlp.v2.IGetTableDataProfileRequest, options: CallOptions, callback: Callback): void; getTableDataProfile(request: protos.google.privacy.dlp.v2.IGetTableDataProfileRequest, callback: Callback): void; /** * Gets a column data profile. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name, for example * `organizations/12345/locations/us/columnDataProfiles/53234423`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.ColumnDataProfile|ColumnDataProfile}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_column_data_profile.js * region_tag:dlp_v2_generated_DlpService_GetColumnDataProfile_async */ getColumnDataProfile(request?: protos.google.privacy.dlp.v2.IGetColumnDataProfileRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IColumnDataProfile, protos.google.privacy.dlp.v2.IGetColumnDataProfileRequest | undefined, {} | undefined ]>; getColumnDataProfile(request: protos.google.privacy.dlp.v2.IGetColumnDataProfileRequest, options: CallOptions, callback: Callback): void; getColumnDataProfile(request: protos.google.privacy.dlp.v2.IGetColumnDataProfileRequest, callback: Callback): void; /** * Delete a TableDataProfile. Will not prevent the profile from being * regenerated if the table is still included in a discovery configuration. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the table data profile. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_table_data_profile.js * region_tag:dlp_v2_generated_DlpService_DeleteTableDataProfile_async */ deleteTableDataProfile(request?: protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest | undefined, {} | undefined ]>; deleteTableDataProfile(request: protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest, options: CallOptions, callback: Callback): void; deleteTableDataProfile(request: protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest, callback: Callback): void; /** * Inspect hybrid content and store findings to a job. * To review the findings, inspect the job. Inspection will occur * asynchronously. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the job to execute a hybrid inspect on, for * example `projects/dlp-test-project/dlpJob/53234423`. * @param {google.privacy.dlp.v2.HybridContentItem} request.hybridItem * The item to inspect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.HybridInspectResponse|HybridInspectResponse}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.hybrid_inspect_dlp_job.js * region_tag:dlp_v2_generated_DlpService_HybridInspectDlpJob_async */ hybridInspectDlpJob(request?: protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IHybridInspectResponse, protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest | undefined, {} | undefined ]>; hybridInspectDlpJob(request: protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest, options: CallOptions, callback: Callback): void; hybridInspectDlpJob(request: protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest, callback: Callback): void; /** * Finish a running hybrid DlpJob. Triggers the finalization steps and running * of any enabled actions that have not yet run. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. The name of the DlpJob resource to be finished. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.finish_dlp_job.js * region_tag:dlp_v2_generated_DlpService_FinishDlpJob_async */ finishDlpJob(request?: protos.google.privacy.dlp.v2.IFinishDlpJobRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IFinishDlpJobRequest | undefined, {} | undefined ]>; finishDlpJob(request: protos.google.privacy.dlp.v2.IFinishDlpJobRequest, options: CallOptions, callback: Callback): void; finishDlpJob(request: protos.google.privacy.dlp.v2.IFinishDlpJobRequest, callback: Callback): void; /** * Create a Connection to an external data source. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization): * * + Projects scope: * `projects/{project_id}/locations/{location_id}` * + Organizations scope: * `organizations/{org_id}/locations/{location_id}` * @param {google.privacy.dlp.v2.Connection} request.connection * Required. The connection resource. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.create_connection.js * region_tag:dlp_v2_generated_DlpService_CreateConnection_async */ createConnection(request?: protos.google.privacy.dlp.v2.ICreateConnectionRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.ICreateConnectionRequest | undefined, {} | undefined ]>; createConnection(request: protos.google.privacy.dlp.v2.ICreateConnectionRequest, options: CallOptions, callback: Callback): void; createConnection(request: protos.google.privacy.dlp.v2.ICreateConnectionRequest, callback: Callback): void; /** * Get a Connection by name. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name in the format: * `projects/{project}/locations/{location}/connections/{connection}`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.get_connection.js * region_tag:dlp_v2_generated_DlpService_GetConnection_async */ getConnection(request?: protos.google.privacy.dlp.v2.IGetConnectionRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.IGetConnectionRequest | undefined, {} | undefined ]>; getConnection(request: protos.google.privacy.dlp.v2.IGetConnectionRequest, options: CallOptions, callback: Callback): void; getConnection(request: protos.google.privacy.dlp.v2.IGetConnectionRequest, callback: Callback): void; /** * Delete a Connection. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name of the Connection to be deleted, in the format: * `projects/{project}/locations/{location}/connections/{connection}`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.delete_connection.js * region_tag:dlp_v2_generated_DlpService_DeleteConnection_async */ deleteConnection(request?: protos.google.privacy.dlp.v2.IDeleteConnectionRequest, options?: CallOptions): Promise<[ protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteConnectionRequest | undefined, {} | undefined ]>; deleteConnection(request: protos.google.privacy.dlp.v2.IDeleteConnectionRequest, options: CallOptions, callback: Callback): void; deleteConnection(request: protos.google.privacy.dlp.v2.IDeleteConnectionRequest, callback: Callback): void; /** * Update a Connection. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Required. Resource name in the format: * `projects/{project}/locations/{location}/connections/{connection}`. * @param {google.privacy.dlp.v2.Connection} request.connection * Required. The connection with new values for the relevant fields. * @param {google.protobuf.FieldMask} [request.updateMask] * Optional. Mask to control which fields get updated. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.update_connection.js * region_tag:dlp_v2_generated_DlpService_UpdateConnection_async */ updateConnection(request?: protos.google.privacy.dlp.v2.IUpdateConnectionRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.IUpdateConnectionRequest | undefined, {} | undefined ]>; updateConnection(request: protos.google.privacy.dlp.v2.IUpdateConnectionRequest, options: CallOptions, callback: Callback): void; updateConnection(request: protos.google.privacy.dlp.v2.IUpdateConnectionRequest, callback: Callback): void; /** * Lists InspectTemplates. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListInspectTemplates`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the template was created. * - `update_time`: corresponds to the time the template was last updated. * - `name`: corresponds to the template's name. * - `display_name`: corresponds to the template's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.InspectTemplate|InspectTemplate}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listInspectTemplatesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listInspectTemplates(request?: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IInspectTemplate[], protos.google.privacy.dlp.v2.IListInspectTemplatesRequest | null, protos.google.privacy.dlp.v2.IListInspectTemplatesResponse ]>; listInspectTemplates(request: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options: CallOptions, callback: PaginationCallback): void; listInspectTemplates(request: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, callback: PaginationCallback): void; /** * Equivalent to `listInspectTemplates`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListInspectTemplates`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the template was created. * - `update_time`: corresponds to the time the template was last updated. * - `name`: corresponds to the template's name. * - `display_name`: corresponds to the template's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.InspectTemplate|InspectTemplate} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listInspectTemplatesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listInspectTemplatesStream(request?: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: CallOptions): Transform; /** * Equivalent to `listInspectTemplates`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListInspectTemplates`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the template was created. * - `update_time`: corresponds to the time the template was last updated. * - `name`: corresponds to the template's name. * - `display_name`: corresponds to the template's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.InspectTemplate|InspectTemplate}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_inspect_templates.js * region_tag:dlp_v2_generated_DlpService_ListInspectTemplates_async */ listInspectTemplatesAsync(request?: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: CallOptions): AsyncIterable; /** * Lists DeidentifyTemplates. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListDeidentifyTemplates`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the template was created. * - `update_time`: corresponds to the time the template was last updated. * - `name`: corresponds to the template's name. * - `display_name`: corresponds to the template's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.DeidentifyTemplate|DeidentifyTemplate}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listDeidentifyTemplatesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listDeidentifyTemplates(request?: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDeidentifyTemplate[], protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest | null, protos.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse ]>; listDeidentifyTemplates(request: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options: CallOptions, callback: PaginationCallback): void; listDeidentifyTemplates(request: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, callback: PaginationCallback): void; /** * Equivalent to `listDeidentifyTemplates`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListDeidentifyTemplates`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the template was created. * - `update_time`: corresponds to the time the template was last updated. * - `name`: corresponds to the template's name. * - `display_name`: corresponds to the template's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.DeidentifyTemplate|DeidentifyTemplate} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listDeidentifyTemplatesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listDeidentifyTemplatesStream(request?: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options?: CallOptions): Transform; /** * Equivalent to `listDeidentifyTemplates`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * + Organizations scope, location specified: * `organizations/{org_id}/locations/{location_id}` * + Organizations scope, no location specified (defaults to global): * `organizations/{org_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListDeidentifyTemplates`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the template was created. * - `update_time`: corresponds to the time the template was last updated. * - `name`: corresponds to the template's name. * - `display_name`: corresponds to the template's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.DeidentifyTemplate|DeidentifyTemplate}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_deidentify_templates.js * region_tag:dlp_v2_generated_DlpService_ListDeidentifyTemplates_async */ listDeidentifyTemplatesAsync(request?: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options?: CallOptions): AsyncIterable; /** * Lists job triggers. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to ListJobTriggers. `order_by` field must not * change for subsequent calls. * @param {number} request.pageSize * Size of the page. This value can be limited by a server. * @param {string} request.orderBy * Comma-separated list of triggeredJob fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the JobTrigger was created. * - `update_time`: corresponds to the time the JobTrigger was last updated. * - `last_run_time`: corresponds to the last time the JobTrigger ran. * - `name`: corresponds to the JobTrigger's name. * - `display_name`: corresponds to the JobTrigger's display name. * - `status`: corresponds to JobTrigger's status. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields/values for inspect triggers: * - `status` - HEALTHY|PAUSED|CANCELLED * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by * quotation marks. Nanoseconds are ignored. * - 'error_count' - Number of errors that have occurred while running. * * The operator must be `=` or `!=` for status and inspected_storage. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * inspected_storage = cloud_storage AND status = HEALTHY * * inspected_storage = cloud_storage OR inspected_storage = bigquery * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * * last_run_time > \"2017-12-12T00:00:00+00:00\" * * The length of this field should be no more than 500 characters. * @param {google.privacy.dlp.v2.DlpJobType} request.type * The type of jobs. Will use `DlpJobType.INSPECT` if not set. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.JobTrigger|JobTrigger}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listJobTriggersAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listJobTriggers(request?: protos.google.privacy.dlp.v2.IListJobTriggersRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IJobTrigger[], protos.google.privacy.dlp.v2.IListJobTriggersRequest | null, protos.google.privacy.dlp.v2.IListJobTriggersResponse ]>; listJobTriggers(request: protos.google.privacy.dlp.v2.IListJobTriggersRequest, options: CallOptions, callback: PaginationCallback): void; listJobTriggers(request: protos.google.privacy.dlp.v2.IListJobTriggersRequest, callback: PaginationCallback): void; /** * Equivalent to `listJobTriggers`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to ListJobTriggers. `order_by` field must not * change for subsequent calls. * @param {number} request.pageSize * Size of the page. This value can be limited by a server. * @param {string} request.orderBy * Comma-separated list of triggeredJob fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the JobTrigger was created. * - `update_time`: corresponds to the time the JobTrigger was last updated. * - `last_run_time`: corresponds to the last time the JobTrigger ran. * - `name`: corresponds to the JobTrigger's name. * - `display_name`: corresponds to the JobTrigger's display name. * - `status`: corresponds to JobTrigger's status. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields/values for inspect triggers: * - `status` - HEALTHY|PAUSED|CANCELLED * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by * quotation marks. Nanoseconds are ignored. * - 'error_count' - Number of errors that have occurred while running. * * The operator must be `=` or `!=` for status and inspected_storage. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * inspected_storage = cloud_storage AND status = HEALTHY * * inspected_storage = cloud_storage OR inspected_storage = bigquery * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * * last_run_time > \"2017-12-12T00:00:00+00:00\" * * The length of this field should be no more than 500 characters. * @param {google.privacy.dlp.v2.DlpJobType} request.type * The type of jobs. Will use `DlpJobType.INSPECT` if not set. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.JobTrigger|JobTrigger} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listJobTriggersAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listJobTriggersStream(request?: protos.google.privacy.dlp.v2.IListJobTriggersRequest, options?: CallOptions): Transform; /** * Equivalent to `listJobTriggers`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to ListJobTriggers. `order_by` field must not * change for subsequent calls. * @param {number} request.pageSize * Size of the page. This value can be limited by a server. * @param {string} request.orderBy * Comma-separated list of triggeredJob fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the JobTrigger was created. * - `update_time`: corresponds to the time the JobTrigger was last updated. * - `last_run_time`: corresponds to the last time the JobTrigger ran. * - `name`: corresponds to the JobTrigger's name. * - `display_name`: corresponds to the JobTrigger's display name. * - `status`: corresponds to JobTrigger's status. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields/values for inspect triggers: * - `status` - HEALTHY|PAUSED|CANCELLED * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by * quotation marks. Nanoseconds are ignored. * - 'error_count' - Number of errors that have occurred while running. * * The operator must be `=` or `!=` for status and inspected_storage. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * inspected_storage = cloud_storage AND status = HEALTHY * * inspected_storage = cloud_storage OR inspected_storage = bigquery * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * * last_run_time > \"2017-12-12T00:00:00+00:00\" * * The length of this field should be no more than 500 characters. * @param {google.privacy.dlp.v2.DlpJobType} request.type * The type of jobs. Will use `DlpJobType.INSPECT` if not set. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.JobTrigger|JobTrigger}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_job_triggers.js * region_tag:dlp_v2_generated_DlpService_ListJobTriggers_async */ listJobTriggersAsync(request?: protos.google.privacy.dlp.v2.IListJobTriggersRequest, options?: CallOptions): AsyncIterable; /** * Lists discovery configurations. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value is as follows: * `projects/{project_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to ListDiscoveryConfigs. `order_by` field must not * change for subsequent calls. * @param {number} request.pageSize * Size of the page. This value can be limited by a server. * @param {string} request.orderBy * Comma-separated list of config fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. * - `name`: corresponds to the DiscoveryConfig's name. * - `status`: corresponds to DiscoveryConfig's status. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listDiscoveryConfigsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listDiscoveryConfigs(request?: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDiscoveryConfig[], protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest | null, protos.google.privacy.dlp.v2.IListDiscoveryConfigsResponse ]>; listDiscoveryConfigs(request: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, options: CallOptions, callback: PaginationCallback): void; listDiscoveryConfigs(request: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, callback: PaginationCallback): void; /** * Equivalent to `listDiscoveryConfigs`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value is as follows: * `projects/{project_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to ListDiscoveryConfigs. `order_by` field must not * change for subsequent calls. * @param {number} request.pageSize * Size of the page. This value can be limited by a server. * @param {string} request.orderBy * Comma-separated list of config fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. * - `name`: corresponds to the DiscoveryConfig's name. * - `status`: corresponds to DiscoveryConfig's status. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listDiscoveryConfigsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listDiscoveryConfigsStream(request?: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, options?: CallOptions): Transform; /** * Equivalent to `listDiscoveryConfigs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value is as follows: * `projects/{project_id}/locations/{location_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to ListDiscoveryConfigs. `order_by` field must not * change for subsequent calls. * @param {number} request.pageSize * Size of the page. This value can be limited by a server. * @param {string} request.orderBy * Comma-separated list of config fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc,update_time, create_time desc` * * Supported fields are: * * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. * - `name`: corresponds to the DiscoveryConfig's name. * - `status`: corresponds to DiscoveryConfig's status. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_discovery_configs.js * region_tag:dlp_v2_generated_DlpService_ListDiscoveryConfigs_async */ listDiscoveryConfigsAsync(request?: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, options?: CallOptions): AsyncIterable; /** * Lists DlpJobs that match the specified filter in the request. * See * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage * and * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields/values for inspect jobs: * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY * - `trigger_name` - The name of the trigger that created the job. * - 'end_time` - Corresponds to the time the job finished. * - 'start_time` - Corresponds to the time the job finished. * * Supported fields for risk analysis jobs: * - `state` - RUNNING|CANCELED|FINISHED|FAILED * - 'end_time` - Corresponds to the time the job finished. * - 'start_time` - Corresponds to the time the job finished. * * The operator must be `=` or `!=`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * inspected_storage = cloud_storage AND state = done * * inspected_storage = cloud_storage OR inspected_storage = bigquery * * inspected_storage = cloud_storage AND (state = done OR state = canceled) * * end_time > \"2017-12-12T00:00:00+00:00\" * * The length of this field should be no more than 500 characters. * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * @param {google.privacy.dlp.v2.DlpJobType} request.type * The type of job. Defaults to `DlpJobType.INSPECT` * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc, end_time asc, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the job was created. * - `end_time`: corresponds to the time the job ended. * - `name`: corresponds to the job's name. * - `state`: corresponds to `state` * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.DlpJob|DlpJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listDlpJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listDlpJobs(request?: protos.google.privacy.dlp.v2.IListDlpJobsRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IDlpJob[], protos.google.privacy.dlp.v2.IListDlpJobsRequest | null, protos.google.privacy.dlp.v2.IListDlpJobsResponse ]>; listDlpJobs(request: protos.google.privacy.dlp.v2.IListDlpJobsRequest, options: CallOptions, callback: PaginationCallback): void; listDlpJobs(request: protos.google.privacy.dlp.v2.IListDlpJobsRequest, callback: PaginationCallback): void; /** * Equivalent to `listDlpJobs`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields/values for inspect jobs: * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY * - `trigger_name` - The name of the trigger that created the job. * - 'end_time` - Corresponds to the time the job finished. * - 'start_time` - Corresponds to the time the job finished. * * Supported fields for risk analysis jobs: * - `state` - RUNNING|CANCELED|FINISHED|FAILED * - 'end_time` - Corresponds to the time the job finished. * - 'start_time` - Corresponds to the time the job finished. * * The operator must be `=` or `!=`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * inspected_storage = cloud_storage AND state = done * * inspected_storage = cloud_storage OR inspected_storage = bigquery * * inspected_storage = cloud_storage AND (state = done OR state = canceled) * * end_time > \"2017-12-12T00:00:00+00:00\" * * The length of this field should be no more than 500 characters. * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * @param {google.privacy.dlp.v2.DlpJobType} request.type * The type of job. Defaults to `DlpJobType.INSPECT` * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc, end_time asc, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the job was created. * - `end_time`: corresponds to the time the job ended. * - `name`: corresponds to the job's name. * - `state`: corresponds to `state` * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.DlpJob|DlpJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listDlpJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listDlpJobsStream(request?: protos.google.privacy.dlp.v2.IListDlpJobsRequest, options?: CallOptions): Transform; /** * Equivalent to `listDlpJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on whether you have [specified a * processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields/values for inspect jobs: * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY * - `trigger_name` - The name of the trigger that created the job. * - 'end_time` - Corresponds to the time the job finished. * - 'start_time` - Corresponds to the time the job finished. * * Supported fields for risk analysis jobs: * - `state` - RUNNING|CANCELED|FINISHED|FAILED * - 'end_time` - Corresponds to the time the job finished. * - 'start_time` - Corresponds to the time the job finished. * * The operator must be `=` or `!=`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * inspected_storage = cloud_storage AND state = done * * inspected_storage = cloud_storage OR inspected_storage = bigquery * * inspected_storage = cloud_storage AND (state = done OR state = canceled) * * end_time > \"2017-12-12T00:00:00+00:00\" * * The length of this field should be no more than 500 characters. * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * @param {google.privacy.dlp.v2.DlpJobType} request.type * The type of job. Defaults to `DlpJobType.INSPECT` * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc, end_time asc, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the job was created. * - `end_time`: corresponds to the time the job ended. * - `name`: corresponds to the job's name. * - `state`: corresponds to `state` * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.DlpJob|DlpJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_dlp_jobs.js * region_tag:dlp_v2_generated_DlpService_ListDlpJobs_async */ listDlpJobsAsync(request?: protos.google.privacy.dlp.v2.IListDlpJobsRequest, options?: CallOptions): AsyncIterable; /** * Lists stored infoTypes. * See * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes * to learn more. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListStoredInfoTypes`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc, display_name, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the most recent version of the * resource was created. * - `state`: corresponds to the state of the resource. * - `name`: corresponds to resource name. * - `display_name`: corresponds to info type's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.StoredInfoType|StoredInfoType}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listStoredInfoTypesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listStoredInfoTypes(request?: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IStoredInfoType[], protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest | null, protos.google.privacy.dlp.v2.IListStoredInfoTypesResponse ]>; listStoredInfoTypes(request: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options: CallOptions, callback: PaginationCallback): void; listStoredInfoTypes(request: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, callback: PaginationCallback): void; /** * Equivalent to `listStoredInfoTypes`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListStoredInfoTypes`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc, display_name, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the most recent version of the * resource was created. * - `state`: corresponds to the state of the resource. * - `name`: corresponds to resource name. * - `display_name`: corresponds to info type's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.StoredInfoType|StoredInfoType} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listStoredInfoTypesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listStoredInfoTypesStream(request?: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: CallOptions): Transform; /** * Equivalent to `listStoredInfoTypes`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Parent resource name. * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified: * `projects/{project_id}/locations/{location_id}` * + Projects scope, no location specified (defaults to global): * `projects/{project_id}` * * The following example `parent` string specifies a parent project with the * identifier `example-project`, and specifies the `europe-west3` location * for processing data: * * parent=projects/example-project/locations/europe-west3 * @param {string} request.pageToken * Page token to continue retrieval. Comes from the previous call * to `ListStoredInfoTypes`. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, * followed by `asc` or `desc` postfix. This list is case insensitive. The * default sorting order is ascending. Redundant space characters are * insignificant. * * Example: `name asc, display_name, create_time desc` * * Supported fields are: * * - `create_time`: corresponds to the time the most recent version of the * resource was created. * - `state`: corresponds to the state of the resource. * - `name`: corresponds to resource name. * - `display_name`: corresponds to info type's display name. * @param {string} request.locationId * Deprecated. This field has no effect. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.StoredInfoType|StoredInfoType}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_stored_info_types.js * region_tag:dlp_v2_generated_DlpService_ListStoredInfoTypes_async */ listStoredInfoTypesAsync(request?: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: CallOptions): AsyncIterable; /** * Lists project data profiles for an organization. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. organizations/{org_id}/locations/{loc_id} * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * `project_id` * * `sensitivity_level desc` * * Supported fields: * * - `project_id`: Google Cloud project ID * - `sensitivity_level`: How sensitive the data in a project is, at most * - `data_risk_level`: How much risk is associated with this data * - `profile_last_generated`: Date and time (in epoch seconds) the profile * was last generated * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: the Google Cloud project ID * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.ProjectDataProfile|ProjectDataProfile}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listProjectDataProfilesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listProjectDataProfiles(request?: protos.google.privacy.dlp.v2.IListProjectDataProfilesRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IProjectDataProfile[], protos.google.privacy.dlp.v2.IListProjectDataProfilesRequest | null, protos.google.privacy.dlp.v2.IListProjectDataProfilesResponse ]>; listProjectDataProfiles(request: protos.google.privacy.dlp.v2.IListProjectDataProfilesRequest, options: CallOptions, callback: PaginationCallback): void; listProjectDataProfiles(request: protos.google.privacy.dlp.v2.IListProjectDataProfilesRequest, callback: PaginationCallback): void; /** * Equivalent to `listProjectDataProfiles`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. organizations/{org_id}/locations/{loc_id} * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * `project_id` * * `sensitivity_level desc` * * Supported fields: * * - `project_id`: Google Cloud project ID * - `sensitivity_level`: How sensitive the data in a project is, at most * - `data_risk_level`: How much risk is associated with this data * - `profile_last_generated`: Date and time (in epoch seconds) the profile * was last generated * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: the Google Cloud project ID * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.ProjectDataProfile|ProjectDataProfile} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listProjectDataProfilesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listProjectDataProfilesStream(request?: protos.google.privacy.dlp.v2.IListProjectDataProfilesRequest, options?: CallOptions): Transform; /** * Equivalent to `listProjectDataProfiles`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. organizations/{org_id}/locations/{loc_id} * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * `project_id` * * `sensitivity_level desc` * * Supported fields: * * - `project_id`: Google Cloud project ID * - `sensitivity_level`: How sensitive the data in a project is, at most * - `data_risk_level`: How much risk is associated with this data * - `profile_last_generated`: Date and time (in epoch seconds) the profile * was last generated * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: the Google Cloud project ID * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.ProjectDataProfile|ProjectDataProfile}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_project_data_profiles.js * region_tag:dlp_v2_generated_DlpService_ListProjectDataProfiles_async */ listProjectDataProfilesAsync(request?: protos.google.privacy.dlp.v2.IListProjectDataProfilesRequest, options?: CallOptions): AsyncIterable; /** * Lists table data profiles for an organization. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * `project_id asc` * * `table_id` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `dataset_id`: The ID of a BigQuery dataset. * - `table_id`: The ID of a BigQuery table. * - `sensitivity_level`: How sensitive the data in a table is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * - `last_modified`: The last time the resource was modified. * - `resource_visibility`: Visibility restriction for this resource. * - `row_count`: Number of rows in this resource. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: The Google Cloud project ID * - `dataset_id`: The BigQuery dataset ID * - `table_id`: The ID of the BigQuery table * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `project_id = 12345 AND resource_visibility = PUBLIC` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.TableDataProfile|TableDataProfile}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listTableDataProfilesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listTableDataProfiles(request?: protos.google.privacy.dlp.v2.IListTableDataProfilesRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.ITableDataProfile[], protos.google.privacy.dlp.v2.IListTableDataProfilesRequest | null, protos.google.privacy.dlp.v2.IListTableDataProfilesResponse ]>; listTableDataProfiles(request: protos.google.privacy.dlp.v2.IListTableDataProfilesRequest, options: CallOptions, callback: PaginationCallback): void; listTableDataProfiles(request: protos.google.privacy.dlp.v2.IListTableDataProfilesRequest, callback: PaginationCallback): void; /** * Equivalent to `listTableDataProfiles`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * `project_id asc` * * `table_id` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `dataset_id`: The ID of a BigQuery dataset. * - `table_id`: The ID of a BigQuery table. * - `sensitivity_level`: How sensitive the data in a table is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * - `last_modified`: The last time the resource was modified. * - `resource_visibility`: Visibility restriction for this resource. * - `row_count`: Number of rows in this resource. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: The Google Cloud project ID * - `dataset_id`: The BigQuery dataset ID * - `table_id`: The ID of the BigQuery table * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `project_id = 12345 AND resource_visibility = PUBLIC` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.TableDataProfile|TableDataProfile} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listTableDataProfilesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listTableDataProfilesStream(request?: protos.google.privacy.dlp.v2.IListTableDataProfilesRequest, options?: CallOptions): Transform; /** * Equivalent to `listTableDataProfiles`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * `project_id asc` * * `table_id` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `dataset_id`: The ID of a BigQuery dataset. * - `table_id`: The ID of a BigQuery table. * - `sensitivity_level`: How sensitive the data in a table is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * - `last_modified`: The last time the resource was modified. * - `resource_visibility`: Visibility restriction for this resource. * - `row_count`: Number of rows in this resource. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: The Google Cloud project ID * - `dataset_id`: The BigQuery dataset ID * - `table_id`: The ID of the BigQuery table * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `project_id = 12345 AND resource_visibility = PUBLIC` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.TableDataProfile|TableDataProfile}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_table_data_profiles.js * region_tag:dlp_v2_generated_DlpService_ListTableDataProfiles_async */ listTableDataProfilesAsync(request?: protos.google.privacy.dlp.v2.IListTableDataProfilesRequest, options?: CallOptions): AsyncIterable; /** * Lists column data profiles for an organization. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * * `project_id asc` * * `table_id` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `dataset_id`: The ID of a BigQuery dataset. * - `table_id`: The ID of a BigQuery table. * - `sensitivity_level`: How sensitive the data in a column is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `table_data_profile_name`: The name of the related table data * profile * - `project_id`: The Google Cloud project ID (REQUIRED) * - `dataset_id`: The BigQuery dataset ID (REQUIRED) * - `table_id`: The BigQuery table ID (REQUIRED) * - `field_id`: The ID of the BigQuery field * - `info_type`: The infotype detected in the resource * - `sensitivity_level`: HIGH|MEDIUM|LOW * - `data_risk_level`: How much risk is associated with this data * - `status_code`: An RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * The operator must be `=` for project_id, dataset_id, and table_id. Other * filters also support `!=`. The `profile_last_generated` filter also * supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * project_id = 12345 AND status_code = 1 * * project_id = 12345 AND sensitivity_level = HIGH * * project_id = 12345 AND info_type = STREET_ADDRESS * * profile_last_generated < "2025-01-01T00:00:00.000Z" * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.ColumnDataProfile|ColumnDataProfile}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listColumnDataProfilesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listColumnDataProfiles(request?: protos.google.privacy.dlp.v2.IListColumnDataProfilesRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IColumnDataProfile[], protos.google.privacy.dlp.v2.IListColumnDataProfilesRequest | null, protos.google.privacy.dlp.v2.IListColumnDataProfilesResponse ]>; listColumnDataProfiles(request: protos.google.privacy.dlp.v2.IListColumnDataProfilesRequest, options: CallOptions, callback: PaginationCallback): void; listColumnDataProfiles(request: protos.google.privacy.dlp.v2.IListColumnDataProfilesRequest, callback: PaginationCallback): void; /** * Equivalent to `listColumnDataProfiles`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * * `project_id asc` * * `table_id` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `dataset_id`: The ID of a BigQuery dataset. * - `table_id`: The ID of a BigQuery table. * - `sensitivity_level`: How sensitive the data in a column is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `table_data_profile_name`: The name of the related table data * profile * - `project_id`: The Google Cloud project ID (REQUIRED) * - `dataset_id`: The BigQuery dataset ID (REQUIRED) * - `table_id`: The BigQuery table ID (REQUIRED) * - `field_id`: The ID of the BigQuery field * - `info_type`: The infotype detected in the resource * - `sensitivity_level`: HIGH|MEDIUM|LOW * - `data_risk_level`: How much risk is associated with this data * - `status_code`: An RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * The operator must be `=` for project_id, dataset_id, and table_id. Other * filters also support `!=`. The `profile_last_generated` filter also * supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * project_id = 12345 AND status_code = 1 * * project_id = 12345 AND sensitivity_level = HIGH * * project_id = 12345 AND info_type = STREET_ADDRESS * * profile_last_generated < "2025-01-01T00:00:00.000Z" * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.ColumnDataProfile|ColumnDataProfile} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listColumnDataProfilesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listColumnDataProfilesStream(request?: protos.google.privacy.dlp.v2.IListColumnDataProfilesRequest, options?: CallOptions): Transform; /** * Equivalent to `listColumnDataProfiles`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} request.pageToken * Page token to continue retrieval. * @param {number} request.pageSize * Size of the page. This value can be limited by the server. If zero, server * returns a page of max size 100. * @param {string} request.orderBy * Comma-separated list of fields to order by, followed by `asc` or `desc` * postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * * `project_id asc` * * `table_id` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `dataset_id`: The ID of a BigQuery dataset. * - `table_id`: The ID of a BigQuery table. * - `sensitivity_level`: How sensitive the data in a column is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * @param {string} request.filter * Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `table_data_profile_name`: The name of the related table data * profile * - `project_id`: The Google Cloud project ID (REQUIRED) * - `dataset_id`: The BigQuery dataset ID (REQUIRED) * - `table_id`: The BigQuery table ID (REQUIRED) * - `field_id`: The ID of the BigQuery field * - `info_type`: The infotype detected in the resource * - `sensitivity_level`: HIGH|MEDIUM|LOW * - `data_risk_level`: How much risk is associated with this data * - `status_code`: An RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * The operator must be `=` for project_id, dataset_id, and table_id. Other * filters also support `!=`. The `profile_last_generated` filter also * supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * project_id = 12345 AND status_code = 1 * * project_id = 12345 AND sensitivity_level = HIGH * * project_id = 12345 AND info_type = STREET_ADDRESS * * profile_last_generated < "2025-01-01T00:00:00.000Z" * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.ColumnDataProfile|ColumnDataProfile}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_column_data_profiles.js * region_tag:dlp_v2_generated_DlpService_ListColumnDataProfiles_async */ listColumnDataProfilesAsync(request?: protos.google.privacy.dlp.v2.IListColumnDataProfilesRequest, options?: CallOptions): AsyncIterable; /** * Lists file store data profiles for an organization. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} [request.pageToken] * Optional. Page token to continue retrieval. * @param {number} [request.pageSize] * Optional. Size of the page. This value can be limited by the server. If * zero, server returns a page of max size 100. * @param {string} [request.orderBy] * Optional. Comma-separated list of fields to order by, followed by `asc` or * `desc` postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * * `project_id asc` * * `name` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `sensitivity_level`: How sensitive the data in a table is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * - `last_modified`: The last time the resource was modified. * - `resource_visibility`: Visibility restriction for this resource. * - `name`: The name of the profile. * - `create_time`: The time the file store was first created. * @param {string} [request.filter] * Optional. Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: The Google Cloud project ID * - `account_id`: The AWS account ID * - `file_store_path`: The path like "gs://bucket" * - `data_source_type`: The profile's data source type, like * "google/storage/bucket" * - `data_storage_location`: The location where the file store's data is * stored, like "us-central1" * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `project_id = 12345 AND resource_visibility = PUBLIC` * * `file_store_path = "gs://mybucket"` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.FileStoreDataProfile|FileStoreDataProfile}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listFileStoreDataProfilesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listFileStoreDataProfiles(request?: protos.google.privacy.dlp.v2.IListFileStoreDataProfilesRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IFileStoreDataProfile[], protos.google.privacy.dlp.v2.IListFileStoreDataProfilesRequest | null, protos.google.privacy.dlp.v2.IListFileStoreDataProfilesResponse ]>; listFileStoreDataProfiles(request: protos.google.privacy.dlp.v2.IListFileStoreDataProfilesRequest, options: CallOptions, callback: PaginationCallback): void; listFileStoreDataProfiles(request: protos.google.privacy.dlp.v2.IListFileStoreDataProfilesRequest, callback: PaginationCallback): void; /** * Equivalent to `listFileStoreDataProfiles`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} [request.pageToken] * Optional. Page token to continue retrieval. * @param {number} [request.pageSize] * Optional. Size of the page. This value can be limited by the server. If * zero, server returns a page of max size 100. * @param {string} [request.orderBy] * Optional. Comma-separated list of fields to order by, followed by `asc` or * `desc` postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * * `project_id asc` * * `name` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `sensitivity_level`: How sensitive the data in a table is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * - `last_modified`: The last time the resource was modified. * - `resource_visibility`: Visibility restriction for this resource. * - `name`: The name of the profile. * - `create_time`: The time the file store was first created. * @param {string} [request.filter] * Optional. Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: The Google Cloud project ID * - `account_id`: The AWS account ID * - `file_store_path`: The path like "gs://bucket" * - `data_source_type`: The profile's data source type, like * "google/storage/bucket" * - `data_storage_location`: The location where the file store's data is * stored, like "us-central1" * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `project_id = 12345 AND resource_visibility = PUBLIC` * * `file_store_path = "gs://mybucket"` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.FileStoreDataProfile|FileStoreDataProfile} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listFileStoreDataProfilesAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listFileStoreDataProfilesStream(request?: protos.google.privacy.dlp.v2.IListFileStoreDataProfilesRequest, options?: CallOptions): Transform; /** * Equivalent to `listFileStoreDataProfiles`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {string} [request.pageToken] * Optional. Page token to continue retrieval. * @param {number} [request.pageSize] * Optional. Size of the page. This value can be limited by the server. If * zero, server returns a page of max size 100. * @param {string} [request.orderBy] * Optional. Comma-separated list of fields to order by, followed by `asc` or * `desc` postfix. This list is case insensitive. The default sorting order is * ascending. Redundant space characters are insignificant. Only one order * field at a time is allowed. * * Examples: * * * `project_id asc` * * `name` * * `sensitivity_level desc` * * Supported fields are: * * - `project_id`: The Google Cloud project ID. * - `sensitivity_level`: How sensitive the data in a table is, at most. * - `data_risk_level`: How much risk is associated with this data. * - `profile_last_generated`: When the profile was last updated in epoch * seconds. * - `last_modified`: The last time the resource was modified. * - `resource_visibility`: Visibility restriction for this resource. * - `name`: The name of the profile. * - `create_time`: The time the file store was first created. * @param {string} [request.filter] * Optional. Allows filtering. * * Supported syntax: * * * Filter expressions are made up of one or more restrictions. * * Restrictions can be combined by `AND` or `OR` logical operators. A * sequence of restrictions implicitly uses `AND`. * * A restriction has the form of `{field} {operator} {value}`. * * Supported fields: * - `project_id`: The Google Cloud project ID * - `account_id`: The AWS account ID * - `file_store_path`: The path like "gs://bucket" * - `data_source_type`: The profile's data source type, like * "google/storage/bucket" * - `data_storage_location`: The location where the file store's data is * stored, like "us-central1" * - `sensitivity_level`: HIGH|MODERATE|LOW * - `data_risk_level`: HIGH|MODERATE|LOW * - `resource_visibility`: PUBLIC|RESTRICTED * - `status_code`: an RPC status code as defined in * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * - `profile_last_generated`: Date and time the profile was last * generated * * * The operator must be `=` or `!=`. The `profile_last_generated` filter * also supports `<` and `>`. * * The syntax is based on https://google.aip.dev/160. * * Examples: * * * `project_id = 12345 AND status_code = 1` * * `project_id = 12345 AND sensitivity_level = HIGH` * * `project_id = 12345 AND resource_visibility = PUBLIC` * * `file_store_path = "gs://mybucket"` * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` * * The length of this field should be no more than 500 characters. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.FileStoreDataProfile|FileStoreDataProfile}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_file_store_data_profiles.js * region_tag:dlp_v2_generated_DlpService_ListFileStoreDataProfiles_async */ listFileStoreDataProfilesAsync(request?: protos.google.privacy.dlp.v2.IListFileStoreDataProfilesRequest, options?: CallOptions): AsyncIterable; /** * Lists Connections in a parent. Use SearchConnections to see all connections * within an organization. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example, `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {number} [request.pageSize] * Optional. Number of results per page, max 1000. * @param {string} [request.pageToken] * Optional. Page token from a previous page to return the next set of * results. If set, all other request fields must match the original request. * @param {string} [request.filter] * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR * * The syntax is based on https://google.aip.dev/160. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.Connection|Connection}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `listConnectionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listConnections(request?: protos.google.privacy.dlp.v2.IListConnectionsRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IConnection[], protos.google.privacy.dlp.v2.IListConnectionsRequest | null, protos.google.privacy.dlp.v2.IListConnectionsResponse ]>; listConnections(request: protos.google.privacy.dlp.v2.IListConnectionsRequest, options: CallOptions, callback: PaginationCallback): void; listConnections(request: protos.google.privacy.dlp.v2.IListConnectionsRequest, callback: PaginationCallback): void; /** * Equivalent to `listConnections`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example, `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {number} [request.pageSize] * Optional. Number of results per page, max 1000. * @param {string} [request.pageToken] * Optional. Page token from a previous page to return the next set of * results. If set, all other request fields must match the original request. * @param {string} [request.filter] * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR * * The syntax is based on https://google.aip.dev/160. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listConnectionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ listConnectionsStream(request?: protos.google.privacy.dlp.v2.IListConnectionsRequest, options?: CallOptions): Transform; /** * Equivalent to `listConnections`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project, for * example, `organizations/433245324/locations/europe` or * `projects/project-id/locations/asia`. * @param {number} [request.pageSize] * Optional. Number of results per page, max 1000. * @param {string} [request.pageToken] * Optional. Page token from a previous page to return the next set of * results. If set, all other request fields must match the original request. * @param {string} [request.filter] * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR * * The syntax is based on https://google.aip.dev/160. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.Connection|Connection}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.list_connections.js * region_tag:dlp_v2_generated_DlpService_ListConnections_async */ listConnectionsAsync(request?: protos.google.privacy.dlp.v2.IListConnectionsRequest, options?: CallOptions): AsyncIterable; /** * Searches for Connections in a parent. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project with a wildcard * location, for example, `organizations/433245324/locations/-` or * `projects/project-id/locations/-`. * @param {number} [request.pageSize] * Optional. Number of results per page, max 1000. * @param {string} [request.pageToken] * Optional. Page token from a previous page to return the next set of * results. If set, all other request fields must match the original request. * @param {string} [request.filter] * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR * * The syntax is based on https://google.aip.dev/160. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.Connection|Connection}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. * We recommend using `searchConnectionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ searchConnections(request?: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, options?: CallOptions): Promise<[ protos.google.privacy.dlp.v2.IConnection[], protos.google.privacy.dlp.v2.ISearchConnectionsRequest | null, protos.google.privacy.dlp.v2.ISearchConnectionsResponse ]>; searchConnections(request: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, options: CallOptions, callback: PaginationCallback): void; searchConnections(request: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, callback: PaginationCallback): void; /** * Equivalent to `searchConnections`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project with a wildcard * location, for example, `organizations/433245324/locations/-` or * `projects/project-id/locations/-`. * @param {number} [request.pageSize] * Optional. Number of results per page, max 1000. * @param {string} [request.pageToken] * Optional. Page token from a previous page to return the next set of * results. If set, all other request fields must match the original request. * @param {string} [request.filter] * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR * * The syntax is based on https://google.aip.dev/160. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `searchConnectionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ searchConnectionsStream(request?: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, options?: CallOptions): Transform; /** * Equivalent to `searchConnections`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. Resource name of the organization or project with a wildcard * location, for example, `organizations/433245324/locations/-` or * `projects/project-id/locations/-`. * @param {number} [request.pageSize] * Optional. Number of results per page, max 1000. * @param {string} [request.pageToken] * Optional. Page token from a previous page to return the next set of * results. If set, all other request fields must match the original request. * @param {string} [request.filter] * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR * * The syntax is based on https://google.aip.dev/160. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link protos.google.privacy.dlp.v2.Connection|Connection}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example include:samples/generated/v2/dlp_service.search_connections.js * region_tag:dlp_v2_generated_DlpService_SearchConnections_async */ searchConnectionsAsync(request?: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, options?: CallOptions): AsyncIterable; /** * Gets information about a location. * * @param {Object} request * The request object that will be sent. * @param {string} request.name * Resource name for the location. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing {@link google.cloud.location.Location | Location}. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } * for more details and examples. * @example * ``` * const [response] = await client.getLocation(request); * ``` */ getLocation(request: LocationProtos.google.cloud.location.IGetLocationRequest, options?: gax.CallOptions | Callback, callback?: Callback): Promise; /** * Lists information about the supported locations for this service. Returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.name * The resource that owns the locations collection, if applicable. * @param {string} request.filter * The standard list filter. * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. * @example * ``` * const iterable = client.listLocationsAsync(request); * for await (const response of iterable) { * // process response * } * ``` */ listLocationsAsync(request: LocationProtos.google.cloud.location.IListLocationsRequest, options?: CallOptions): AsyncIterable; /** * Return a fully-qualified discoveryConfig resource name string. * * @param {string} project * @param {string} location * @param {string} discovery_config * @returns {string} Resource name string. */ discoveryConfigPath(project: string, location: string, discoveryConfig: string): string; /** * Parse the project from DiscoveryConfig resource. * * @param {string} discoveryConfigName * A fully-qualified path representing DiscoveryConfig resource. * @returns {string} A string representing the project. */ matchProjectFromDiscoveryConfigName(discoveryConfigName: string): string | number; /** * Parse the location from DiscoveryConfig resource. * * @param {string} discoveryConfigName * A fully-qualified path representing DiscoveryConfig resource. * @returns {string} A string representing the location. */ matchLocationFromDiscoveryConfigName(discoveryConfigName: string): string | number; /** * Parse the discovery_config from DiscoveryConfig resource. * * @param {string} discoveryConfigName * A fully-qualified path representing DiscoveryConfig resource. * @returns {string} A string representing the discovery_config. */ matchDiscoveryConfigFromDiscoveryConfigName(discoveryConfigName: string): string | number; /** * Return a fully-qualified finding resource name string. * * @param {string} project * @param {string} location * @param {string} finding * @returns {string} Resource name string. */ findingPath(project: string, location: string, finding: string): string; /** * Parse the project from Finding resource. * * @param {string} findingName * A fully-qualified path representing Finding resource. * @returns {string} A string representing the project. */ matchProjectFromFindingName(findingName: string): string | number; /** * Parse the location from Finding resource. * * @param {string} findingName * A fully-qualified path representing Finding resource. * @returns {string} A string representing the location. */ matchLocationFromFindingName(findingName: string): string | number; /** * Parse the finding from Finding resource. * * @param {string} findingName * A fully-qualified path representing Finding resource. * @returns {string} A string representing the finding. */ matchFindingFromFindingName(findingName: string): string | number; /** * Return a fully-qualified location resource name string. * * @param {string} project * @param {string} location * @returns {string} Resource name string. */ locationPath(project: string, location: string): string; /** * Parse the project from Location resource. * * @param {string} locationName * A fully-qualified path representing Location resource. * @returns {string} A string representing the project. */ matchProjectFromLocationName(locationName: string): string | number; /** * Parse the location from Location resource. * * @param {string} locationName * A fully-qualified path representing Location resource. * @returns {string} A string representing the location. */ matchLocationFromLocationName(locationName: string): string | number; /** * Return a fully-qualified organization resource name string. * * @param {string} organization * @returns {string} Resource name string. */ organizationPath(organization: string): string; /** * Parse the organization from Organization resource. * * @param {string} organizationName * A fully-qualified path representing Organization resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationName(organizationName: string): string | number; /** * Return a fully-qualified organizationDeidentifyTemplate resource name string. * * @param {string} organization * @param {string} deidentify_template * @returns {string} Resource name string. */ organizationDeidentifyTemplatePath(organization: string, deidentifyTemplate: string): string; /** * Parse the organization from OrganizationDeidentifyTemplate resource. * * @param {string} organizationDeidentifyTemplateName * A fully-qualified path representing organization_deidentify_template resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationDeidentifyTemplateName(organizationDeidentifyTemplateName: string): string | number; /** * Parse the deidentify_template from OrganizationDeidentifyTemplate resource. * * @param {string} organizationDeidentifyTemplateName * A fully-qualified path representing organization_deidentify_template resource. * @returns {string} A string representing the deidentify_template. */ matchDeidentifyTemplateFromOrganizationDeidentifyTemplateName(organizationDeidentifyTemplateName: string): string | number; /** * Return a fully-qualified organizationInspectTemplate resource name string. * * @param {string} organization * @param {string} inspect_template * @returns {string} Resource name string. */ organizationInspectTemplatePath(organization: string, inspectTemplate: string): string; /** * Parse the organization from OrganizationInspectTemplate resource. * * @param {string} organizationInspectTemplateName * A fully-qualified path representing organization_inspect_template resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationInspectTemplateName(organizationInspectTemplateName: string): string | number; /** * Parse the inspect_template from OrganizationInspectTemplate resource. * * @param {string} organizationInspectTemplateName * A fully-qualified path representing organization_inspect_template resource. * @returns {string} A string representing the inspect_template. */ matchInspectTemplateFromOrganizationInspectTemplateName(organizationInspectTemplateName: string): string | number; /** * Return a fully-qualified organizationLocation resource name string. * * @param {string} organization * @param {string} location * @returns {string} Resource name string. */ organizationLocationPath(organization: string, location: string): string; /** * Parse the organization from OrganizationLocation resource. * * @param {string} organizationLocationName * A fully-qualified path representing OrganizationLocation resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationName(organizationLocationName: string): string | number; /** * Parse the location from OrganizationLocation resource. * * @param {string} organizationLocationName * A fully-qualified path representing OrganizationLocation resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationName(organizationLocationName: string): string | number; /** * Return a fully-qualified organizationLocationColumnDataProfile resource name string. * * @param {string} organization * @param {string} location * @param {string} column_data_profile * @returns {string} Resource name string. */ organizationLocationColumnDataProfilePath(organization: string, location: string, columnDataProfile: string): string; /** * Parse the organization from OrganizationLocationColumnDataProfile resource. * * @param {string} organizationLocationColumnDataProfileName * A fully-qualified path representing organization_location_column_data_profile resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationColumnDataProfileName(organizationLocationColumnDataProfileName: string): string | number; /** * Parse the location from OrganizationLocationColumnDataProfile resource. * * @param {string} organizationLocationColumnDataProfileName * A fully-qualified path representing organization_location_column_data_profile resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationColumnDataProfileName(organizationLocationColumnDataProfileName: string): string | number; /** * Parse the column_data_profile from OrganizationLocationColumnDataProfile resource. * * @param {string} organizationLocationColumnDataProfileName * A fully-qualified path representing organization_location_column_data_profile resource. * @returns {string} A string representing the column_data_profile. */ matchColumnDataProfileFromOrganizationLocationColumnDataProfileName(organizationLocationColumnDataProfileName: string): string | number; /** * Return a fully-qualified organizationLocationConnection resource name string. * * @param {string} organization * @param {string} location * @param {string} connection * @returns {string} Resource name string. */ organizationLocationConnectionPath(organization: string, location: string, connection: string): string; /** * Parse the organization from OrganizationLocationConnection resource. * * @param {string} organizationLocationConnectionName * A fully-qualified path representing organization_location_connection resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationConnectionName(organizationLocationConnectionName: string): string | number; /** * Parse the location from OrganizationLocationConnection resource. * * @param {string} organizationLocationConnectionName * A fully-qualified path representing organization_location_connection resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationConnectionName(organizationLocationConnectionName: string): string | number; /** * Parse the connection from OrganizationLocationConnection resource. * * @param {string} organizationLocationConnectionName * A fully-qualified path representing organization_location_connection resource. * @returns {string} A string representing the connection. */ matchConnectionFromOrganizationLocationConnectionName(organizationLocationConnectionName: string): string | number; /** * Return a fully-qualified organizationLocationDeidentifyTemplate resource name string. * * @param {string} organization * @param {string} location * @param {string} deidentify_template * @returns {string} Resource name string. */ organizationLocationDeidentifyTemplatePath(organization: string, location: string, deidentifyTemplate: string): string; /** * Parse the organization from OrganizationLocationDeidentifyTemplate resource. * * @param {string} organizationLocationDeidentifyTemplateName * A fully-qualified path representing organization_location_deidentify_template resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationDeidentifyTemplateName(organizationLocationDeidentifyTemplateName: string): string | number; /** * Parse the location from OrganizationLocationDeidentifyTemplate resource. * * @param {string} organizationLocationDeidentifyTemplateName * A fully-qualified path representing organization_location_deidentify_template resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationDeidentifyTemplateName(organizationLocationDeidentifyTemplateName: string): string | number; /** * Parse the deidentify_template from OrganizationLocationDeidentifyTemplate resource. * * @param {string} organizationLocationDeidentifyTemplateName * A fully-qualified path representing organization_location_deidentify_template resource. * @returns {string} A string representing the deidentify_template. */ matchDeidentifyTemplateFromOrganizationLocationDeidentifyTemplateName(organizationLocationDeidentifyTemplateName: string): string | number; /** * Return a fully-qualified organizationLocationFileStoreDataProfile resource name string. * * @param {string} organization * @param {string} location * @param {string} file_store_data_profile * @returns {string} Resource name string. */ organizationLocationFileStoreDataProfilePath(organization: string, location: string, fileStoreDataProfile: string): string; /** * Parse the organization from OrganizationLocationFileStoreDataProfile resource. * * @param {string} organizationLocationFileStoreDataProfileName * A fully-qualified path representing organization_location_file_store_data_profile resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName: string): string | number; /** * Parse the location from OrganizationLocationFileStoreDataProfile resource. * * @param {string} organizationLocationFileStoreDataProfileName * A fully-qualified path representing organization_location_file_store_data_profile resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName: string): string | number; /** * Parse the file_store_data_profile from OrganizationLocationFileStoreDataProfile resource. * * @param {string} organizationLocationFileStoreDataProfileName * A fully-qualified path representing organization_location_file_store_data_profile resource. * @returns {string} A string representing the file_store_data_profile. */ matchFileStoreDataProfileFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName: string): string | number; /** * Return a fully-qualified organizationLocationInspectTemplate resource name string. * * @param {string} organization * @param {string} location * @param {string} inspect_template * @returns {string} Resource name string. */ organizationLocationInspectTemplatePath(organization: string, location: string, inspectTemplate: string): string; /** * Parse the organization from OrganizationLocationInspectTemplate resource. * * @param {string} organizationLocationInspectTemplateName * A fully-qualified path representing organization_location_inspect_template resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationInspectTemplateName(organizationLocationInspectTemplateName: string): string | number; /** * Parse the location from OrganizationLocationInspectTemplate resource. * * @param {string} organizationLocationInspectTemplateName * A fully-qualified path representing organization_location_inspect_template resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationInspectTemplateName(organizationLocationInspectTemplateName: string): string | number; /** * Parse the inspect_template from OrganizationLocationInspectTemplate resource. * * @param {string} organizationLocationInspectTemplateName * A fully-qualified path representing organization_location_inspect_template resource. * @returns {string} A string representing the inspect_template. */ matchInspectTemplateFromOrganizationLocationInspectTemplateName(organizationLocationInspectTemplateName: string): string | number; /** * Return a fully-qualified organizationLocationProjectDataProfile resource name string. * * @param {string} organization * @param {string} location * @param {string} project_data_profile * @returns {string} Resource name string. */ organizationLocationProjectDataProfilePath(organization: string, location: string, projectDataProfile: string): string; /** * Parse the organization from OrganizationLocationProjectDataProfile resource. * * @param {string} organizationLocationProjectDataProfileName * A fully-qualified path representing organization_location_project_data_profile resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationProjectDataProfileName(organizationLocationProjectDataProfileName: string): string | number; /** * Parse the location from OrganizationLocationProjectDataProfile resource. * * @param {string} organizationLocationProjectDataProfileName * A fully-qualified path representing organization_location_project_data_profile resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationProjectDataProfileName(organizationLocationProjectDataProfileName: string): string | number; /** * Parse the project_data_profile from OrganizationLocationProjectDataProfile resource. * * @param {string} organizationLocationProjectDataProfileName * A fully-qualified path representing organization_location_project_data_profile resource. * @returns {string} A string representing the project_data_profile. */ matchProjectDataProfileFromOrganizationLocationProjectDataProfileName(organizationLocationProjectDataProfileName: string): string | number; /** * Return a fully-qualified organizationLocationStoredInfoType resource name string. * * @param {string} organization * @param {string} location * @param {string} stored_info_type * @returns {string} Resource name string. */ organizationLocationStoredInfoTypePath(organization: string, location: string, storedInfoType: string): string; /** * Parse the organization from OrganizationLocationStoredInfoType resource. * * @param {string} organizationLocationStoredInfoTypeName * A fully-qualified path representing organization_location_stored_info_type resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationStoredInfoTypeName(organizationLocationStoredInfoTypeName: string): string | number; /** * Parse the location from OrganizationLocationStoredInfoType resource. * * @param {string} organizationLocationStoredInfoTypeName * A fully-qualified path representing organization_location_stored_info_type resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationStoredInfoTypeName(organizationLocationStoredInfoTypeName: string): string | number; /** * Parse the stored_info_type from OrganizationLocationStoredInfoType resource. * * @param {string} organizationLocationStoredInfoTypeName * A fully-qualified path representing organization_location_stored_info_type resource. * @returns {string} A string representing the stored_info_type. */ matchStoredInfoTypeFromOrganizationLocationStoredInfoTypeName(organizationLocationStoredInfoTypeName: string): string | number; /** * Return a fully-qualified organizationLocationTableDataProfile resource name string. * * @param {string} organization * @param {string} location * @param {string} table_data_profile * @returns {string} Resource name string. */ organizationLocationTableDataProfilePath(organization: string, location: string, tableDataProfile: string): string; /** * Parse the organization from OrganizationLocationTableDataProfile resource. * * @param {string} organizationLocationTableDataProfileName * A fully-qualified path representing organization_location_table_data_profile resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationLocationTableDataProfileName(organizationLocationTableDataProfileName: string): string | number; /** * Parse the location from OrganizationLocationTableDataProfile resource. * * @param {string} organizationLocationTableDataProfileName * A fully-qualified path representing organization_location_table_data_profile resource. * @returns {string} A string representing the location. */ matchLocationFromOrganizationLocationTableDataProfileName(organizationLocationTableDataProfileName: string): string | number; /** * Parse the table_data_profile from OrganizationLocationTableDataProfile resource. * * @param {string} organizationLocationTableDataProfileName * A fully-qualified path representing organization_location_table_data_profile resource. * @returns {string} A string representing the table_data_profile. */ matchTableDataProfileFromOrganizationLocationTableDataProfileName(organizationLocationTableDataProfileName: string): string | number; /** * Return a fully-qualified organizationStoredInfoType resource name string. * * @param {string} organization * @param {string} stored_info_type * @returns {string} Resource name string. */ organizationStoredInfoTypePath(organization: string, storedInfoType: string): string; /** * Parse the organization from OrganizationStoredInfoType resource. * * @param {string} organizationStoredInfoTypeName * A fully-qualified path representing organization_stored_info_type resource. * @returns {string} A string representing the organization. */ matchOrganizationFromOrganizationStoredInfoTypeName(organizationStoredInfoTypeName: string): string | number; /** * Parse the stored_info_type from OrganizationStoredInfoType resource. * * @param {string} organizationStoredInfoTypeName * A fully-qualified path representing organization_stored_info_type resource. * @returns {string} A string representing the stored_info_type. */ matchStoredInfoTypeFromOrganizationStoredInfoTypeName(organizationStoredInfoTypeName: string): string | number; /** * Return a fully-qualified project resource name string. * * @param {string} project * @returns {string} Resource name string. */ projectPath(project: string): string; /** * Parse the project from Project resource. * * @param {string} projectName * A fully-qualified path representing Project resource. * @returns {string} A string representing the project. */ matchProjectFromProjectName(projectName: string): string | number; /** * Return a fully-qualified projectDeidentifyTemplate resource name string. * * @param {string} project * @param {string} deidentify_template * @returns {string} Resource name string. */ projectDeidentifyTemplatePath(project: string, deidentifyTemplate: string): string; /** * Parse the project from ProjectDeidentifyTemplate resource. * * @param {string} projectDeidentifyTemplateName * A fully-qualified path representing project_deidentify_template resource. * @returns {string} A string representing the project. */ matchProjectFromProjectDeidentifyTemplateName(projectDeidentifyTemplateName: string): string | number; /** * Parse the deidentify_template from ProjectDeidentifyTemplate resource. * * @param {string} projectDeidentifyTemplateName * A fully-qualified path representing project_deidentify_template resource. * @returns {string} A string representing the deidentify_template. */ matchDeidentifyTemplateFromProjectDeidentifyTemplateName(projectDeidentifyTemplateName: string): string | number; /** * Return a fully-qualified projectDlpContent resource name string. * * @param {string} project * @returns {string} Resource name string. */ projectDlpContentPath(project: string): string; /** * Parse the project from ProjectDlpContent resource. * * @param {string} projectDlpContentName * A fully-qualified path representing project_dlpContent resource. * @returns {string} A string representing the project. */ matchProjectFromProjectDlpContentName(projectDlpContentName: string): string | number; /** * Return a fully-qualified projectDlpJob resource name string. * * @param {string} project * @param {string} dlp_job * @returns {string} Resource name string. */ projectDlpJobPath(project: string, dlpJob: string): string; /** * Parse the project from ProjectDlpJob resource. * * @param {string} projectDlpJobName * A fully-qualified path representing project_dlp_job resource. * @returns {string} A string representing the project. */ matchProjectFromProjectDlpJobName(projectDlpJobName: string): string | number; /** * Parse the dlp_job from ProjectDlpJob resource. * * @param {string} projectDlpJobName * A fully-qualified path representing project_dlp_job resource. * @returns {string} A string representing the dlp_job. */ matchDlpJobFromProjectDlpJobName(projectDlpJobName: string): string | number; /** * Return a fully-qualified projectInspectTemplate resource name string. * * @param {string} project * @param {string} inspect_template * @returns {string} Resource name string. */ projectInspectTemplatePath(project: string, inspectTemplate: string): string; /** * Parse the project from ProjectInspectTemplate resource. * * @param {string} projectInspectTemplateName * A fully-qualified path representing project_inspect_template resource. * @returns {string} A string representing the project. */ matchProjectFromProjectInspectTemplateName(projectInspectTemplateName: string): string | number; /** * Parse the inspect_template from ProjectInspectTemplate resource. * * @param {string} projectInspectTemplateName * A fully-qualified path representing project_inspect_template resource. * @returns {string} A string representing the inspect_template. */ matchInspectTemplateFromProjectInspectTemplateName(projectInspectTemplateName: string): string | number; /** * Return a fully-qualified projectJobTrigger resource name string. * * @param {string} project * @param {string} job_trigger * @returns {string} Resource name string. */ projectJobTriggerPath(project: string, jobTrigger: string): string; /** * Parse the project from ProjectJobTrigger resource. * * @param {string} projectJobTriggerName * A fully-qualified path representing project_job_trigger resource. * @returns {string} A string representing the project. */ matchProjectFromProjectJobTriggerName(projectJobTriggerName: string): string | number; /** * Parse the job_trigger from ProjectJobTrigger resource. * * @param {string} projectJobTriggerName * A fully-qualified path representing project_job_trigger resource. * @returns {string} A string representing the job_trigger. */ matchJobTriggerFromProjectJobTriggerName(projectJobTriggerName: string): string | number; /** * Return a fully-qualified projectLocationColumnDataProfile resource name string. * * @param {string} project * @param {string} location * @param {string} column_data_profile * @returns {string} Resource name string. */ projectLocationColumnDataProfilePath(project: string, location: string, columnDataProfile: string): string; /** * Parse the project from ProjectLocationColumnDataProfile resource. * * @param {string} projectLocationColumnDataProfileName * A fully-qualified path representing project_location_column_data_profile resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationColumnDataProfileName(projectLocationColumnDataProfileName: string): string | number; /** * Parse the location from ProjectLocationColumnDataProfile resource. * * @param {string} projectLocationColumnDataProfileName * A fully-qualified path representing project_location_column_data_profile resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationColumnDataProfileName(projectLocationColumnDataProfileName: string): string | number; /** * Parse the column_data_profile from ProjectLocationColumnDataProfile resource. * * @param {string} projectLocationColumnDataProfileName * A fully-qualified path representing project_location_column_data_profile resource. * @returns {string} A string representing the column_data_profile. */ matchColumnDataProfileFromProjectLocationColumnDataProfileName(projectLocationColumnDataProfileName: string): string | number; /** * Return a fully-qualified projectLocationConnection resource name string. * * @param {string} project * @param {string} location * @param {string} connection * @returns {string} Resource name string. */ projectLocationConnectionPath(project: string, location: string, connection: string): string; /** * Parse the project from ProjectLocationConnection resource. * * @param {string} projectLocationConnectionName * A fully-qualified path representing project_location_connection resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationConnectionName(projectLocationConnectionName: string): string | number; /** * Parse the location from ProjectLocationConnection resource. * * @param {string} projectLocationConnectionName * A fully-qualified path representing project_location_connection resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationConnectionName(projectLocationConnectionName: string): string | number; /** * Parse the connection from ProjectLocationConnection resource. * * @param {string} projectLocationConnectionName * A fully-qualified path representing project_location_connection resource. * @returns {string} A string representing the connection. */ matchConnectionFromProjectLocationConnectionName(projectLocationConnectionName: string): string | number; /** * Return a fully-qualified projectLocationDeidentifyTemplate resource name string. * * @param {string} project * @param {string} location * @param {string} deidentify_template * @returns {string} Resource name string. */ projectLocationDeidentifyTemplatePath(project: string, location: string, deidentifyTemplate: string): string; /** * Parse the project from ProjectLocationDeidentifyTemplate resource. * * @param {string} projectLocationDeidentifyTemplateName * A fully-qualified path representing project_location_deidentify_template resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationDeidentifyTemplateName(projectLocationDeidentifyTemplateName: string): string | number; /** * Parse the location from ProjectLocationDeidentifyTemplate resource. * * @param {string} projectLocationDeidentifyTemplateName * A fully-qualified path representing project_location_deidentify_template resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationDeidentifyTemplateName(projectLocationDeidentifyTemplateName: string): string | number; /** * Parse the deidentify_template from ProjectLocationDeidentifyTemplate resource. * * @param {string} projectLocationDeidentifyTemplateName * A fully-qualified path representing project_location_deidentify_template resource. * @returns {string} A string representing the deidentify_template. */ matchDeidentifyTemplateFromProjectLocationDeidentifyTemplateName(projectLocationDeidentifyTemplateName: string): string | number; /** * Return a fully-qualified projectLocationDlpJob resource name string. * * @param {string} project * @param {string} location * @param {string} dlp_job * @returns {string} Resource name string. */ projectLocationDlpJobPath(project: string, location: string, dlpJob: string): string; /** * Parse the project from ProjectLocationDlpJob resource. * * @param {string} projectLocationDlpJobName * A fully-qualified path representing project_location_dlp_job resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationDlpJobName(projectLocationDlpJobName: string): string | number; /** * Parse the location from ProjectLocationDlpJob resource. * * @param {string} projectLocationDlpJobName * A fully-qualified path representing project_location_dlp_job resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationDlpJobName(projectLocationDlpJobName: string): string | number; /** * Parse the dlp_job from ProjectLocationDlpJob resource. * * @param {string} projectLocationDlpJobName * A fully-qualified path representing project_location_dlp_job resource. * @returns {string} A string representing the dlp_job. */ matchDlpJobFromProjectLocationDlpJobName(projectLocationDlpJobName: string): string | number; /** * Return a fully-qualified projectLocationFileStoreDataProfile resource name string. * * @param {string} project * @param {string} location * @param {string} file_store_data_profile * @returns {string} Resource name string. */ projectLocationFileStoreDataProfilePath(project: string, location: string, fileStoreDataProfile: string): string; /** * Parse the project from ProjectLocationFileStoreDataProfile resource. * * @param {string} projectLocationFileStoreDataProfileName * A fully-qualified path representing project_location_file_store_data_profile resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName: string): string | number; /** * Parse the location from ProjectLocationFileStoreDataProfile resource. * * @param {string} projectLocationFileStoreDataProfileName * A fully-qualified path representing project_location_file_store_data_profile resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName: string): string | number; /** * Parse the file_store_data_profile from ProjectLocationFileStoreDataProfile resource. * * @param {string} projectLocationFileStoreDataProfileName * A fully-qualified path representing project_location_file_store_data_profile resource. * @returns {string} A string representing the file_store_data_profile. */ matchFileStoreDataProfileFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName: string): string | number; /** * Return a fully-qualified projectLocationInspectTemplate resource name string. * * @param {string} project * @param {string} location * @param {string} inspect_template * @returns {string} Resource name string. */ projectLocationInspectTemplatePath(project: string, location: string, inspectTemplate: string): string; /** * Parse the project from ProjectLocationInspectTemplate resource. * * @param {string} projectLocationInspectTemplateName * A fully-qualified path representing project_location_inspect_template resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationInspectTemplateName(projectLocationInspectTemplateName: string): string | number; /** * Parse the location from ProjectLocationInspectTemplate resource. * * @param {string} projectLocationInspectTemplateName * A fully-qualified path representing project_location_inspect_template resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationInspectTemplateName(projectLocationInspectTemplateName: string): string | number; /** * Parse the inspect_template from ProjectLocationInspectTemplate resource. * * @param {string} projectLocationInspectTemplateName * A fully-qualified path representing project_location_inspect_template resource. * @returns {string} A string representing the inspect_template. */ matchInspectTemplateFromProjectLocationInspectTemplateName(projectLocationInspectTemplateName: string): string | number; /** * Return a fully-qualified projectLocationJobTrigger resource name string. * * @param {string} project * @param {string} location * @param {string} job_trigger * @returns {string} Resource name string. */ projectLocationJobTriggerPath(project: string, location: string, jobTrigger: string): string; /** * Parse the project from ProjectLocationJobTrigger resource. * * @param {string} projectLocationJobTriggerName * A fully-qualified path representing project_location_job_trigger resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationJobTriggerName(projectLocationJobTriggerName: string): string | number; /** * Parse the location from ProjectLocationJobTrigger resource. * * @param {string} projectLocationJobTriggerName * A fully-qualified path representing project_location_job_trigger resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationJobTriggerName(projectLocationJobTriggerName: string): string | number; /** * Parse the job_trigger from ProjectLocationJobTrigger resource. * * @param {string} projectLocationJobTriggerName * A fully-qualified path representing project_location_job_trigger resource. * @returns {string} A string representing the job_trigger. */ matchJobTriggerFromProjectLocationJobTriggerName(projectLocationJobTriggerName: string): string | number; /** * Return a fully-qualified projectLocationProjectDataProfile resource name string. * * @param {string} project * @param {string} location * @param {string} project_data_profile * @returns {string} Resource name string. */ projectLocationProjectDataProfilePath(project: string, location: string, projectDataProfile: string): string; /** * Parse the project from ProjectLocationProjectDataProfile resource. * * @param {string} projectLocationProjectDataProfileName * A fully-qualified path representing project_location_project_data_profile resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationProjectDataProfileName(projectLocationProjectDataProfileName: string): string | number; /** * Parse the location from ProjectLocationProjectDataProfile resource. * * @param {string} projectLocationProjectDataProfileName * A fully-qualified path representing project_location_project_data_profile resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationProjectDataProfileName(projectLocationProjectDataProfileName: string): string | number; /** * Parse the project_data_profile from ProjectLocationProjectDataProfile resource. * * @param {string} projectLocationProjectDataProfileName * A fully-qualified path representing project_location_project_data_profile resource. * @returns {string} A string representing the project_data_profile. */ matchProjectDataProfileFromProjectLocationProjectDataProfileName(projectLocationProjectDataProfileName: string): string | number; /** * Return a fully-qualified projectLocationStoredInfoType resource name string. * * @param {string} project * @param {string} location * @param {string} stored_info_type * @returns {string} Resource name string. */ projectLocationStoredInfoTypePath(project: string, location: string, storedInfoType: string): string; /** * Parse the project from ProjectLocationStoredInfoType resource. * * @param {string} projectLocationStoredInfoTypeName * A fully-qualified path representing project_location_stored_info_type resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationStoredInfoTypeName(projectLocationStoredInfoTypeName: string): string | number; /** * Parse the location from ProjectLocationStoredInfoType resource. * * @param {string} projectLocationStoredInfoTypeName * A fully-qualified path representing project_location_stored_info_type resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationStoredInfoTypeName(projectLocationStoredInfoTypeName: string): string | number; /** * Parse the stored_info_type from ProjectLocationStoredInfoType resource. * * @param {string} projectLocationStoredInfoTypeName * A fully-qualified path representing project_location_stored_info_type resource. * @returns {string} A string representing the stored_info_type. */ matchStoredInfoTypeFromProjectLocationStoredInfoTypeName(projectLocationStoredInfoTypeName: string): string | number; /** * Return a fully-qualified projectLocationTableDataProfile resource name string. * * @param {string} project * @param {string} location * @param {string} table_data_profile * @returns {string} Resource name string. */ projectLocationTableDataProfilePath(project: string, location: string, tableDataProfile: string): string; /** * Parse the project from ProjectLocationTableDataProfile resource. * * @param {string} projectLocationTableDataProfileName * A fully-qualified path representing project_location_table_data_profile resource. * @returns {string} A string representing the project. */ matchProjectFromProjectLocationTableDataProfileName(projectLocationTableDataProfileName: string): string | number; /** * Parse the location from ProjectLocationTableDataProfile resource. * * @param {string} projectLocationTableDataProfileName * A fully-qualified path representing project_location_table_data_profile resource. * @returns {string} A string representing the location. */ matchLocationFromProjectLocationTableDataProfileName(projectLocationTableDataProfileName: string): string | number; /** * Parse the table_data_profile from ProjectLocationTableDataProfile resource. * * @param {string} projectLocationTableDataProfileName * A fully-qualified path representing project_location_table_data_profile resource. * @returns {string} A string representing the table_data_profile. */ matchTableDataProfileFromProjectLocationTableDataProfileName(projectLocationTableDataProfileName: string): string | number; /** * Return a fully-qualified projectStoredInfoType resource name string. * * @param {string} project * @param {string} stored_info_type * @returns {string} Resource name string. */ projectStoredInfoTypePath(project: string, storedInfoType: string): string; /** * Parse the project from ProjectStoredInfoType resource. * * @param {string} projectStoredInfoTypeName * A fully-qualified path representing project_stored_info_type resource. * @returns {string} A string representing the project. */ matchProjectFromProjectStoredInfoTypeName(projectStoredInfoTypeName: string): string | number; /** * Parse the stored_info_type from ProjectStoredInfoType resource. * * @param {string} projectStoredInfoTypeName * A fully-qualified path representing project_stored_info_type resource. * @returns {string} A string representing the stored_info_type. */ matchStoredInfoTypeFromProjectStoredInfoTypeName(projectStoredInfoTypeName: string): string | number; /** * Terminate the gRPC channel and close the client. * * The client will no longer be usable and all future behavior is undefined. * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise; }