lib/fog/azurerm/models/compute/availability_set.rb in fog-azure-rm-0.3.3 vs lib/fog/azurerm/models/compute/availability_set.rb in fog-azure-rm-0.3.4

- old
+ new

@@ -11,10 +11,11 @@ attribute :resource_group attribute :platform_update_domain_count attribute :platform_fault_domain_count attribute :use_managed_disk attribute :sku_name + attribute :tags def self.parse(availability_set) hash = {} hash['id'] = availability_set.id hash['name'] = availability_set.name @@ -27,10 +28,11 @@ unless availability_set.sku.nil? hash['sku_name'] = availability_set.sku.name hash['use_managed_disk'] = availability_set.sku.name.eql?(AS_SKU_ALIGNED) end + hash['tags'] = availability_set.tags hash end def save requires :name @@ -53,10 +55,11 @@ name: name, location: location, resource_group: resource_group, platform_fault_domain_count: platform_fault_domain_count, platform_update_domain_count: platform_update_domain_count, - use_managed_disk: use_managed_disk + use_managed_disk: use_managed_disk, + tags: tags } end end end end