Class: Fog::Compute::AzureRM::AvailabilitySet

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/azurerm/models/compute/availability_set.rb

Overview

This class is giving implementation of create/save and delete/destroy for Availability Set.

Instance Method Summary collapse

Instance Method Details

#destroyObject



25
26
27
# File 'lib/fog/azurerm/models/compute/availability_set.rb', line 25

def destroy
  service.delete_availability_set(resource_group, name)
end

#saveObject



17
18
19
20
21
22
23
# File 'lib/fog/azurerm/models/compute/availability_set.rb', line 17

def save
  requires :name
  requires :location
  requires :resource_group
  # need to create the availability set
  service.create_availability_set(resource_group, name, location)
end