{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-storage-accounts/json-schema/azure-storage-accounts-connector-schema.json",
  "title": "Connector",
  "description": "A Connector is a tracked ARM resource modeled as a sub-resource of a Storage Account.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-storage-accounts-connectors-api-openapi.yml#/components/schemas/Connector",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/StorageConnectorProperties",
      "description": "The properties of the Storage Connector."
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResource"
    }
  ],
  "$defs": {
    "NativeDataSharingProvisioningState": {
      "type": "string",
      "description": "Provisioning state of the resource at the time the operation was called.",
      "enum": [
        "Accepted",
        "Creating",
        "Succeeded",
        "Deleting",
        "Canceled",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "NativeDataSharingProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Accepted",
            "value": "Accepted",
            "description": "The request has been accepted for processing."
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "The resource is being created."
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "The resource has been successfully created."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "The resource is being deleted."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "The request has been canceled."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "The resource creation or deletion has failed."
          }
        ]
      },
      "readOnly": true
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource ID for the resource. E.g. \"/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",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "StorageConnectorDataSourceType": {
      "type": "string",
      "description": "The type of the backing data source for storage connector",
      "enum": [
        "Azure_DataShare"
      ],
      "x-ms-enum": {
        "name": "StorageConnectorDataSourceType",
        "modelAsString": true,
        "values": [
          {
            "name": "Azure_DataShare",
            "value": "Azure_DataShare",
            "description": "Azure DataShare data source type."
          }
        ]
      }
    },
    "StorageConnectorProperties": {
      "type": "object",
      "description": "The storage connector properties",
      "properties": {
        "uniqueId": {
          "type": "string",
          "description": "System-generated GUID identifier for the Storage Connector. Not a valid input parameter when creating.",
          "readOnly": true
        },
        "state": {
          "type": "string",
          "description": "State - Active or Inactive. Whether or not the Storage Connector should start as active (default: Active)\n(While set to false on the Storage Connector, all data plane requests using this Storage Connector fail, and this Storage Connector is not billed if it would be otherwise.",
          "default": "Active",
          "enum": [
            "Active",
            "Inactive"
          ],
          "x-ms-enum": {
            "name": "StorageConnectorState",
            "modelAsString": true,
            "values": [
              {
                "name": "Active",
                "value": "Active",
                "description": "Whether the connector is active"
              },
              {
                "name": "Inactive",
                "value": "Inactive",
                "description": "Whether the connector is inactive"
              }
            ]
          }
        },
        "creationTime": {
          "type": "string",
          "description": "System-generated creation time of the Storage Connector in ISO 8601 date-time format (YYYY-MM-DDTHH:mm:ssZ).\nNot a valid input parameter during creating.",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "Arbitrary description of this Storage Connector. Max 250 characters.",
          "maxLength": 250
        },
        "testConnection": {
          "type": "boolean",
          "description": "Test connection to backing data source before creating the storage connector.",
          "default": false,
          "x-ms-mutability": [
            "update",
            "create"
          ]
        },
        "dataSourceType": {
          "$ref": "#/$defs/StorageConnectorDataSourceType",
          "description": "The type of backing data source for this Storage Connector.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "source": {
          "$ref": "#/$defs/StorageConnectorSource",
          "description": "Information about how to communicate with and authenticate to the backing data store."
        },
        "provisioningState": {
          "$ref": "#/$defs/NativeDataSharingProvisioningState",
          "description": "Represents the provisioning state of the storage connector.",
          "readOnly": true
        }
      },
      "required": [
        "dataSourceType",
        "source"
      ]
    },
    "StorageConnectorSource": {
      "type": "object",
      "description": "The storage connector backing data source information",
      "properties": {
        "type": {
          "$ref": "#/$defs/StorageConnectorSourceType",
          "description": "Type of the Storage Connector. Not mutable once the Storage Connector is created.\""
        }
      },
      "required": [
        "type"
      ]
    },
    "StorageConnectorSourceType": {
      "type": "string",
      "description": "The type of the backing data source for storage connector",
      "enum": [
        "DataShare"
      ],
      "x-ms-enum": {
        "name": "StorageConnectorSourceType",
        "modelAsString": true,
        "values": [
          {
            "name": "DataShare",
            "value": "DataShare",
            "description": "Source type - DataShare"
          }
        ]
      }
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}