attributeDefinition 资源类型

命名空间:microsoft.graph

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

描述对象的属性。 此对象在 objectDefinition 的 attributes 属性中配置。

属性

属性 类型 说明
锚 布尔值 true 属性是否应该用作对象的定位点。 定位属性必须具有标识对象的唯一值,并且必须是不可变的。 默认值为“false”。 必须且只能将对象的一个属性指定为定位点以支持同步。
caseExact 布尔值 true 如果应将此属性的值视为区分大小写。 此设置会影响同步引擎检测属性更改的方式。
defaultValue String 属性的默认值。
flowNullValues 布尔值 为“true”,则允许属性为 null 值。
元数据 attributeDefinitionMetadataEntry 集合 给定对象的元数据。
多值 布尔值 true 如果属性可以有多个值。 默认值为“false”。
可变性 可变性 属性的可变性。 可能的值包括 ReadWrite、ReadOnly、Immutable、WriteOnly。 默认值为“ReadWrite”。
name String 属性的名称。 在对象定义中必须是唯一的。 不可为 null。
必需 布尔值 true if 属性是必需的。 如果缺少任何必需属性,则无法创建对象。 如果在同步过程中,必需属性没有值,将使用默认值。 如果未设置默认值,同步将记录错误。
referencedObjects referencedObject 集合 对于具有 reference 类型的属性,列出引用的对象 (例如,该 manager 属性将作为 User 引用对象) 列出。
type attributeType 属性值类型。 可能的值为:String、、IntegerReference、BinaryBoolean。DateTime 默认值为“String”。

关系

无。

JSON 表示形式

以下 JSON 表示形式显示资源类型。

{
  "anchor": true,
  "caseExact": true,
  "defaultValue": "String",
  "flowNullValues": true,
  "metadata": [
    {
      "@odata.type": "microsoft.graph.attributeDefinitionMetadataEntry"
    }
  ],
  "multivalued": true,
  "mutability": "String",
  "name": "String",
  "referencedObjects": [
    {
      "@odata.type": "microsoft.graph.referencedObject"
    }
  ],
  "required": true,
  "type": "String"
}