Class: Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointPropertiesSubnetsItem

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_properties_subnets_item.rb

Overview

Subnet first address, scope, and/or last address.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#firstString

Returns First address in the subnet.

Returns:

  • (String)

    First address in the subnet.



16
17
18
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_properties_subnets_item.rb', line 16

def first
  @first
end

#lastString

Returns Last address in the subnet.

Returns:

  • (String)

    Last address in the subnet.



19
20
21
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_properties_subnets_item.rb', line 19

def last
  @last
end

#scopeInteger

mask).

Returns:

  • (Integer)

    Block size (number of leading bits in the subnet



23
24
25
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_properties_subnets_item.rb', line 23

def scope
  @scope
end

Class Method Details

.mapperObject

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



30
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
# File 'lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_properties_subnets_item.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EndpointProperties_subnetsItem',
    type: {
      name: 'Composite',
      class_name: 'EndpointPropertiesSubnetsItem',
      model_properties: {
        first: {
          client_side_validation: true,
          required: false,
          serialized_name: 'first',
          type: {
            name: 'String'
          }
        },
        last: {
          client_side_validation: true,
          required: false,
          serialized_name: 'last',
          type: {
            name: 'String'
          }
        },
        scope: {
          client_side_validation: true,
          required: false,
          serialized_name: 'scope',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end