class Azure::NetApp::Mgmt::V2020_07_01::Models::CheckAvailabilityResponse

Information regarding availability of a resource.

Attributes

is_available[RW]

@return [Boolean] true indicates name is valid and available. false indicates the name is invalid, unavailable, or both.

message[RW]

@return [String] If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.

reason[RW]

@return [InAvailabilityReasonType] Invalid indicates the name provided does not match Azure App Service naming requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable. Possible values include: 'Invalid', 'AlreadyExists'

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-07-01/generated/azure_mgmt_netapp/models/check_availability_response.rb, line 39
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CheckAvailabilityResponse',
    type: {
      name: 'Composite',
      class_name: 'CheckAvailabilityResponse',
      model_properties: {
        is_available: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isAvailable',
          type: {
            name: 'Boolean'
          }
        },
        reason: {
          client_side_validation: true,
          required: false,
          serialized_name: 'reason',
          type: {
            name: 'String'
          }
        },
        message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end