lib/google/apis/dlp_v2/service.rb in google-apis-dlp_v2-0.59.0 vs lib/google/apis/dlp_v2/service.rb in google-apis-dlp_v2-0.60.0
- old
+ new
@@ -29,11 +29,11 @@
# require 'google/apis/dlp_v2'
#
# Dlp = Google::Apis::DlpV2 # Alias the module
# service = Dlp::DLPService.new
#
- # @see https://cloud.google.com/dlp/docs/
+ # @see https://cloud.google.com/sensitive-data-protection/docs/
class DLPService < Google::Apis::Core::BaseService
DEFAULT_ENDPOINT_TEMPLATE = "https://dlp.$UNIVERSE_DOMAIN$/"
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
@@ -51,11 +51,12 @@
client_version: Google::Apis::DlpV2::GEM_VERSION)
@batch_path = 'batch'
end
# Returns a list of the sensitive information types that DLP API supports. See
- # https://cloud.google.com/dlp/docs/infotypes-reference to learn more.
+ # https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to
+ # learn more.
# @param [String] filter
# filter to only return infoTypes supported by certain parts of the API.
# Defaults to supported_by=INSPECT.
# @param [String] language_code
# BCP-47 language code for localized infoType friendly names. If omitted, or if
@@ -94,11 +95,12 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a list of the sensitive information types that DLP API supports. See
- # https://cloud.google.com/dlp/docs/infotypes-reference to learn more.
+ # https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to
+ # learn more.
# @param [String] parent
# The parent resource name. The format of this value is as follows: locations/
# LOCATION_ID
# @param [String] filter
# filter to only return infoTypes supported by certain parts of the API.
@@ -137,24 +139,25 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a DeidentifyTemplate for reusing frequently used configuration for de-
- # identifying content, images, and storage. See https://cloud.google.com/dlp/
- # docs/creating-templates-deid to learn more.
+ # identifying content, images, and storage. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-templates-deid to learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -181,12 +184,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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 [String] fields
@@ -214,12 +217,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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 [String] fields
@@ -247,24 +250,25 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -308,12 +312,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
@@ -345,24 +349,25 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an InspectTemplate for reusing frequently used configuration for
- # inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/
- # creating-templates to learn more.
+ # inspecting content, images, and storage. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-templates to learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -389,12 +394,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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 [String] fields
@@ -422,12 +427,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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 [String] fields
@@ -455,24 +460,25 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-templates to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -516,12 +522,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
@@ -552,25 +558,125 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Gets a column data profile.
+ # @param [String] name
+ # Required. Resource name, for example `organizations/12345/locations/us/
+ # columnDataProfiles/53234423`.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def get_organization_location_column_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Lists data profiles for an organization.
+ # @param [String] parent
+ # Required. Resource name of the organization or project, for example `
+ # organizations/433245324/locations/europe` or projects/project-id/locations/
+ # asia.
+ # @param [String] 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: - `
+ # 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 * The operator must be `=` for project_id,
+ # dataset_id, and table_id. Other filters also support `!=`. Examples: *
+ # project_id = 12345 AND status_code = 1 * project_id = 12345 AND
+ # sensitivity_level = HIGH * project_id = 12345 AND info_type = STREET_ADDRESS
+ # The length of this field should be no more than 500 characters.
+ # @param [String] order_by
+ # 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 [Fixnum] page_size
+ # Size of the page. This value can be limited by the server. If zero, server
+ # returns a page of max size 100.
+ # @param [String] page_token
+ # Page token to continue retrieval.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def list_organization_location_column_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/columnDataProfiles', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
+ command.query['orderBy'] = order_by unless order_by.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Creates a DeidentifyTemplate for reusing frequently used configuration for de-
- # identifying content, images, and storage. See https://cloud.google.com/dlp/
- # docs/creating-templates-deid to learn more.
+ # identifying content, images, and storage. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-templates-deid to learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -597,12 +703,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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 [String] fields
@@ -630,12 +736,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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 [String] fields
@@ -663,24 +769,25 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -724,12 +831,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
@@ -943,21 +1050,22 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists DlpJobs that match the specified filter in the request. See https://
- # cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
- # docs/compute-risk-analysis to learn more.
+ # 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 [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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] 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
@@ -1021,24 +1129,25 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an InspectTemplate for reusing frequently used configuration for
- # inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/
- # creating-templates to learn more.
+ # inspecting content, images, and storage. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-templates to learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -1065,12 +1174,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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 [String] fields
@@ -1098,12 +1207,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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 [String] fields
@@ -1131,24 +1240,25 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-templates to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -1192,12 +1302,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
@@ -1229,21 +1339,21 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a job trigger to run DLP actions such as scanning storage for
- # sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/
- # creating-job-triggers to learn more.
+ # sensitive information on a set schedule. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-job-triggers to learn more.
# @param [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -1270,12 +1380,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -1302,12 +1412,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -1334,21 +1444,21 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Lists job triggers. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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] 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
@@ -1412,12 +1522,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object
# @param [String] fields
@@ -1447,24 +1557,116 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Gets a project data profile.
+ # @param [String] name
+ # Required. Resource name, for example `organizations/12345/locations/us/
+ # projectDataProfiles/53234423`.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def get_organization_location_project_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Lists data profiles for an organization.
+ # @param [String] parent
+ # Required. organizations/`org_id`/locations/`loc_id`
+ # @param [String] 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: - `
+ # 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 * The operator must be
+ # `=` or `!=`. Examples: * project_id = 12345 AND status_code = 1 * project_id =
+ # 12345 AND sensitivity_level = HIGH The length of this field should be no more
+ # than 500 characters.
+ # @param [String] order_by
+ # 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 are: - `project_id`: GCP 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`: When the
+ # profile was last updated in epoch seconds.
+ # @param [Fixnum] page_size
+ # Size of the page. This value can be limited by the server. If zero, server
+ # returns a page of max size 100.
+ # @param [String] page_token
+ # Page token to continue retrieval.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def list_organization_location_project_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/projectDataProfiles', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
+ command.query['orderBy'] = order_by unless order_by.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Creates a pre-built stored infoType to be used for inspection. See https://
- # cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
+ # cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to
+ # learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -1491,12 +1693,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-
- # stored-infotypes to learn more.
+ # Deletes a stored infoType. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-stored-infotypes to learn more.
# @param [String] 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 [String] fields
@@ -1524,12 +1726,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-
- # infotypes to learn more.
+ # Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-stored-infotypes to learn more.
# @param [String] 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 [String] fields
@@ -1557,22 +1759,22 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-
- # infotypes to learn more.
+ # Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-stored-infotypes to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -1618,11 +1820,12 @@
execute_or_queue_command(command, &block)
end
# 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/dlp/docs/creating-stored-infotypes to learn more.
+ # google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ # more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
@@ -1653,24 +1856,125 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Gets a table data profile.
+ # @param [String] name
+ # Required. Resource name, for example `organizations/12345/locations/us/
+ # tableDataProfiles/53234423`.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def get_organization_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Lists data profiles for an organization.
+ # @param [String] parent
+ # Required. Resource name of the organization or project, for example `
+ # organizations/433245324/locations/europe` or `projects/project-id/locations/
+ # asia`.
+ # @param [String] 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: - `
+ # project_id` - The GCP 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 * The
+ # operator must be `=` or `!=`. Examples: * project_id = 12345 AND status_code =
+ # 1 * project_id = 12345 AND sensitivity_level = HIGH * project_id = 12345 AND
+ # resource_visibility = PUBLIC The length of this field should be no more than
+ # 500 characters.
+ # @param [String] order_by
+ # 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 GCP 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 [Fixnum] page_size
+ # Size of the page. This value can be limited by the server. If zero, server
+ # returns a page of max size 100.
+ # @param [String] page_token
+ # Page token to continue retrieval.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def list_organization_location_table_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/tableDataProfiles', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
+ command.query['orderBy'] = order_by unless order_by.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Creates a pre-built stored infoType to be used for inspection. See https://
- # cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
+ # cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to
+ # learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -1697,12 +2001,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-
- # stored-infotypes to learn more.
+ # Deletes a stored infoType. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-stored-infotypes to learn more.
# @param [String] 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 [String] fields
@@ -1730,12 +2034,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-
- # infotypes to learn more.
+ # Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-stored-infotypes to learn more.
# @param [String] 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 [String] fields
@@ -1763,22 +2067,22 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-
- # infotypes to learn more.
+ # Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-stored-infotypes to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -1824,11 +2128,12 @@
execute_or_queue_command(command, &block)
end
# 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/dlp/docs/creating-stored-infotypes to learn more.
+ # google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ # more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
@@ -1860,24 +2165,24 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# De-identifies potentially sensitive info from a ContentItem. This method has
- # limits on input size and output size. See https://cloud.google.com/dlp/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.
+ # 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 [String] parent
# Parent resource name. The format of this value varies depending on whether you
- # have [specified a processing location](https://cloud.google.com/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -1908,21 +2213,22 @@
# 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/dlp/
- # docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
+ # 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 [String] parent
# Parent resource name. The format of this value varies depending on whether you
- # have [specified a processing location](https://cloud.google.com/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -1950,21 +2256,21 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Re-identifies content that has been de-identified. See https://cloud.google.
- # com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to
- # learn more.
+ # com/sensitive-data-protection/docs/pseudonymization#re-
+ # identification_in_free_text_code_example to learn more.
# @param [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -1992,24 +2298,25 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a DeidentifyTemplate for reusing frequently used configuration for de-
- # identifying content, images, and storage. See https://cloud.google.com/dlp/
- # docs/creating-templates-deid to learn more.
+ # identifying content, images, and storage. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-templates-deid to learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -2036,12 +2343,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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 [String] fields
@@ -2069,12 +2376,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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 [String] fields
@@ -2102,24 +2409,25 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -2163,12 +2471,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
@@ -2201,12 +2509,13 @@
execute_or_queue_command(command, &block)
end
# 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/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
- # docs/compute-risk-analysis to learn more.
+ # 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 [String] name
# Required. The name of the DlpJob resource to be cancelled.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest] google_privacy_dlp_v2_cancel_dlp_job_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -2236,24 +2545,24 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new job to inspect storage or calculate risk metrics. See https://
- # cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
- # 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.
+ # 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 [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -2282,12 +2591,13 @@
execute_or_queue_command(command, &block)
end
# 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/dlp/docs/inspecting-storage and https://cloud.
- # google.com/dlp/docs/compute-risk-analysis to learn more.
+ # 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 [String] name
# Required. The name of the DlpJob resource to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -2314,12 +2624,12 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running DlpJob. See https://cloud.google.com/
- # dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-
- # analysis to learn more.
+ # sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/
+ # sensitive-data-protection/docs/compute-risk-analysis to learn more.
# @param [String] name
# Required. The name of the DlpJob resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -2346,21 +2656,22 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists DlpJobs that match the specified filter in the request. See https://
- # cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
- # docs/compute-risk-analysis to learn more.
+ # 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 [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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] 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
@@ -2424,24 +2735,24 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Redacts potentially sensitive info from an image. This method has limits on
- # input size, processing time, and output size. See https://cloud.google.com/dlp/
- # 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.
+ # 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.
# @param [String] parent
# Parent resource name. The format of this value varies depending on whether you
- # have [specified a processing location](https://cloud.google.com/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -2469,24 +2780,25 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an InspectTemplate for reusing frequently used configuration for
- # inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/
- # creating-templates to learn more.
+ # inspecting content, images, and storage. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-templates to learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -2513,12 +2825,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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 [String] fields
@@ -2546,12 +2858,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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 [String] fields
@@ -2579,24 +2891,25 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-templates to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -2640,12 +2953,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
@@ -2712,21 +3025,21 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a job trigger to run DLP actions such as scanning storage for
- # sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/
- # creating-job-triggers to learn more.
+ # sensitive information on a set schedule. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-job-triggers to learn more.
# @param [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -2753,12 +3066,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -2785,12 +3098,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -2817,21 +3130,21 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Lists job triggers. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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] 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
@@ -2895,12 +3208,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object
# @param [String] fields
@@ -2930,25 +3243,124 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Gets a column data profile.
+ # @param [String] name
+ # Required. Resource name, for example `organizations/12345/locations/us/
+ # columnDataProfiles/53234423`.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def get_project_location_column_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Lists data profiles for an organization.
+ # @param [String] parent
+ # Required. Resource name of the organization or project, for example `
+ # organizations/433245324/locations/europe` or projects/project-id/locations/
+ # asia.
+ # @param [String] 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: - `
+ # 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 * The operator must be `=` for project_id,
+ # dataset_id, and table_id. Other filters also support `!=`. Examples: *
+ # project_id = 12345 AND status_code = 1 * project_id = 12345 AND
+ # sensitivity_level = HIGH * project_id = 12345 AND info_type = STREET_ADDRESS
+ # The length of this field should be no more than 500 characters.
+ # @param [String] order_by
+ # 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 [Fixnum] page_size
+ # Size of the page. This value can be limited by the server. If zero, server
+ # returns a page of max size 100.
+ # @param [String] page_token
+ # Page token to continue retrieval.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def list_project_location_column_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/columnDataProfiles', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
+ command.query['orderBy'] = order_by unless order_by.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# De-identifies potentially sensitive info from a ContentItem. This method has
- # limits on input size and output size. See https://cloud.google.com/dlp/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.
+ # 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 [String] parent
# Parent resource name. The format of this value varies depending on whether you
- # have [specified a processing location](https://cloud.google.com/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -2979,21 +3391,22 @@
# 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/dlp/
- # docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
+ # 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 [String] parent
# Parent resource name. The format of this value varies depending on whether you
- # have [specified a processing location](https://cloud.google.com/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -3021,21 +3434,21 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Re-identifies content that has been de-identified. See https://cloud.google.
- # com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to
- # learn more.
+ # com/sensitive-data-protection/docs/pseudonymization#re-
+ # identification_in_free_text_code_example to learn more.
# @param [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -3063,24 +3476,25 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a DeidentifyTemplate for reusing frequently used configuration for de-
- # identifying content, images, and storage. See https://cloud.google.com/dlp/
- # docs/creating-templates-deid to learn more.
+ # identifying content, images, and storage. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-templates-deid to learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -3107,12 +3521,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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 [String] fields
@@ -3140,12 +3554,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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 [String] fields
@@ -3173,24 +3587,25 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -3234,12 +3649,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates-deid to learn more.
+ # Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates-deid to learn more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
@@ -3454,12 +3869,13 @@
execute_or_queue_command(command, &block)
end
# 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/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
- # docs/compute-risk-analysis to learn more.
+ # 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 [String] name
# Required. The name of the DlpJob resource to be cancelled.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest] google_privacy_dlp_v2_cancel_dlp_job_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -3489,24 +3905,24 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new job to inspect storage or calculate risk metrics. See https://
- # cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
- # 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.
+ # 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 [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -3535,12 +3951,13 @@
execute_or_queue_command(command, &block)
end
# 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/dlp/docs/inspecting-storage and https://cloud.
- # google.com/dlp/docs/compute-risk-analysis to learn more.
+ # 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 [String] name
# Required. The name of the DlpJob resource to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -3601,12 +4018,12 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running DlpJob. See https://cloud.google.com/
- # dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-
- # analysis to learn more.
+ # sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/
+ # sensitive-data-protection/docs/compute-risk-analysis to learn more.
# @param [String] name
# Required. The name of the DlpJob resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -3668,21 +4085,22 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists DlpJobs that match the specified filter in the request. See https://
- # cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
- # docs/compute-risk-analysis to learn more.
+ # 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 [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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] 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
@@ -3746,24 +4164,24 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Redacts potentially sensitive info from an image. This method has limits on
- # input size, processing time, and output size. See https://cloud.google.com/dlp/
- # 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.
+ # 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.
# @param [String] parent
# Parent resource name. The format of this value varies depending on whether you
- # have [specified a processing location](https://cloud.google.com/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -3791,24 +4209,25 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an InspectTemplate for reusing frequently used configuration for
- # inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/
- # creating-templates to learn more.
+ # inspecting content, images, and storage. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-templates to learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -3835,12 +4254,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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 [String] fields
@@ -3868,12 +4287,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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 [String] fields
@@ -3901,24 +4320,25 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-templates to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -3962,12 +4382,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-
- # templates to learn more.
+ # Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-templates to learn more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
@@ -4034,21 +4454,21 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a job trigger to run DLP actions such as scanning storage for
- # sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/
- # creating-job-triggers to learn more.
+ # sensitive information on a set schedule. See https://cloud.google.com/
+ # sensitive-data-protection/docs/creating-job-triggers to learn more.
# @param [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -4075,12 +4495,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -4107,12 +4527,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -4175,21 +4595,21 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Lists job triggers. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] parent
# Required. Parent resource name. The format of this value varies depending on
# whether you have [specified a processing location](https://cloud.google.com/
- # dlp/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
+ # 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] 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
@@ -4253,12 +4673,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-
- # triggers to learn more.
+ # Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-job-triggers to learn more.
# @param [String] name
# Required. Resource name of the project and the triggeredJob, for example `
# projects/dlp-test-project/jobTriggers/53234423`.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object
# @param [String] fields
@@ -4288,24 +4708,116 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Gets a project data profile.
+ # @param [String] name
+ # Required. Resource name, for example `organizations/12345/locations/us/
+ # projectDataProfiles/53234423`.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def get_project_location_project_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Lists data profiles for an organization.
+ # @param [String] parent
+ # Required. organizations/`org_id`/locations/`loc_id`
+ # @param [String] 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: - `
+ # 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 * The operator must be
+ # `=` or `!=`. Examples: * project_id = 12345 AND status_code = 1 * project_id =
+ # 12345 AND sensitivity_level = HIGH The length of this field should be no more
+ # than 500 characters.
+ # @param [String] order_by
+ # 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 are: - `project_id`: GCP 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`: When the
+ # profile was last updated in epoch seconds.
+ # @param [Fixnum] page_size
+ # Size of the page. This value can be limited by the server. If zero, server
+ # returns a page of max size 100.
+ # @param [String] page_token
+ # Page token to continue retrieval.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def list_project_location_project_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/projectDataProfiles', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
+ command.query['orderBy'] = order_by unless order_by.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Creates a pre-built stored infoType to be used for inspection. See https://
- # cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
+ # cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to
+ # learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -4332,12 +4844,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-
- # stored-infotypes to learn more.
+ # Deletes a stored infoType. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-stored-infotypes to learn more.
# @param [String] 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 [String] fields
@@ -4365,12 +4877,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-
- # infotypes to learn more.
+ # Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-stored-infotypes to learn more.
# @param [String] 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 [String] fields
@@ -4398,22 +4910,22 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-
- # infotypes to learn more.
+ # Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-stored-infotypes to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -4459,11 +4971,12 @@
execute_or_queue_command(command, &block)
end
# 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/dlp/docs/creating-stored-infotypes to learn more.
+ # google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ # more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
@@ -4494,24 +5007,125 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Gets a table data profile.
+ # @param [String] name
+ # Required. Resource name, for example `organizations/12345/locations/us/
+ # tableDataProfiles/53234423`.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def get_project_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+name}', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Lists data profiles for an organization.
+ # @param [String] parent
+ # Required. Resource name of the organization or project, for example `
+ # organizations/433245324/locations/europe` or `projects/project-id/locations/
+ # asia`.
+ # @param [String] 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: - `
+ # project_id` - The GCP 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 * The
+ # operator must be `=` or `!=`. Examples: * project_id = 12345 AND status_code =
+ # 1 * project_id = 12345 AND sensitivity_level = HIGH * project_id = 12345 AND
+ # resource_visibility = PUBLIC The length of this field should be no more than
+ # 500 characters.
+ # @param [String] order_by
+ # 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 GCP 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 [Fixnum] page_size
+ # Size of the page. This value can be limited by the server. If zero, server
+ # returns a page of max size 100.
+ # @param [String] page_token
+ # Page token to continue retrieval.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def list_project_location_table_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2/{+parent}/tableDataProfiles', options)
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse::Representation
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['filter'] = filter unless filter.nil?
+ command.query['orderBy'] = order_by unless order_by.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Creates a pre-built stored infoType to be used for inspection. See https://
- # cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
+ # cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to
+ # learn more.
# @param [String] 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/dlp/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
+ # 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::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -4538,12 +5152,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-
- # stored-infotypes to learn more.
+ # Deletes a stored infoType. See https://cloud.google.com/sensitive-data-
+ # protection/docs/creating-stored-infotypes to learn more.
# @param [String] 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 [String] fields
@@ -4571,12 +5185,12 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-
- # infotypes to learn more.
+ # Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-stored-infotypes to learn more.
# @param [String] 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 [String] fields
@@ -4604,22 +5218,22 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
- # Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-
- # infotypes to learn more.
+ # Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/
+ # docs/creating-stored-infotypes to learn more.
# @param [String] 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/dlp/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
+ # 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] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# 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.
@@ -4665,10 +5279,11 @@
execute_or_queue_command(command, &block)
end
# 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/dlp/docs/creating-stored-infotypes to learn more.
+ # google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn
+ # more.
# @param [String] 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::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object