diff --git a/mmv1/third_party/terraform/provider/provider_mmv1_resources.go.tmpl b/mmv1/third_party/terraform/provider/provider_mmv1_resources.go.tmpl index 9be2669436c8..6f1643252c7e 100644 --- a/mmv1/third_party/terraform/provider/provider_mmv1_resources.go.tmpl +++ b/mmv1/third_party/terraform/provider/provider_mmv1_resources.go.tmpl @@ -33,11 +33,11 @@ var handwrittenDatasources = map[string]*schema.Resource{ "google_apphub_discovered_service": apphub.DataSourceApphubDiscoveredService(), {{- if ne $.TargetVersionName "ga" }} "google_backup_dr_management_server": backupdr.DataSourceGoogleCloudBackupDRService(), - "google_backup_dr_backup": backupdr.DataSourceGoogleCloudBackupDRBackup(), "google_backup_dr_backup_plan_association": backupdr.DataSourceGoogleCloudBackupDRBackupPlanAssociation(), "google_backup_dr_backup_plan": backupdr.DataSourceGoogleCloudBackupDRBackupPlan(), - "google_backup_dr_data_source": backupdr.DataSourceGoogleCloudBackupDRDataSource(), {{- end }} + "google_backup_dr_backup": backupdr.DataSourceGoogleCloudBackupDRBackup(), + "google_backup_dr_data_source": backupdr.DataSourceGoogleCloudBackupDRDataSource(), "google_backup_dr_backup_vault": backupdr.DataSourceGoogleCloudBackupDRBackupVault(), "google_beyondcorp_app_connection": beyondcorp.DataSourceGoogleBeyondcorpAppConnection(), "google_beyondcorp_app_connector": beyondcorp.DataSourceGoogleBeyondcorpAppConnector(), diff --git a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup.go.tmpl b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup.go.tmpl index 2ddbda633a51..944e547352d3 100644 --- a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup.go.tmpl +++ b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup.go.tmpl @@ -1,5 +1,4 @@ package backupdr -{{- if ne $.TargetVersionName "ga" }} import ( "fmt" @@ -171,5 +170,3 @@ func flattenDataSourceBackupDRBackupsBackupVaultId(v interface{}, d *schema.Reso func flattenDataSourceBackupDRBackupsDataSourceId(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} { return v } - -{{- end }} \ No newline at end of file diff --git a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup_test.go.tmpl b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup_test.go.tmpl index 6e7ae42087a9..ffa95639e75d 100644 --- a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup_test.go.tmpl +++ b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_backup_test.go.tmpl @@ -1,5 +1,4 @@ package backupdr_test -{{- if ne $.TargetVersionName "ga" }} import ( "fmt" @@ -51,5 +50,3 @@ data "google_backup_dr_backup" "foo" { `, context) } - -{{- end }} \ No newline at end of file diff --git a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_data_source.go.tmpl b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_data_source.go.tmpl index 32e498c5244f..1f477edfe4ee 100644 --- a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_data_source.go.tmpl +++ b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_data_source.go.tmpl @@ -1,5 +1,4 @@ package backupdr -{{- if ne $.TargetVersionName "ga" }} import ( "fmt" @@ -619,4 +618,3 @@ func flattenBackupDRDataSourceDataSourceBackupApplianceApplicationApplicationHos func flattenBackupDRDataSourceDataSourceBackupApplianceApplicationApplicationHostId(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} { return v } -{{- end }} \ No newline at end of file diff --git a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_data_source_test.go.tmpl b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_data_source_test.go.tmpl index dd08709e42c9..d2efbc74e2cc 100644 --- a/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_data_source_test.go.tmpl +++ b/mmv1/third_party/terraform/services/backupdr/data_source_backup_dr_data_source_test.go.tmpl @@ -1,5 +1,4 @@ package backupdr_test -{{- if ne $.TargetVersionName "ga" }} import ( "fmt" @@ -54,4 +53,3 @@ data "google_backup_dr_data_source" "foo" { `, context) } -{{- end }} \ No newline at end of file diff --git a/mmv1/third_party/terraform/website/docs/d/backup_dr_backup.html.markdown b/mmv1/third_party/terraform/website/docs/d/backup_dr_backup.html.markdown new file mode 100644 index 000000000000..ca31d46d9824 --- /dev/null +++ b/mmv1/third_party/terraform/website/docs/d/backup_dr_backup.html.markdown @@ -0,0 +1,29 @@ +--- +subcategory: "Backup and DR Backup" +description: |- + Get information about a Backupdr Backup. +--- + +# google_backup_dr_backup + +A Backup and DR Backup. + +## Example Usage + +```hcl +data "google_backup_dr_backup" "foo" { + location = "us-central1" + project = "project-test" + data_source_id = "ds-test" + backup_vault_id = "bv-test" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `location` - (Required) The location in which the Backup belongs. +* `project` - (Required) The Google Cloud Project in which the Backup belongs. +* `data_source_id` - (Required) The ID of the Data Source in which the Backup belongs. +* `backup_vault_id` - (Required) The ID of the Backup Vault of the Data Source in which the Backup belongs. \ No newline at end of file diff --git a/mmv1/third_party/terraform/website/docs/d/backup_dr_data_source.html.markdown b/mmv1/third_party/terraform/website/docs/d/backup_dr_data_source.html.markdown new file mode 100644 index 000000000000..13d794e27721 --- /dev/null +++ b/mmv1/third_party/terraform/website/docs/d/backup_dr_data_source.html.markdown @@ -0,0 +1,29 @@ +--- +subcategory: "Backup and DR Data Source" +description: |- + Get information about a Backupdr Data Source. +--- + +# google_backup_dr_data_source + +A Backup and DR Data Source. + +## Example Usage + +```hcl +data "google_backup_dr_data_source" "foo" { + location = "us-central1" + project = "project-test" + data_source_id = "ds-test" + backup_vault_id = "bv-test" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `location` - (Required) The location in which the Data Source belongs. +* `project` - (Required) The Google Cloud Project in which the Data Source belongs. +* `data_source_id` - (Required) The ID of the Data Source. +* `backup_vault_id` - (Required) The ID of the Backup Vault in which the Data Source belongs. \ No newline at end of file