Skip to content

Commit c65ef12

Browse files
committed
fixed the region violation comments
1 parent badba54 commit c65ef12

File tree

1 file changed

+14
-14
lines changed
  • compute/disk_async_replication

1 file changed

+14
-14
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2022 Google LLC
2+
* Copyright 2024 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,39 +13,39 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
16+
1717
# [START compute_disk_async_replication_parent_tag]
18-
# [START primary_disk_setup_for_async_replication]
19-
resource "google_compute_disk" "primary-disk" {
18+
# [START compute_disk_primary]
19+
resource "google_compute_disk" "primary_disk" {
2020
name = "primary-disk"
2121
type = "pd-ssd"
2222
zone = "europe-west4-a"
2323

2424
physical_block_size_bytes = 4096
2525
}
26-
# [END primary_disk_setup_for_async_replication]
26+
# [END compute_disk_primary]
2727

28-
# [START secondary_disk_setup_for_async_replication]
29-
resource "google_compute_disk" "secondary-disk" {
28+
# [START compute_disk_secondary]
29+
resource "google_compute_disk" "secondary_disk" {
3030
name = "secondary-disk"
3131
type = "pd-ssd"
3232
zone = "europe-west3-a"
3333

3434
async_primary_disk {
35-
disk = google_compute_disk.primary-disk.id
35+
disk = google_compute_disk.primary_disk.id
3636
}
3737

3838
physical_block_size_bytes = 4096
3939
}
40-
# [END secondary_disk_setup_for_async_replication]
40+
# [END compute_disk_secondary]
4141

4242

43-
# [START setup_to_start_asynchronous_replication]
44-
resource "google_compute_disk_async_replication" "replication" {
45-
primary_disk = google_compute_disk.primary-disk.id
43+
# [START compute_disk_async_replication]
44+
resource "google_compute_disk_async_replication" "default" {
45+
primary_disk = google_compute_disk.primary_disk.id
4646
secondary_disk {
47-
disk = google_compute_disk.secondary-disk.id
47+
disk = google_compute_disk.secondary_disk.id
4848
}
4949
}
50-
# [END setup_to_start_asynchronous_replication]
50+
# [END compute_disk_async_replication]
5151
# [END compute_disk_async_replication_parent_tag]

0 commit comments

Comments
 (0)