Class: Azure::CDN::Mgmt::V2017_04_02::Models::CidrIpAddress

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb

Overview

CIDR Ip address

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#base_ip_addressString

Returns Ip adress itself.

Returns:

  • (String)

    Ip adress itself.



16
17
18
# File 'lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb', line 16

def base_ip_address
  @base_ip_address
end

#prefix_lengthInteger

Returns The length of the prefix of the ip address.

Returns:

  • (Integer)

    The length of the prefix of the ip address.



19
20
21
# File 'lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb', line 19

def prefix_length
  @prefix_length
end

Class Method Details

.mapperObject

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



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb', line 26

def self.mapper()
  {
    required: false,
    serialized_name: 'cidrIpAddress',
    type: {
      name: 'Composite',
      class_name: 'CidrIpAddress',
      model_properties: {
        base_ip_address: {
          required: false,
          serialized_name: 'baseIpAddress',
          type: {
            name: 'String'
          }
        },
        prefix_length: {
          required: false,
          serialized_name: 'prefixLength',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end