Class: Azure::TrafficManager::Mgmt::V2015_11_01::Models::TrafficManagerNameAvailability

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb

Overview

Class representing a Traffic Manager Name Availability response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#messageString

available, when applicable.

Returns:

  • (String)

    Descriptive message that explains why the name is not



31
32
33
# File 'lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb', line 31

def message
  @message
end

#nameString

Returns The relative name.

Returns:

  • (String)

    The relative name.



16
17
18
# File 'lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb', line 16

def name
  @name
end

#name_availableBoolean

not.

Returns:

  • (Boolean)

    Describes whether the relative name is available or



23
24
25
# File 'lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb', line 23

def name_available
  @name_available
end

#reasonString

applicable.

Returns:

  • (String)

    The reason why the name is not available, when



27
28
29
# File 'lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb', line 27

def reason
  @reason
end

#typeString

Returns Traffic Manager profile resource type.

Returns:

  • (String)

    Traffic Manager profile resource type.



19
20
21
# File 'lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb', line 19

def type
  @type
end

Class Method Details

.mapperObject

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



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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TrafficManagerNameAvailability',
    type: {
      name: 'Composite',
      class_name: 'TrafficManagerNameAvailability',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        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: 'String'
          }
        },
        message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end