Class: Azure::Appconfiguration::Mgmt::V2020_06_01::Models::NameAvailabilityStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/name_availability_status.rb

Overview

The result of a request to check the availability of a resource name.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#messageString

for the reason that the name is not available.

Returns:

  • (String)

    If any, the error message that provides more detail



21
22
23
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/name_availability_status.rb', line 21

def message
  @message
end

#name_availableBoolean

available.

Returns:

  • (Boolean)

    The value indicating whether the resource name is



17
18
19
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/name_availability_status.rb', line 17

def name_available
  @name_available
end

#reasonString

Returns If any, the reason that the name is not available.

Returns:

  • (String)

    If any, the reason that the name is not available.



24
25
26
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/name_availability_status.rb', line 24

def reason
  @reason
end

Class Method Details

.mapperObject

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



31
32
33
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
# File 'lib/2020-06-01/generated/azure_mgmt_appconfiguration/models/name_availability_status.rb', line 31

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