Sha256: efc7eccf3f48df3494fe2abb75ec66d3d414adf67de715517ffc02a6184b9a4d
Contents?: true
Size: 789 Bytes
Versions: 2
Compression:
Stored size: 789 Bytes
Contents
module Fog module Compute class AzureRM # This class provides the actual implemention for service calls. class Real def list_availability_sets(resource_group) begin promise = @compute_mgmt_client.availability_sets.list(resource_group) response = promise.value! response.body.value rescue MsRestAzure::AzureOperationError => e msg = "Exception listing availability sets in Resource Group #{resource_group}. #{e.body['error']['message']}" raise msg end end end # This class provides the mock implementation for unit tests. class Mock def list_availability_sets(resource_group) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.1 | lib/fog/azurerm/requests/compute/list_availability_sets.rb |
fog-azure-rm-0.0.0 | lib/fog/azurerm/requests/compute/list_availability_sets.rb |