# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 module Models # # Subnets of the network. # class Subnet include MsRestAzure # @return [String] The subnet name. attr_accessor :name # @return [String] The subnet friendly name. attr_accessor :friendly_name # @return [Array] The list of addresses for the subnet. attr_accessor :address_list # # Mapper for Subnet class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Subnet', type: { name: 'Composite', class_name: 'Subnet', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, friendly_name: { client_side_validation: true, required: false, serialized_name: 'friendlyName', type: { name: 'String' } }, address_list: { client_side_validation: true, required: false, serialized_name: 'addressList', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end end end end