Skip to content

Commit

Permalink
Merge pull request #114 from dverveiko/issue-19
Browse files Browse the repository at this point in the history
Add configuration of datalossprevention (4), dataplex (1), dataproc (10), datastore (1), deploymentmanager (1), dialogflow (4) groups
  • Loading branch information
dverveiko authored Jan 17, 2023
2 parents 38003fe + 771061d commit 5e6967c
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions config/externalnamenottested.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,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,
}

0 comments on commit 5e6967c

Please sign in to comment.