Class: Google::Apis::DlpV2::DLPService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
lib/google/apis/dlp_v2/service.rb

Overview

Sensitive Data Protection (DLP)

Discover and protect your sensitive data. A fully managed service designed to help you discover, classify, and protect your valuable data assets with ease.

Examples:

require 'google/apis/dlp_v2'

Dlp = Google::Apis::DlpV2 # Alias the module
service = Dlp::DLPService.new

See Also:

Constant Summary collapse

DEFAULT_ENDPOINT_TEMPLATE =
"https://dlp.$UNIVERSE_DOMAIN$/"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDLPService

Returns a new instance of DLPService.



48
49
50
51
52
53
# File 'lib/google/apis/dlp_v2/service.rb', line 48

def initialize
  super(DEFAULT_ENDPOINT_TEMPLATE, '',
        client_name: 'google-apis-dlp_v2',
        client_version: Google::Apis::DlpV2::GEM_VERSION)
  @batch_path = 'batch'
end

Instance Attribute Details

#keyString

Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Returns:

  • (String)

    API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.



41
42
43
# File 'lib/google/apis/dlp_v2/service.rb', line 41

def key
  @key
end

#quota_userString

Returns 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.

Returns:

  • (String)

    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.



46
47
48
# File 'lib/google/apis/dlp_v2/service.rb', line 46

def quota_user
  @quota_user
end

Instance Method Details

#activate_project_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob

Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur.

Parameters:

  • name (String)

    Required. Resource name of the trigger to activate, for example projects/dlp- test-project/jobTriggers/53234423.

  • google_privacy_dlp_v2_activate_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
# File 'lib/google/apis/dlp_v2/service.rb', line 3400

def activate_project_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+name}:activate', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_activate_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
  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

#activate_project_location_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob

Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur.

Parameters:

  • name (String)

    Required. Resource name of the trigger to activate, for example projects/dlp- test-project/jobTriggers/53234423.

  • google_privacy_dlp_v2_activate_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
# File 'lib/google/apis/dlp_v2/service.rb', line 5181

def activate_project_location_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+name}:activate', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_activate_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
  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

#cancel_project_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https:// cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https:// cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.

Parameters:

  • name (String)

    Required. The name of the DlpJob resource to be cancelled.

  • google_privacy_dlp_v2_cancel_dlp_job_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
# File 'lib/google/apis/dlp_v2/service.rb', line 2920

def cancel_project_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+name}:cancel', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation
  command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#cancel_project_location_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https:// cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https:// cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.

Parameters:

  • name (String)

    Required. The name of the DlpJob resource to be cancelled.

  • google_privacy_dlp_v2_cancel_dlp_job_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
# File 'lib/google/apis/dlp_v2/service.rb', line 4499

def cancel_project_location_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+name}:cancel', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation
  command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#create_organization_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Creates a DeidentifyTemplate for reusing frequently used configuration for de- identifying content, images, and storage. See https://cloud.google.com/ sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_deidentify_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



177
178
179
180
181
182
183
184
185
186
187
# File 'lib/google/apis/dlp_v2/service.rb', line 177

def create_organization_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/ sensitive-data-protection/docs/creating-templates to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_inspect_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



387
388
389
390
391
392
393
394
395
396
397
# File 'lib/google/apis/dlp_v2/service.rb', line 387

def create_organization_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_location_connection(parent, google_privacy_dlp_v2_create_connection_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Connection

Create a Connection to an external data source.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope: projects/project_id/locations/location_id+ Organizations scope: ` organizations/`org_id`/locations/`location_id

  • google_privacy_dlp_v2_create_connection_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateConnectionRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



686
687
688
689
690
691
692
693
694
695
696
# File 'lib/google/apis/dlp_v2/service.rb', line 686

def create_organization_location_connection(parent, google_privacy_dlp_v2_create_connection_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/connections', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateConnectionRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_connection_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Creates a DeidentifyTemplate for reusing frequently used configuration for de- identifying content, images, and storage. See https://cloud.google.com/ sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_deidentify_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



913
914
915
916
917
918
919
920
921
922
923
# File 'lib/google/apis/dlp_v2/service.rb', line 913

def create_organization_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_location_discovery_config(parent, google_privacy_dlp_v2_create_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig

Creates a config for discovery to scan and profile storage.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope: projects/project_id/locations/location_id+ Organizations scope: ` organizations/`org_id`/locations/`location_id The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/ example-project/locations/europe-west3

  • google_privacy_dlp_v2_create_discovery_config_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDiscoveryConfigRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
# File 'lib/google/apis/dlp_v2/service.rb', line 1116

def create_organization_location_discovery_config(parent, google_privacy_dlp_v2_create_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/discoveryConfigs', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDiscoveryConfigRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_discovery_config_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/ sensitive-data-protection/docs/creating-templates to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_inspect_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
# File 'lib/google/apis/dlp_v2/service.rb', line 1519

def create_organization_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_location_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/ sensitive-data-protection/docs/creating-job-triggers to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_create_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
# File 'lib/google/apis/dlp_v2/service.rb', line 1725

def create_organization_location_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Creates a pre-built stored infoType to be used for inspection. See https:// cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_stored_info_type_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
# File 'lib/google/apis/dlp_v2/service.rb', line 2038

def create_organization_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Creates a pre-built stored infoType to be used for inspection. See https:// cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_stored_info_type_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
# File 'lib/google/apis/dlp_v2/service.rb', line 2377

def create_organization_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Creates a DeidentifyTemplate for reusing frequently used configuration for de- identifying content, images, and storage. See https://cloud.google.com/ sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_deidentify_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
# File 'lib/google/apis/dlp_v2/service.rb', line 2719

def create_project_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob

Creates a new job to inspect storage or calculate risk metrics. See https:// cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https:// cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_create_dlp_job_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
# File 'lib/google/apis/dlp_v2/service.rb', line 2965

def create_project_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/ sensitive-data-protection/docs/creating-templates to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_inspect_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
# File 'lib/google/apis/dlp_v2/service.rb', line 3201

def create_project_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/ sensitive-data-protection/docs/creating-job-triggers to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_create_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
# File 'lib/google/apis/dlp_v2/service.rb', line 3442

def create_project_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_connection(parent, google_privacy_dlp_v2_create_connection_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Connection

Create a Connection to an external data source.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope: projects/project_id/locations/location_id+ Organizations scope: ` organizations/`org_id`/locations/`location_id

  • google_privacy_dlp_v2_create_connection_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateConnectionRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
# File 'lib/google/apis/dlp_v2/service.rb', line 3754

def create_project_location_connection(parent, google_privacy_dlp_v2_create_connection_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/connections', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateConnectionRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_connection_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Creates a DeidentifyTemplate for reusing frequently used configuration for de- identifying content, images, and storage. See https://cloud.google.com/ sensitive-data-protection/docs/creating-templates-deid to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_deidentify_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
# File 'lib/google/apis/dlp_v2/service.rb', line 4114

def create_project_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_discovery_config(parent, google_privacy_dlp_v2_create_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig

Creates a config for discovery to scan and profile storage.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope: projects/project_id/locations/location_id+ Organizations scope: ` organizations/`org_id`/locations/`location_id The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data: parent=projects/ example-project/locations/europe-west3

  • google_privacy_dlp_v2_create_discovery_config_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDiscoveryConfigRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
# File 'lib/google/apis/dlp_v2/service.rb', line 4317

def create_project_location_discovery_config(parent, google_privacy_dlp_v2_create_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/discoveryConfigs', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDiscoveryConfigRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_discovery_config_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob

Creates a new job to inspect storage or calculate risk metrics. See https:// cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https:// cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_create_dlp_job_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
# File 'lib/google/apis/dlp_v2/service.rb', line 4544

def create_project_location_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/ sensitive-data-protection/docs/creating-templates to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_inspect_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
# File 'lib/google/apis/dlp_v2/service.rb', line 4982

def create_project_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/ sensitive-data-protection/docs/creating-job-triggers to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_create_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
# File 'lib/google/apis/dlp_v2/service.rb', line 5223

def create_project_location_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Creates a pre-built stored infoType to be used for inspection. See https:// cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_stored_info_type_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
# File 'lib/google/apis/dlp_v2/service.rb', line 5572

def create_project_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Creates a pre-built stored infoType to be used for inspection. See https:// cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • parent (String)

    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: + 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

  • google_privacy_dlp_v2_create_stored_info_type_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
# File 'lib/google/apis/dlp_v2/service.rb', line 5911

def create_project_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
  command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#deidentify_project_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive- data-protection/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters:

  • parent (String)

    Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_deidentify_content_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
# File 'lib/google/apis/dlp_v2/service.rb', line 2585

def deidentify_project_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
  command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#deidentify_project_location_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive- data-protection/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters:

  • parent (String)

    Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_deidentify_content_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
# File 'lib/google/apis/dlp_v2/service.rb', line 3980

def deidentify_project_location_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
  command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



212
213
214
215
216
217
218
219
220
# File 'lib/google/apis/dlp_v2/service.rb', line 212

def delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



422
423
424
425
426
427
428
429
430
# File 'lib/google/apis/dlp_v2/service.rb', line 422

def delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_location_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Delete a Connection.

Parameters:

  • name (String)

    Required. Resource name of the Connection to be deleted, in the format: projects/project/locations/location/connections/connection``.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



719
720
721
722
723
724
725
726
727
# File 'lib/google/apis/dlp_v2/service.rb', line 719

def delete_organization_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



948
949
950
951
952
953
954
955
956
# File 'lib/google/apis/dlp_v2/service.rb', line 948

def delete_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_location_discovery_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the project and the config, for example projects/ dlp-test-project/discoveryConfigs/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1149
1150
1151
1152
1153
1154
1155
1156
1157
# File 'lib/google/apis/dlp_v2/service.rb', line 1149

def delete_organization_location_discovery_config(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the file store data profile.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1373
1374
1375
1376
1377
1378
1379
1380
1381
# File 'lib/google/apis/dlp_v2/service.rb', line 1373

def delete_organization_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_location_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1554
1555
1556
1557
1558
1559
1560
1561
1562
# File 'lib/google/apis/dlp_v2/service.rb', line 1554

def delete_organization_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_location_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1759
1760
1761
1762
1763
1764
1765
1766
1767
# File 'lib/google/apis/dlp_v2/service.rb', line 1759

def delete_organization_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a stored infoType. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2073
2074
2075
2076
2077
2078
2079
2080
2081
# File 'lib/google/apis/dlp_v2/service.rb', line 2073

def delete_organization_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the table data profile.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2234
2235
2236
2237
2238
2239
2240
2241
2242
# File 'lib/google/apis/dlp_v2/service.rb', line 2234

def delete_organization_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a stored infoType. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2412
2413
2414
2415
2416
2417
2418
2419
2420
# File 'lib/google/apis/dlp_v2/service.rb', line 2412

def delete_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'lib/google/apis/dlp_v2/service.rb', line 2754

def delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk- analysis to learn more.

Parameters:

  • name (String)

    Required. The name of the DlpJob resource to be deleted.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3001
3002
3003
3004
3005
3006
3007
3008
3009
# File 'lib/google/apis/dlp_v2/service.rb', line 3001

def delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3236
3237
3238
3239
3240
3241
3242
3243
3244
# File 'lib/google/apis/dlp_v2/service.rb', line 3236

def delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3476
3477
3478
3479
3480
3481
3482
3483
3484
# File 'lib/google/apis/dlp_v2/service.rb', line 3476

def delete_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Delete a Connection.

Parameters:

  • name (String)

    Required. Resource name of the Connection to be deleted, in the format: projects/project/locations/location/connections/connection``.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3787
3788
3789
3790
3791
3792
3793
3794
3795
# File 'lib/google/apis/dlp_v2/service.rb', line 3787

def delete_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and deidentify template to be deleted, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4149
4150
4151
4152
4153
4154
4155
4156
4157
# File 'lib/google/apis/dlp_v2/service.rb', line 4149

def delete_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_discovery_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the project and the config, for example projects/ dlp-test-project/discoveryConfigs/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4350
4351
4352
4353
4354
4355
4356
4357
4358
# File 'lib/google/apis/dlp_v2/service.rb', line 4350

def delete_project_location_discovery_config(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk- analysis to learn more.

Parameters:

  • name (String)

    Required. The name of the DlpJob resource to be deleted.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4580
4581
4582
4583
4584
4585
4586
4587
4588
# File 'lib/google/apis/dlp_v2/service.rb', line 4580

def delete_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the file store data profile.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4791
4792
4793
4794
4795
4796
4797
4798
4799
# File 'lib/google/apis/dlp_v2/service.rb', line 4791

def delete_project_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5017
5018
5019
5020
5021
5022
5023
5024
5025
# File 'lib/google/apis/dlp_v2/service.rb', line 5017

def delete_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5257
5258
5259
5260
5261
5262
5263
5264
5265
# File 'lib/google/apis/dlp_v2/service.rb', line 5257

def delete_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a stored infoType. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5607
5608
5609
5610
5611
5612
5613
5614
5615
# File 'lib/google/apis/dlp_v2/service.rb', line 5607

def delete_project_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the table data profile.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5768
5769
5770
5771
5772
5773
5774
5775
5776
# File 'lib/google/apis/dlp_v2/service.rb', line 5768

def delete_project_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#delete_project_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Deletes a stored infoType. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and storedInfoType to be deleted, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5946
5947
5948
5949
5950
5951
5952
5953
5954
# File 'lib/google/apis/dlp_v2/service.rb', line 5946

def delete_project_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#finish_project_location_dlp_job(name, google_privacy_dlp_v2_finish_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty

Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.

Parameters:

  • name (String)

    Required. The name of the DlpJob resource to be finished.

  • google_privacy_dlp_v2_finish_dlp_job_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2FinishDlpJobRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
# File 'lib/google/apis/dlp_v2/service.rb', line 4612

def finish_project_location_dlp_job(name, google_privacy_dlp_v2_finish_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+name}:finish', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2FinishDlpJobRequest::Representation
  command.request_object = google_privacy_dlp_v2_finish_dlp_job_request_object
  command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
  command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
  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

#get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



245
246
247
248
249
250
251
252
253
# File 'lib/google/apis/dlp_v2/service.rb', line 245

def get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  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

#get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Gets an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and inspectTemplate to be read, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



455
456
457
458
459
460
461
462
463
# File 'lib/google/apis/dlp_v2/service.rb', line 455

def get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  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

#get_organization_location_column_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile

Gets a column data profile.

Parameters:

  • name (String)

    Required. Resource name, for example organizations/12345/locations/us/ columnDataProfiles/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



584
585
586
587
588
589
590
591
592
# File 'lib/google/apis/dlp_v2/service.rb', line 584

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

#get_organization_location_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Connection

Get a Connection by name.

Parameters:

  • name (String)

    Required. Resource name in the format: projects/project/locations/location /connections/connection``.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



750
751
752
753
754
755
756
757
758
# File 'lib/google/apis/dlp_v2/service.rb', line 750

def get_organization_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
  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

#get_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



981
982
983
984
985
986
987
988
989
# File 'lib/google/apis/dlp_v2/service.rb', line 981

def get_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  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

#get_organization_location_discovery_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig

Gets a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1180
1181
1182
1183
1184
1185
1186
1187
1188
# File 'lib/google/apis/dlp_v2/service.rb', line 1180

def get_organization_location_discovery_config(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
  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

#get_organization_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile

Gets a file store data profile.

Parameters:

  • name (String)

    Required. Resource name, for example organizations/12345/locations/us/ fileStoreDataProfiles/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1404
1405
1406
1407
1408
1409
1410
1411
1412
# File 'lib/google/apis/dlp_v2/service.rb', line 1404

def get_organization_location_file_store_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::GooglePrivacyDlpV2FileStoreDataProfile::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile
  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

#get_organization_location_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Gets an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and inspectTemplate to be read, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1587
1588
1589
1590
1591
1592
1593
1594
1595
# File 'lib/google/apis/dlp_v2/service.rb', line 1587

def get_organization_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  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

#get_organization_location_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1791
1792
1793
1794
1795
1796
1797
1798
1799
# File 'lib/google/apis/dlp_v2/service.rb', line 1791

def get_organization_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  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

#get_organization_location_project_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile

Gets a project data profile.

Parameters:

  • name (String)

    Required. Resource name, for example organizations/12345/locations/us/ projectDataProfiles/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1935
1936
1937
1938
1939
1940
1941
1942
1943
# File 'lib/google/apis/dlp_v2/service.rb', line 1935

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

#get_organization_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/ docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and storedInfoType to be read, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/google/apis/dlp_v2/service.rb', line 2106

def get_organization_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  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

#get_organization_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile

Gets a table data profile.

Parameters:

  • name (String)

    Required. Resource name, for example organizations/12345/locations/us/ tableDataProfiles/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2265
2266
2267
2268
2269
2270
2271
2272
2273
# File 'lib/google/apis/dlp_v2/service.rb', line 2265

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

#get_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/ docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and storedInfoType to be read, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2445
2446
2447
2448
2449
2450
2451
2452
2453
# File 'lib/google/apis/dlp_v2/service.rb', line 2445

def get_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  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

#get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2787
2788
2789
2790
2791
2792
2793
2794
2795
# File 'lib/google/apis/dlp_v2/service.rb', line 2787

def get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  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

#get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob

Gets the latest state of a long-running DlpJob. See https://cloud.google.com/ sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/ sensitive-data-protection/docs/compute-risk-analysis to learn more.

Parameters:

  • name (String)

    Required. The name of the DlpJob resource.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3033
3034
3035
3036
3037
3038
3039
3040
3041
# File 'lib/google/apis/dlp_v2/service.rb', line 3033

def get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
  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

#get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Gets an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and inspectTemplate to be read, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3269
3270
3271
3272
3273
3274
3275
3276
3277
# File 'lib/google/apis/dlp_v2/service.rb', line 3269

def get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  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

#get_project_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3508
3509
3510
3511
3512
3513
3514
3515
3516
# File 'lib/google/apis/dlp_v2/service.rb', line 3508

def get_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  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

#get_project_location_column_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ColumnDataProfile

Gets a column data profile.

Parameters:

  • name (String)

    Required. Resource name, for example organizations/12345/locations/us/ columnDataProfiles/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3652
3653
3654
3655
3656
3657
3658
3659
3660
# File 'lib/google/apis/dlp_v2/service.rb', line 3652

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

#get_project_location_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Connection

Get a Connection by name.

Parameters:

  • name (String)

    Required. Resource name in the format: projects/project/locations/location /connections/connection``.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3818
3819
3820
3821
3822
3823
3824
3825
3826
# File 'lib/google/apis/dlp_v2/service.rb', line 3818

def get_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
  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

#get_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and deidentify template to be read, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4182
4183
4184
4185
4186
4187
4188
4189
4190
# File 'lib/google/apis/dlp_v2/service.rb', line 4182

def get_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  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

#get_project_location_discovery_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig

Gets a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4381
4382
4383
4384
4385
4386
4387
4388
4389
# File 'lib/google/apis/dlp_v2/service.rb', line 4381

def get_project_location_discovery_config(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
  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

#get_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob

Gets the latest state of a long-running DlpJob. See https://cloud.google.com/ sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/ sensitive-data-protection/docs/compute-risk-analysis to learn more.

Parameters:

  • name (String)

    Required. The name of the DlpJob resource.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4646
4647
4648
4649
4650
4651
4652
4653
4654
# File 'lib/google/apis/dlp_v2/service.rb', line 4646

def get_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
  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

#get_project_location_file_store_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile

Gets a file store data profile.

Parameters:

  • name (String)

    Required. Resource name, for example organizations/12345/locations/us/ fileStoreDataProfiles/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4822
4823
4824
4825
4826
4827
4828
4829
4830
# File 'lib/google/apis/dlp_v2/service.rb', line 4822

def get_project_location_file_store_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::GooglePrivacyDlpV2FileStoreDataProfile::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2FileStoreDataProfile
  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

#get_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Gets an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and inspectTemplate to be read, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5050
5051
5052
5053
5054
5055
5056
5057
5058
# File 'lib/google/apis/dlp_v2/service.rb', line 5050

def get_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  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

#get_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5289
5290
5291
5292
5293
5294
5295
5296
5297
# File 'lib/google/apis/dlp_v2/service.rb', line 5289

def get_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  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

#get_project_location_project_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ProjectDataProfile

Gets a project data profile.

Parameters:

  • name (String)

    Required. Resource name, for example organizations/12345/locations/us/ projectDataProfiles/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5469
5470
5471
5472
5473
5474
5475
5476
5477
# File 'lib/google/apis/dlp_v2/service.rb', line 5469

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

#get_project_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/ docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and storedInfoType to be read, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5640
5641
5642
5643
5644
5645
5646
5647
5648
# File 'lib/google/apis/dlp_v2/service.rb', line 5640

def get_project_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  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

#get_project_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2TableDataProfile

Gets a table data profile.

Parameters:

  • name (String)

    Required. Resource name, for example organizations/12345/locations/us/ tableDataProfiles/53234423.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5799
5800
5801
5802
5803
5804
5805
5806
5807
# File 'lib/google/apis/dlp_v2/service.rb', line 5799

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

#get_project_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/ docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of the organization and storedInfoType to be read, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5979
5980
5981
5982
5983
5984
5985
5986
5987
# File 'lib/google/apis/dlp_v2/service.rb', line 5979

def get_project_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+name}', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  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

#hybrid_project_location_dlp_job_inspect(name, google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse

Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.

Parameters:

  • name (String)

    Required. Resource name of the job to execute a hybrid inspect on, for example projects/dlp-test-project/dlpJob/53234423.

  • google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectDlpJobRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
# File 'lib/google/apis/dlp_v2/service.rb', line 4679

def hybrid_project_location_dlp_job_inspect(name, google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+name}:hybridInspect', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectDlpJobRequest::Representation
  command.request_object = google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse
  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

#hybrid_project_location_job_trigger_inspect(name, google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.

Parameters:

  • name (String)

    Required. Resource name of the trigger to execute a hybrid inspect on, for example projects/dlp-test-project/jobTriggers/53234423.

  • google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
# File 'lib/google/apis/dlp_v2/service.rb', line 5323

def hybrid_project_location_job_trigger_inspect(name, google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+name}:hybridInspect', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse
  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

#inspect_project_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/ sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/ sensitive-data-protection/docs/inspecting-text,

Parameters:

  • parent (String)

    Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_inspect_content_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
# File 'lib/google/apis/dlp_v2/service.rb', line 2631

def inspect_project_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
  command.request_object = google_privacy_dlp_v2_inspect_content_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#inspect_project_location_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/ sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/ sensitive-data-protection/docs/inspecting-text,

Parameters:

  • parent (String)

    Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_inspect_content_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
# File 'lib/google/apis/dlp_v2/service.rb', line 4026

def inspect_project_location_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
  command.request_object = google_privacy_dlp_v2_inspect_content_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_info_types(filter: nil, language_code: nil, location_id: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse

Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes- reference to learn more.

Parameters:

  • filter (String) (defaults to: nil)

    filter to only return infoTypes supported by certain parts of the API. Defaults to supported_by=INSPECT.

  • language_code (String) (defaults to: nil)

    BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned.

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • parent (String) (defaults to: nil)

    The parent resource name. The format of this value is as follows: locations/ location_id``

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/google/apis/dlp_v2/service.rb', line 86

def list_info_types(filter: nil, language_code: nil, location_id: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/infoTypes', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
  command.query['filter'] = filter unless filter.nil?
  command.query['languageCode'] = language_code unless language_code.nil?
  command.query['locationId'] = location_id unless location_id.nil?
  command.query['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse

Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes- reference to learn more.

Parameters:

  • parent (String)

    The parent resource name. The format of this value is as follows: locations/ location_id``

  • filter (String) (defaults to: nil)

    filter to only return infoTypes supported by certain parts of the API. Defaults to supported_by=INSPECT.

  • language_code (String) (defaults to: nil)

    BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned.

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/google/apis/dlp_v2/service.rb', line 130

def list_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/infoTypes', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['languageCode'] = language_code unless language_code.nil?
  command.query['locationId'] = location_id unless location_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_organization_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse

Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - create_time: corresponds to the time the template was created. - update_time: corresponds to the time the template was last updated. - name: corresponds to the template's name. - display_name: corresponds to the template's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListDeidentifyTemplates.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'lib/google/apis/dlp_v2/service.rb', line 303

def list_organization_deidentify_templates(parent, location_id: 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}/deidentifyTemplates', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#list_organization_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse

Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/ docs/creating-templates to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - create_time: corresponds to the time the template was created. - update_time: corresponds to the time the template was last updated. - name: corresponds to the template's name. - display_name: corresponds to the template's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListInspectTemplates.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



513
514
515
516
517
518
519
520
521
522
523
524
525
# File 'lib/google/apis/dlp_v2/service.rb', line 513

def list_organization_inspect_templates(parent, location_id: 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}/inspectTemplates', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#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) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse

Lists column data profiles for an organization.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/ asia.

  • filter (String) (defaults to: nil)

    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.

  • order_by (String) (defaults to: nil)

    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.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



648
649
650
651
652
653
654
655
656
657
658
659
660
# File 'lib/google/apis/dlp_v2/service.rb', line 648

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

#list_organization_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse

Lists Connections in a parent. Use SearchConnections to see all connections within an organization.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project, for example, organizations/433245324/locations/europe or projects/project-id/locations/ asia.

  • filter (String) (defaults to: nil)

    Optional. Supported field/value: state - MISSING|AVAILABLE|ERROR

  • page_size (Fixnum) (defaults to: nil)

    Optional. Number of results per page, max 1000.

  • page_token (String) (defaults to: nil)

    Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



790
791
792
793
794
795
796
797
798
799
800
801
# File 'lib/google/apis/dlp_v2/service.rb', line 790

def list_organization_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/connections', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.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

#list_organization_location_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse

Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - create_time: corresponds to the time the template was created. - update_time: corresponds to the time the template was last updated. - name: corresponds to the template's name. - display_name: corresponds to the template's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListDeidentifyTemplates.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
# File 'lib/google/apis/dlp_v2/service.rb', line 1039

def list_organization_location_deidentify_templates(parent, location_id: 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}/deidentifyTemplates', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#list_organization_location_discovery_configs(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse

Lists discovery configurations.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value is as follows: projects/project_id/locations/location_id`The following exampleparent string specifies a parent project with the identifierexample-project, and specifies theeurope-west3` location for processing data: parent=projects/ example-project/locations/europe-west3

  • order_by (String) (defaults to: nil)

    Comma-separated list of config fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - last_run_time: corresponds to the last time the DiscoveryConfig ran. - name: corresponds to the DiscoveryConfig's name. - status: corresponds to DiscoveryConfig's status.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by a server.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListDiscoveryConfigs. order_by field must not change for subsequent calls.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
# File 'lib/google/apis/dlp_v2/service.rb', line 1226

def list_organization_location_discovery_configs(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/discoveryConfigs', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse
  command.params['parent'] = parent unless parent.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

#list_organization_location_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse

Lists DlpJobs that match the specified filter in the request. See https:// cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https:// cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • filter (String) (defaults to: nil)

    Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of field` `operator` `value. * Supported fields/values for inspect jobs: - state - PENDING|RUNNING|CANCELED|FINISHED|FAILED - inspected_storage - DATASTORE|CLOUD_STORAGE|BIGQUERY - trigger_name - The name of the trigger that created the job. - 'end_time- Corresponds to the time the job finished. - 'start_time - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - state - RUNNING| CANCELED|FINISHED|FAILED - 'end_time- Corresponds to the time the job finished. - 'start_time - Corresponds to the time the job finished. * The operator must be = or !=. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, end_time asc, create_time desc Supported fields are: - create_time: corresponds to the time the job was created. - end_time: corresponds to the time the job ended. - name: corresponds to the job's name. - state: corresponds to state

  • page_size (Fixnum) (defaults to: nil)

    The standard list page size.

  • page_token (String) (defaults to: nil)

    The standard list page token.

  • type (String) (defaults to: nil)

    The type of job. Defaults to DlpJobType.INSPECT

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
# File 'lib/google/apis/dlp_v2/service.rb', line 1336

def list_organization_location_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['locationId'] = location_id unless location_id.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['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_organization_location_file_store_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse

Lists file store data profiles for an organization.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/ asia.

  • filter (String) (defaults to: nil)

    Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of field` `operator` `value. * Supported fields/ values: - project_id - The Google Cloud project ID. - account_id - The AWS account ID. - file_store_path - The path like "gs://bucket". - data_source_type - The profile's data source type, like "google/storage/ bucket". - data_storage_location - The location where the file store's data is stored, like "us-central1". - sensitivity_level - HIGH|MODERATE|LOW - data_risk_level - HIGH|MODERATE|LOW - resource_visibility: PUBLIC| RESTRICTED - status_code - an RPC status code as defined in https://github. com/googleapis/googleapis/blob/master/google/rpc/code.proto * 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 * file_store_path = "gs://mybucket" The length of this field should be no more than 500 characters.

  • order_by (String) (defaults to: nil)

    Optional. Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * project_id asc * name * sensitivity_level desc Supported fields are: - project_id: The Google Cloud project ID. - sensitivity_level: How sensitive the data in a table is, at most. - data_risk_level: How much risk is associated with this data. - profile_last_generated: When the profile was last updated in epoch seconds. - last_modified: The last time the resource was modified. - resource_visibility: Visibility restriction for this resource. - name: The name of the profile. - create_time: The time the file store was first created.

  • page_size (Fixnum) (defaults to: nil)

    Optional. Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Optional. Page token to continue retrieval.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
# File 'lib/google/apis/dlp_v2/service.rb', line 1471

def list_organization_location_file_store_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}/fileStoreDataProfiles', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse
  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

#list_organization_location_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse

Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/ docs/creating-templates to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - create_time: corresponds to the time the template was created. - update_time: corresponds to the time the template was last updated. - name: corresponds to the template's name. - display_name: corresponds to the template's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListInspectTemplates.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
# File 'lib/google/apis/dlp_v2/service.rb', line 1645

def list_organization_location_inspect_templates(parent, location_id: 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}/inspectTemplates', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#list_organization_location_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse

Lists job triggers. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • filter (String) (defaults to: nil)

    Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of field` `operator` `value. * Supported fields/values for inspect triggers: - status - HEALTHY|PAUSED|CANCELLED - inspected_storage - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time- RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - ' error_count' - Number of errors that have occurred while running. * The operator must be=or!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time > \"2017- 12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of triggeredJob fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, update_time, create_time desc Supported fields are: - create_time: corresponds to the time the JobTrigger was created. - update_time: corresponds to the time the JobTrigger was last updated. - last_run_time: corresponds to the last time the JobTrigger ran. - name: corresponds to the JobTrigger's name. - display_name: corresponds to the JobTrigger's display name. - status: corresponds to JobTrigger's status.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by a server.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListJobTriggers. order_by field must not change for subsequent calls.

  • type (String) (defaults to: nil)

    The type of jobs. Will use DlpJobType.INSPECT if not set.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
# File 'lib/google/apis/dlp_v2/service.rb', line 1863

def list_organization_location_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['locationId'] = location_id unless location_id.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['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#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) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse

Lists project data profiles for an organization.

Parameters:

  • parent (String)

    Required. organizations/org_id/locations/loc_id

  • filter (String) (defaults to: nil)

    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.
  • order_by (String) (defaults to: nil)

    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: Google Cloud project ID - sensitivity_level: How sensitive the data in a project is, at most. - data_risk_level: How much risk is associated with this data. - profile_last_generated: When the profile was last updated in epoch seconds.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
# File 'lib/google/apis/dlp_v2/service.rb', line 1990

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

#list_organization_location_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse

Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/ docs/creating-stored-infotypes to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, display_name, create_time desc Supported fields are: - create_time: corresponds to the time the most recent version of the resource was created. - state: corresponds to the state of the resource. - name: corresponds to resource name. - display_name: corresponds to info type's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListStoredInfoTypes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
# File 'lib/google/apis/dlp_v2/service.rb', line 2161

def list_organization_location_stored_info_types(parent, location_id: 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}/storedInfoTypes', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#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) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse

Lists table data profiles for an organization.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/ asia.

  • filter (String) (defaults to: nil)

    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 Google Cloud project ID. - dataset_id - The BigQuery dataset ID. - table_id - The ID of the BigQuery table. - sensitivity_level

    • HIGH|MODERATE|LOW - data_risk_level - HIGH|MODERATE|LOW - resource_visibility: PUBLIC|RESTRICTED - status_code - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/ code.proto * 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.
  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * project_id asc * table_id * sensitivity_level desc Supported fields are: - project_id: The Google Cloud project ID. - dataset_id: The ID of a BigQuery dataset. - table_id: The ID of a BigQuery table. - sensitivity_level: How sensitive the data in a table is, at most. - data_risk_level: How much risk is associated with this data. - profile_last_generated: When the profile was last updated in epoch seconds. - last_modified: The last time the resource was modified. - resource_visibility: Visibility restriction for this resource. - row_count: Number of rows in this resource.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
# File 'lib/google/apis/dlp_v2/service.rb', line 2329

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

#list_organization_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse

Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/ docs/creating-stored-infotypes to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, display_name, create_time desc Supported fields are: - create_time: corresponds to the time the most recent version of the resource was created. - state: corresponds to the state of the resource. - name: corresponds to resource name. - display_name: corresponds to info type's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListStoredInfoTypes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'lib/google/apis/dlp_v2/service.rb', line 2500

def list_organization_stored_info_types(parent, location_id: 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}/storedInfoTypes', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#list_project_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse

Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - create_time: corresponds to the time the template was created. - update_time: corresponds to the time the template was last updated. - name: corresponds to the template's name. - display_name: corresponds to the template's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListDeidentifyTemplates.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
# File 'lib/google/apis/dlp_v2/service.rb', line 2845

def list_project_deidentify_templates(parent, location_id: 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}/deidentifyTemplates', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#list_project_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse

Lists DlpJobs that match the specified filter in the request. See https:// cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https:// cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • filter (String) (defaults to: nil)

    Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of field` `operator` `value. * Supported fields/values for inspect jobs: - state - PENDING|RUNNING|CANCELED|FINISHED|FAILED - inspected_storage - DATASTORE|CLOUD_STORAGE|BIGQUERY - trigger_name - The name of the trigger that created the job. - 'end_time- Corresponds to the time the job finished. - 'start_time - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - state - RUNNING| CANCELED|FINISHED|FAILED - 'end_time- Corresponds to the time the job finished. - 'start_time - Corresponds to the time the job finished. * The operator must be = or !=. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, end_time asc, create_time desc Supported fields are: - create_time: corresponds to the time the job was created. - end_time: corresponds to the time the job ended. - name: corresponds to the job's name. - state: corresponds to state

  • page_size (Fixnum) (defaults to: nil)

    The standard list page size.

  • page_token (String) (defaults to: nil)

    The standard list page token.

  • type (String) (defaults to: nil)

    The type of job. Defaults to DlpJobType.INSPECT

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
# File 'lib/google/apis/dlp_v2/service.rb', line 3106

def list_project_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['locationId'] = location_id unless location_id.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['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse

Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/ docs/creating-templates to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - create_time: corresponds to the time the template was created. - update_time: corresponds to the time the template was last updated. - name: corresponds to the template's name. - display_name: corresponds to the template's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListInspectTemplates.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
# File 'lib/google/apis/dlp_v2/service.rb', line 3327

def list_project_inspect_templates(parent, location_id: 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}/inspectTemplates', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#list_project_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse

Lists job triggers. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • filter (String) (defaults to: nil)

    Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of field` `operator` `value. * Supported fields/values for inspect triggers: - status - HEALTHY|PAUSED|CANCELLED - inspected_storage - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time- RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - ' error_count' - Number of errors that have occurred while running. * The operator must be=or!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time > \"2017- 12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of triggeredJob fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, update_time, create_time desc Supported fields are: - create_time: corresponds to the time the JobTrigger was created. - update_time: corresponds to the time the JobTrigger was last updated. - last_run_time: corresponds to the last time the JobTrigger ran. - name: corresponds to the JobTrigger's name. - display_name: corresponds to the JobTrigger's display name. - status: corresponds to JobTrigger's status.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by a server.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListJobTriggers. order_by field must not change for subsequent calls.

  • type (String) (defaults to: nil)

    The type of jobs. Will use DlpJobType.INSPECT if not set.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
# File 'lib/google/apis/dlp_v2/service.rb', line 3580

def list_project_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['locationId'] = location_id unless location_id.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['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#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) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListColumnDataProfilesResponse

Lists column data profiles for an organization.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/ asia.

  • filter (String) (defaults to: nil)

    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.

  • order_by (String) (defaults to: nil)

    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.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
# File 'lib/google/apis/dlp_v2/service.rb', line 3716

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

#list_project_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse

Lists Connections in a parent. Use SearchConnections to see all connections within an organization.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project, for example, organizations/433245324/locations/europe or projects/project-id/locations/ asia.

  • filter (String) (defaults to: nil)

    Optional. Supported field/value: state - MISSING|AVAILABLE|ERROR

  • page_size (Fixnum) (defaults to: nil)

    Optional. Number of results per page, max 1000.

  • page_token (String) (defaults to: nil)

    Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
# File 'lib/google/apis/dlp_v2/service.rb', line 3858

def list_project_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/connections', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.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

#list_project_location_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse

Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - create_time: corresponds to the time the template was created. - update_time: corresponds to the time the template was last updated. - name: corresponds to the template's name. - display_name: corresponds to the template's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListDeidentifyTemplates.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
# File 'lib/google/apis/dlp_v2/service.rb', line 4240

def list_project_location_deidentify_templates(parent, location_id: 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}/deidentifyTemplates', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#list_project_location_discovery_configs(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse

Lists discovery configurations.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value is as follows: projects/project_id/locations/location_id`The following exampleparent string specifies a parent project with the identifierexample-project, and specifies theeurope-west3` location for processing data: parent=projects/ example-project/locations/europe-west3

  • order_by (String) (defaults to: nil)

    Comma-separated list of config fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - last_run_time: corresponds to the last time the DiscoveryConfig ran. - name: corresponds to the DiscoveryConfig's name. - status: corresponds to DiscoveryConfig's status.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by a server.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListDiscoveryConfigs. order_by field must not change for subsequent calls.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
# File 'lib/google/apis/dlp_v2/service.rb', line 4427

def list_project_location_discovery_configs(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/discoveryConfigs', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse
  command.params['parent'] = parent unless parent.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

#list_project_location_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse

Lists DlpJobs that match the specified filter in the request. See https:// cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https:// cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • filter (String) (defaults to: nil)

    Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of field` `operator` `value. * Supported fields/values for inspect jobs: - state - PENDING|RUNNING|CANCELED|FINISHED|FAILED - inspected_storage - DATASTORE|CLOUD_STORAGE|BIGQUERY - trigger_name - The name of the trigger that created the job. - 'end_time- Corresponds to the time the job finished. - 'start_time - Corresponds to the time the job finished. * Supported fields for risk analysis jobs: - state - RUNNING| CANCELED|FINISHED|FAILED - 'end_time- Corresponds to the time the job finished. - 'start_time - Corresponds to the time the job finished. * The operator must be = or !=. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, end_time asc, create_time desc Supported fields are: - create_time: corresponds to the time the job was created. - end_time: corresponds to the time the job ended. - name: corresponds to the job's name. - state: corresponds to state

  • page_size (Fixnum) (defaults to: nil)

    The standard list page size.

  • page_token (String) (defaults to: nil)

    The standard list page token.

  • type (String) (defaults to: nil)

    The type of job. Defaults to DlpJobType.INSPECT

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
# File 'lib/google/apis/dlp_v2/service.rb', line 4754

def list_project_location_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['locationId'] = location_id unless location_id.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['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_location_file_store_data_profiles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse

Lists file store data profiles for an organization.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/ asia.

  • filter (String) (defaults to: nil)

    Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of field` `operator` `value. * Supported fields/ values: - project_id - The Google Cloud project ID. - account_id - The AWS account ID. - file_store_path - The path like "gs://bucket". - data_source_type - The profile's data source type, like "google/storage/ bucket". - data_storage_location - The location where the file store's data is stored, like "us-central1". - sensitivity_level - HIGH|MODERATE|LOW - data_risk_level - HIGH|MODERATE|LOW - resource_visibility: PUBLIC| RESTRICTED - status_code - an RPC status code as defined in https://github. com/googleapis/googleapis/blob/master/google/rpc/code.proto * 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 * file_store_path = "gs://mybucket" The length of this field should be no more than 500 characters.

  • order_by (String) (defaults to: nil)

    Optional. Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * project_id asc * name * sensitivity_level desc Supported fields are: - project_id: The Google Cloud project ID. - sensitivity_level: How sensitive the data in a table is, at most. - data_risk_level: How much risk is associated with this data. - profile_last_generated: When the profile was last updated in epoch seconds. - last_modified: The last time the resource was modified. - resource_visibility: Visibility restriction for this resource. - name: The name of the profile. - create_time: The time the file store was first created.

  • page_size (Fixnum) (defaults to: nil)

    Optional. Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Optional. Page token to continue retrieval.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
# File 'lib/google/apis/dlp_v2/service.rb', line 4889

def list_project_location_file_store_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}/fileStoreDataProfiles', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListFileStoreDataProfilesResponse
  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

#list_project_location_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse

Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/ docs/creating-templates to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc,update_time, create_time desc Supported fields are: - create_time: corresponds to the time the template was created. - update_time: corresponds to the time the template was last updated. - name: corresponds to the template's name. - display_name: corresponds to the template's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListInspectTemplates.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
# File 'lib/google/apis/dlp_v2/service.rb', line 5108

def list_project_location_inspect_templates(parent, location_id: 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}/inspectTemplates', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#list_project_location_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse

Lists job triggers. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • filter (String) (defaults to: nil)

    Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of field` `operator` `value. * Supported fields/values for inspect triggers: - status - HEALTHY|PAUSED|CANCELLED - inspected_storage - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time- RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - ' error_count' - Number of errors that have occurred while running. * The operator must be=or!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time > \"2017- 12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters.

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of triggeredJob fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, update_time, create_time desc Supported fields are: - create_time: corresponds to the time the JobTrigger was created. - update_time: corresponds to the time the JobTrigger was last updated. - last_run_time: corresponds to the last time the JobTrigger ran. - name: corresponds to the JobTrigger's name. - display_name: corresponds to the JobTrigger's display name. - status: corresponds to JobTrigger's status.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by a server.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListJobTriggers. order_by field must not change for subsequent calls.

  • type (String) (defaults to: nil)

    The type of jobs. Will use DlpJobType.INSPECT if not set.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
# File 'lib/google/apis/dlp_v2/service.rb', line 5397

def list_project_location_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.nil?
  command.query['locationId'] = location_id unless location_id.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['type'] = type unless type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#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) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListProjectDataProfilesResponse

Lists project data profiles for an organization.

Parameters:

  • parent (String)

    Required. organizations/org_id/locations/loc_id

  • filter (String) (defaults to: nil)

    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.
  • order_by (String) (defaults to: nil)

    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: Google Cloud project ID - sensitivity_level: How sensitive the data in a project is, at most. - data_risk_level: How much risk is associated with this data. - profile_last_generated: When the profile was last updated in epoch seconds.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
# File 'lib/google/apis/dlp_v2/service.rb', line 5524

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

#list_project_location_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse

Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/ docs/creating-stored-infotypes to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, display_name, create_time desc Supported fields are: - create_time: corresponds to the time the most recent version of the resource was created. - state: corresponds to the state of the resource. - name: corresponds to resource name. - display_name: corresponds to info type's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListStoredInfoTypes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
# File 'lib/google/apis/dlp_v2/service.rb', line 5695

def list_project_location_stored_info_types(parent, location_id: 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}/storedInfoTypes', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#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) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListTableDataProfilesResponse

Lists table data profiles for an organization.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project, for example organizations/433245324/locations/europe or projects/project-id/locations/ asia.

  • filter (String) (defaults to: nil)

    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 Google Cloud project ID. - dataset_id - The BigQuery dataset ID. - table_id - The ID of the BigQuery table. - sensitivity_level

    • HIGH|MODERATE|LOW - data_risk_level - HIGH|MODERATE|LOW - resource_visibility: PUBLIC|RESTRICTED - status_code - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/ code.proto * 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.
  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Only one order field at a time is allowed. Examples: * project_id asc * table_id * sensitivity_level desc Supported fields are: - project_id: The Google Cloud project ID. - dataset_id: The ID of a BigQuery dataset. - table_id: The ID of a BigQuery table. - sensitivity_level: How sensitive the data in a table is, at most. - data_risk_level: How much risk is associated with this data. - profile_last_generated: When the profile was last updated in epoch seconds. - last_modified: The last time the resource was modified. - resource_visibility: Visibility restriction for this resource. - row_count: Number of rows in this resource.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero, server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'lib/google/apis/dlp_v2/service.rb', line 5863

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

#list_project_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse

Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/ docs/creating-stored-infotypes to learn more.

Parameters:

  • parent (String)

    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: + 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

  • location_id (String) (defaults to: nil)

    Deprecated. This field has no effect.

  • order_by (String) (defaults to: nil)

    Comma-separated list of fields to order by, followed by asc or desc postfix. This list is case insensitive. The default sorting order is ascending. Redundant space characters are insignificant. Example: name asc, display_name, create_time desc Supported fields are: - create_time: corresponds to the time the most recent version of the resource was created. - state: corresponds to the state of the resource. - name: corresponds to resource name. - display_name: corresponds to info type's display name.

  • page_size (Fixnum) (defaults to: nil)

    Size of the page. This value can be limited by the server. If zero server returns a page of max size 100.

  • page_token (String) (defaults to: nil)

    Page token to continue retrieval. Comes from the previous call to ListStoredInfoTypes.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
# File 'lib/google/apis/dlp_v2/service.rb', line 6034

def list_project_stored_info_types(parent, location_id: 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}/storedInfoTypes', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['locationId'] = location_id unless location_id.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

#patch_organization_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and deidentify template to be updated, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • google_privacy_dlp_v2_update_deidentify_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



341
342
343
344
345
346
347
348
349
350
351
# File 'lib/google/apis/dlp_v2/service.rb', line 341

def patch_organization_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  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

#patch_organization_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • google_privacy_dlp_v2_update_inspect_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



551
552
553
554
555
556
557
558
559
560
561
# File 'lib/google/apis/dlp_v2/service.rb', line 551

def patch_organization_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  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

#patch_organization_location_connection(name, google_privacy_dlp_v2_update_connection_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Connection

Update a Connection.

Parameters:

  • name (String)

    Required. Resource name in the format: projects/project/locations/location /connections/connection``.

  • google_privacy_dlp_v2_update_connection_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateConnectionRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



825
826
827
828
829
830
831
832
833
834
835
# File 'lib/google/apis/dlp_v2/service.rb', line 825

def patch_organization_location_connection(name, google_privacy_dlp_v2_update_connection_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateConnectionRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_connection_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
  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

#patch_organization_location_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and deidentify template to be updated, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • google_privacy_dlp_v2_update_deidentify_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
# File 'lib/google/apis/dlp_v2/service.rb', line 1077

def patch_organization_location_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  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

#patch_organization_location_discovery_config(name, google_privacy_dlp_v2_update_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig

Updates a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

  • google_privacy_dlp_v2_update_discovery_config_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDiscoveryConfigRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
# File 'lib/google/apis/dlp_v2/service.rb', line 1261

def patch_organization_location_discovery_config(name, google_privacy_dlp_v2_update_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDiscoveryConfigRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_discovery_config_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
  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

#patch_organization_location_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • google_privacy_dlp_v2_update_inspect_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
# File 'lib/google/apis/dlp_v2/service.rb', line 1683

def patch_organization_location_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  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

#patch_organization_location_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • google_privacy_dlp_v2_update_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
# File 'lib/google/apis/dlp_v2/service.rb', line 1902

def patch_organization_location_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  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

#patch_organization_location_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud. google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and storedInfoType to be updated, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • google_privacy_dlp_v2_update_stored_info_type_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
# File 'lib/google/apis/dlp_v2/service.rb', line 2201

def patch_organization_location_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  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

#patch_organization_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud. google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and storedInfoType to be updated, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • google_privacy_dlp_v2_update_stored_info_type_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
# File 'lib/google/apis/dlp_v2/service.rb', line 2540

def patch_organization_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  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

#patch_project_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and deidentify template to be updated, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • google_privacy_dlp_v2_update_deidentify_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
# File 'lib/google/apis/dlp_v2/service.rb', line 2883

def patch_project_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  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

#patch_project_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • google_privacy_dlp_v2_update_inspect_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
# File 'lib/google/apis/dlp_v2/service.rb', line 3365

def patch_project_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  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

#patch_project_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • google_privacy_dlp_v2_update_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
# File 'lib/google/apis/dlp_v2/service.rb', line 3619

def patch_project_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  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

#patch_project_location_connection(name, google_privacy_dlp_v2_update_connection_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2Connection

Update a Connection.

Parameters:

  • name (String)

    Required. Resource name in the format: projects/project/locations/location /connections/connection``.

  • google_privacy_dlp_v2_update_connection_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateConnectionRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
# File 'lib/google/apis/dlp_v2/service.rb', line 3893

def patch_project_location_connection(name, google_privacy_dlp_v2_update_connection_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateConnectionRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_connection_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
  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

#patch_project_location_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and deidentify template to be updated, for example organizations/433245324/deidentifyTemplates/432452342 or projects/project-id/deidentifyTemplates/432452342.

  • google_privacy_dlp_v2_update_deidentify_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
# File 'lib/google/apis/dlp_v2/service.rb', line 4278

def patch_project_location_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
  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

#patch_project_location_discovery_config(name, google_privacy_dlp_v2_update_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig

Updates a discovery configuration.

Parameters:

  • name (String)

    Required. Resource name of the project and the configuration, for example projects/dlp-test-project/discoveryConfigs/53234423.

  • google_privacy_dlp_v2_update_discovery_config_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDiscoveryConfigRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
# File 'lib/google/apis/dlp_v2/service.rb', line 4462

def patch_project_location_discovery_config(name, google_privacy_dlp_v2_update_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDiscoveryConfigRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_discovery_config_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
  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

#patch_project_location_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/ project-id/inspectTemplates/432452342.

  • google_privacy_dlp_v2_update_inspect_template_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
# File 'lib/google/apis/dlp_v2/service.rb', line 5146

def patch_project_location_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
  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

#patch_project_location_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger

Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/ docs/creating-job-triggers to learn more.

Parameters:

  • name (String)

    Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

  • google_privacy_dlp_v2_update_job_trigger_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
# File 'lib/google/apis/dlp_v2/service.rb', line 5436

def patch_project_location_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
  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

#patch_project_location_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud. google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and storedInfoType to be updated, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • google_privacy_dlp_v2_update_stored_info_type_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
# File 'lib/google/apis/dlp_v2/service.rb', line 5735

def patch_project_location_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  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

#patch_project_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud. google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

Parameters:

  • name (String)

    Required. Resource name of organization and storedInfoType to be updated, for example organizations/433245324/storedInfoTypes/432452342 or projects/ project-id/storedInfoTypes/432452342.

  • google_privacy_dlp_v2_update_stored_info_type_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
# File 'lib/google/apis/dlp_v2/service.rb', line 6074

def patch_project_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v2/{+name}', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
  command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
  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

#redact_project_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/ sensitive-data-protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters:

  • parent (String)

    Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_redact_image_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
# File 'lib/google/apis/dlp_v2/service.rb', line 3155

def redact_project_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
  command.request_object = google_privacy_dlp_v2_redact_image_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#redact_project_location_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse

Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/ sensitive-data-protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.

Parameters:

  • parent (String)

    Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_redact_image_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
# File 'lib/google/apis/dlp_v2/service.rb', line 4936

def redact_project_location_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
  command.request_object = google_privacy_dlp_v2_redact_image_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#reidentify_project_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse

Re-identifies content that has been de-identified. See https://cloud.google. com/sensitive-data-protection/docs/pseudonymization#re- identification_in_free_text_code_example to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_reidentify_content_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
# File 'lib/google/apis/dlp_v2/service.rb', line 2673

def reidentify_project_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
  command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#reidentify_project_location_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse

Re-identifies content that has been de-identified. See https://cloud.google. com/sensitive-data-protection/docs/pseudonymization#re- identification_in_free_text_code_example to learn more.

Parameters:

  • parent (String)

    Required. Parent resource name. The format of this value varies depending on whether you have specified a processing 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

  • google_privacy_dlp_v2_reidentify_content_request_object (Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
# File 'lib/google/apis/dlp_v2/service.rb', line 4068

def reidentify_project_location_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
  command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#search_organization_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse

Searches for Connections in a parent.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project with a wildcard location, for example, organizations/433245324/locations/- or projects/ project-id/locations/-.

  • filter (String) (defaults to: nil)

    Optional. Supported field/value: - state - MISSING|AVAILABLE|ERROR

  • page_size (Fixnum) (defaults to: nil)

    Optional. Number of results per page, max 1000.

  • page_token (String) (defaults to: nil)

    Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



866
867
868
869
870
871
872
873
874
875
876
877
# File 'lib/google/apis/dlp_v2/service.rb', line 866

def search_organization_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/connections:search', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.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

#search_project_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse

Searches for Connections in a parent.

Parameters:

  • parent (String)

    Required. Resource name of the organization or project with a wildcard location, for example, organizations/433245324/locations/- or projects/ project-id/locations/-.

  • filter (String) (defaults to: nil)

    Optional. Supported field/value: - state - MISSING|AVAILABLE|ERROR

  • page_size (Fixnum) (defaults to: nil)

    Optional. Number of results per page, max 1000.

  • page_token (String) (defaults to: nil)

    Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
# File 'lib/google/apis/dlp_v2/service.rb', line 3934

def search_project_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v2/{+parent}/connections:search', options)
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse::Representation
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['filter'] = filter unless filter.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