{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telnyx/json-schema/telnyx-public-internet-gateway-create-schema.json",
  "title": "PublicInternetGatewayCreate",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-public-internet-gateways-api-openapi.yml#/components/schemas/PublicInternetGatewayCreate",
  "allOf": [
    {
      "$ref": "#/$defs/PublicInternetGateway"
    },
    {
      "title": "PublicInternetGatewayCreate",
      "type": "object"
    }
  ],
  "$defs": {
    "Interface": {
      "properties": {
        "name": {
          "description": "A user specified name for the interface.",
          "type": "string"
        },
        "network_id": {
          "description": "The id of the network associated with the interface.",
          "format": "uuid",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/InterfaceStatus"
        }
      },
      "type": "object"
    },
    "InterfaceStatus": {
      "description": "The current status of the interface deployment.",
      "enum": [
        "created",
        "provisioning",
        "provisioned",
        "deleting"
      ],
      "readOnly": true,
      "type": "string"
    },
    "PublicInternetGateway": {
      "allOf": [
        {
          "$ref": "#/$defs/Record"
        },
        {
          "$ref": "#/$defs/Interface"
        },
        {
          "properties": {
            "public_ip": {
              "description": "The publically accessible ip for this interface.",
              "readOnly": true,
              "type": "string"
            },
            "record_type": {
              "description": "Identifies the type of the resource.",
              "readOnly": true,
              "type": "string"
            },
            "region_code": {
              "description": "The region interface is deployed to.",
              "type": "string"
            }
          },
          "title": "PublicInternetGateway",
          "type": "object"
        }
      ]
    },
    "Record": {
      "properties": {
        "created_at": {
          "description": "ISO 8601 formatted date-time indicating when the resource was created.",
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "description": "Identifies the resource.",
          "format": "uuid",
          "readOnly": true,
          "type": "string"
        },
        "record_type": {
          "description": "Identifies the type of the resource.",
          "readOnly": true,
          "type": "string"
        },
        "updated_at": {
          "description": "ISO 8601 formatted date-time indicating when the resource was updated.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}