{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-kms/json-schema/google-cloud-kms-google-cloud-kms-inventory-v1-protected-resources-summary-schema.json",
  "title": "GoogleCloudKmsInventoryV1ProtectedResourcesSummary",
  "description": "Aggregate information about the resources protected by a Cloud KMS key in the same Cloud organization/project as the key.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-kms-kmsinventory-projects-api-openapi.yml#/components/schemas/GoogleCloudKmsInventoryV1ProtectedResourcesSummary",
  "type": "object",
  "properties": {
    "name": {
      "description": "The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary",
      "type": "string"
    },
    "resourceCount": {
      "format": "int64",
      "description": "The total number of protected resources in the same Cloud organization as the key.",
      "type": "string"
    },
    "cloudProducts": {
      "description": "The number of resources protected by the key grouped by Cloud product.",
      "additionalProperties": {
        "type": "string",
        "format": "int64"
      },
      "type": "object"
    },
    "warnings": {
      "description": "Warning messages for the state of response ProtectedResourcesSummary For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.",
      "items": {
        "$ref": "#/$defs/GoogleCloudKmsInventoryV1Warning"
      },
      "type": "array"
    },
    "locations": {
      "additionalProperties": {
        "format": "int64",
        "type": "string"
      },
      "type": "object",
      "description": "The number of resources protected by the key grouped by region."
    },
    "resourceTypes": {
      "additionalProperties": {
        "format": "int64",
        "type": "string"
      },
      "description": "The number of resources protected by the key grouped by resource type.",
      "type": "object"
    },
    "projectCount": {
      "format": "int32",
      "type": "integer",
      "description": "The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key."
    }
  },
  "$defs": {
    "GoogleCloudKmsInventoryV1Warning": {
      "properties": {
        "warningCode": {
          "description": "The specific warning code for the displayed message.",
          "enum": [
            "WARNING_CODE_UNSPECIFIED",
            "INSUFFICIENT_PERMISSIONS_PARTIAL_DATA",
            "RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA",
            "ORG_LESS_PROJECT_PARTIAL_DATA"
          ],
          "type": "string"
        },
        "displayMessage": {
          "type": "string",
          "description": "The literal message providing context and details about the warnings."
        }
      },
      "description": "A warning message that indicates potential problems with the response data.",
      "type": "object"
    }
  }
}