{
  "name": "CreatePreviewShareLink",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudSites.CreatePreviewShareLink",
    "service": "sites"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "definitions": {
      "ClientToken": {
        "type": "string"
      }
    },
    "properties": {
      "clientToken": {
        "$ref": "#/definitions/ClientToken"
      },
      "deploymentId": {
        "type": "string"
      },
      "siteId": {
        "type": "string"
      }
    },
    "required": [
      "clientToken",
      "deploymentId",
      "siteId"
    ],
    "title": "CreatePreviewShareLinkRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "AsyncEffectState": {
        "enum": [
          "PENDING",
          "LEASED",
          "APPLIED",
          "TERMINAL_FAILED",
          "BLOCKED_PLATFORM"
        ],
        "type": "string"
      },
      "AsyncOperationStatus": {
        "properties": {
          "commandGeneration": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "detail": {
            "type": [
              "string",
              "null"
            ]
          },
          "edgePropagation": {
            "$ref": "#/definitions/EdgePropagationStatus"
          },
          "effectId": {
            "type": "string"
          },
          "state": {
            "$ref": "#/definitions/AsyncEffectState"
          }
        },
        "required": [
          "commandGeneration",
          "edgePropagation",
          "effectId",
          "state"
        ],
        "type": "object"
      },
      "EdgePropagationStatus": {
        "enum": [
          "COMPLETE",
          "PENDING",
          "FAILED"
        ],
        "type": "string"
      }
    },
    "properties": {
      "deploymentId": {
        "type": "string"
      },
      "expiresAt": {
        "type": "string"
      },
      "operation": {
        "$ref": "#/definitions/AsyncOperationStatus"
      },
      "shareId": {
        "type": "string"
      },
      "siteId": {
        "type": "string"
      },
      "url": {
        "type": "string"
      }
    },
    "required": [
      "deploymentId",
      "expiresAt",
      "operation",
      "shareId",
      "siteId",
      "url"
    ],
    "title": "PreviewShareLinkResponse",
    "type": "object"
  }
}
