Class: Azure::Network::Mgmt::V2019_11_01::Models::Subnet

Inherits:
SubResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-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/2019-11-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/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 19

def address_prefixes
  @address_prefixes
end

#delegationsArray<Delegation>

on the subnet.

Returns:

  • (Array<Delegation>)

    An array of references to the delegations


61
62
63
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 61

def delegations
  @delegations
end

#etagString

resource is updated.

Returns:

  • (String)

    A unique read-only string that changes whenever the


86
87
88
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 86

def etag
  @etag
end

#ip_configuration_profilesArray<IPConfigurationProfile>

profiles which reference this subnet.

Returns:


49
50
51
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 49

def ip_configuration_profiles
  @ip_configuration_profiles
end

#ip_configurationsArray<IPConfiguration>

interface IP configurations using subnet.

Returns:


45
46
47
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 45

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


82
83
84
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 82

def name
  @name
end

#nat_gatewaySubResource

Returns Nat gateway associated with this subnet.

Returns:

  • (SubResource)

    Nat gateway associated with this subnet.


29
30
31
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 29

def nat_gateway
  @nat_gateway
end

#network_security_groupNetworkSecurityGroup

NetworkSecurityGroup resource.

Returns:


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

def network_security_group
  @network_security_group
end

#private_endpoint_network_policiesString

end point in the subnet.

Returns:

  • (String)

    Enable or Disable apply network policies on private


74
75
76
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 74

def private_endpoint_network_policies
  @private_endpoint_network_policies
end

#private_endpointsArray<PrivateEndpoint>

endpoints.

Returns:


41
42
43
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 41

def private_endpoints
  @private_endpoints
end

link service in the subnet.

Returns:

  • (String)

    Enable or Disable apply network policies on private


78
79
80
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 78

def private_link_service_network_policies
  @private_link_service_network_policies
end

#provisioning_stateProvisioningState

resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

Returns:


70
71
72
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 70

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


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

def purpose
  @purpose
end

external resources using subnet.

Returns:


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

def resource_navigation_links
  @resource_navigation_links
end

#route_tableRouteTable

Returns The reference to the RouteTable resource.

Returns:

  • (RouteTable)

    The reference to the RouteTable resource.


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

def route_table
  @route_table
end

services injecting into this subnet.

Returns:


57
58
59
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 57

def service_association_links
  @service_association_links
end

#service_endpoint_policiesArray<ServiceEndpointPolicy>

policies.

Returns:


37
38
39
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 37

def service_endpoint_policies
  @service_endpoint_policies
end

#service_endpointsArray<ServiceEndpointPropertiesFormat>

endpoints.

Returns:


33
34
35
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 33

def service_endpoints
  @service_endpoints
end

Class Method Details

.mapperObject

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


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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet.rb', line 93

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'
          }
        },
        nat_gateway: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.natGateway',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        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'
                }
            }
          }
        },
        private_endpoints: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.privateEndpoints',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PrivateEndpointElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PrivateEndpoint'
                }
            }
          }
        },
        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,
          read_only: true,
          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,
          read_only: true,
          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,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        private_endpoint_network_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.privateEndpointNetworkPolicies',
          type: {
            name: 'String'
          }
        },
        private_link_service_network_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.privateLinkServiceNetworkPolicies',
          type: {
            name: 'String'
          }
        },
        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'
          }
        }
      }
    }
  }
end