diff --git a/mmv1/products/dlp/JobTrigger.yaml b/mmv1/products/dlp/JobTrigger.yaml index 6211b6726d8f..929465709ba4 100644 --- a/mmv1/products/dlp/JobTrigger.yaml +++ b/mmv1/products/dlp/JobTrigger.yaml @@ -761,6 +761,8 @@ properties: - :AVRO - :CSV - :TSV + - :POWERPOINT + - :EXCEL - !ruby/object:Api::Type::Enum name: 'sampleMethod' description: | @@ -911,14 +913,15 @@ properties: properties: - !ruby/object:Api::Type::NestedObject name: 'saveFindings' - exactly_one_of: - - save_findings - - pub_sub - - publish_findings_to_cloud_data_catalog - - publish_summary_to_cscc - - job_notification_emails - - deidentify - - publish_to_stackdriver + # TODO: uncomment here once they are supported(github.com/hashicorp/terraform-plugin-sdk/issues/470) + # exactly_one_of: + # - save_findings + # - pub_sub + # - publish_findings_to_cloud_data_catalog + # - publish_summary_to_cscc + # - job_notification_emails + # - deidentify + # - publish_to_stackdriver description: | If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk properties: @@ -968,14 +971,15 @@ properties: - :ALL_COLUMNS - !ruby/object:Api::Type::NestedObject name: 'pubSub' - exactly_one_of: - - save_findings - - pub_sub - - publish_findings_to_cloud_data_catalog - - publish_summary_to_cscc - - job_notification_emails - - deidentify - - publish_to_stackdriver + # TODO: uncomment here once they are supported(github.com/hashicorp/terraform-plugin-sdk/issues/470) + # exactly_one_of: + # - save_findings + # - pub_sub + # - publish_findings_to_cloud_data_catalog + # - publish_summary_to_cscc + # - job_notification_emails + # - deidentify + # - publish_to_stackdriver description: | Publish a message into a given Pub/Sub topic when the job completes. properties: @@ -986,14 +990,15 @@ properties: Cloud Pub/Sub topic to send notifications to. - !ruby/object:Api::Type::NestedObject name: 'publishSummaryToCscc' - exactly_one_of: - - save_findings - - pub_sub - - publish_findings_to_cloud_data_catalog - - publish_summary_to_cscc - - job_notification_emails - - deidentify - - publish_to_stackdriver + # TODO: uncomment here once they are supported(github.com/hashicorp/terraform-plugin-sdk/issues/470) + # exactly_one_of: + # - save_findings + # - pub_sub + # - publish_findings_to_cloud_data_catalog + # - publish_summary_to_cscc + # - job_notification_emails + # - deidentify + # - publish_to_stackdriver allow_empty_object: true send_empty_value: true properties: [] @@ -1001,14 +1006,15 @@ properties: Publish the result summary of a DlpJob to the Cloud Security Command Center. - !ruby/object:Api::Type::NestedObject name: 'publishFindingsToCloudDataCatalog' - exactly_one_of: - - save_findings - - pub_sub - - publish_findings_to_cloud_data_catalog - - publish_summary_to_cscc - - job_notification_emails - - deidentify - - publish_to_stackdriver + # TODO: uncomment here once they are supported(github.com/hashicorp/terraform-plugin-sdk/issues/470) + # exactly_one_of: + # - save_findings + # - pub_sub + # - publish_findings_to_cloud_data_catalog + # - publish_summary_to_cscc + # - job_notification_emails + # - deidentify + # - publish_to_stackdriver allow_empty_object: true send_empty_value: true properties: [] @@ -1016,14 +1022,15 @@ properties: Publish findings of a DlpJob to Data Catalog. - !ruby/object:Api::Type::NestedObject name: 'jobNotificationEmails' - exactly_one_of: - - save_findings - - pub_sub - - publish_findings_to_cloud_data_catalog - - publish_summary_to_cscc - - job_notification_emails - - deidentify - - publish_to_stackdriver + # TODO: uncomment here once they are supported(github.com/hashicorp/terraform-plugin-sdk/issues/470) + # exactly_one_of: + # - save_findings + # - pub_sub + # - publish_findings_to_cloud_data_catalog + # - publish_summary_to_cscc + # - job_notification_emails + # - deidentify + # - publish_to_stackdriver allow_empty_object: true send_empty_value: true properties: [] @@ -1031,14 +1038,15 @@ properties: Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts. - !ruby/object:Api::Type::NestedObject name: 'deidentify' - exactly_one_of: - - save_findings - - pub_sub - - publish_findings_to_cloud_data_catalog - - publish_summary_to_cscc - - job_notification_emails - - deidentify - - publish_to_stackdriver + # TODO: uncomment here once they are supported(github.com/hashicorp/terraform-plugin-sdk/issues/470) + # exactly_one_of: + # - save_findings + # - pub_sub + # - publish_findings_to_cloud_data_catalog + # - publish_summary_to_cscc + # - job_notification_emails + # - deidentify + # - publish_to_stackdriver description: | Create a de-identified copy of the requested table or files. properties: @@ -1119,14 +1127,15 @@ properties: is 1,024 characters. - !ruby/object:Api::Type::NestedObject name: 'publishToStackdriver' - exactly_one_of: - - save_findings - - pub_sub - - publish_findings_to_cloud_data_catalog - - publish_summary_to_cscc - - job_notification_emails - - deidentify - - publish_to_stackdriver + # TODO: uncomment here once they are supported(github.com/hashicorp/terraform-plugin-sdk/issues/470) + # exactly_one_of: + # - save_findings + # - pub_sub + # - publish_findings_to_cloud_data_catalog + # - publish_summary_to_cscc + # - job_notification_emails + # - deidentify + # - publish_to_stackdriver allow_empty_object: true send_empty_value: true properties: [] diff --git a/mmv1/third_party/terraform/tests/resource_data_loss_prevention_job_trigger_test.go b/mmv1/third_party/terraform/tests/resource_data_loss_prevention_job_trigger_test.go index 4d0f553f3d97..ed4836315fa2 100644 --- a/mmv1/third_party/terraform/tests/resource_data_loss_prevention_job_trigger_test.go +++ b/mmv1/third_party/terraform/tests/resource_data_loss_prevention_job_trigger_test.go @@ -507,6 +507,7 @@ resource "google_data_loss_prevention_job_trigger" "basic" { file_set { url = "gs://mybucket/directory/" } + file_types = ["POWERPOINT", "EXCEL", "CSV", "TSV"] } } }