Sha256: 9bd9854e061bbb7460fcd5266cae7f1d38a8810f387f98127d987d7365e2b171

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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

      include MsRest::JSONable
      # @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

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_media_services-0.12.0 lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb
azure_mgmt_media_services-0.11.0 lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb