{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-container-registry/json-schema/azure-container-registry-registry-update-parameters-schema.json",
  "title": "RegistryUpdateParameters",
  "description": "The parameters for updating a container registry.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-container-registry-registries-api-openapi.yml#/components/schemas/RegistryUpdateParameters",
  "properties": {
    "identity": {
      "$ref": "#/$defs/IdentityProperties",
      "description": "The identity of the container registry."
    },
    "properties": {
      "$ref": "#/$defs/RegistryPropertiesUpdateParameters",
      "description": "The properties that the container registry will be updated with.",
      "x-ms-client-flatten": true
    },
    "sku": {
      "$ref": "#/$defs/Sku",
      "description": "The SKU of the container registry."
    },
    "tags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags for the container registry.",
      "type": "object"
    }
  },
  "type": "object",
  "$defs": {
    "EncryptionProperty": {
      "properties": {
        "keyVaultProperties": {
          "$ref": "#/$defs/KeyVaultProperties",
          "description": "Key vault properties."
        },
        "status": {
          "description": "Indicates whether or not the encryption is enabled for container registry.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "EncryptionStatus"
          }
        }
      },
      "type": "object"
    },
    "IPRule": {
      "description": "IP rule with specific IP or IP range in CIDR format.",
      "properties": {
        "action": {
          "default": "Allow",
          "description": "The action of IP ACL rule.",
          "enum": [
            "Allow"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "Action"
          }
        },
        "value": {
          "description": "Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.",
          "type": "string",
          "x-ms-client-name": "IPAddressOrRange"
        }
      },
      "required": [
        "value"
      ],
      "type": "object"
    },
    "IdentityProperties": {
      "description": "Managed identity for the resource.",
      "properties": {
        "principalId": {
          "description": "The principal ID of resource identity.",
          "type": "string"
        },
        "tenantId": {
          "description": "The tenant ID of resource.",
          "type": "string"
        },
        "type": {
          "description": "The identity type.",
          "enum": [
            "SystemAssigned",
            "UserAssigned",
            "SystemAssigned, UserAssigned",
            "None"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": false,
            "name": "ResourceIdentityType"
          }
        },
        "userAssignedIdentities": {
          "additionalProperties": {
            "$ref": "#/$defs/UserIdentityProperties"
          },
          "description": "The list of user identities associated with the resource. The user identity \ndictionary key references will be ARM resource ids in the form: \n'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/\n    providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
          "type": "object"
        }
      },
      "type": "object"
    },
    "KeyVaultProperties": {
      "properties": {
        "identity": {
          "description": "The client id of the identity which will be used to access key vault.",
          "type": "string"
        },
        "keyIdentifier": {
          "description": "Key vault uri to access the encryption key.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "NetworkRuleSet": {
      "description": "The network rule set for a container registry.",
      "properties": {
        "defaultAction": {
          "default": "Allow",
          "description": "The default action of allow or deny when no other rules match.",
          "enum": [
            "Allow",
            "Deny"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "DefaultAction"
          }
        },
        "ipRules": {
          "description": "The IP ACL rules.",
          "items": {
            "$ref": "#/$defs/IPRule"
          },
          "type": "array"
        },
        "virtualNetworkRules": {
          "description": "The virtual network rules.",
          "items": {
            "$ref": "#/$defs/VirtualNetworkRule"
          },
          "type": "array"
        }
      },
      "required": [
        "defaultAction"
      ],
      "type": "object"
    },
    "Policies": {
      "description": "The policies for a container registry.",
      "properties": {
        "quarantinePolicy": {
          "$ref": "#/$defs/QuarantinePolicy",
          "description": "The quarantine policy for a container registry."
        },
        "retentionPolicy": {
          "$ref": "#/$defs/RetentionPolicy",
          "description": "The retention policy for a container registry."
        },
        "trustPolicy": {
          "$ref": "#/$defs/TrustPolicy",
          "description": "The content trust policy for a container registry."
        }
      },
      "type": "object"
    },
    "QuarantinePolicy": {
      "description": "The quarantine policy for a container registry.",
      "properties": {
        "status": {
          "default": "disabled",
          "description": "The value that indicates whether the policy is enabled or not.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "PolicyStatus"
          }
        }
      },
      "type": "object"
    },
    "RegistryPropertiesUpdateParameters": {
      "description": "The parameters for updating the properties of a container registry.",
      "properties": {
        "adminUserEnabled": {
          "description": "The value that indicates whether the admin user is enabled.",
          "type": "boolean"
        },
        "encryption": {
          "$ref": "#/$defs/EncryptionProperty",
          "description": "The encryption settings of container registry."
        },
        "networkRuleSet": {
          "$ref": "#/$defs/NetworkRuleSet",
          "description": "The network rule set for a container registry."
        },
        "policies": {
          "$ref": "#/$defs/Policies",
          "description": "The policies for a container registry."
        }
      },
      "type": "object"
    },
    "RetentionPolicy": {
      "description": "The retention policy for a container registry.",
      "properties": {
        "days": {
          "default": 7,
          "description": "The number of days to retain an untagged manifest after which it gets purged.",
          "format": "int32",
          "type": "integer"
        },
        "lastUpdatedTime": {
          "description": "The timestamp when the policy was last updated.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "status": {
          "default": "disabled",
          "description": "The value that indicates whether the policy is enabled or not.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "PolicyStatus"
          }
        }
      },
      "type": "object"
    },
    "Sku": {
      "description": "The SKU of a container registry.",
      "properties": {
        "name": {
          "description": "The SKU name of the container registry. Required for registry creation.",
          "enum": [
            "Classic",
            "Basic",
            "Standard",
            "Premium"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "SkuName"
          }
        },
        "tier": {
          "description": "The SKU tier based on the SKU name.",
          "enum": [
            "Classic",
            "Basic",
            "Standard",
            "Premium"
          ],
          "readOnly": true,
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "SkuTier"
          }
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "TrustPolicy": {
      "description": "The content trust policy for a container registry.",
      "properties": {
        "status": {
          "default": "disabled",
          "description": "The value that indicates whether the policy is enabled or not.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "PolicyStatus"
          }
        },
        "type": {
          "default": "Notary",
          "description": "The type of trust policy.",
          "enum": [
            "Notary"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "TrustPolicyType"
          }
        }
      },
      "type": "object"
    },
    "UserIdentityProperties": {
      "properties": {
        "clientId": {
          "description": "The client id of user assigned identity.",
          "type": "string"
        },
        "principalId": {
          "description": "The principal id of user assigned identity.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "VirtualNetworkRule": {
      "description": "Virtual network rule.",
      "properties": {
        "action": {
          "default": "Allow",
          "description": "The action of virtual network rule.",
          "enum": [
            "Allow"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "Action"
          }
        },
        "id": {
          "description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.",
          "type": "string",
          "x-ms-client-name": "VirtualNetworkResourceId"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    }
  }
}