# 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::Network::Mgmt::V2018_10_01 module Models # # Parameters that define the operation to create a connection monitor. # class ConnectionMonitor include MsRestAzure # @return [String] Connection monitor location. attr_accessor :location # @return [Hash{String => String}] Connection monitor tags. attr_accessor :tags # @return [ConnectionMonitorSource] attr_accessor :source # @return [ConnectionMonitorDestination] attr_accessor :destination # @return [Boolean] Determines if the connection monitor will start # automatically once created. Default value: true . attr_accessor :auto_start # @return [Integer] Monitoring interval in seconds. Default value: 60 . attr_accessor :monitoring_interval_in_seconds # # Mapper for ConnectionMonitor class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ConnectionMonitor', type: { name: 'Composite', class_name: 'ConnectionMonitor', model_properties: { 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' } } } }, source: { client_side_validation: true, required: true, serialized_name: 'properties.source', type: { name: 'Composite', class_name: 'ConnectionMonitorSource' } }, destination: { client_side_validation: true, required: true, serialized_name: 'properties.destination', type: { name: 'Composite', class_name: 'ConnectionMonitorDestination' } }, auto_start: { client_side_validation: true, required: false, serialized_name: 'properties.autoStart', default_value: true, type: { name: 'Boolean' } }, monitoring_interval_in_seconds: { client_side_validation: true, required: false, serialized_name: 'properties.monitoringIntervalInSeconds', default_value: 60, type: { name: 'Number' } } } } } end end end end