Sha256: ff4d6a08dfd3c167dd5223ca1d068002702ea635016928fca6c549e0c9c511f2

Contents?: true

Size: 1.85 KB

Versions: 3

Compression:

Stored size: 1.85 KB

Contents

# 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::ARM::MediaServices
  module Models
    #
    # The response body for CheckNameAvailability API.
    #
    class CheckNameAvailabilityOutput

      include MsRestAzure

      # @return [Boolean] Specifies if the name is available.
      attr_accessor :name_available

      # @return [EntityNameUnavailabilityReason] Specifies the reason if the
      # name is not available. Possible values include: 'None', 'Invalid',
      # 'AlreadyExists'
      attr_accessor :reason

      # @return [String] Specifies the detailed reason if the name is not
      # available.
      attr_accessor :message


      #
      # Mapper for CheckNameAvailabilityOutput class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'CheckNameAvailabilityOutput',
          type: {
            name: 'Composite',
            class_name: 'CheckNameAvailabilityOutput',
            model_properties: {
              name_available: {
                required: false,
                serialized_name: 'nameAvailable',
                type: {
                  name: 'Boolean'
                }
              },
              reason: {
                required: false,
                serialized_name: 'reason',
                type: {
                  name: 'Enum',
                  module: 'EntityNameUnavailabilityReason'
                }
              },
              message: {
                required: false,
                serialized_name: 'message',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azure_mgmt_media_services-0.6.0 lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb
azure_mgmt_media_services-0.5.0 lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb
azure_mgmt_media_services-0.4.0 lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb