Sha256: 9c9fc8366ed46a272e2197046f8c45ff408539e21ddbd7430e23d411e0b59cb9

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

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

module Azure::NotificationHubs::Mgmt::V2017_04_01
  module Models
    #
    # Model object.
    #
    #
    class CheckNameAvailabilityResponse

      include MsRestAzure

      # @return [Boolean] Checks if the namespace name is available
      attr_accessor :name_available

      # @return [String] States the reason due to which the namespace name is
      # not available
      attr_accessor :reason

      # @return [String] The messsage returned when checking for namespace name
      # availability
      attr_accessor :message


      #
      # Mapper for CheckNameAvailabilityResponse class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'CheckNameAvailabilityResponse',
          type: {
            name: 'Composite',
            class_name: 'CheckNameAvailabilityResponse',
            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

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_notification_hubs-0.15.1 lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb
azure_mgmt_notification_hubs-0.15.0 lib/2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb