Class: Fog::DNS::AzureRM::RecordSet

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



22
23
24
# File 'lib/fog/azurerm/models/dns/record_set.rb', line 22

def destroy
  service.delete_record_set(name, resource_group, zone_name, type.split("/").last)
end

#saveObject



12
13
14
15
16
17
18
19
20
# File 'lib/fog/azurerm/models/dns/record_set.rb', line 12

def save
  requires :name
  requires :resource_group
  requires :zone_name
  requires :records
  requires :type
  requires :ttl
  service.create_record_set(resource_group, zone_name, name, records, type, ttl)
end