Source code for azure.mgmt.devtestlabs.models.virtual_network_fragment

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource


[docs]class VirtualNetworkFragment(Resource): """A virtual network. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The identifier of the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :param location: The location of the resource. :type location: str :param tags: The tags of the resource. :type tags: dict[str, str] :param allowed_subnets: The allowed subnets of the virtual network. :type allowed_subnets: list[~azure.mgmt.devtestlabs.models.SubnetFragment] :param description: The description of the virtual network. :type description: str :param external_provider_resource_id: The Microsoft.Network resource identifier of the virtual network. :type external_provider_resource_id: str :param external_subnets: The external subnet properties. :type external_subnets: list[~azure.mgmt.devtestlabs.models.ExternalSubnetFragment] :param subnet_overrides: The subnet overrides of the virtual network. :type subnet_overrides: list[~azure.mgmt.devtestlabs.models.SubnetOverrideFragment] :param provisioning_state: The provisioning status of the resource. :type provisioning_state: str :param unique_identifier: The unique immutable identifier of a resource (Guid). :type unique_identifier: str """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'allowed_subnets': {'key': 'properties.allowedSubnets', 'type': '[SubnetFragment]'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'external_provider_resource_id': {'key': 'properties.externalProviderResourceId', 'type': 'str'}, 'external_subnets': {'key': 'properties.externalSubnets', 'type': '[ExternalSubnetFragment]'}, 'subnet_overrides': {'key': 'properties.subnetOverrides', 'type': '[SubnetOverrideFragment]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'unique_identifier': {'key': 'properties.uniqueIdentifier', 'type': 'str'}, } def __init__(self, location=None, tags=None, allowed_subnets=None, description=None, external_provider_resource_id=None, external_subnets=None, subnet_overrides=None, provisioning_state=None, unique_identifier=None): super(VirtualNetworkFragment, self).__init__(location=location, tags=tags) self.allowed_subnets = allowed_subnets self.description = description self.external_provider_resource_id = external_provider_resource_id self.external_subnets = external_subnets self.subnet_overrides = subnet_overrides self.provisioning_state = provisioning_state self.unique_identifier = unique_identifier