From 771061d486757aa2cdd7205cb652c303980435d2 Mon Sep 17 00:00:00 2001 From: Verveiko Denys Date: Mon, 16 Jan 2023 15:50:43 +0200 Subject: [PATCH] Add configuration of datalossprevention (4), dataplex (1), dataproc (10), datastore (1), deploymentmanager (1), dialogflow (4) groups --- config/externalnamenottested.go | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/config/externalnamenottested.go b/config/externalnamenottested.go index 5d58aa961..c444c6549 100644 --- a/config/externalnamenottested.go +++ b/config/externalnamenottested.go @@ -166,4 +166,63 @@ var ExternalNameNotTestedConfigs = map[string]config.ExternalName{ // // Imported by using the following format: projects/{{project}}/locations/global/keys/{{name}} "google_apikeys_key": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/locations/global/keys/{{ .external_name }}"), + // datalossprevention + // + // Imported by using the following format: {{parent}}/deidentifyTemplates/{{name}} + "google_data_loss_prevention_deidentify_template": config.IdentifierFromProvider, + // Imported by using the following format: {{parent}}/inspectTemplates/{{name}} + "google_data_loss_prevention_inspect_template": config.IdentifierFromProvider, + // Imported by using the following format: {{parent}}/jobTriggers/{{name}} + "google_data_loss_prevention_job_trigger": config.IdentifierFromProvider, + // Imported by using the following format: {{parent}}/storedInfoTypes/{{name}} + "google_data_loss_prevention_stored_info_type": config.IdentifierFromProvider, + + // dataplex + // + // Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{name}} + "google_dataplex_lake": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .external_name }}"), + + // dataproc + // + // Imported by using the following format: projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}} + "google_dataproc_autoscaling_policy": config.TemplatedStringAsIdentifier("policy_id", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/autoscalingPolicies/{{ .external_name }}"), + // No Import + "google_dataproc_cluster": config.IdentifierFromProvider, + // Imported by using the following format: projects/{project}/regions/{region}/clusters/{cluster} roles/editor + "google_dataproc_cluster_iam_binding": config.TemplatedStringAsIdentifier("cluster", "projects/{ .setup.configuration.project }/regions/{{ .parameters.region }}/clusters/{{ .external_name }} {{ .parameters.role }}"), + // Imported by using the following format: projects/{project}/regions/{region}/clusters/{cluster} roles/editor user:jane@example.com + "google_dataproc_cluster_iam_member": config.TemplatedStringAsIdentifier("cluster", "projects/{ .setup.configuration.project }/regions/{{ .parameters.region }}/clusters/{{ .external_name }} {{ .parameters.role }} {{ .parameters.member }}"), + // Imported by using the following format: projects/{project}/regions/{region}/clusters/{cluster} + "google_dataproc_cluster_iam_policy": config.TemplatedStringAsIdentifier("cluster", "projects/{ .setup.configuration.project }/regions/{{ .parameters.region }}/clusters/{{ .external_name }}"), + // No Import + "google_dataproc_job": config.IdentifierFromProvider, + // Imported by using the following format: projects/{project}/regions/{region}/jobs/{job_id} roles/editor + "google_dataproc_job_iam_binding": config.TemplatedStringAsIdentifier("job_id", "projects/{ .setup.configuration.project }/regions/{{ .parameters.region }}/jobs/{{ .external_name }} {{ .parameters.role }}"), + // Imported by using the following format: projects/{project}/regions/{region}/jobs/{job_id} roles/editor user:jane@example.com + "google_dataproc_job_iam_member": config.TemplatedStringAsIdentifier("job_id", "projects/{ .setup.configuration.project }/regions/{{ .parameters.region }}/jobs/{{ .external_name }} {{ .parameters.role }} {{ .parameters.member }}"), + // Imported by using the following format: projects/{project}/regions/{region}/jobs/{job_id} + "google_dataproc_job_iam_policy": config.TemplatedStringAsIdentifier("job_id", "projects/{ .setup.configuration.project }/regions/{{ .parameters.region }}/jobs/{{ .external_name }}"), + // Imported by using the following format: projects/{{project}}/locations/{{location}}/workflowTemplates/{{name}} + "google_dataproc_workflow_template": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/workflowTemplates/{{ .external_name }}"), + + // datastore + // + // Imported by using the following format: projects/{{project}}/indexes/{{index_id}} + "google_datastore_index": config.IdentifierFromProvider, + + // deploymentmanager + // + // Imported by using the following format: projects/{{project}}/deployments/{{name}} + "google_deployment_manager_deployment": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/deployments/{{ .external_name }}"), + + // dialogflow + // + // Imported by using the following format: {{project}} + "google_dialogflow_agent": config.ParameterAsIdentifier("project"), + // Imported by using the following format: {{name}} + "google_dialogflow_entity_type": config.IdentifierFromProvider, + // Imported by using the following format: {{name}} + "google_dialogflow_fulfillment": config.IdentifierFromProvider, + // Imported by using the following format: {{name}} + "google_dialogflow_intent": config.IdentifierFromProvider, }