Sha256: 18fbd0f4923cfd0be4b1218b5aad2b63d935b4de641b5a8c238a72f2cfcf8af2
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require 'fog/core/collection' require 'fog/azurerm/models/compute/availability_set' # rubocop:disable MethodLength module Fog module Compute class AzureRM # This class is giving implementation of all/list, get and # check name availability for storage account. class AvailabilitySets < Fog::Collection model Fog::Compute::AzureRM::AvailabilitySet attribute :resource_group def all accounts = [] requires :resource_group list_of_availability_sets = service.list_availability_sets(resource_group) unless list_of_availability_sets.nil? list_of_availability_sets.each do |account| parse_response = Fog::Compute::AzureRM::AvailabilitySet.parse(account) accounts << parse_response end end load(accounts) end def get(resource_group, identity) all.find { |as| as.resource_group == resource_group && as.name == identity } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.2 | lib/fog/azurerm/models/compute/availability_sets.rb |