{
  "name": "UpdateSite",
  "plane": "control",
  "terraformEligible": true,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudSites.UpdateSite",
    "service": "sites"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "definitions": {
      "PreviewProtectionMode": {
        "enum": [
          "DISABLED",
          "PROTECTED"
        ],
        "type": "string"
      }
    },
    "properties": {
      "expectedRevision": {
        "format": "uint64",
        "minimum": 0.0,
        "type": "integer"
      },
      "name": {
        "default": null,
        "type": [
          "string",
          "null"
        ]
      },
      "previewProtection": {
        "anyOf": [
          {
            "$ref": "#/definitions/PreviewProtectionMode"
          },
          {
            "type": "null"
          }
        ],
        "default": null
      },
      "publicAccess": {
        "default": null,
        "type": [
          "boolean",
          "null"
        ]
      },
      "siteId": {
        "type": "string"
      }
    },
    "required": [
      "expectedRevision",
      "siteId"
    ],
    "title": "UpdateSiteRequest",
    "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"
      },
      "PreviewProtectionMode": {
        "enum": [
          "DISABLED",
          "PROTECTED"
        ],
        "type": "string"
      },
      "SiteLifecycleStatus": {
        "enum": [
          "ACTIVE",
          "DELETING",
          "DELETED"
        ],
        "type": "string"
      },
      "SiteRegion": {
        "enum": [
          "eu-central-1"
        ],
        "type": "string"
      }
    },
    "properties": {
      "activeDeploymentId": {
        "type": [
          "string",
          "null"
        ]
      },
      "lifecycle": {
        "$ref": "#/definitions/SiteLifecycleStatus"
      },
      "name": {
        "type": "string"
      },
      "operation": {
        "anyOf": [
          {
            "$ref": "#/definitions/AsyncOperationStatus"
          },
          {
            "type": "null"
          }
        ]
      },
      "platformHostname": {
        "type": "string"
      },
      "previewProtection": {
        "allOf": [
          {
            "$ref": "#/definitions/PreviewProtectionMode"
          }
        ],
        "default": "DISABLED"
      },
      "publicAccess": {
        "default": false,
        "type": "boolean"
      },
      "region": {
        "allOf": [
          {
            "$ref": "#/definitions/SiteRegion"
          }
        ],
        "default": "eu-central-1"
      },
      "revision": {
        "format": "uint64",
        "minimum": 0.0,
        "type": "integer"
      },
      "siteId": {
        "type": "string"
      }
    },
    "required": [
      "lifecycle",
      "name",
      "platformHostname",
      "revision",
      "siteId"
    ],
    "title": "SiteDescription",
    "type": "object"
  }
}
