Skip to content

Commit

Permalink
Promote BackupDR Backup and Data Source to GA (#12435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Ng authored Dec 12, 2024
1 parent 5c029ad commit a5b7035
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package backupdr
{{- if ne $.TargetVersionName "ga" }}

import (
"fmt"
Expand Down Expand Up @@ -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 }}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package backupdr_test
{{- if ne $.TargetVersionName "ga" }}

import (
"fmt"
Expand Down Expand Up @@ -51,5 +50,3 @@ data "google_backup_dr_backup" "foo" {

`, context)
}

{{- end }}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package backupdr
{{- if ne $.TargetVersionName "ga" }}

import (
"fmt"
Expand Down Expand Up @@ -619,4 +618,3 @@ func flattenBackupDRDataSourceDataSourceBackupApplianceApplicationApplicationHos
func flattenBackupDRDataSourceDataSourceBackupApplianceApplicationApplicationHostId(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
return v
}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package backupdr_test
{{- if ne $.TargetVersionName "ga" }}

import (
"fmt"
Expand Down Expand Up @@ -54,4 +53,3 @@ data "google_backup_dr_data_source" "foo" {

`, context)
}
{{- end }}
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit a5b7035

Please sign in to comment.