Class: Azure::Network::Mgmt::V2018_02_01::Models::ApplicationGatewayRedirectConfiguration

Inherits:
SubResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb

Overview

Redirect configuration of an application gateway.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#id

Class Method Summary collapse

Instance Attribute Details

#etagString

resource is updated.

Returns:

  • (String)

    A unique read-only string that changes whenever the


51
52
53
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 51

def etag
  @etag
end

#include_pathBoolean

Returns Include path in the redirected url.

Returns:

  • (Boolean)

    Include path in the redirected url.


28
29
30
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 28

def include_path
  @include_path
end

#include_query_stringBoolean

Returns Include query string in the redirected url.

Returns:

  • (Boolean)

    Include query string in the redirected url.


31
32
33
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 31

def include_query_string
  @include_query_string
end

#nameString

group. This name can be used to access the resource.

Returns:

  • (String)

    Name of the resource that is unique within a resource


47
48
49
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 47

def name
  @name
end

#path_rulesArray<SubResource>

configuration.

Returns:

  • (Array<SubResource>)

    Path rules specifying redirect


43
44
45
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 43

def path_rules
  @path_rules
end

#redirect_typeApplicationGatewayRedirectType

types - Permanent, Temporary, Found, SeeOther. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'

Returns:


18
19
20
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 18

def redirect_type
  @redirect_type
end

#request_routing_rulesArray<SubResource>

configuration.

Returns:

  • (Array<SubResource>)

    Request routing specifying redirect


35
36
37
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 35

def request_routing_rules
  @request_routing_rules
end

#target_listenerSubResource

to.

Returns:

  • (SubResource)

    Reference to a listener to redirect the request


22
23
24
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 22

def target_listener
  @target_listener
end

#target_urlString

Returns Url to redirect the request to.

Returns:

  • (String)

    Url to redirect the request to.


25
26
27
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 25

def target_url
  @target_url
end

#typeString

Returns Type of the resource.

Returns:

  • (String)

    Type of the resource.


54
55
56
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 54

def type
  @type
end

#url_path_mapsArray<SubResource>

configuration.

Returns:

  • (Array<SubResource>)

    Url path maps specifying default redirect


39
40
41
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 39

def url_path_maps
  @url_path_maps
end

Class Method Details

.mapperObject

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


61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/2018-02-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 61

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationGatewayRedirectConfiguration',
    type: {
      name: 'Composite',
      class_name: 'ApplicationGatewayRedirectConfiguration',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        redirect_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.redirectType',
          type: {
            name: 'String'
          }
        },
        target_listener: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.targetListener',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        target_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.targetUrl',
          type: {
            name: 'String'
          }
        },
        include_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.includePath',
          type: {
            name: 'Boolean'
          }
        },
        include_query_string: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.includeQueryString',
          type: {
            name: 'Boolean'
          }
        },
        request_routing_rules: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.requestRoutingRules',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SubResourceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SubResource'
                }
            }
          }
        },
        url_path_maps: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.urlPathMaps',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SubResourceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SubResource'
                }
            }
          }
        },
        path_rules: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.pathRules',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SubResourceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SubResource'
                }
            }
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end