Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add RPCs for deleting TableDataProfiles #25859

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions google-cloud-dlp-v2/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,25 @@
"snippets/Gemfile",
"snippets/dlp_service/activate_job_trigger.rb",
"snippets/dlp_service/cancel_dlp_job.rb",
"snippets/dlp_service/create_connection.rb",
"snippets/dlp_service/create_deidentify_template.rb",
"snippets/dlp_service/create_discovery_config.rb",
"snippets/dlp_service/create_dlp_job.rb",
"snippets/dlp_service/create_inspect_template.rb",
"snippets/dlp_service/create_job_trigger.rb",
"snippets/dlp_service/create_stored_info_type.rb",
"snippets/dlp_service/deidentify_content.rb",
"snippets/dlp_service/delete_connection.rb",
"snippets/dlp_service/delete_deidentify_template.rb",
"snippets/dlp_service/delete_discovery_config.rb",
"snippets/dlp_service/delete_dlp_job.rb",
"snippets/dlp_service/delete_inspect_template.rb",
"snippets/dlp_service/delete_job_trigger.rb",
"snippets/dlp_service/delete_stored_info_type.rb",
"snippets/dlp_service/delete_table_data_profile.rb",
"snippets/dlp_service/finish_dlp_job.rb",
"snippets/dlp_service/get_column_data_profile.rb",
"snippets/dlp_service/get_connection.rb",
"snippets/dlp_service/get_deidentify_template.rb",
"snippets/dlp_service/get_discovery_config.rb",
"snippets/dlp_service/get_dlp_job.rb",
Expand All @@ -73,6 +77,7 @@
"snippets/dlp_service/hybrid_inspect_job_trigger.rb",
"snippets/dlp_service/inspect_content.rb",
"snippets/dlp_service/list_column_data_profiles.rb",
"snippets/dlp_service/list_connections.rb",
"snippets/dlp_service/list_deidentify_templates.rb",
"snippets/dlp_service/list_discovery_configs.rb",
"snippets/dlp_service/list_dlp_jobs.rb",
Expand All @@ -84,6 +89,8 @@
"snippets/dlp_service/list_table_data_profiles.rb",
"snippets/dlp_service/redact_image.rb",
"snippets/dlp_service/reidentify_content.rb",
"snippets/dlp_service/search_connections.rb",
"snippets/dlp_service/update_connection.rb",
"snippets/dlp_service/update_deidentify_template.rb",
"snippets/dlp_service/update_discovery_config.rb",
"snippets/dlp_service/update_inspect_template.rb",
Expand Down
35 changes: 35 additions & 0 deletions google-cloud-dlp-v2/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@
"get_column_data_profile"
]
},
"DeleteTableDataProfile": {
"methods": [
"delete_table_data_profile"
]
},
"HybridInspectDlpJob": {
"methods": [
"hybrid_inspect_dlp_job"
Expand All @@ -234,6 +239,36 @@
"methods": [
"finish_dlp_job"
]
},
"CreateConnection": {
"methods": [
"create_connection"
]
},
"GetConnection": {
"methods": [
"get_connection"
]
},
"ListConnections": {
"methods": [
"list_connections"
]
},
"SearchConnections": {
"methods": [
"search_connections"
]
},
"DeleteConnection": {
"methods": [
"delete_connection"
]
},
"UpdateConnection": {
"methods": [
"update_connection"
]
}
}
}
Expand Down
695 changes: 689 additions & 6 deletions google-cloud-dlp-v2/lib/google/cloud/dlp/v2/dlp_service/client.rb

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions google-cloud-dlp-v2/lib/google/cloud/dlp/v2/dlp_service/paths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ def column_data_profile_path **args
resource.call(**args)
end

##
# Create a fully-qualified Connection resource string.
#
# The resource will be in the following format:
#
# `projects/{project}/locations/{location}/connections/{connection}`
#
# @param project [String]
# @param location [String]
# @param connection [String]
#
# @return [::String]
def connection_path project:, location:, connection:
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

"projects/#{project}/locations/#{location}/connections/#{connection}"
end

##
# Create a fully-qualified DeidentifyTemplate resource string.
#
Expand Down
Loading