{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-kubernetes-service/json-schema/microsoft-azure-kubernetes-service-trusted-access-role-binding-schema.json",
  "title": "TrustedAccessRoleBinding",
  "description": "Defines binding between a resource and role",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-kubernetes-service-trusted-access-role-bindings-api-openapi.yml#/components/schemas/TrustedAccessRoleBinding",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/TrustedAccessRoleBindingProperties"
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "TrustedAccessRoleBindingProperties": {
      "type": "object",
      "description": "Properties for trusted access role binding",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/TrustedAccessRoleBindingProvisioningState"
        },
        "sourceResourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "The ARM resource ID of source resource that trusted access is configured for."
        },
        "roles": {
          "type": "array",
          "description": "A list of roles to bind, each item is a resource type qualified role name. For example: 'Microsoft.MachineLearningServices/workspaces/reader'.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "sourceResourceId",
        "roles"
      ]
    },
    "TrustedAccessRoleBindingProvisioningState": {
      "type": "string",
      "description": "The current provisioning state of trusted access role binding.",
      "enum": [
        "Canceled",
        "Deleting",
        "Failed",
        "Succeeded",
        "Updating"
      ],
      "x-ms-enum": {
        "name": "TrustedAccessRoleBindingProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Trusted access role binding provisioning was canceled."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Trusted access role binding is being deleted."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Trusted access role binding provisioning failed."
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Trusted access role binding provisioning succeeded."
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Trusted access role binding is being updated."
          }
        ]
      },
      "readOnly": true
    }
  }
}