Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Revert eraseWindowsVssSignature field and test (#3959) (#444)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Sep 9, 2020
1 parent 054a8cd commit 76663bb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions docs/resources/google_compute_disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ Properties that can be accessed from the `google_compute_disk` resource:

* `type`: URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

* `erase_windows_vss_signature`: (Beta only) Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature.

* `source_image`: The source image used to create this disk. If the source image is deleted, this field will not be set. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a private image that you created, specify the image name in the following format: global/images/my-private-image You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-private-family

* `resource_policies`: (Beta only) Resource policies applied to this disk for automatic snapshot creations.
Expand Down
1 change: 0 additions & 1 deletion docs/resources/google_compute_disks.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ See [google_compute_disk.md](google_compute_disk.md) for more detailed informati
* `users`: an array of `google_compute_disk` users
* `physical_block_size_bytes`: an array of `google_compute_disk` physical_block_size_bytes
* `types`: an array of `google_compute_disk` type
* `erase_windows_vss_signatures`: (Beta only) an array of `google_compute_disk` erase_windows_vss_signature
* `source_images`: an array of `google_compute_disk` source_image
* `resource_policies`: (Beta only) an array of `google_compute_disk` resource_policies
* `zones`: an array of `google_compute_disk` zone
Expand Down
2 changes: 0 additions & 2 deletions libraries/google_compute_disk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class ComputeDisk < GcpResourceBase
attr_reader :users
attr_reader :physical_block_size_bytes
attr_reader :type
attr_reader :erase_windows_vss_signature
attr_reader :source_image
attr_reader :resource_policies
attr_reader :zone
Expand Down Expand Up @@ -70,7 +69,6 @@ def parse
@users = @fetched['users']
@physical_block_size_bytes = @fetched['physicalBlockSizeBytes']
@type = @fetched['type']
@erase_windows_vss_signature = @fetched['eraseWindowsVssSignature']
@source_image = @fetched['sourceImage']
@resource_policies = @fetched['resourcePolicies']
@zone = @fetched['zone']
Expand Down
2 changes: 0 additions & 2 deletions libraries/google_compute_disks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class ComputeDisks < GcpResourceBase
filter_table_config.add(:users, field: :users)
filter_table_config.add(:physical_block_size_bytes, field: :physical_block_size_bytes)
filter_table_config.add(:types, field: :type)
filter_table_config.add(:erase_windows_vss_signatures, field: :erase_windows_vss_signature)
filter_table_config.add(:source_images, field: :source_image)
filter_table_config.add(:resource_policies, field: :resource_policies)
filter_table_config.add(:zones, field: :zone)
Expand Down Expand Up @@ -98,7 +97,6 @@ def transformers
'users' => ->(obj) { return :users, obj['users'] },
'physicalBlockSizeBytes' => ->(obj) { return :physical_block_size_bytes, obj['physicalBlockSizeBytes'] },
'type' => ->(obj) { return :type, obj['type'] },
'eraseWindowsVssSignature' => ->(obj) { return :erase_windows_vss_signature, obj['eraseWindowsVssSignature'] },
'sourceImage' => ->(obj) { return :source_image, obj['sourceImage'] },
'resourcePolicies' => ->(obj) { return :resource_policies, obj['resourcePolicies'] },
'zone' => ->(obj) { return :zone, obj['zone'] },
Expand Down

0 comments on commit 76663bb

Please sign in to comment.