{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-storage-accounts/json-schema/azure-storage-accounts-connector-update-schema.json",
  "title": "ConnectorUpdate",
  "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/ConnectorUpdate",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/StorageConnectorPropertiesUpdate",
      "description": "The properties of the Storage Connector."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResourceUpdate"
    }
  ],
  "$defs": {
    "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
    },
    "StorageConnectorPropertiesUpdate": {
      "type": "object",
      "description": "The storage connector properties",
      "properties": {
        "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"
              }
            ]
          }
        },
        "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"
          ]
        },
        "source": {
          "$ref": "#/$defs/StorageConnectorSourceUpdate",
          "description": "Information about how to communicate with and authenticate to the backing data store."
        }
      }
    },
    "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"
          }
        ]
      }
    },
    "StorageConnectorSourceUpdate": {
      "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"
      ]
    },
    "TrackedResourceUpdate": {
      "type": "object",
      "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"
          }
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}