{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-cosmos-db/json-schema/azure-cosmos-db-sql-stored-procedure-get-results-schema.json",
  "title": "SqlStoredProcedureGetResults",
  "description": "An Azure Cosmos DB storedProcedure.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-cosmos-db-subscriptions-api-openapi.yml#/components/schemas/SqlStoredProcedureGetResults",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/SqlStoredProcedureGetProperties",
      "description": "The properties of an Azure Cosmos DB storedProcedure",
      "x-ms-client-flatten": true
    },
    "location": {
      "type": "string",
      "description": "The location of the resource group to which the resource belongs.",
      "x-ms-mutability": [
        "read",
        "update",
        "create"
      ]
    },
    "tags": {
      "type": "object",
      "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \\\"defaultExperience\\\": \\\"Cassandra\\\". Current \\\"defaultExperience\\\" values also include \\\"Table\\\", \\\"Graph\\\", \\\"DocumentDB\\\", and \\\"MongoDB\\\".",
      "additionalProperties": {
        "type": "string"
      }
    },
    "identity": {
      "$ref": "#/$defs/ManagedServiceIdentity",
      "description": "Identity for the resource."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "ManagedServiceIdentity": {
      "type": "object",
      "description": "Identity for the resource.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/ResourceIdentityType",
          "description": "The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service."
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
          "additionalProperties": {
            "$ref": "#/$defs/ManagedServiceIdentityUserAssignedIdentities"
          }
        }
      }
    },
    "ManagedServiceIdentityUserAssignedIdentities": {
      "type": "object",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of user assigned identity.",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "The client id of user assigned identity.",
          "readOnly": true
        }
      }
    },
    "ResourceIdentityType": {
      "type": "string",
      "description": "The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.",
      "enum": [
        "SystemAssigned",
        "UserAssigned",
        "SystemAssigned,UserAssigned",
        "None"
      ],
      "x-ms-enum": {
        "name": "ResourceIdentityType",
        "modelAsString": false,
        "values": [
          {
            "name": "SystemAssigned",
            "value": "SystemAssigned"
          },
          {
            "name": "UserAssigned",
            "value": "UserAssigned"
          },
          {
            "name": "SystemAssignedUserAssigned",
            "value": "SystemAssigned,UserAssigned"
          },
          {
            "name": "None",
            "value": "None"
          }
        ]
      }
    },
    "SqlStoredProcedureGetProperties": {
      "type": "object",
      "description": "The properties of an Azure Cosmos DB StoredProcedure",
      "properties": {
        "resource": {
          "$ref": "#/$defs/SqlStoredProcedureGetPropertiesResource"
        }
      }
    },
    "SqlStoredProcedureGetPropertiesResource": {
      "type": "object",
      "properties": {
        "_rid": {
          "type": "string",
          "description": "A system generated property. A unique identifier.",
          "readOnly": true
        },
        "_ts": {
          "type": "number",
          "format": "float",
          "description": "A system generated property that denotes the last updated timestamp of the resource.",
          "readOnly": true
        },
        "_etag": {
          "type": "string",
          "description": "A system generated property representing the resource etag required for optimistic concurrency control.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SqlStoredProcedureResource"
        }
      ]
    },
    "SqlStoredProcedureResource": {
      "type": "object",
      "description": "Cosmos DB SQL storedProcedure resource object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Name of the Cosmos DB SQL storedProcedure"
        },
        "body": {
          "type": "string",
          "description": "Body of the Stored Procedure"
        }
      },
      "required": [
        "id"
      ]
    }
  }
}