Sha256: 8080f3f4d8ddb4e5bb35b676bd5a20d1038bbe67c9686d2162f516e4c2790660

Contents?: true

Size: 1.93 KB

Versions: 2

Compression:

Stored size: 1.93 KB

Contents

# 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 the hostname properties for http routing.
    #
    class HttpRouteConfig

      include MsRestAzure

      # @return [String] http route name.
      attr_accessor :name

      # @return [HttpRouteMatchRule] Describes a rule for http route matching.
      attr_accessor :match

      # @return [GatewayDestination] Describes destination endpoint for routing
      # traffic.
      attr_accessor :destination


      #
      # Mapper for HttpRouteConfig class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'HttpRouteConfig',
          type: {
            name: 'Composite',
            class_name: 'HttpRouteConfig',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              match: {
                client_side_validation: true,
                required: true,
                serialized_name: 'match',
                default_value: {},
                type: {
                  name: 'Composite',
                  class_name: 'HttpRouteMatchRule'
                }
              },
              destination: {
                client_side_validation: true,
                required: true,
                serialized_name: 'destination',
                type: {
                  name: 'Composite',
                  class_name: 'GatewayDestination'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_service_fabric-0.18.1 lib/7.0.0.42/generated/azure_service_fabric/models/http_route_config.rb
azure_service_fabric-0.18.0 lib/7.0.0.42/generated/azure_service_fabric/models/http_route_config.rb