text: /*!
   * StackStudio 2.0.0-rc.1 <http://stackstudio.transcendcomputing.com>
   * (c) 2012 Transcend Computing <http://www.transcendcomputing.com/>
   * Available under ASL2 license <http://www.apache.org/licenses/LICENSE-2.0.html>
   */
  /*jshint smarttabs:true */
  /*global define:true console:true */
  define([
          'models/resource/resourceModel',
          'common'
  ], function( ResourceModel, Common ) {
      'use strict';
  
      var HostedZone = ResourceModel.extend({
  
          defaults: {
              id: '',
              caller_reference: '',
              change_info: '',
              description: '',
              domain: '',
              nameservers: ''
          },
  
          create: function(options, credentialId) {
              var url = Common.apiUrl + "/stackstudio/v1/cloud_management/topstack/dns/hosted_zones?cred_id=" + credentialId;
              this.sendAjaxAction(url, "POST", {"hosted_zone": options}, "hostedZoneAppRefresh");
          },
  
          destroy: function(credentialId) {
              var url = Common.apiUrl + "/stackstudio/v1/cloud_management/topstack/dns/hosted_zones/" + this.attributes.id + "?_method=DELETE&cred_id=" + credentialId;
              this.sendAjaxAction(url, "POST", undefined, "hostedZoneAppRefresh");
          }
      });
  
      return HostedZone;
  });
  