Sha256: d093ddfbf3cfb5c5d6dd691b1d32f5a949e2c177b2bff9418f8b22ae3beb0768
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
# rubocop:disable MethodLength # rubocop:disable AbcSize module Fog module Compute class AzureRM # This class is giving implementation of create/save and # delete/destroy for Availability Set. class AvailabilitySet < Fog::Model attribute :id identity :name attribute :type attribute :location attribute :tags attribute :resource_group attribute :properties def save requires :name requires :location requires :resource_group # need to create the availability set service.create_availability_set(resource_group, name, location) end def destroy service.delete_availability_set(resource_group, name) 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/models/compute/availability_set.rb |
fog-azure-rm-0.0.0 | lib/fog/azurerm/models/compute/availability_set.rb |