class Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput
Output of check name availability API.
Attributes
is_name_available[RW]
@return [Boolean] A value indicating whether the name is available.
message[RW]
@return [String] A message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property.
reason[RW]
@return [UnavailableNameReason] The reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable. Possible values include: 'Invalid', 'AlreadyExists'
Private Class Methods
mapper()
click to toggle source
Mapper for CheckNameAvailabilityOutput
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2015-08-19/generated/azure_mgmt_search/models/check_name_availability_output.rb, line 36 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityOutput', type: { name: 'Composite', class_name: 'CheckNameAvailabilityOutput', model_properties: { is_name_available: { client_side_validation: true, required: false, read_only: true, serialized_name: 'nameAvailable', type: { name: 'Boolean' } }, reason: { client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', type: { name: 'String' } }, message: { client_side_validation: true, required: false, read_only: true, serialized_name: 'message', type: { name: 'String' } } } } } end