lib/fog/azurerm/models/compute/availability_set.rb in fog-azure-rm-temp-0.0.2 vs lib/fog/azurerm/models/compute/availability_set.rb in fog-azure-rm-temp-0.0.3
- old
+ new
@@ -9,11 +9,11 @@
attribute :type
attribute :location
attribute :resource_group
attribute :platform_update_domain_count
attribute :platform_fault_domain_count
- attribute :is_managed
+ attribute :use_managed_disk
attribute :sku_name
def self.parse(availability_set)
hash = {}
hash['id'] = availability_set.id
@@ -24,39 +24,39 @@
hash['platform_update_domain_count'] = availability_set.platform_update_domain_count
hash['platform_fault_domain_count'] = availability_set.platform_fault_domain_count
unless availability_set.sku.nil?
hash['sku_name'] = availability_set.sku.name
- hash['is_managed'] = availability_set.sku.name.eql?(AS_SKU_ALIGNED)
+ hash['use_managed_disk'] = availability_set.sku.name.eql?(AS_SKU_ALIGNED)
end
hash
end
def save
requires :name
requires :location
requires :resource_group
# need to create the availability set
- as = service.create_availability_set(avail_set_params(platform_fault_domain_count, platform_update_domain_count, is_managed))
+ as = service.create_availability_set(avail_set_params(platform_fault_domain_count, platform_update_domain_count, use_managed_disk))
hash = Fog::Compute::AzureRM::AvailabilitySet.parse(as)
merge_attributes(hash)
end
def destroy
service.delete_availability_set(resource_group, name)
end
private
- def avail_set_params(platform_fault_domain_count, platform_update_domain_count, is_managed)
+ def avail_set_params(platform_fault_domain_count, platform_update_domain_count, use_managed_disk)
{
name: name,
location: location,
resource_group: resource_group,
platform_fault_domain_count: platform_fault_domain_count,
platform_update_domain_count: platform_update_domain_count,
- is_managed: is_managed
+ use_managed_disk: use_managed_disk
}
end
end
end
end