# 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::ServiceFabric::V7_0_0_42 module Models # # Describes a rule for http route matching. # class HttpRouteMatchRule include MsRestAzure # @return [HttpRouteMatchPath] Path to match for routing. attr_accessor :path # @return [Array] headers and their values to match # in request. attr_accessor :headers # # Mapper for HttpRouteMatchRule class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'HttpRouteMatchRule', type: { name: 'Composite', class_name: 'HttpRouteMatchRule', model_properties: { path: { client_side_validation: true, required: true, serialized_name: 'path', default_value: {}, type: { name: 'Composite', class_name: 'HttpRouteMatchPath' } }, headers: { client_side_validation: true, required: false, serialized_name: 'headers', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'HttpRouteMatchHeaderElementType', type: { name: 'Composite', class_name: 'HttpRouteMatchHeader' } } } } } } } end end end end