{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unity-catalog/json-schema/unity-catalog-temporary-credentials-schema.json",
  "title": "TemporaryCredentials",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unity-catalog-temporarycredentials-api-openapi.yml#/components/schemas/TemporaryCredentials",
  "type": "object",
  "properties": {
    "aws_temp_credentials": {
      "$ref": "#/$defs/AwsCredentials"
    },
    "azure_user_delegation_sas": {
      "$ref": "#/$defs/AzureUserDelegationSAS"
    },
    "gcp_oauth_token": {
      "$ref": "#/$defs/GcpOauthToken"
    },
    "expiration_time": {
      "description": "Server time when the credential will expire, in epoch milliseconds.\nThe API client is advised to cache the credential given this expiration time.\n",
      "type": "integer",
      "format": "int64"
    },
    "url": {
      "description": "The normalized URL of the storage path the temporary credential was generated for.",
      "type": "string"
    }
  },
  "$defs": {
    "AwsCredentials": {
      "properties": {
        "access_key_id": {
          "description": "The access key ID that identifies the temporary credentials.",
          "type": "string"
        },
        "secret_access_key": {
          "description": "The secret access key that can be used to sign AWS API requests.",
          "type": "string"
        },
        "session_token": {
          "description": "The token that users must pass to AWS API to use the temporary credentials.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "AzureUserDelegationSAS": {
      "properties": {
        "sas_token": {
          "description": "Azure SAS Token",
          "type": "string"
        }
      },
      "type": "object"
    },
    "GcpOauthToken": {
      "properties": {
        "oauth_token": {
          "description": "Gcp Token",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}