{
 "openapi": "3.1.0",
 "info": {
  "title": "Gyro Public API",
  "version": "2.30.0",
  "summary": "Manage Gyro cloud servers, SSH keys and billing programmatically.",
  "x-summary-tr": "Gyro bulut sunucularınızı, SSH anahtarlarınızı ve faturalarınızı programla yönetin.",
  "contact": {
   "name": "Gyro Hosting",
   "url": "https://www.gyrohosting.com"
  },
  "license": {
   "name": "Proprietary",
   "identifier": "LicenseRef-Gyro-API-Terms"
  }
 },
 "servers": [
  {
   "url": "https://www.gyrohosting.com/api/v1/client",
   "description": "Production"
  }
 ],
 "paths": {
  "/cloud/storage/{id}/object-lock": {
   "get": {
    "tags": [
     "Object storage"
    ],
    "operationId": "getStorageObjectLock",
    "summary": "Protected Storage: object lock summary",
    "x-summary-tr": "Korumalı Depolama: nesne kilidi özeti",
    "x-scope": "services_read",
    "x-cli": {
     "command": "storage object-lock status",
     "confirm": false
    },
    "description": "Locked-bucket rights (Object Lock add-on) and use, the default retention of every bucket, and the last lock scan (number of COMPLIANCE / GOVERNANCE / legal hold versions and the latest end date). Protected Storage only: a standard Object Storage service answers 409 `feature_not_available`.",
    "x-description-tr": "Kilitli kova hakkı (Nesne Kilidi ek hizmeti) ve kullanımı, kovaların varsayılan saklaması ve son kilit taraması (COMPLIANCE / GOVERNANCE / legal hold sürüm sayısı, en geç bitiş). Yalnız Korumalı Depolama: standart Nesne Depolama hizmeti 409 `feature_not_available` döner.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer"
      },
      "description": "Service id (Protected Storage)"
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "data": {
           "$ref": "#/components/schemas/StorageObjectLockSummary"
          }
         }
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "409": {
      "description": "feature_not_available (standard Object Storage service) or not_actionable",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "$ref": "#/components/responses/Validation"
     }
    }
   }
  }
 },
 "components": {
  "responses": {
   "Validation": {
    "description": "Validation or business rule failure (`confirm_required`, `invalid_image`, `tool_action_failed` ...)",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "NotFound": {
    "description": "Not found — also returned for objects owned by someone else",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   }
  },
  "schemas": {
   "Error": {
    "type": "object",
    "required": [
     "error"
    ],
    "properties": {
     "error": {
      "type": "object",
      "required": [
       "code",
       "message"
      ],
      "properties": {
       "code": {
        "type": "string",
        "example": "server_not_found"
       },
       "message": {
        "type": "string"
       },
       "details": {
        "type": "object",
        "additionalProperties": true,
        "description": "Extra data. Limit refusals add the LimitHint fields (`limit_exceeded: true`, `limit_key`, `limit`, `current`, `how_to_increase`, `support_ticket`, `hint`): account limits are raised with a support ticket. Validation errors (length, format) never carry the limit hint.",
        "x-description-tr": "Ek veri. Sınır retlerinde LimitHint alanları gelir: hesap sınırları destek talebiyle artırılır. Doğrulama hataları (uzunluk, biçim) sınır ipucu taşımaz."
       }
      }
     }
    }
   },
   "StorageObjectLockSummary": {
    "type": "object",
    "properties": {
     "service_id": {
      "type": "integer"
     },
     "product": {
      "type": "string",
      "enum": [
       "protected_storage"
      ]
     },
     "versioning": {
      "type": "boolean"
     },
     "locked_bucket_rights": {
      "type": "integer"
     },
     "locked_buckets_used": {
      "type": "integer"
     },
     "max_retention_days": {
      "type": "integer"
     },
     "buckets": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/StorageBucketObjectLock"
      }
     },
     "scan": {
      "oneOf": [
       {
        "$ref": "#/components/schemas/StorageLockScan"
       },
       {
        "type": "null"
       }
      ]
     }
    }
   },
   "StorageLockScan": {
    "type": "object",
    "properties": {
     "complete": {
      "type": "boolean"
     },
     "versions": {
      "type": "integer"
     },
     "compliance": {
      "type": "integer"
     },
     "governance": {
      "type": "integer"
     },
     "legal_hold": {
      "type": "integer"
     },
     "latest_until": {
      "type": [
       "string",
       "null"
      ]
     },
     "latest_compliance_until": {
      "type": [
       "string",
       "null"
      ]
     },
     "scanned_at": {
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "StorageBucketObjectLock": {
    "type": "object",
    "properties": {
     "bucket": {
      "type": "string"
     },
     "object_lock": {
      "type": "boolean"
     },
     "default_retention": {
      "$ref": "#/components/schemas/StorageDefaultRetention"
     }
    }
   },
   "StorageDefaultRetention": {
    "type": [
     "object",
     "null"
    ],
    "properties": {
     "mode": {
      "type": "string",
      "enum": [
       "GOVERNANCE",
       "COMPLIANCE"
      ]
     },
     "days": {
      "type": [
       "integer",
       "null"
      ]
     },
     "years": {
      "type": [
       "integer",
       "null"
      ]
     }
    }
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}