Method: Inspec::Resources::AzureVirtualMachineDataDisk#initialize
- Defined in:
- lib/resources/azure/azure_virtual_machine_data_disk.rb
#initialize(opts = {}) ⇒ AzureVirtualMachineDataDisk
Constructor for the resource. This calls the parent constructor to get the generic resource for the specified machine. This will provide static methods that are documented
37 38 39 40 41 42 43 44 |
# File 'lib/resources/azure/azure_virtual_machine_data_disk.rb', line 37 def initialize(opts = {}) # The generic resource needs to pass back a Microsoft.Compute/virtualMachines object so force it opts[:type] = "Microsoft.Compute/virtualMachines" super(opts) # Get the data disks resources end |