Class: Azure::Network::Mgmt::V2018_08_01::Models::Subnet

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

Overview

Subnet in a virtual network resource.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#id

Class Method Summary collapse

Instance Attribute Details

#address_prefixString

Returns The address prefix for the subnet.

Returns:

  • (String)

    The address prefix for the subnet.


16
17
18
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 16

def address_prefix
  @address_prefix
end

#address_prefixesArray<String>

Returns List of address prefixes for the subnet.

Returns:

  • (Array<String>)

    List of address prefixes for the subnet.


19
20
21
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 19

def address_prefixes
  @address_prefixes
end

#delegationsArray<Delegation>

delegations on the subnet.

Returns:

  • (Array<Delegation>)

    Gets an array of references to the


58
59
60
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 58

def delegations
  @delegations
end

#etagString

resource is updated.

Returns:

  • (String)

    A unique read-only string that changes whenever the


73
74
75
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 73

def etag
  @etag
end

#interface_endpointsArray<InterfaceEndpoint>

endpoints

Returns:


38
39
40
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 38

def interface_endpoints
  @interface_endpoints
end

#ip_configuration_profilesArray<IPConfigurationProfile>

profiles which reference this subnet.

Returns:


46
47
48
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 46

def ip_configuration_profiles
  @ip_configuration_profiles
end

#ip_configurationsArray<IPConfiguration>

network interface IP configurations using subnet.

Returns:


42
43
44
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 42

def ip_configurations
  @ip_configurations
end

#nameString

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

Returns:

  • (String)

    The name of the resource that is unique within a


69
70
71
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 69

def name
  @name
end

#network_security_groupNetworkSecurityGroup

NetworkSecurityGroup resource.

Returns:


23
24
25
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 23

def network_security_group
  @network_security_group
end

#provisioning_stateString

Returns The provisioning state of the resource.

Returns:

  • (String)

    The provisioning state of the resource.


65
66
67
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 65

def provisioning_state
  @provisioning_state
end

#purposeString

for this subnet based on delegations and other user-defined properties.

Returns:

  • (String)

    A read-only string identifying the intention of use


62
63
64
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 62

def purpose
  @purpose
end

the external resources using subnet.

Returns:


50
51
52
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 50

def resource_navigation_links
  @resource_navigation_links
end

#route_tableRouteTable

Returns The reference of the RouteTable resource.

Returns:

  • (RouteTable)

    The reference of the RouteTable resource.


26
27
28
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 26

def route_table
  @route_table
end

services injecting into this subnet.

Returns:


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

def service_association_links
  @service_association_links
end

#service_endpoint_policiesArray<ServiceEndpointPolicy>

policies.

Returns:


34
35
36
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 34

def service_endpoint_policies
  @service_endpoint_policies
end

#service_endpointsArray<ServiceEndpointPropertiesFormat>

endpoints.

Returns:


30
31
32
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 30

def service_endpoints
  @service_endpoints
end

Class Method Details

.mapperObject

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


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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/subnet.rb', line 80

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Subnet',
    type: {
      name: 'Composite',
      class_name: 'Subnet',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        address_prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.addressPrefix',
          type: {
            name: 'String'
          }
        },
        address_prefixes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.addressPrefixes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        network_security_group: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.networkSecurityGroup',
          type: {
            name: 'Composite',
            class_name: 'NetworkSecurityGroup'
          }
        },
        route_table: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.routeTable',
          type: {
            name: 'Composite',
            class_name: 'RouteTable'
          }
        },
        service_endpoints: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.serviceEndpoints',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServiceEndpointPropertiesFormatElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ServiceEndpointPropertiesFormat'
                }
            }
          }
        },
        service_endpoint_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.serviceEndpointPolicies',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServiceEndpointPolicyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ServiceEndpointPolicy'
                }
            }
          }
        },
        interface_endpoints: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.interfaceEndpoints',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'InterfaceEndpointElementType',
                type: {
                  name: 'Composite',
                  class_name: 'InterfaceEndpoint'
                }
            }
          }
        },
        ip_configurations: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.ipConfigurations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IPConfigurationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'IPConfiguration'
                }
            }
          }
        },
        ip_configuration_profiles: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.ipConfigurationProfiles',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IPConfigurationProfileElementType',
                type: {
                  name: 'Composite',
                  class_name: 'IPConfigurationProfile'
                }
            }
          }
        },
        resource_navigation_links: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.resourceNavigationLinks',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ResourceNavigationLinkElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceNavigationLink'
                }
            }
          }
        },
        service_association_links: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.serviceAssociationLinks',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServiceAssociationLinkElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ServiceAssociationLink'
                }
            }
          }
        },
        delegations: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.delegations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DelegationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Delegation'
                }
            }
          }
        },
        purpose: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.purpose',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        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'
          }
        }
      }
    }
  }
end