lib/fog/azurerm/compute.rb in fog-azure-rm-0.2.7 vs lib/fog/azurerm/compute.rb in fog-azure-rm-0.3.0
- old
+ new
@@ -31,18 +31,33 @@
request :detach_data_disk_from_vm
request :create_or_update_vm_extension
request :delete_vm_extension
request :get_vm_extension
request :check_vm_extension_exists
+ request :create_or_update_managed_disk
+ request :delete_managed_disk
+ request :get_managed_disk
+ request :check_managed_disk_exists
+ request :list_managed_disks_by_rg
+ request :list_managed_disks_in_subscription
+ request :revoke_access_to_managed_disk
+ request :grant_access_to_managed_disk
model_path 'fog/azurerm/models/compute'
model :availability_set
collection :availability_sets
model :server
collection :servers
model :virtual_machine_extension
collection :virtual_machine_extensions
+ model :managed_disk
+ collection :managed_disks
+ model :creation_data
+ model :disk_create_option
+ model :encryption_settings
+ model :image_disk_reference
+ model :operation_status_response
# This class provides the mock implementation for unit tests.
class Mock
def initialize(_options = {})
begin
@@ -62,10 +77,9 @@
require 'azure/storage'
rescue LoadError => e
retry if require('rubygems')
raise e.message
end
-
options[:environment] = 'AzureCloud' if options[:environment].nil?
telemetry = "fog-azure-rm/#{Fog::AzureRM::VERSION}"
credentials = Fog::Credentials::AzureRM.get_credentials(options[:tenant_id], options[:client_id], options[:client_secret], options[:environment])