{
  "$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-attachment-schema.json",
  "title": "NetworkAttachment",
  "description": "NetworkAttachments\nA network attachment resource ...",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-network-attachments-api-openapi.yml#/components/schemas/NetworkAttachment",
  "properties": {
    "fingerprint": {
      "format": "byte",
      "type": "string",
      "description": "Fingerprint of this resource. A hash of the contents stored\nin this object. This field is used in optimistic locking. An up-to-date\nfingerprint must be provided in order to patch."
    },
    "region": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. [Output Only] URL of the region where the network attachment resides.\nThis field applies only to the region resource. You must specify this\nfield as part of the HTTP request URL. It is not settable as a field in\nthe request body."
    },
    "kind": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. [Output Only] Type of the resource.",
      "default": "compute#networkAttachment"
    },
    "selfLinkWithId": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. [Output Only] Server-defined URL for this resource's resource id."
    },
    "selfLink": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. [Output Only] Server-defined URL for the resource."
    },
    "subnetworks": {
      "description": "An array of URLs where each entry is the URL of a subnet\nprovided by the service consumer to use for\nendpoints in the producers that connect to this network attachment.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "id": {
      "description": "Output only. [Output Only] The unique identifier for the resource type. The server\ngenerates this identifier.",
      "format": "uint64",
      "type": "string",
      "readOnly": true
    },
    "producerRejectLists": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Projects or service class ids that are not allowed to connect to this\nnetwork attachment. The project can be specified using its id or number.\nService class id can be specified as \"serviceclasses/{service_class_id}\"."
    },
    "connectionEndpoints": {
      "description": "Output only. [Output Only] An array of connections for all the producers connected\nto this network attachment.",
      "items": {
        "$ref": "#/$defs/NetworkAttachmentConnectedEndpoint"
      },
      "readOnly": true,
      "type": "array"
    },
    "creationTimestamp": {
      "readOnly": true,
      "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.",
      "type": "string"
    },
    "description": {
      "type": "string",
      "description": "An optional description of this resource. Provide this property when you\ncreate the resource."
    },
    "network": {
      "description": "Output only. [Output Only] The URL of the network which the Network Attachment\nbelongs to. Practically it is inferred by fetching the network of the first\nsubnetwork associated. Because it is required that all the subnetworks must\nbe from the same network, it is assured that the Network Attachment belongs\nto the same network as all the subnetworks.",
      "type": "string",
      "readOnly": true
    },
    "producerAcceptLists": {
      "description": "Projects or service class ids that are allowed to connect to this network\nattachment. The project can be specified using its id or number. Service\nclass id can be specified as \"serviceclasses/{service_class_id}\".",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connectionPreference": {
      "enum": [
        "ACCEPT_AUTOMATIC",
        "ACCEPT_MANUAL",
        "INVALID"
      ],
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "Name of the resource. Provided by the client when the resource is created.\nThe name must be 1-63 characters long, and comply withRFC1035.\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must\nbe a dash, lowercase letter, or digit, except the last character, which\ncannot be a dash.",
      "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"
    }
  },
  "type": "object",
  "$defs": {
    "NetworkAttachmentConnectedEndpoint": {
      "description": "[Output Only] A connection connected to this network attachment.",
      "type": "object",
      "properties": {
        "ipv6Address": {
          "description": "The IPv6 address assigned to the producer instance network interface.\nThis is only assigned when the stack types of both the instance network\ninterface and the consumer subnet are IPv4_IPv6.",
          "type": "string"
        },
        "ipAddress": {
          "description": "The IPv4 address assigned to the producer instance network interface.\nThis value will be a range in case of Serverless.",
          "type": "string"
        },
        "subnetworkCidrRange": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal\nIP was allocated from."
        },
        "projectIdOrNum": {
          "type": "string",
          "description": "The project id or number of the interface to which the IP was assigned."
        },
        "status": {
          "enum": [
            "ACCEPTED",
            "CLOSED",
            "NEEDS_ATTENTION",
            "PENDING",
            "REJECTED",
            "STATUS_UNSPECIFIED"
          ],
          "type": "string",
          "description": "The status of a connected endpoint to this network attachment."
        },
        "secondaryIpCidrRanges": {
          "description": "Alias IP ranges from the same subnetwork.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "serviceClassId": {
          "description": "The service class id of the producer service to which the IP was\nassigned.",
          "type": "string"
        },
        "subnetwork": {
          "description": "The subnetwork used to assign the IP to the producer\ninstance network interface.",
          "type": "string"
        }
      }
    }
  }
}