lib/fog/azurerm/models/compute/server.rb in far-gem-0.5.4 vs lib/fog/azurerm/models/compute/server.rb in far-gem-0.5.5

- old
+ new

@@ -171,12 +171,12 @@ def detach_data_disk(disk_name, async = false) response = service.detach_data_disk_from_vm(resource_group, name, disk_name, async) async ? create_fog_async_response(response) : merge_attributes(Fog::Compute::AzureRM::Server.parse(response)) end - def attach_managed_disk(disk_name, disk_resource_group, async = false) - response = service.attach_data_disk_to_vm(data_disk_params(disk_name, nil, nil, disk_resource_group), async) + def attach_managed_disk(disk_name, disk_resource_group, async = false, caching = 'None') + response = service.attach_data_disk_to_vm(data_disk_params(disk_name, nil, nil, disk_resource_group, caching), async) async ? create_fog_async_response(response) : merge_attributes(Fog::Compute::AzureRM::Server.parse(response)) end def detach_managed_disk(disk_name, async = false) response = service.detach_data_disk_from_vm(resource_group, name, disk_name, async) @@ -237,17 +237,18 @@ os_disk_name: os_disk_name, os_disk_vhd_uri: os_disk_vhd_uri } end - def data_disk_params(disk_name, disk_size = nil, storage_account = nil, disk_resource_group = nil) + def data_disk_params(disk_name, disk_size = nil, storage_account = nil, disk_resource_group = nil, caching = nil) { vm_name: name, vm_resource_group: resource_group, disk_name: disk_name, disk_size_gb: disk_size, storage_account_name: storage_account, - disk_resource_group: disk_resource_group + disk_resource_group: disk_resource_group, + caching: caching } end def delete_storage_account_or_container(resource_group, storage_account_name, vm_name) if storage_account_name.nil?