Sha256: b85d63e263e08a389ae2942a9bbbc85824984c02864591c64c9209231ca3bb0f

Contents?: true

Size: 1.87 KB

Versions: 1

Compression:

Stored size: 1.87 KB

Contents

# 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_web-0.8.0 lib/generated/azure_mgmt_web/models/resource_name_availability.rb