{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-fetch-tiering-cost-info-request-schema.json",
  "title": "FetchTieringCostInfoRequest",
  "description": "Base class for tiering cost request.\nSpecific cost request types are derived from this class.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-fetchtieringcost-api-openapi.yml#/components/schemas/FetchTieringCostInfoRequest",
  "type": "object",
  "properties": {
    "sourceTierType": {
      "$ref": "#/$defs/RecoveryPointTierType",
      "description": "Source tier for the request"
    },
    "targetTierType": {
      "$ref": "#/$defs/RecoveryPointTierType",
      "description": "target tier for the request"
    },
    "objectType": {
      "type": "string",
      "description": "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."
    }
  },
  "required": [
    "sourceTierType",
    "targetTierType",
    "objectType"
  ],
  "$defs": {
    "RecoveryPointTierType": {
      "type": "string",
      "description": "Recovery point tier type.",
      "enum": [
        "Invalid",
        "InstantRP",
        "HardenedRP",
        "ArchivedRP",
        "IASnapshotRP"
      ],
      "x-ms-enum": {
        "name": "RecoveryPointTierType",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "InstantRP",
            "value": "InstantRP"
          },
          {
            "name": "HardenedRP",
            "value": "HardenedRP"
          },
          {
            "name": "ArchivedRP",
            "value": "ArchivedRP"
          },
          {
            "name": "IASnapshotRP",
            "value": "IASnapshotRP",
            "description": "Instant Access snapshot tier, retained for the policy's instantAccessDurationMinutes."
          }
        ]
      }
    }
  }
}