in python/az/aro/azext_aro/aaz/latest/network/vnet/_show.py [0:0]
def _build_schema_on_200(cls):
if cls._schema_on_200 is not None:
return cls._schema_on_200
cls._schema_on_200 = AAZObjectType()
_schema_on_200 = cls._schema_on_200
_schema_on_200.etag = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.extended_location = AAZObjectType(
serialized_name="extendedLocation",
)
_ShowHelper._build_schema_extended_location_read(_schema_on_200.extended_location)
_schema_on_200.id = AAZStrType()
_schema_on_200.location = AAZStrType()
_schema_on_200.name = AAZStrType(
flags={"read_only": True},
)
_schema_on_200.properties = AAZObjectType(
flags={"client_flatten": True},
)
_schema_on_200.tags = AAZDictType()
_schema_on_200.type = AAZStrType(
flags={"read_only": True},
)
properties = cls._schema_on_200.properties
properties.address_space = AAZObjectType(
serialized_name="addressSpace",
)
_ShowHelper._build_schema_address_space_read(properties.address_space)
properties.bgp_communities = AAZObjectType(
serialized_name="bgpCommunities",
)
properties.ddos_protection_plan = AAZObjectType(
serialized_name="ddosProtectionPlan",
)
properties.dhcp_options = AAZObjectType(
serialized_name="dhcpOptions",
)
properties.enable_ddos_protection = AAZBoolType(
serialized_name="enableDdosProtection",
)
properties.enable_vm_protection = AAZBoolType(
serialized_name="enableVmProtection",
)
properties.encryption = AAZObjectType()
properties.flow_timeout_in_minutes = AAZIntType(
serialized_name="flowTimeoutInMinutes",
)
properties.ip_allocations = AAZListType(
serialized_name="ipAllocations",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.resource_guid = AAZStrType(
serialized_name="resourceGuid",
flags={"read_only": True},
)
properties.subnets = AAZListType()
properties.virtual_network_peerings = AAZListType(
serialized_name="virtualNetworkPeerings",
)
bgp_communities = cls._schema_on_200.properties.bgp_communities
bgp_communities.regional_community = AAZStrType(
serialized_name="regionalCommunity",
flags={"read_only": True},
)
bgp_communities.virtual_network_community = AAZStrType(
serialized_name="virtualNetworkCommunity",
flags={"required": True},
)
ddos_protection_plan = cls._schema_on_200.properties.ddos_protection_plan
ddos_protection_plan.id = AAZStrType()
dhcp_options = cls._schema_on_200.properties.dhcp_options
dhcp_options.dns_servers = AAZListType(
serialized_name="dnsServers",
)
dns_servers = cls._schema_on_200.properties.dhcp_options.dns_servers
dns_servers.Element = AAZStrType()
encryption = cls._schema_on_200.properties.encryption
encryption.enabled = AAZBoolType(
flags={"required": True},
)
encryption.enforcement = AAZStrType()
ip_allocations = cls._schema_on_200.properties.ip_allocations
ip_allocations.Element = AAZObjectType()
_ShowHelper._build_schema_sub_resource_read(ip_allocations.Element)
subnets = cls._schema_on_200.properties.subnets
subnets.Element = AAZObjectType()
_ShowHelper._build_schema_subnet_read(subnets.Element)
virtual_network_peerings = cls._schema_on_200.properties.virtual_network_peerings
virtual_network_peerings.Element = AAZObjectType()
_element = cls._schema_on_200.properties.virtual_network_peerings.Element
_element.etag = AAZStrType(
flags={"read_only": True},
)
_element.id = AAZStrType()
_element.name = AAZStrType()
_element.properties = AAZObjectType(
flags={"client_flatten": True},
)
_element.type = AAZStrType()
properties = cls._schema_on_200.properties.virtual_network_peerings.Element.properties
properties.allow_forwarded_traffic = AAZBoolType(
serialized_name="allowForwardedTraffic",
)
properties.allow_gateway_transit = AAZBoolType(
serialized_name="allowGatewayTransit",
)
properties.allow_virtual_network_access = AAZBoolType(
serialized_name="allowVirtualNetworkAccess",
)
properties.do_not_verify_remote_gateways = AAZBoolType(
serialized_name="doNotVerifyRemoteGateways",
)
properties.peering_state = AAZStrType(
serialized_name="peeringState",
)
properties.peering_sync_level = AAZStrType(
serialized_name="peeringSyncLevel",
)
properties.provisioning_state = AAZStrType(
serialized_name="provisioningState",
flags={"read_only": True},
)
properties.remote_address_space = AAZObjectType(
serialized_name="remoteAddressSpace",
)
_ShowHelper._build_schema_address_space_read(properties.remote_address_space)
properties.remote_bgp_communities = AAZObjectType(
serialized_name="remoteBgpCommunities",
)
properties.remote_virtual_network = AAZObjectType(
serialized_name="remoteVirtualNetwork",
)
_ShowHelper._build_schema_sub_resource_read(properties.remote_virtual_network)
properties.remote_virtual_network_address_space = AAZObjectType(
serialized_name="remoteVirtualNetworkAddressSpace",
)
_ShowHelper._build_schema_address_space_read(properties.remote_virtual_network_address_space)
properties.remote_virtual_network_encryption = AAZObjectType(
serialized_name="remoteVirtualNetworkEncryption",
)
properties.resource_guid = AAZStrType(
serialized_name="resourceGuid",
flags={"read_only": True},
)
properties.use_remote_gateways = AAZBoolType(
serialized_name="useRemoteGateways",
)
remote_bgp_communities = cls._schema_on_200.properties.virtual_network_peerings.Element.properties.remote_bgp_communities
remote_bgp_communities.regional_community = AAZStrType(
serialized_name="regionalCommunity",
flags={"read_only": True},
)
remote_bgp_communities.virtual_network_community = AAZStrType(
serialized_name="virtualNetworkCommunity",
flags={"required": True},
)
remote_virtual_network_encryption = cls._schema_on_200.properties.virtual_network_peerings.Element.properties.remote_virtual_network_encryption
remote_virtual_network_encryption.enabled = AAZBoolType(
flags={"required": True},
)
remote_virtual_network_encryption.enforcement = AAZStrType()
tags = cls._schema_on_200.tags
tags.Element = AAZStrType()
return cls._schema_on_200