Class: Azure::ServiceFabric::V6_5_0_36::Models::HttpRouteMatchPath

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/http_route_match_path.rb

Overview

Path to match for routing.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#rewriteString

Returns replacement string for matched part of the Uri.

Returns:

  • (String)

    replacement string for matched part of the Uri.



19
20
21
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/http_route_match_path.rb', line 19

def rewrite
  @rewrite
end

#typeString

.

Returns:

  • (String)

    how to match value in the Uri. Default value: ‘prefix’



23
24
25
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/http_route_match_path.rb', line 23

def type
  @type
end

#valueString

Returns Uri path to match for request.

Returns:

  • (String)

    Uri path to match for request.



16
17
18
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/http_route_match_path.rb', line 16

def value
  @value
end

Class Method Details

.mapperObject

Mapper for HttpRouteMatchPath class as Ruby Hash. This will be used for serialization/deserialization.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/http_route_match_path.rb', line 30

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