class Azure::Network::Mgmt::V2019_04_01::Models::Subnet

Subnet in a virtual network resource.

Attributes

address_prefix[RW]

@return [String] The address prefix for the subnet.

address_prefixes[RW]

@return [Array<String>] List of address prefixes for the subnet.

delegations[RW]

@return [Array<Delegation>] Gets an array of references to the delegations on the subnet.

etag[RW]

@return [String] A unique read-only string that changes whenever the resource is updated.

ip_configuration_profiles[RW]

@return [Array<IPConfigurationProfile>] Array of IP configuration profiles which reference this subnet.

ip_configurations[RW]

@return [Array<IPConfiguration>] Gets an array of references to the network interface IP configurations using subnet.

name[RW]

@return [String] The name of the resource that is unique within a resource group. This name can be used to access the resource.

nat_gateway[RW]

@return [SubResource] Nat gateway associated with this subnet.

network_security_group[RW]

@return [NetworkSecurityGroup] The reference of the NetworkSecurityGroup resource.

private_endpoint_network_policies[RW]

@return [String] Enable or Disable private end point on the subnet.

private_endpoints[RW]

@return [Array<PrivateEndpoint>] An array of references to private endpoints.

provisioning_state[RW]

@return [String] The provisioning state of the resource.

purpose[RW]

@return [String] A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties.

route_table[RW]

@return [RouteTable] The reference of the RouteTable resource.

service_endpoint_policies[RW]

@return [Array<ServiceEndpointPolicy>] An array of service endpoint policies.

service_endpoints[RW]

@return [Array<ServiceEndpointPropertiesFormat>] An array of service endpoints.

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-04-01/generated/azure_mgmt_network/models/subnet.rb, line 88
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,
          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'
          }
        },
        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,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end