{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-communication-service-resource-update-schema.json",
  "title": "CommunicationServiceResourceUpdate",
  "description": "A class representing update parameters for CommunicationService resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-communication-services-communicationservices-api-openapi.yml#/components/schemas/CommunicationServiceResourceUpdate",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/CommunicationServiceUpdateProperties",
      "description": "The properties of the service.",
      "x-ms-client-flatten": true
    },
    "identity": {
      "$ref": "#/$defs/ManagedServiceIdentity",
      "description": "Managed service identity (system assigned and/or user assigned identities)"
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TaggedResource"
    }
  ],
  "$defs": {
    "CommunicationServiceUpdateProperties": {
      "type": "object",
      "description": "A class that describes the properties that can be updated for CommunicationService resource.",
      "properties": {
        "linkedDomains": {
          "$ref": "#/$defs/DomainsResourceList",
          "description": "List of email Domain resource Ids."
        },
        "publicNetworkAccess": {
          "$ref": "#/$defs/PublicNetworkAccess",
          "description": "Allow, disallow, or let network security perimeter configuration control public network access to the protected resource. Value is optional but if passed in, it must be 'Enabled', 'Disabled' or 'SecuredByPerimeter'."
        },
        "disableLocalAuth": {
          "type": "boolean",
          "description": "Disable local authentication for the CommunicationService.",
          "x-ms-mutability": [
            "update"
          ]
        }
      }
    },
    "DomainsResourceList": {
      "type": "array",
      "description": "List of email Domain resource Ids.",
      "items": {
        "type": "string"
      }
    },
    "ManagedServiceIdentity": {
      "type": "object",
      "description": "Managed service identity (system assigned and/or user assigned identities)",
      "properties": {
        "principalId": {
          "type": "string",
          "format": "uuid",
          "description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "format": "uuid",
          "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/ManagedServiceIdentityType"
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
          "additionalProperties": {
            "$ref": "#/$defs/UserAssignedIdentity"
          }
        }
      },
      "required": [
        "type"
      ]
    },
    "PublicNetworkAccess": {
      "type": "string",
      "description": "Allow, disallow, or let network security perimeter configuration control public network access to the protected resource. Value is optional but if passed in, it must be 'Enabled', 'Disabled' or 'SecuredByPerimeter'.",
      "enum": [
        "Enabled",
        "Disabled",
        "SecuredByPerimeter"
      ],
      "x-ms-enum": {
        "name": "PublicNetworkAccess",
        "modelAsString": true,
        "values": [
          {
            "value": "Enabled",
            "description": "Allows public network access to the resource"
          },
          {
            "value": "Disabled",
            "description": "Disallows public network access to the resource"
          },
          {
            "value": "SecuredByPerimeter",
            "description": "The network security perimeter configuration rules allow or disallow public network access to the resource. Requires an associated network security perimeter."
          }
        ]
      }
    },
    "TaggedResource": {
      "type": "object",
      "description": "An ARM resource with that can accept tags",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Tags of the service which is a list of key value pairs that describe the resource.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "update",
            "create"
          ]
        }
      }
    }
  }
}