class Azure::Network::Mgmt::V2020_04_01::Models::IpAllocation

IpAllocation resource.

Attributes

allocation_tags[RW]

@return [Hash{String => String}] IpAllocation tags.

etag[RW]

@return [String] A unique read-only string that changes whenever the resource is updated.

ip_allocation_type[RW]

@return [IpAllocationType] The type for the IpAllocation. Possible values include: 'Undefined', 'Hypernet'

ipam_allocation_id[RW]

@return [String] The IPAM allocation ID.

prefix[RW]

@return [String] The address prefix for the IpAllocation.

prefix_length[RW]

@return [Integer] The address prefix length for the IpAllocation. Default value: 0 .

prefix_type[RW]

@return [IPVersion] The address prefix Type for the IpAllocation. Possible values include: 'IPv4', 'IPv6'

subnet[RW]

@return [SubResource] The Subnet that using the prefix of this IpAllocation resource.

virtual_network[RW]

@return [SubResource] The VirtualNetwork that using the prefix of this IpAllocation resource.

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-04-01/generated/azure_mgmt_network/models/ip_allocation.rb, line 53
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IpAllocation',
    type: {
      name: 'Composite',
      class_name: 'IpAllocation',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        subnet: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.subnet',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        virtual_network: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.virtualNetwork',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        ip_allocation_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.type',
          type: {
            name: 'String'
          }
        },
        prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.prefix',
          type: {
            name: 'String'
          }
        },
        prefix_length: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.prefixLength',
          default_value: 0,
          type: {
            name: 'Number'
          }
        },
        prefix_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.prefixType',
          type: {
            name: 'String'
          }
        },
        ipam_allocation_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ipamAllocationId',
          type: {
            name: 'String'
          }
        },
        allocation_tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.allocationTags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end