{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-network-profile-schema.json",
  "title": "NetworkProfile",
  "description": "NetworkProfile represents a Google managed network profile resource.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-network-profiles-api-openapi.yml#/components/schemas/NetworkProfile",
  "type": "object",
  "properties": {
    "profileType": {
      "$ref": "#/$defs/NetworkProfileProfileType",
      "description": "Output only. [Output Only] Type of the network profile."
    },
    "creationTimestamp": {
      "type": "string",
      "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.",
      "readOnly": true
    },
    "location": {
      "$ref": "#/$defs/NetworkProfileLocation",
      "description": "Output only. [Output Only] Location to which the network is restricted."
    },
    "name": {
      "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
      "readOnly": true,
      "description": "Output only. [Output Only] Name of the resource.",
      "type": "string"
    },
    "features": {
      "$ref": "#/$defs/NetworkProfileNetworkFeatures",
      "description": "Output only. [Output Only] Features supported by the network."
    },
    "description": {
      "readOnly": true,
      "description": "Output only. [Output Only] An optional description of this resource.",
      "type": "string"
    },
    "kind": {
      "description": "Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles.",
      "type": "string",
      "readOnly": true,
      "default": "compute#networkProfile"
    },
    "selfLink": {
      "readOnly": true,
      "description": "Output only. [Output Only] Server-defined URL for the resource.",
      "type": "string"
    },
    "selfLinkWithId": {
      "description": "Output only. [Output Only] Server-defined URL for this resource with the resource id.",
      "type": "string",
      "readOnly": true
    },
    "id": {
      "format": "uint64",
      "type": "string",
      "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.",
      "readOnly": true
    }
  },
  "$defs": {
    "NetworkProfileLocation": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "scope": {
          "type": "string",
          "enum": [
            "REGION",
            "ZONE"
          ]
        }
      }
    },
    "NetworkProfileNetworkFeatures": {
      "type": "object",
      "properties": {
        "subnetPurposes": {
          "type": "array",
          "description": "Specifies which subnetwork purposes are supported.",
          "items": {
            "enum": [
              "SUBNET_PURPOSE_CUSTOM_HARDWARE",
              "SUBNET_PURPOSE_PRIVATE"
            ],
            "type": "string"
          }
        },
        "allowVpn": {
          "enum": [
            "VPN_ALLOWED",
            "VPN_BLOCKED"
          ],
          "description": "Specifies whether VPN creation is allowed.",
          "type": "string"
        },
        "allowNcc": {
          "description": "Specifies whether NCC is allowed.",
          "type": "string",
          "enum": [
            "NCC_ALLOWED",
            "NCC_BLOCKED"
          ]
        },
        "subnetworkStackTypes": {
          "readOnly": true,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "IPV4_IPV6",
              "IPV4_ONLY",
              "IPV6_ONLY"
            ]
          },
          "description": "Output only. Specifies which subnetwork stack types are supported."
        },
        "allowSameNetworkUnicast": {
          "description": "Specifies whether unicast within the same network is allowed.",
          "enum": [
            "SAME_NETWORK_UNICAST_ALLOWED",
            "SAME_NETWORK_UNICAST_BLOCKED"
          ],
          "type": "string"
        },
        "allowClassDFirewalls": {
          "type": "string",
          "description": "Specifies whether firewalls for Class D address ranges are supported.",
          "enum": [
            "CLASS_D_FIREWALLS_ALLOWED",
            "CLASS_D_FIREWALLS_BLOCKED"
          ]
        },
        "allowSubnetworkCreation": {
          "enum": [
            "SUBNETWORK_CREATION_ALLOWED",
            "SUBNETWORK_CREATION_BLOCKED"
          ],
          "description": "Specifies whether subnetwork creation is allowed.",
          "type": "string"
        },
        "allowAutoModeSubnet": {
          "type": "string",
          "description": "Specifies whether auto mode subnet creation is allowed.",
          "enum": [
            "AUTO_MODE_SUBNET_ALLOWED",
            "AUTO_MODE_SUBNET_BLOCKED"
          ]
        },
        "allowExternalIpAccess": {
          "enum": [
            "EXTERNAL_IP_ACCESS_ALLOWED",
            "EXTERNAL_IP_ACCESS_BLOCKED"
          ],
          "description": "Specifies whether VMs are allowed to have external IP access on network\ninterfaces connected to this VPC.",
          "type": "string"
        },
        "allowFirewallPolicy": {
          "type": "string",
          "enum": [
            "FIREWALL_POLICY_ALLOWED",
            "FIREWALL_POLICY_BLOCKED"
          ],
          "description": "Specifies whether firewall policy can be attached to the network."
        },
        "predefinedNetworkInternalIpv6Range": {
          "type": "string",
          "description": "Specifies a predefined internal IPv6 range for the network."
        },
        "allowCloudRouter": {
          "enum": [
            "CLOUD_ROUTER_ALLOWED",
            "CLOUD_ROUTER_BLOCKED"
          ],
          "description": "Specifies whether cloud router creation is allowed.",
          "type": "string"
        },
        "allowPsc": {
          "description": "Specifies whether PSC creation is allowed.",
          "enum": [
            "PSC_ALLOWED",
            "PSC_BLOCKED"
          ],
          "type": "string"
        },
        "allowStaticRoutes": {
          "enum": [
            "STATIC_ROUTES_ALLOWED",
            "STATIC_ROUTES_BLOCKED"
          ],
          "description": "Specifies whether static route creation is allowed.",
          "type": "string"
        },
        "allowMultiNicInSameNetwork": {
          "type": "string",
          "enum": [
            "MULTI_NIC_IN_SAME_NETWORK_ALLOWED",
            "MULTI_NIC_IN_SAME_NETWORK_BLOCKED"
          ],
          "description": "Specifies whether multi-nic in the same network is allowed."
        },
        "allowMulticast": {
          "description": "Specifies whether multicast is allowed.",
          "enum": [
            "MULTICAST_ALLOWED",
            "MULTICAST_BLOCKED"
          ],
          "type": "string"
        },
        "subnetworkPurposes": {
          "description": "Output only. Specifies which subnetwork purposes are supported.",
          "type": "array",
          "readOnly": true,
          "items": {
            "enum": [
              "GLOBAL_MANAGED_PROXY",
              "INTERNAL_HTTPS_LOAD_BALANCER",
              "PEER_MIGRATION",
              "PRIVATE",
              "PRIVATE_NAT",
              "PRIVATE_RFC_1918",
              "PRIVATE_SERVICE_CONNECT",
              "REGIONAL_MANAGED_PROXY"
            ],
            "type": "string"
          }
        },
        "allowAliasIpRanges": {
          "type": "string",
          "description": "Specifies whether alias IP ranges (and secondary address ranges) are\nallowed.",
          "enum": [
            "ALIAS_IP_RANGES_ALLOWED",
            "ALIAS_IP_RANGES_BLOCKED"
          ]
        },
        "allowCloudNat": {
          "type": "string",
          "description": "Specifies whether cloud NAT creation is allowed.",
          "enum": [
            "CLOUD_NAT_ALLOWED",
            "CLOUD_NAT_BLOCKED"
          ]
        },
        "firewallPolicyTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "RDMA_ROCE_POLICY",
              "ULL_POLICY",
              "VPC_POLICY"
            ]
          }
        },
        "allowIpForwarding": {
          "type": "string",
          "enum": [
            "IP_FORWARDING_ALLOWED",
            "IP_FORWARDING_BLOCKED"
          ],
          "description": "Specifies whether IP forwarding is allowed."
        },
        "allowAddressCreation": {
          "description": "Specifies whether address creation is allowed.",
          "type": "string",
          "enum": [
            "ADDRESS_CREATION_ALLOWED",
            "ADDRESS_CREATION_BLOCKED"
          ]
        },
        "interfaceTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "GVNIC",
              "IDPF",
              "IRDMA",
              "MRDMA",
              "UNSPECIFIED_NIC_TYPE",
              "VIRTIO_NET"
            ]
          },
          "description": "If set, limits the interface types that the network supports. If\nempty, all interface types are supported."
        },
        "allowLoadBalancing": {
          "type": "string",
          "description": "Specifies whether cloud load balancing is allowed.",
          "enum": [
            "LOAD_BALANCING_ALLOWED",
            "LOAD_BALANCING_BLOCKED"
          ]
        },
        "predefinedSubnetworkRanges": {
          "description": "Predefined subnetwork ranges for the network.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange"
          }
        },
        "allowPacketMirroring": {
          "enum": [
            "PACKET_MIRRORING_ALLOWED",
            "PACKET_MIRRORING_BLOCKED"
          ],
          "description": "Specifies whether Packet Mirroring 1.0 is supported.",
          "type": "string"
        },
        "allowPrivateGoogleAccess": {
          "description": "Specifies whether private Google access is allowed.",
          "type": "string",
          "enum": [
            "PRIVATE_GOOGLE_ACCESS_ALLOWED",
            "PRIVATE_GOOGLE_ACCESS_BLOCKED"
          ]
        },
        "multicast": {
          "type": "string",
          "description": "Specifies which type of multicast is supported.",
          "enum": [
            "MULTICAST_SDN",
            "MULTICAST_ULL"
          ]
        },
        "allowNetworkMigration": {
          "enum": [
            "NETWORK_MIGRATION_ALLOWED",
            "NETWORK_MIGRATION_BLOCKED"
          ],
          "description": "Specifies whether VM network migration is allowed.",
          "type": "string"
        },
        "allowVpcPeering": {
          "enum": [
            "VPC_PEERING_ALLOWED",
            "VPC_PEERING_BLOCKED"
          ],
          "description": "Specifies whether VPC peering is allowed.",
          "type": "string"
        },
        "allowDefaultNicAttachment": {
          "enum": [
            "DEFAULT_NIC_ATTACHMENT_ALLOWED",
            "DEFAULT_NIC_ATTACHMENT_BLOCKED"
          ],
          "description": "Specifies whether default NIC attachment is allowed.",
          "type": "string"
        },
        "unicast": {
          "description": "Specifies which type of unicast is supported.",
          "enum": [
            "UNICAST_SDN",
            "UNICAST_ULL"
          ],
          "type": "string"
        },
        "allowMultiNicInSameSubnetwork": {
          "type": "string",
          "description": "Specifies whether multi-nic in the same subnetwork is allowed.",
          "enum": [
            "MULTI_NIC_IN_SAME_SUBNETWORK_ALLOWED",
            "MULTI_NIC_IN_SAME_SUBNETWORK_BLOCKED"
          ]
        },
        "allowVpcFirewallRules": {
          "enum": [
            "VPC_FIREWALL_RULES_ALLOWED",
            "VPC_FIREWALL_RULES_BLOCKED"
          ],
          "description": "Specifies whether VPC firewall rules can be created under the network.",
          "type": "string"
        },
        "subnetStackTypes": {
          "type": "array",
          "description": "Specifies which subnetwork stack types are supported.",
          "items": {
            "type": "string",
            "enum": [
              "SUBNET_STACK_TYPE_IPV4_IPV6",
              "SUBNET_STACK_TYPE_IPV4_ONLY",
              "SUBNET_STACK_TYPE_IPV6_ONLY"
            ]
          }
        },
        "addressPurposes": {
          "type": "array",
          "description": "Specifies what address purposes are supported. If empty, all address\npurposes are supported.",
          "items": {
            "enum": [
              "DNS_RESOLVER",
              "GCE_ENDPOINT",
              "IPSEC_INTERCONNECT",
              "NAT_AUTO",
              "PRIVATE_SERVICE_CONNECT",
              "SERVERLESS",
              "SHARED_LOADBALANCER_VIP",
              "VPC_PEERING"
            ],
            "type": "string"
          }
        },
        "allowSubInterfaces": {
          "enum": [
            "SUBINTERFACES_ALLOWED",
            "SUBINTERFACES_BLOCKED"
          ],
          "description": "Specifies whether sub interfaces are allowed.",
          "type": "string"
        },
        "allowInterconnect": {
          "enum": [
            "INTERCONNECT_ALLOWED",
            "INTERCONNECT_BLOCKED"
          ],
          "description": "Specifies whether Cloud Interconnect creation is allowed.",
          "type": "string"
        }
      }
    },
    "NetworkProfileNetworkFeaturesPredefinedSubnetworkRange": {
      "properties": {
        "ipv6Range": {
          "type": "string",
          "description": "The IPv6 range of the predefined subnetwork."
        },
        "namePrefix": {
          "description": "The naming prefix of the predefined subnetwork.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "NetworkProfileProfileType": {
      "properties": {
        "ullSubtype": {
          "type": "string",
          "enum": [
            "OPERATOR",
            "PARTICIPANT"
          ]
        },
        "vpcSubtype": {
          "type": "string",
          "enum": [
            "REGIONAL"
          ]
        },
        "rdmaSubtype": {
          "type": "string",
          "enum": [
            "FALCON",
            "ROCE",
            "ROCE_METAL"
          ]
        },
        "networkType": {
          "type": "string",
          "enum": [
            "RDMA",
            "ULL",
            "VPC"
          ]
        }
      },
      "type": "object"
    }
  }
}