require "google/cloud/security_center"
# Your organization id. e.g. for "organizations/123", this would be "123".
# org_id = "YOUR_ORGANZATION_ID"
# Your notification config id. e.g. for
# "organizations/123/notificationConfigs/my-config" this would be "my-config".
# config_id = "YOUR_CONFIG_ID"
client = Google::Cloud::SecurityCenter.security_center
config_path = client.notification_config_path organization: org_id,
notification_config: config_id
response = client.delete_notification_config name: config_path
puts "Deleted notification config #{config_id} with response: #{response}"