# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Web module Models # # Describes if a resource name is available # class ResourceNameAvailability include MsRestAzure # @return [Boolean] True indicates name is valid and available. False # indicates the name is invalid, unavailable, or both. attr_accessor :name_available # @return [String] Required if nameAvailable is false. 'Invalid' # indicates the name provided does not match Azure WebApp service’s # naming requirements. 'AlreadyExists' indicates that the name is already # in use and is therefore unavailable. attr_accessor :reason # @return [String] attr_accessor :message # # Mapper for ResourceNameAvailability class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'ResourceNameAvailability', type: { name: 'Composite', class_name: 'ResourceNameAvailability', model_properties: { name_available: { required: false, serialized_name: 'nameAvailable', type: { name: 'Boolean' } }, reason: { required: false, serialized_name: 'reason', type: { name: 'String' } }, message: { required: false, serialized_name: 'message', type: { name: 'String' } } } } } end end end end