class Fog::Compute::Cloudstack::Zone

Attributes

dns1[RW]
dns2[RW]
guest_cidr_address[RW]
internaldns1[RW]
internaldns2[RW]

Public Instance Methods

save() click to toggle source
# File lib/fog/cloudstack/models/compute/zone.rb, line 17
def save
  options = {
    'dns1'                  => dns1,
    'internaldns1'          => internaldns1,
    'name'                  => name,
    'networktype'           => network_type,
    'allocationstate'       => allocation_state,
    'dns2'                  => dns2,
    'domain'                => domain_name,
    'domainid'              => domain_id,
    'guestcidraddress'      => guest_cidr_address,
    'internaldns2'          => internaldns2,
    'securitygroupenabled'  => security_groups_enabled,
  }
  data = service.create_zone(options)
  merge_attributes(data['createzoneresponse'])
end