Sha256: 87551771e15e322f8a8a8691bc3fb66b5235c6dfde2efc9aed130f306bd3b9fb

Contents?: true

Size: 1.84 KB

Versions: 2

Compression:

Stored size: 1.84 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
    #
    # Path to match for routing.
    #
    class HttpRouteMatchPath

      include MsRestAzure

      # @return [String] Uri path to match for request.
      attr_accessor :value

      # @return [String] replacement string for matched part of the Uri.
      attr_accessor :rewrite

      # @return [String] how to match value in the Uri. Default value: 'prefix'
      # .
      attr_accessor :type


      #
      # Mapper for HttpRouteMatchPath class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'HttpRouteMatchPath',
          type: {
            name: 'Composite',
            class_name: 'HttpRouteMatchPath',
            model_properties: {
              value: {
                client_side_validation: true,
                required: true,
                serialized_name: 'value',
                type: {
                  name: 'String'
                }
              },
              rewrite: {
                client_side_validation: true,
                required: false,
                serialized_name: 'rewrite',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: true,
                is_constant: true,
                serialized_name: 'type',
                default_value: 'prefix',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      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_match_path.rb
azure_service_fabric-0.18.0 lib/7.0.0.42/generated/azure_service_fabric/models/http_route_match_path.rb