{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-container-registry/json-schema/azure-container-registry-generate-credentials-parameters-schema.json",
  "title": "GenerateCredentialsParameters",
  "description": "The parameters used to generate credentials for a specified token or user of a container registry.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-container-registry-registries-api-openapi.yml#/components/schemas/GenerateCredentialsParameters",
  "type": "object",
  "properties": {
    "tokenId": {
      "type": "string",
      "description": "The resource ID of the token for which credentials have to be generated."
    },
    "expiry": {
      "type": "string",
      "format": "date-time",
      "description": "The expiry date of the generated credentials after which the credentials become invalid."
    },
    "name": {
      "$ref": "#/$defs/TokenPasswordName",
      "description": "Specifies name of the password which should be regenerated if any -- password1 or password2."
    }
  },
  "$defs": {
    "TokenPasswordName": {
      "type": "string",
      "description": "The password name \"password1\" or \"password2\"",
      "enum": [
        "password1",
        "password2"
      ],
      "x-ms-enum": {
        "name": "TokenPasswordName",
        "modelAsString": true,
        "values": [
          {
            "name": "password1",
            "value": "password1"
          },
          {
            "name": "password2",
            "value": "password2"
          }
        ]
      }
    }
  }
}