Class: Azure::Storage::Mgmt::V2015_06_15::Models::CheckNameAvailabilityResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb

Overview

The CheckNameAvailability operation response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#messageString

detail.

Returns:

  • (String)

    The error message explaining the Reason value in more



27
28
29
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb', line 27

def message
  @message
end

#name_availableBoolean

available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.

Returns:

  • (Boolean)

    Boolean value that indicates whether the name is



18
19
20
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb', line 18

def name_available
  @name_available
end

#reasonReason

used. The Reason element is only returned if NameAvailable is false. Possible values include: ‘AccountNameInvalid’, ‘AlreadyExists’

Returns:

  • (Reason)

    The reason that a storage account name could not be



23
24
25
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb', line 23

def reason
  @reason
end

Class Method Details

.mapperObject

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



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CheckNameAvailabilityResult',
    type: {
      name: 'Composite',
      class_name: 'CheckNameAvailabilityResult',
      model_properties: {
        name_available: {
          client_side_validation: true,
          required: false,
          serialized_name: 'nameAvailable',
          type: {
            name: 'Boolean'
          }
        },
        reason: {
          client_side_validation: true,
          required: false,
          serialized_name: 'reason',
          type: {
            name: 'Enum',
            module: 'Reason'
          }
        },
        message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end