{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cost-management/json-schema/microsoft-azure-cost-management-price-sheet-result-schema.json",
  "title": "PriceSheetResult",
  "description": "An pricesheet resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-cost-management-pricesheet-api-openapi.yml#/components/schemas/PriceSheetResult",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/PriceSheetModel",
      "description": "price sheet result. It contains the pricesheet associated with billing period",
      "x-ms-client-flatten": true
    },
    "etag": {
      "type": "string",
      "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.",
      "readOnly": true
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      },
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "MeterDetails": {
      "type": "object",
      "description": "The properties of the meter detail.",
      "properties": {
        "meterName": {
          "type": "string",
          "description": "The name of the meter, within the given meter category",
          "readOnly": true
        },
        "meterCategory": {
          "type": "string",
          "description": "The category of the meter, for example, 'Cloud services', 'Networking', etc..",
          "readOnly": true
        },
        "meterSubCategory": {
          "type": "string",
          "description": "The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc..",
          "readOnly": true
        },
        "unit": {
          "type": "string",
          "description": "The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc.",
          "readOnly": true
        },
        "meterLocation": {
          "type": "string",
          "description": "The location in which the Azure service is available.",
          "readOnly": true
        },
        "totalIncludedQuantity": {
          "type": "number",
          "format": "decimal",
          "description": "The total included quantity associated with the offer.",
          "readOnly": true
        },
        "pretaxStandardRate": {
          "type": "number",
          "format": "decimal",
          "description": "The pretax listing price.",
          "readOnly": true
        },
        "serviceName": {
          "type": "string",
          "description": "The name of the service.",
          "readOnly": true
        },
        "serviceTier": {
          "type": "string",
          "description": "The service tier.",
          "readOnly": true
        }
      }
    },
    "PriceSheetModel": {
      "type": "object",
      "description": "price sheet result. It contains the pricesheet associated with billing period",
      "properties": {
        "pricesheets": {
          "type": "array",
          "description": "Price sheet",
          "items": {
            "$ref": "#/$defs/PriceSheetProperties"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "meterId"
          ]
        },
        "nextLink": {
          "type": "string",
          "description": "The link (url) to the next page of results.",
          "readOnly": true
        },
        "download": {
          "$ref": "#/$defs/MeterDetails",
          "description": "Pricesheet download details.",
          "readOnly": true
        }
      }
    },
    "PriceSheetProperties": {
      "type": "object",
      "description": "The properties of the price sheet.",
      "properties": {
        "billingPeriodId": {
          "type": "string",
          "description": "The id of the billing period resource that the usage belongs to.",
          "readOnly": true
        },
        "meterId": {
          "type": "string",
          "format": "uuid",
          "description": "The meter id (GUID)",
          "readOnly": true
        },
        "meterDetails": {
          "$ref": "#/$defs/MeterDetails",
          "description": "The details about the meter. By default this is not populated, unless it's specified in $expand.",
          "readOnly": true
        },
        "unitOfMeasure": {
          "type": "string",
          "description": "Unit of measure",
          "readOnly": true
        },
        "includedQuantity": {
          "type": "number",
          "format": "decimal",
          "description": "Included quality for an offer",
          "readOnly": true
        },
        "partNumber": {
          "type": "string",
          "description": "Part Number",
          "readOnly": true
        },
        "unitPrice": {
          "type": "number",
          "format": "decimal",
          "description": "Unit Price",
          "readOnly": true
        },
        "currencyCode": {
          "type": "string",
          "description": "Currency Code",
          "readOnly": true
        },
        "offerId": {
          "type": "string",
          "description": "Offer Id",
          "readOnly": true
        },
        "savingsPlan": {
          "$ref": "#/$defs/SavingsPlan",
          "description": "SavingsPlan Details",
          "readOnly": true
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "type": "object",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "SavingsPlan": {
      "type": "object",
      "description": "The properties of the SavingsPlan.",
      "properties": {
        "term": {
          "type": "string",
          "description": "SavingsPlan term",
          "readOnly": true
        },
        "marketPrice": {
          "type": "number",
          "format": "decimal",
          "description": "SavingsPlan Market Price",
          "readOnly": true
        },
        "effectivePrice": {
          "type": "number",
          "format": "decimal",
          "description": "SavingsPlan Effective Price",
          "readOnly": true
        }
      }
    },
    "systemData": {
      "type": "object",
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)"
        }
      },
      "readOnly": true
    }
  }
}