class Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput

Input of check name availability API.

Attributes

name[RW]

@return [String] The Search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length.

type[RW]

@return [String] The type of the resource whose name is to be validated. This value must always be 'searchServices'. Default value: 'searchServices' .

Private Class Methods

mapper() click to toggle source

Mapper for CheckNameAvailabilityInput class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2015-08-19/generated/azure_mgmt_search/models/check_name_availability_input.rb, line 31
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CheckNameAvailabilityInput',
    type: {
      name: 'Composite',
      class_name: 'CheckNameAvailabilityInput',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          is_constant: true,
          serialized_name: 'type',
          default_value: 'searchServices',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end