# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure end
module Azure::ARM end
module Azure::ARM::Web end

require_relative 'web'
require_relative 'web_properties'
require_relative 'connectionstrings'
require_relative 'appsettings'
require_relative 'serverfarms_sku0'
require_relative 'serverfarms_properties'
require_relative 'extensions_properties'
require_relative 'sites_properties'
require_relative 'sites_properties_host_name_ssl_states0item'
require_relative 'sites_resources_item1properties'
require_relative 'certificates_properties'
require_relative 'serverfarms'
require_relative 'config'
require_relative 'extensions'
require_relative 'sites'
require_relative 'sites_resources_item0'
require_relative 'sites_resources_item1'
require_relative 'certificates'

class Azure::ARM::Template
  def serverfarm(init=nil,&block)
    conf = Azure::ARM::Web::Serverfarm::Configurator.new self
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def config(init=nil,&block)
    conf = Azure::ARM::Web::Config::Configurator.new self
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def extension(init=nil,&block)
    conf = Azure::ARM::Web::Extension::Configurator.new self
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def site(init=nil,&block)
    conf = Azure::ARM::Web::Site::Configurator.new self
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def sites_resources_item0(init=nil,&block)
    conf = Azure::ARM::Web::SitesResourcesItem0::Configurator.new self
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def sites_resources_item1(init=nil,&block)
    conf = Azure::ARM::Web::SitesResourcesItem1::Configurator.new self
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def certificate(init=nil,&block)
    conf = Azure::ARM::Web::Certificate::Configurator.new self
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def web(init=nil,&block)
    conf = Azure::ARM::Web::Web::Configurator.new
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def connectionstrings(init=nil,&block)
    conf = Azure::ARM::Web::Connectionstrings::Configurator.new
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
  def appsettings(init=nil,&block)
    conf = Azure::ARM::Web::Appsettings::Configurator.new
    conf.create init
    conf.instance_exec(conf.parent,&block) if block
    conf.parent
  end
end

