{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-governance-cost-settings-schema.json",
  "title": "GovernanceCostSettings",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-cacm-governance-cost-settings-api-openapi.yml#/components/schemas/GovernanceCostSettings",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string"
    },
    "accountId": {
      "type": "string"
    },
    "createdAt": {
      "type": "integer",
      "format": "int64"
    },
    "lastUpdatedAt": {
      "type": "integer",
      "format": "int64"
    },
    "awsSettings": {
      "$ref": "#/$defs/GovernanceAwsSettings"
    },
    "azureSettings": {
      "$ref": "#/$defs/GovernanceAzureSettings"
    },
    "gcpSettings": {
      "$ref": "#/$defs/GovernanceGcpSettings"
    }
  },
  "$defs": {
    "GovernanceAwsSettings": {
      "type": "object",
      "properties": {
        "costType": {
          "type": "string",
          "enum": [
            "UNBLENDED",
            "AMORTIZED",
            "NET_AMORTIZED",
            "UNBLENDED_FALLBACK"
          ]
        }
      }
    },
    "GovernanceAzureSettings": {
      "type": "object",
      "properties": {
        "costType": {
          "type": "string",
          "enum": [
            "ACTUAL",
            "AMORTIZED",
            "ACTUAL_FALLBACK"
          ]
        }
      }
    },
    "GovernanceGcpSettings": {
      "type": "object",
      "properties": {
        "includeDiscounts": {
          "type": "boolean"
        },
        "includeTaxes": {
          "type": "boolean"
        },
        "includePromotions": {
          "type": "boolean"
        },
        "includeNegotiatedSavings": {
          "type": "boolean"
        },
        "includeSubscriptionCredits": {
          "type": "boolean"
        },
        "includeSustainedUseDiscounts": {
          "type": "boolean"
        },
        "includeResourceBasedCudCredits": {
          "type": "boolean"
        },
        "includeLegacyBasedCudCredits": {
          "type": "boolean"
        },
        "includeSpendBasedCudDiscounts": {
          "type": "boolean"
        }
      }
    }
  }
}