timeOffReason 资源类型timeOffReason resource type

命名空间:microsoft.graphNamespace: microsoft.graph

表示对计划中的timeOff实例的有效原因。Represents a valid reason to for a timeOff instance in a schedule.

方法Methods

方法Method 返回类型Return Type DescriptionDescription
ListList timeOffReason 集合timeOffReason collection 获取计划中的 timeOffReason 列表。Get the list of timeOffReason in a schedule.
CreateCreate timeOffReasontimeOffReason 创建新的 timeOffReasonCreate a new timeOffReason.
GetGet timeOffReasontimeOffReason 按 ID 获取 timeOffReasonGet a timeOffReason by ID.
ReplaceReplace timeOffReasontimeOffReason 替换 timeOffReasonReplace a timeOffReason.
删除Delete None timeOffReason 标记为非活动状态。Mark a timeOffReason as inactive.

属性Properties

名称Name 类型Type 说明Description
idid string timeOffReason 的 ID。ID of the timeOffReason.
displayNamedisplayName string TimeOffReason的名称。The name of the timeOffReason. 必需。Required.
iconTypeiconType timeOffReasonIconType 支持的图标类型:无;car式运行planefirstAid;dr.notWorking;构造juryDuty;投放cup of电话气候防护piggyBank;监控桩trafficCone;针sunny.Supported icon types: none; car; calendar; running; plane; firstAid; doctor; notWorking; clock; juryDuty; globe; cup; phone; weather; umbrella; piggyBank; dog; cake; trafficCone; pin; sunny. 必需。Required.
isActiveisActive Boolean 指示在创建新实体或更新现有实体时是否可以使用 timeOffReasonIndicates whether the timeOffReason can be used when creating new entities or updating existing ones. 必需。Required.
createdDateTimecreatedDateTime DateTimeOffset 首次创建此 timeOffReason 的时间戳。The time stamp on which this timeOffReason was first created. 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时间。The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 (UTC) 如下所示:“2014-01-01T00:00:00Z”。For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
lastModifiedDateTimelastModifiedDateTime DateTimeOffset 上次更新此 timeOffReason 的时间戳。The time stamp on which this timeOffReason was last updated. 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时间。The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 (UTC) 如下所示:“2014-01-01T00:00:00Z”。For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
lastModifiedBylastModifiedBy identitySetidentitySet 上次更新此 timeOffReason的标识。The identity that last updated this timeOffReason.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。The following is a JSON representation of the resource.

{
  "id": "String",
  "createdDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "displayName": "String",
  "iconType": "String",
  "isActive": true,
  "lastModifiedBy": { "@odata.type":"microsoft.graph.identitySet"}
}