{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-vmware-engine/json-schema/google-cloud-vmware-engine-network-peering-schema.json",
  "title": "NetworkPeering",
  "description": "Details of a network peering.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-vmware-engine-projects-api-openapi.yml#/components/schemas/NetworkPeering",
  "type": "object",
  "properties": {
    "exportCustomRoutes": {
      "type": "boolean",
      "description": "Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true."
    },
    "stateDetails": {
      "type": "string",
      "description": "Output only. Output Only. Details about the current state of the network peering.",
      "readOnly": true
    },
    "createTime": {
      "format": "google-datetime",
      "description": "Output only. Creation time of this resource.",
      "readOnly": true,
      "type": "string"
    },
    "state": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.",
      "enum": [
        "STATE_UNSPECIFIED",
        "INACTIVE",
        "ACTIVE",
        "CREATING",
        "DELETING"
      ]
    },
    "exchangeSubnetRoutes": {
      "type": "boolean",
      "description": "Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'."
    },
    "updateTime": {
      "description": "Output only. Last update time of this resource.",
      "readOnly": true,
      "type": "string",
      "format": "google-datetime"
    },
    "peerNetwork": {
      "description": "Required. The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form: `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`. Otherwise specify the name in the form: `projects/{project}/global/networks/{network_id}`, where `{project}` can either be a project number or a project ID.",
      "type": "string"
    },
    "importCustomRoutesWithPublicIp": {
      "description": "Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported to peers and are not controlled by this field.",
      "type": "boolean"
    },
    "exportCustomRoutesWithPublicIp": {
      "type": "boolean",
      "description": "Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to peers and are not controlled by this field."
    },
    "importCustomRoutes": {
      "description": "Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true.",
      "type": "boolean"
    },
    "peerNetworkType": {
      "type": "string",
      "description": "Required. The type of the network to peer with the VMware Engine network.",
      "enum": [
        "PEER_NETWORK_TYPE_UNSPECIFIED",
        "STANDARD",
        "VMWARE_ENGINE_NETWORK",
        "PRIVATE_SERVICES_ACCESS",
        "NETAPP_CLOUD_VOLUMES",
        "THIRD_PARTY_SERVICE",
        "DELL_POWERSCALE",
        "GOOGLE_CLOUD_NETAPP_VOLUMES",
        "GOOGLE_CLOUD_FILESTORE_INSTANCES"
      ]
    },
    "uid": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. System-generated unique identifier for the resource."
    },
    "description": {
      "description": "Optional. User-provided description for this network peering.",
      "type": "string"
    },
    "name": {
      "description": "Output only. Identifier. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/global/networkPeerings/my-peering`",
      "type": "string",
      "readOnly": true
    },
    "peerMtu": {
      "description": "Optional. Maximum transmission unit (MTU) in bytes. The default value is `1500`. If a value of `0` is provided for this field, VMware Engine uses the default value instead.",
      "format": "int32",
      "type": "integer"
    },
    "vmwareEngineNetwork": {
      "description": "Required. The relative resource name of the VMware Engine network. Specify the name in the following form: `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}` where `{project}` can either be a project number or a project ID.",
      "type": "string"
    }
  }
}