{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-source-control-collection-schema.json",
  "title": "SourceControlCollection",
  "description": "Collection of source controls.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-providers-api-openapi.yml#/components/schemas/SourceControlCollection",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The SourceControl items on this page",
      "items": {
        "$ref": "#/$defs/SourceControl"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "SourceControl": {
      "type": "object",
      "description": "The source control OAuth token.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/SourceControlProperties",
          "description": "SourceControl resource specific properties",
          "x-ms-client-flatten": true
        },
        "kind": {
          "type": "string",
          "description": "Kind of resource."
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "SourceControlProperties": {
      "type": "object",
      "description": "SourceControl resource specific properties",
      "properties": {
        "token": {
          "type": "string",
          "description": "OAuth access token."
        },
        "tokenSecret": {
          "type": "string",
          "description": "OAuth access token secret."
        },
        "refreshToken": {
          "type": "string",
          "description": "OAuth refresh token."
        },
        "expirationTime": {
          "type": "string",
          "format": "date-time",
          "description": "OAuth token expiration."
        }
      }
    }
  }
}