github.com/yaegashi/msgraph.go@v0.1.4/beta/ModelTerms.go (about) 1 // Code generated by msgraph.go/gen DO NOT EDIT. 2 3 package msgraph 4 5 import "time" 6 7 // TermsAndConditions A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune. 8 type TermsAndConditions struct { 9 // Entity is the base model of TermsAndConditions 10 Entity 11 // CreatedDateTime DateTime the object was created. 12 CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` 13 // ModifiedDateTime DateTime the object was last modified. 14 ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"` 15 // LastModifiedDateTime DateTime the object was last modified. 16 LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` 17 // DisplayName Administrator-supplied name for the T&C policy. 18 DisplayName *string `json:"displayName,omitempty"` 19 // Description Administrator-supplied description of the T&C policy. 20 Description *string `json:"description,omitempty"` 21 // Title Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy. 22 Title *string `json:"title,omitempty"` 23 // BodyText Administrator-supplied body text of the terms and conditions, typically the terms themselves. This is shown to the user on prompts to accept the T&C policy. 24 BodyText *string `json:"bodyText,omitempty"` 25 // AcceptanceStatement Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy. 26 AcceptanceStatement *string `json:"acceptanceStatement,omitempty"` 27 // Version Integer indicating the current version of the terms. Incremented when an administrator makes a change to the terms and wishes to require users to re-accept the modified T&C policy. 28 Version *int `json:"version,omitempty"` 29 // RoleScopeTagIDs List of Scope Tags for this Entity instance. 30 RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"` 31 // GroupAssignments undocumented 32 GroupAssignments []TermsAndConditionsGroupAssignment `json:"groupAssignments,omitempty"` 33 // Assignments undocumented 34 Assignments []TermsAndConditionsAssignment `json:"assignments,omitempty"` 35 // AcceptanceStatuses undocumented 36 AcceptanceStatuses []TermsAndConditionsAcceptanceStatus `json:"acceptanceStatuses,omitempty"` 37 } 38 39 // TermsAndConditionsAcceptanceStatus A termsAndConditionsAcceptanceStatus entity represents the acceptance status of a given Terms and Conditions (T&C) policy by a given user. Users must accept the most up-to-date version of the terms in order to retain access to the Company Portal. 40 type TermsAndConditionsAcceptanceStatus struct { 41 // Entity is the base model of TermsAndConditionsAcceptanceStatus 42 Entity 43 // UserDisplayName Display name of the user whose acceptance the entity represents. 44 UserDisplayName *string `json:"userDisplayName,omitempty"` 45 // AcceptedVersion Most recent version number of the T&C accepted by the user. 46 AcceptedVersion *int `json:"acceptedVersion,omitempty"` 47 // AcceptedDateTime DateTime when the terms were last accepted by the user. 48 AcceptedDateTime *time.Time `json:"acceptedDateTime,omitempty"` 49 // TermsAndConditions undocumented 50 TermsAndConditions *TermsAndConditions `json:"termsAndConditions,omitempty"` 51 } 52 53 // TermsAndConditionsAssignment A termsAndConditionsAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune. 54 type TermsAndConditionsAssignment struct { 55 // Entity is the base model of TermsAndConditionsAssignment 56 Entity 57 // Target Assignment target that the T&C policy is assigned to. 58 Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"` 59 } 60 61 // TermsAndConditionsGroupAssignment A termsAndConditionsGroupAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune. 62 type TermsAndConditionsGroupAssignment struct { 63 // Entity is the base model of TermsAndConditionsGroupAssignment 64 Entity 65 // TargetGroupID Unique identifier of a group that the T&C policy is assigned to. 66 TargetGroupID *string `json:"targetGroupId,omitempty"` 67 // TermsAndConditions undocumented 68 TermsAndConditions *TermsAndConditions `json:"termsAndConditions,omitempty"` 69 }