命名空间:microsoft.graph
方法
| 方法 | 返回类型 | Description |
|---|---|---|
| List | timeOffReason 集合 | 获取计划中的 timeOffReason 列表。 |
| 创建 | timeOffReason | 创建新的 timeOffReason。 |
| Get | timeOffReason | 按 ID 获取 timeOffReason 。 |
| Replace | timeOffReason | 替换 timeOffReason。 |
| 删除 | None | 将 timeOffReason 标记为非活动状态。 |
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| code | String | 表示外部标识符的 timeOffReason 的代码。 此字段在团队中必须唯一Microsoft Teams,并且使用字母数字格式,最多 100 个字符。 |
| createdDateTime | DateTimeOffset | 首次创建此 timeOffReason 的时间戳。 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时区。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 |
| displayName | String | timeOffReason 的名称。 必填。 |
| iconType | timeOffReasonIconType | 支持的图标类型包括:、、car、、planecalendar,juryDutyclockdoctorgloberunningnotWorkingfirstAid、weatherphonecupcakedogpiggyBankumbrella、trafficCone、pin、 。 sunnynone 必需。 |
| id | String | 休假原因的唯一标识符。 |
| isActive | 布尔值 | 指示在创建新实体或更新现有实体时是否可以使用 timeOffReason 。 必填。 |
| lastModifiedBy | identitySet | 上次更新 此 timeOffReason 的标识。 |
| lastModifiedDateTime | DateTimeOffset | 上次更新此 timeOffReason 的时间戳。 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时区。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 |
JSON 表示形式
以下 JSON 表示形式显示了资源类型。
{
"code": "String",
"createdDateTime": "String (timestamp)",
"displayName": "String",
"iconType": "String",
"id": "String (identifier)",
"isActive": "Boolean",
"lastModifiedBy": { "@odata.type":"microsoft.graph.identitySet"},
"lastModifiedDateTime": "String (timestamp)"
}