Class: Azure::Network::Mgmt::V2019_09_01::Models::ApplicationGatewayRedirectConfiguration

Inherits:
SubResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-09-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


50
51
52
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 50

def etag
  @etag
end

#include_pathBoolean

Returns Include path in the redirected url.

Returns:

  • (Boolean)

    Include path in the redirected url.


27
28
29
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 27

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.


30
31
32
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 30

def include_query_string
  @include_query_string
end

#nameString

within an Application Gateway.

Returns:

  • (String)

    Name of the redirect configuration that is unique


46
47
48
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 46

def name
  @name
end

#path_rulesArray<SubResource>

configuration.

Returns:

  • (Array<SubResource>)

    Path rules specifying redirect


42
43
44
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 42

def path_rules
  @path_rules
end

#redirect_typeApplicationGatewayRedirectType

Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'

Returns:


17
18
19
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 17

def redirect_type
  @redirect_type
end

#request_routing_rulesArray<SubResource>

configuration.

Returns:

  • (Array<SubResource>)

    Request routing specifying redirect


34
35
36
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 34

def request_routing_rules
  @request_routing_rules
end

#target_listenerSubResource

to.

Returns:

  • (SubResource)

    Reference to a listener to redirect the request


21
22
23
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 21

def target_listener
  @target_listener
end

#target_urlString

Returns Url to redirect the request to.

Returns:

  • (String)

    Url to redirect the request to.


24
25
26
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 24

def target_url
  @target_url
end

#typeString

Returns Type of the resource.

Returns:

  • (String)

    Type of the resource.


53
54
55
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 53

def type
  @type
end

#url_path_mapsArray<SubResource>

configuration.

Returns:

  • (Array<SubResource>)

    Url path maps specifying default redirect


38
39
40
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 38

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.


60
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
198
# File 'lib/2019-09-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb', line 60

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,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end