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

Stored info #7145

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
3 changes: 3 additions & 0 deletions .changelog/3922.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
google_data_loss_prevention_stored_info_type
```
5 changes: 3 additions & 2 deletions google/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,9 @@ func Provider() terraform.ResourceProvider {
return provider
}

// Generated resources: 157
// Generated resources: 158
// Generated IAM resources: 69
// Total generated resources: 226
// Total generated resources: 227
func ResourceMap() map[string]*schema.Resource {
resourceMap, _ := ResourceMapWithErrors()
return resourceMap
Expand Down Expand Up @@ -770,6 +770,7 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_data_catalog_tag": resourceDataCatalogTag(),
"google_data_loss_prevention_job_trigger": resourceDataLossPreventionJobTrigger(),
"google_data_loss_prevention_inspect_template": resourceDataLossPreventionInspectTemplate(),
"google_data_loss_prevention_stored_info_type": resourceDataLossPreventionStoredInfoType(),
"google_dataproc_autoscaling_policy": resourceDataprocAutoscalingPolicy(),
"google_datastore_index": resourceDatastoreIndex(),
"google_deployment_manager_deployment": resourceDeploymentManagerDeployment(),
Expand Down
4 changes: 2 additions & 2 deletions google/resource_data_loss_prevention_inspect_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,9 +618,9 @@ func resourceDataLossPreventionInspectTemplateImport(d *schema.ResourceData, met
} else if len(parts) == 4 {
d.Set("name", parts[3])
} else {
return nil, fmt.Errorf("Unexpected import id: %s, expected form {{parent}}/inspectTemplates/{{name}}", d.Get("name").(string))
return nil, fmt.Errorf("Unexpected import id: %s, expected form {{parent}}/inspectTemplate/{{name}}", d.Get("name").(string))
}
// Remove "/inspectTemplates/{{name}}" from the id
// Remove "/inspectTemplate/{{name}}" from the id
parts = parts[:len(parts)-2]
d.Set("parent", strings.Join(parts, "/"))

Expand Down
4 changes: 2 additions & 2 deletions google/resource_data_loss_prevention_job_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,9 @@ func resourceDataLossPreventionJobTriggerImport(d *schema.ResourceData, meta int
} else if len(parts) == 4 {
d.Set("name", parts[3])
} else {
return nil, fmt.Errorf("Unexpected import id: %s, expected form {{parent}}/jobTriggers/{{name}}", d.Get("name").(string))
return nil, fmt.Errorf("Unexpected import id: %s, expected form {{parent}}/jobTrigger/{{name}}", d.Get("name").(string))
}
// Remove "/jobTriggers/{{name}}" from the id
// Remove "/jobTrigger/{{name}}" from the id
parts = parts[:len(parts)-2]
d.Set("parent", strings.Join(parts, "/"))

Expand Down
Loading