{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-datastream/json-schema/google-cloud-datastream-private-connection-schema.json",
  "title": "PrivateConnection",
  "description": "The PrivateConnection resource is used to establish private connectivity between Datastream and a customer's network.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-datastream-projects-api-openapi.yml#/components/schemas/PrivateConnection",
  "type": "object",
  "properties": {
    "state": {
      "description": "Output only. The state of the Private Connection.",
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "CREATING",
        "CREATED",
        "FAILED",
        "DELETING",
        "FAILED_TO_DELETE"
      ],
      "readOnly": true
    },
    "error": {
      "$ref": "#/$defs/Error",
      "description": "Output only. In case of error, the details of the error in a user-friendly format."
    },
    "labels": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "description": "Labels."
    },
    "displayName": {
      "description": "Required. Display name.",
      "type": "string"
    },
    "updateTime": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. The update time of the resource.",
      "format": "google-datetime"
    },
    "vpcPeeringConfig": {
      "$ref": "#/$defs/VpcPeeringConfig",
      "description": "VPC Peering Config."
    },
    "satisfiesPzs": {
      "type": "boolean",
      "description": "Output only. Reserved for future use.",
      "readOnly": true
    },
    "satisfiesPzi": {
      "description": "Output only. Reserved for future use.",
      "readOnly": true,
      "type": "boolean"
    },
    "createTime": {
      "description": "Output only. The create time of the resource.",
      "readOnly": true,
      "type": "string",
      "format": "google-datetime"
    },
    "pscInterfaceConfig": {
      "$ref": "#/$defs/PscInterfaceConfig",
      "description": "PSC Interface Config."
    },
    "name": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. Identifier. The resource's name."
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "description": "Represent a user-facing Error.",
      "properties": {
        "message": {
          "description": "A message containing more information about the error that occurred.",
          "type": "string"
        },
        "errorTime": {
          "description": "The time when the error occurred.",
          "type": "string",
          "format": "google-datetime"
        },
        "details": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Additional information about the error."
        },
        "errorUuid": {
          "type": "string",
          "description": "A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses."
        },
        "reason": {
          "type": "string",
          "description": "A title that explains the reason for the error."
        }
      }
    },
    "PscInterfaceConfig": {
      "description": "The PSC Interface configuration is used to create PSC Interface between Datastream and the consumer's PSC.",
      "type": "object",
      "properties": {
        "networkAttachment": {
          "type": "string",
          "description": "Required. Fully qualified name of the Network Attachment that Datastream will connect to. Format: `projects/{project}/regions/{region}/networkAttachments/{name}`"
        }
      }
    },
    "VpcPeeringConfig": {
      "description": "The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC.",
      "properties": {
        "subnet": {
          "type": "string",
          "description": "Required. A free subnet for peering. (CIDR of /29)"
        },
        "vpc": {
          "description": "Required. Fully qualified name of the VPC that Datastream will peer to. Format: `projects/{project}/global/{networks}/{name}`",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}