diff --git a/chats/item_members_conversation_member_item_request_builder.go b/chats/item_members_conversation_member_item_request_builder.go index bf1a59e261..3f0b1b5cc8 100644 --- a/chats/item_members_conversation_member_item_request_builder.go +++ b/chats/item_members_conversation_member_item_request_builder.go @@ -18,7 +18,7 @@ type ItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemMembersConversationMemberItemRequestBuilderGetQueryParameters retrieve a conversationMember from a chat or channel. +// ItemMembersConversationMemberItemRequestBuilderGetQueryParameters retrieve a conversationMember from a chat. type ItemMembersConversationMemberItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,12 +73,12 @@ func (m *ItemMembersConversationMemberItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get retrieve a conversationMember from a chat or channel. +// Get retrieve a conversationMember from a chat. // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0 func (m *ItemMembersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersConversationMemberItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationMemberable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *ItemMembersConversationMemberItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve a conversationMember from a chat or channel. +// ToGetRequestInformation retrieve a conversationMember from a chat. // returns a *RequestInformation when successful func (m *ItemMembersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_participants_invite_request_builder.go b/communications/calls_item_participants_invite_request_builder.go index 4194bb7808..a73f4bcd92 100644 --- a/communications/calls_item_participants_invite_request_builder.go +++ b/communications/calls_item_participants_invite_request_builder.go @@ -31,12 +31,12 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. +// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. // returns a InviteParticipantsOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InviteParticipantsOperationable), nil } -// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. +// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. // returns a *RequestInformation when successful func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/online_meetings_request_builder.go b/communications/online_meetings_request_builder.go index 2a71496dbe..55c7150b37 100644 --- a/communications/online_meetings_request_builder.go +++ b/communications/online_meetings_request_builder.go @@ -11,7 +11,7 @@ import ( type OnlineMeetingsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// OnlineMeetingsRequestBuilderGetQueryParameters retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) is an online meeting artifact. For details, see Online meeting artifacts and permissions. +// OnlineMeetingsRequestBuilderGetQueryParameters retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. type OnlineMeetingsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -81,7 +81,7 @@ func (m *OnlineMeetingsRequestBuilder) Count()(*OnlineMeetingsCountRequestBuilde func (m *OnlineMeetingsRequestBuilder) CreateOrGet()(*OnlineMeetingsCreateOrGetRequestBuilder) { return NewOnlineMeetingsCreateOrGetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) is an online meeting artifact. For details, see Online meeting artifacts and permissions. +// Get retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. // returns a OnlineMeetingCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -134,7 +134,7 @@ func (m *OnlineMeetingsRequestBuilder) Post(ctx context.Context, body iadcd81124 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.OnlineMeetingable), nil } -// ToGetRequestInformation retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) is an online meeting artifact. For details, see Online meeting artifacts and permissions. +// ToGetRequestInformation retrieve the properties and relationships of an onlineMeeting object. For example, you can: Teams live event attendee report (deprecated) and Teams live event recordings (deprecated) are online meeting artifacts. For more information, see Online meeting artifacts and permissions. // returns a *RequestInformation when successful func (m *OnlineMeetingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/device_app_management_request_builder.go b/deviceappmanagement/device_app_management_request_builder.go index 9820ff1c45..505272e867 100644 --- a/deviceappmanagement/device_app_management_request_builder.go +++ b/deviceappmanagement/device_app_management_request_builder.go @@ -62,7 +62,7 @@ func (m *DeviceAppManagementRequestBuilder) DefaultManagedAppProtections()(*Defa // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-get?view=graph-rest-1.0 func (m *DeviceAppManagementRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceAppManagementRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceAppManagementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *DeviceAppManagementRequestBuilder) MobileApps()(*MobileAppsRequestBuild // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-update?view=graph-rest-1.0 func (m *DeviceAppManagementRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceAppManagementable, requestConfiguration *DeviceAppManagementRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceAppManagementable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/deviceappmanagement/managed_app_policies_item_target_apps_request_builder.go b/deviceappmanagement/managed_app_policies_item_target_apps_request_builder.go index 1a6181f78a..0c6f9f93b0 100644 --- a/deviceappmanagement/managed_app_policies_item_target_apps_request_builder.go +++ b/deviceappmanagement/managed_app_policies_item_target_apps_request_builder.go @@ -34,7 +34,7 @@ func NewManagedAppPoliciesItemTargetAppsRequestBuilder(rawUrl string, requestAda // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0 func (m *ManagedAppPoliciesItemTargetAppsRequestBuilder) Post(ctx context.Context, body ManagedAppPoliciesItemTargetAppsPostRequestBodyable, requestConfiguration *ManagedAppPoliciesItemTargetAppsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/deviceappmanagement/managed_app_policies_managed_app_policy_item_request_builder.go b/deviceappmanagement/managed_app_policies_managed_app_policy_item_request_builder.go index 12d41c1d3c..79a67bee17 100644 --- a/deviceappmanagement/managed_app_policies_managed_app_policy_item_request_builder.go +++ b/deviceappmanagement/managed_app_policies_managed_app_policy_item_request_builder.go @@ -18,7 +18,7 @@ type ManagedAppPoliciesManagedAppPolicyItemRequestBuilderDeleteRequestConfigurat // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ManagedAppPoliciesManagedAppPolicyItemRequestBuilderGetQueryParameters read properties and relationships of the managedAppConfiguration object. +// ManagedAppPoliciesManagedAppPolicyItemRequestBuilderGetQueryParameters read properties and relationships of the managedAppPolicy object. type ManagedAppPoliciesManagedAppPolicyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,12 +70,12 @@ func (m *ManagedAppPoliciesManagedAppPolicyItemRequestBuilder) Delete(ctx contex } return nil } -// Get read properties and relationships of the managedAppConfiguration object. +// Get read properties and relationships of the managedAppPolicy object. // returns a ManagedAppPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-get?view=graph-rest-1.0 func (m *ManagedAppPoliciesManagedAppPolicyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppPoliciesManagedAppPolicyItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppPolicyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *ManagedAppPoliciesManagedAppPolicyItemRequestBuilder) ToDeleteRequestIn requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the managedAppConfiguration object. +// ToGetRequestInformation read properties and relationships of the managedAppPolicy object. // returns a *RequestInformation when successful func (m *ManagedAppPoliciesManagedAppPolicyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppPoliciesManagedAppPolicyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_app_registrations_item_applied_policies_item_target_apps_request_builder.go b/deviceappmanagement/managed_app_registrations_item_applied_policies_item_target_apps_request_builder.go index 36a08e1b66..6a494018d5 100644 --- a/deviceappmanagement/managed_app_registrations_item_applied_policies_item_target_apps_request_builder.go +++ b/deviceappmanagement/managed_app_registrations_item_applied_policies_item_target_apps_request_builder.go @@ -34,7 +34,7 @@ func NewManagedAppRegistrationsItemAppliedPoliciesItemTargetAppsRequestBuilder(r // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0 func (m *ManagedAppRegistrationsItemAppliedPoliciesItemTargetAppsRequestBuilder) Post(ctx context.Context, body ManagedAppRegistrationsItemAppliedPoliciesItemTargetAppsPostRequestBodyable, requestConfiguration *ManagedAppRegistrationsItemAppliedPoliciesItemTargetAppsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/deviceappmanagement/managed_app_registrations_item_intended_policies_item_target_apps_request_builder.go b/deviceappmanagement/managed_app_registrations_item_intended_policies_item_target_apps_request_builder.go index aaa08ba093..ee43284d31 100644 --- a/deviceappmanagement/managed_app_registrations_item_intended_policies_item_target_apps_request_builder.go +++ b/deviceappmanagement/managed_app_registrations_item_intended_policies_item_target_apps_request_builder.go @@ -34,7 +34,7 @@ func NewManagedAppRegistrationsItemIntendedPoliciesItemTargetAppsRequestBuilder( // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0 func (m *ManagedAppRegistrationsItemIntendedPoliciesItemTargetAppsRequestBuilder) Post(ctx context.Context, body ManagedAppRegistrationsItemIntendedPoliciesItemTargetAppsPostRequestBodyable, requestConfiguration *ManagedAppRegistrationsItemIntendedPoliciesItemTargetAppsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/deviceappmanagement/managed_app_registrations_managed_app_registration_item_request_builder.go b/deviceappmanagement/managed_app_registrations_managed_app_registration_item_request_builder.go index a20d0c2d1b..c57ced9cbc 100644 --- a/deviceappmanagement/managed_app_registrations_managed_app_registration_item_request_builder.go +++ b/deviceappmanagement/managed_app_registrations_managed_app_registration_item_request_builder.go @@ -18,7 +18,7 @@ type ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetQueryParameters read properties and relationships of the managedAppRegistration object. +// ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetQueryParameters read properties and relationships of the androidManagedAppRegistration object. type ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,12 +75,12 @@ func (m *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) Delete } return nil } -// Get read properties and relationships of the managedAppRegistration object. +// Get read properties and relationships of the androidManagedAppRegistration object. // returns a ManagedAppRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-get?view=graph-rest-1.0 func (m *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppRegistrationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -139,7 +139,7 @@ func (m *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) ToDele requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the managedAppRegistration object. +// ToGetRequestInformation read properties and relationships of the androidManagedAppRegistration object. // returns a *RequestInformation when successful func (m *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_app_registrations_request_builder.go b/deviceappmanagement/managed_app_registrations_request_builder.go index 8ad44f05a5..b893796343 100644 --- a/deviceappmanagement/managed_app_registrations_request_builder.go +++ b/deviceappmanagement/managed_app_registrations_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedAppRegistrationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedAppRegistrationsRequestBuilderGetQueryParameters list properties and relationships of the managedAppRegistration objects. +// ManagedAppRegistrationsRequestBuilderGetQueryParameters list properties and relationships of the androidManagedAppRegistration objects. type ManagedAppRegistrationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedAppRegistrationsRequestBuilder(rawUrl string, requestAdapter i2ae func (m *ManagedAppRegistrationsRequestBuilder) Count()(*ManagedAppRegistrationsCountRequestBuilder) { return NewManagedAppRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the managedAppRegistration objects. +// Get list properties and relationships of the androidManagedAppRegistration objects. // returns a ManagedAppRegistrationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-list?view=graph-rest-1.0 func (m *ManagedAppRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppRegistrationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppRegistrationCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *ManagedAppRegistrationsRequestBuilder) Post(ctx context.Context, body i } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppRegistrationable), nil } -// ToGetRequestInformation list properties and relationships of the managedAppRegistration objects. +// ToGetRequestInformation list properties and relationships of the androidManagedAppRegistration objects. // returns a *RequestInformation when successful func (m *ManagedAppRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppRegistrationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_app_statuses_managed_app_status_item_request_builder.go b/deviceappmanagement/managed_app_statuses_managed_app_status_item_request_builder.go index 6bb83c7ee3..c305ec3804 100644 --- a/deviceappmanagement/managed_app_statuses_managed_app_status_item_request_builder.go +++ b/deviceappmanagement/managed_app_statuses_managed_app_status_item_request_builder.go @@ -18,7 +18,7 @@ type ManagedAppStatusesManagedAppStatusItemRequestBuilderDeleteRequestConfigurat // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ManagedAppStatusesManagedAppStatusItemRequestBuilderGetQueryParameters read properties and relationships of the managedAppStatusRaw object. +// ManagedAppStatusesManagedAppStatusItemRequestBuilderGetQueryParameters read properties and relationships of the managedAppStatus object. type ManagedAppStatusesManagedAppStatusItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,12 +70,12 @@ func (m *ManagedAppStatusesManagedAppStatusItemRequestBuilder) Delete(ctx contex } return nil } -// Get read properties and relationships of the managedAppStatusRaw object. +// Get read properties and relationships of the managedAppStatus object. // returns a ManagedAppStatusable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappstatusraw-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-get?view=graph-rest-1.0 func (m *ManagedAppStatusesManagedAppStatusItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppStatusesManagedAppStatusItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppStatusable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *ManagedAppStatusesManagedAppStatusItemRequestBuilder) ToDeleteRequestIn requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the managedAppStatusRaw object. +// ToGetRequestInformation read properties and relationships of the managedAppStatus object. // returns a *RequestInformation when successful func (m *ManagedAppStatusesManagedAppStatusItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppStatusesManagedAppStatusItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_app_statuses_request_builder.go b/deviceappmanagement/managed_app_statuses_request_builder.go index ba029949f1..1d0ac0f5ab 100644 --- a/deviceappmanagement/managed_app_statuses_request_builder.go +++ b/deviceappmanagement/managed_app_statuses_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedAppStatusesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedAppStatusesRequestBuilderGetQueryParameters list properties and relationships of the managedAppStatusRaw objects. +// ManagedAppStatusesRequestBuilderGetQueryParameters list properties and relationships of the managedAppStatus objects. type ManagedAppStatusesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedAppStatusesRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ManagedAppStatusesRequestBuilder) Count()(*ManagedAppStatusesCountRequestBuilder) { return NewManagedAppStatusesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the managedAppStatusRaw objects. +// Get list properties and relationships of the managedAppStatus objects. // returns a ManagedAppStatusCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappstatusraw-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-list?view=graph-rest-1.0 func (m *ManagedAppStatusesRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppStatusesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppStatusCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ManagedAppStatusesRequestBuilder) Post(ctx context.Context, body iadcd8 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppStatusable), nil } -// ToGetRequestInformation list properties and relationships of the managedAppStatusRaw objects. +// ToGetRequestInformation list properties and relationships of the managedAppStatus objects. // returns a *RequestInformation when successful func (m *ManagedAppStatusesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppStatusesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_e_books_item_assignments_managed_e_book_assignment_item_request_builder.go b/deviceappmanagement/managed_e_books_item_assignments_managed_e_book_assignment_item_request_builder.go index dd978acfa8..2d1c79eb32 100644 --- a/deviceappmanagement/managed_e_books_item_assignments_managed_e_book_assignment_item_request_builder.go +++ b/deviceappmanagement/managed_e_books_item_assignments_managed_e_book_assignment_item_request_builder.go @@ -18,7 +18,7 @@ type ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderDeleteR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderGetQueryParameters read properties and relationships of the managedEBookAssignment object. +// ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderGetQueryParameters read properties and relationships of the iosVppEBookAssignment object. type ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,11 +54,11 @@ func NewManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder(raw urlParams["request-raw-url"] = rawUrl return NewManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a managedEBookAssignment. +// Delete deletes a iosVppEBookAssignment. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-delete?view=graph-rest-1.0 func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,12 +73,12 @@ func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) D } return nil } -// Get read properties and relationships of the managedEBookAssignment object. +// Get read properties and relationships of the iosVppEBookAssignment object. // returns a ManagedEBookAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-get?view=graph-rest-1.0 func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) P } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable), nil } -// ToDeleteRequestInformation deletes a managedEBookAssignment. +// ToDeleteRequestInformation deletes a iosVppEBookAssignment. // returns a *RequestInformation when successful func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,7 +130,7 @@ func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) T requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the managedEBookAssignment object. +// ToGetRequestInformation read properties and relationships of the iosVppEBookAssignment object. // returns a *RequestInformation when successful func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_e_books_item_assignments_request_builder.go b/deviceappmanagement/managed_e_books_item_assignments_request_builder.go index 1705dbae5e..8e5b2bc035 100644 --- a/deviceappmanagement/managed_e_books_item_assignments_request_builder.go +++ b/deviceappmanagement/managed_e_books_item_assignments_request_builder.go @@ -99,12 +99,12 @@ func (m *ManagedEBooksItemAssignmentsRequestBuilder) Get(ctx context.Context, re } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentCollectionResponseable), nil } -// Post create a new managedEBookAssignment object. +// Post create a new iosVppEBookAssignment object. // returns a ManagedEBookAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0 func (m *ManagedEBooksItemAssignmentsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, requestConfiguration *ManagedEBooksItemAssignmentsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -136,7 +136,7 @@ func (m *ManagedEBooksItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new managedEBookAssignment object. +// ToPostRequestInformation create a new iosVppEBookAssignment object. // returns a *RequestInformation when successful func (m *ManagedEBooksItemAssignmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, requestConfiguration *ManagedEBooksItemAssignmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_e_books_managed_e_book_item_request_builder.go b/deviceappmanagement/managed_e_books_managed_e_book_item_request_builder.go index 079b72a383..f3ed21c726 100644 --- a/deviceappmanagement/managed_e_books_managed_e_book_item_request_builder.go +++ b/deviceappmanagement/managed_e_books_managed_e_book_item_request_builder.go @@ -18,7 +18,7 @@ type ManagedEBooksManagedEBookItemRequestBuilderDeleteRequestConfiguration struc // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ManagedEBooksManagedEBookItemRequestBuilderGetQueryParameters read properties and relationships of the managedEBook object. +// ManagedEBooksManagedEBookItemRequestBuilderGetQueryParameters read properties and relationships of the iosVppEBook object. type ManagedEBooksManagedEBookItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -88,12 +88,12 @@ func (m *ManagedEBooksManagedEBookItemRequestBuilder) Delete(ctx context.Context func (m *ManagedEBooksManagedEBookItemRequestBuilder) DeviceStates()(*ManagedEBooksItemDeviceStatesRequestBuilder) { return NewManagedEBooksItemDeviceStatesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the managedEBook object. +// Get read properties and relationships of the iosVppEBook object. // returns a ManagedEBookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebook-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-iosvppebook-get?view=graph-rest-1.0 func (m *ManagedEBooksManagedEBookItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedEBooksManagedEBookItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -150,7 +150,7 @@ func (m *ManagedEBooksManagedEBookItemRequestBuilder) ToDeleteRequestInformation requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the managedEBook object. +// ToGetRequestInformation read properties and relationships of the iosVppEBook object. // returns a *RequestInformation when successful func (m *ManagedEBooksManagedEBookItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedEBooksManagedEBookItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_mobile_app_item_request_builder.go b/deviceappmanagement/mobile_apps_mobile_app_item_request_builder.go index 7bd3d6c7f3..1a4c9a6ee0 100644 --- a/deviceappmanagement/mobile_apps_mobile_app_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_mobile_app_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsMobileAppItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsMobileAppItemRequestBuilderGetQueryParameters read properties and relationships of the win32LobApp object. +// MobileAppsMobileAppItemRequestBuilderGetQueryParameters read properties and relationships of the iosStoreApp object. type MobileAppsMobileAppItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -69,11 +69,11 @@ func NewMobileAppsMobileAppItemRequestBuilder(rawUrl string, requestAdapter i2ae urlParams["request-raw-url"] = rawUrl return NewMobileAppsMobileAppItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a iosiPadOSWebClip. +// Delete deletes a win32LobApp. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-iosipadoswebclip-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-win32lobapp-delete?view=graph-rest-1.0 func (m *MobileAppsMobileAppItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *MobileAppsMobileAppItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -88,12 +88,12 @@ func (m *MobileAppsMobileAppItemRequestBuilder) Delete(ctx context.Context, requ } return nil } -// Get read properties and relationships of the win32LobApp object. +// Get read properties and relationships of the iosStoreApp object. // returns a MobileAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-win32lobapp-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-iosstoreapp-get?view=graph-rest-1.0 func (m *MobileAppsMobileAppItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsMobileAppItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -191,12 +191,12 @@ func (m *MobileAppsMobileAppItemRequestBuilder) GraphWindowsUniversalAppX()(*Mob func (m *MobileAppsMobileAppItemRequestBuilder) GraphWindowsWebApp()(*MobileAppsItemGraphWindowsWebAppRequestBuilder) { return NewMobileAppsItemGraphWindowsWebAppRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a macOSLobApp object. +// Patch update the properties of a managedAndroidLobApp object. // returns a MobileAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-macoslobapp-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-managedandroidlobapp-update?view=graph-rest-1.0 func (m *MobileAppsMobileAppItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, requestConfiguration *MobileAppsMobileAppItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -214,7 +214,7 @@ func (m *MobileAppsMobileAppItemRequestBuilder) Patch(ctx context.Context, body } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable), nil } -// ToDeleteRequestInformation deletes a iosiPadOSWebClip. +// ToDeleteRequestInformation deletes a win32LobApp. // returns a *RequestInformation when successful func (m *MobileAppsMobileAppItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *MobileAppsMobileAppItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -225,7 +225,7 @@ func (m *MobileAppsMobileAppItemRequestBuilder) ToDeleteRequestInformation(ctx c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the win32LobApp object. +// ToGetRequestInformation read properties and relationships of the iosStoreApp object. // returns a *RequestInformation when successful func (m *MobileAppsMobileAppItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsMobileAppItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -239,7 +239,7 @@ func (m *MobileAppsMobileAppItemRequestBuilder) ToGetRequestInformation(ctx cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a macOSLobApp object. +// ToPatchRequestInformation update the properties of a managedAndroidLobApp object. // returns a *RequestInformation when successful func (m *MobileAppsMobileAppItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, requestConfiguration *MobileAppsMobileAppItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_request_builder.go b/deviceappmanagement/mobile_apps_request_builder.go index 1db512e54f..1f77d2c515 100644 --- a/deviceappmanagement/mobile_apps_request_builder.go +++ b/deviceappmanagement/mobile_apps_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsRequestBuilderGetQueryParameters list properties and relationships of the mobileLobApp objects. +// MobileAppsRequestBuilderGetQueryParameters list properties and relationships of the windowsMobileMSI objects. type MobileAppsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewMobileAppsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *MobileAppsRequestBuilder) Count()(*MobileAppsCountRequestBuilder) { return NewMobileAppsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the mobileLobApp objects. +// Get list properties and relationships of the windowsMobileMSI objects. // returns a MobileAppCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-mobilelobapp-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-windowsmobilemsi-list?view=graph-rest-1.0 func (m *MobileAppsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -179,12 +179,12 @@ func (m *MobileAppsRequestBuilder) GraphWindowsUniversalAppX()(*MobileAppsGraphW func (m *MobileAppsRequestBuilder) GraphWindowsWebApp()(*MobileAppsGraphWindowsWebAppRequestBuilder) { return NewMobileAppsGraphWindowsWebAppRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new androidLobApp object. +// Post create a new managedAndroidLobApp object. // returns a MobileAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-androidlobapp-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-managedandroidlobapp-create?view=graph-rest-1.0 func (m *MobileAppsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, requestConfiguration *MobileAppsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -202,7 +202,7 @@ func (m *MobileAppsRequestBuilder) Post(ctx context.Context, body iadcd81124412c } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable), nil } -// ToGetRequestInformation list properties and relationships of the mobileLobApp objects. +// ToGetRequestInformation list properties and relationships of the windowsMobileMSI objects. // returns a *RequestInformation when successful func (m *MobileAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -216,7 +216,7 @@ func (m *MobileAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new androidLobApp object. +// ToPostRequestInformation create a new managedAndroidLobApp object. // returns a *RequestInformation when successful func (m *MobileAppsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, requestConfiguration *MobileAppsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go b/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go index a126a739ba..7a0b4ebcba 100644 --- a/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go +++ b/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go @@ -18,7 +18,7 @@ type DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderDeleteReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetQueryParameters read properties and relationships of the macOSCompliancePolicy object. +// DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetQueryParameters read properties and relationships of the androidWorkProfileCompliancePolicy object. type DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -64,11 +64,11 @@ func NewDeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewDeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a windows81CompliancePolicy. +// Delete deletes a windows10CompliancePolicy. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10compliancepolicy-delete?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -98,12 +98,12 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Devic func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) DeviceStatusOverview()(*DeviceCompliancePoliciesItemDeviceStatusOverviewRequestBuilder) { return NewDeviceCompliancePoliciesItemDeviceStatusOverviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the macOSCompliancePolicy object. +// Get read properties and relationships of the androidWorkProfileCompliancePolicy object. // returns a DeviceCompliancePolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-get?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -121,12 +121,12 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Get(c } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable), nil } -// Patch update the properties of a androidWorkProfileCompliancePolicy object. +// Patch update the properties of a windows81CompliancePolicy object. // returns a DeviceCompliancePolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-update?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -154,7 +154,7 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Sched func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ScheduledActionsForRule()(*DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilder) { return NewDeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation deletes a windows81CompliancePolicy. +// ToDeleteRequestInformation deletes a windows10CompliancePolicy. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -165,7 +165,7 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToDel requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the macOSCompliancePolicy object. +// ToGetRequestInformation read properties and relationships of the androidWorkProfileCompliancePolicy object. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -179,7 +179,7 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToGet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a androidWorkProfileCompliancePolicy object. +// ToPatchRequestInformation update the properties of a windows81CompliancePolicy object. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_compliance_policies_request_builder.go b/devicemanagement/device_compliance_policies_request_builder.go index 8629686459..abaa7a8701 100644 --- a/devicemanagement/device_compliance_policies_request_builder.go +++ b/devicemanagement/device_compliance_policies_request_builder.go @@ -99,12 +99,12 @@ func (m *DeviceCompliancePoliciesRequestBuilder) Get(ctx context.Context, reques } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyCollectionResponseable), nil } -// Post create a new windows10CompliancePolicy object. +// Post create a new androidWorkProfileCompliancePolicy object. // returns a DeviceCompliancePolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10compliancepolicy-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-create?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, requestConfiguration *DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -136,7 +136,7 @@ func (m *DeviceCompliancePoliciesRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new windows10CompliancePolicy object. +// ToPostRequestInformation create a new androidWorkProfileCompliancePolicy object. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, requestConfiguration *DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_configurations_device_configuration_item_request_builder.go b/devicemanagement/device_configurations_device_configuration_item_request_builder.go index 1d5494dea2..36ca14469d 100644 --- a/devicemanagement/device_configurations_device_configuration_item_request_builder.go +++ b/devicemanagement/device_configurations_device_configuration_item_request_builder.go @@ -18,7 +18,7 @@ type DeviceConfigurationsDeviceConfigurationItemRequestBuilderDeleteRequestConfi // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the windows81GeneralConfiguration object. +// DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the windowsUpdateForBusinessConfiguration object. type DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -64,11 +64,11 @@ func NewDeviceConfigurationsDeviceConfigurationItemRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewDeviceConfigurationsDeviceConfigurationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a iosGeneralDeviceConfiguration. +// Delete deletes a windows81GeneralConfiguration. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81generalconfiguration-delete?view=graph-rest-1.0 func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -98,12 +98,12 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) DeviceStatus func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) DeviceStatusOverview()(*DeviceConfigurationsItemDeviceStatusOverviewRequestBuilder) { return NewDeviceConfigurationsItemDeviceStatusOverviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the windows81GeneralConfiguration object. +// Get read properties and relationships of the windowsUpdateForBusinessConfiguration object. // returns a DeviceConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81generalconfiguration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsupdateforbusinessconfiguration-get?view=graph-rest-1.0 func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,12 +126,12 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Get(ctx cont func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) GetOmaSettingPlainTextValueWithSecretReferenceValueId(secretReferenceValueId *string)(*DeviceConfigurationsItemGetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder) { return NewDeviceConfigurationsItemGetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, secretReferenceValueId) } -// Patch update the properties of a androidWorkProfileGeneralDeviceConfiguration object. +// Patch update the properties of a macOSCustomConfiguration object. // returns a DeviceConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilegeneraldeviceconfiguration-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscustomconfiguration-update?view=graph-rest-1.0 func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -149,7 +149,7 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Patch(ctx co } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable), nil } -// ToDeleteRequestInformation deletes a iosGeneralDeviceConfiguration. +// ToDeleteRequestInformation deletes a windows81GeneralConfiguration. // returns a *RequestInformation when successful func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -160,7 +160,7 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToDeleteRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the windows81GeneralConfiguration object. +// ToGetRequestInformation read properties and relationships of the windowsUpdateForBusinessConfiguration object. // returns a *RequestInformation when successful func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -174,7 +174,7 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToGetRequest requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a androidWorkProfileGeneralDeviceConfiguration object. +// ToPatchRequestInformation update the properties of a macOSCustomConfiguration object. // returns a *RequestInformation when successful func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_configurations_request_builder.go b/devicemanagement/device_configurations_request_builder.go index 2249c18cc4..0fae2ca80f 100644 --- a/devicemanagement/device_configurations_request_builder.go +++ b/devicemanagement/device_configurations_request_builder.go @@ -11,7 +11,7 @@ import ( type DeviceConfigurationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeviceConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the iosDeviceFeaturesConfiguration objects. +// DeviceConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the appleDeviceFeaturesConfigurationBase objects. type DeviceConfigurationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewDeviceConfigurationsRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *DeviceConfigurationsRequestBuilder) Count()(*DeviceConfigurationsCountRequestBuilder) { return NewDeviceConfigurationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the iosDeviceFeaturesConfiguration objects. +// Get list properties and relationships of the appleDeviceFeaturesConfigurationBase objects. // returns a DeviceConfigurationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-iosdevicefeaturesconfiguration-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-appledevicefeaturesconfigurationbase-list?view=graph-rest-1.0 func (m *DeviceConfigurationsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceConfigurationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *DeviceConfigurationsRequestBuilder) Post(ctx context.Context, body iadc } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable), nil } -// ToGetRequestInformation list properties and relationships of the iosDeviceFeaturesConfiguration objects. +// ToGetRequestInformation list properties and relationships of the appleDeviceFeaturesConfigurationBase objects. // returns a *RequestInformation when successful func (m *DeviceConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go b/devicemanagement/device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go index 2b643ddc29..0f2ecf3182 100644 --- a/devicemanagement/device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go +++ b/devicemanagement/device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go @@ -64,11 +64,11 @@ func NewDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBu urlParams["request-raw-url"] = rawUrl return NewDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a deviceEnrollmentPlatformRestrictionsConfiguration. +// Delete deletes a deviceEnrollmentLimitConfiguration. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-delete?view=graph-rest-1.0 func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -106,12 +106,12 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable), nil } -// Patch update the properties of a deviceEnrollmentLimitConfiguration object. +// Patch update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. // returns a DeviceEnrollmentConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-update?view=graph-rest-1.0 func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -134,7 +134,7 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) SetPriority()(*DeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder) { return NewDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation deletes a deviceEnrollmentPlatformRestrictionsConfiguration. +// ToDeleteRequestInformation deletes a deviceEnrollmentLimitConfiguration. // returns a *RequestInformation when successful func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -159,7 +159,7 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a deviceEnrollmentLimitConfiguration object. +// ToPatchRequestInformation update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. // returns a *RequestInformation when successful func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_enrollment_configurations_request_builder.go b/devicemanagement/device_enrollment_configurations_request_builder.go index 3e43eb19e4..943defefef 100644 --- a/devicemanagement/device_enrollment_configurations_request_builder.go +++ b/devicemanagement/device_enrollment_configurations_request_builder.go @@ -11,7 +11,7 @@ import ( type DeviceEnrollmentConfigurationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the deviceEnrollmentConfiguration objects. +// DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. type DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewDeviceEnrollmentConfigurationsRequestBuilder(rawUrl string, requestAdapt func (m *DeviceEnrollmentConfigurationsRequestBuilder) Count()(*DeviceEnrollmentConfigurationsCountRequestBuilder) { return NewDeviceEnrollmentConfigurationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the deviceEnrollmentConfiguration objects. +// Get list properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. // returns a DeviceEnrollmentConfigurationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-list?view=graph-rest-1.0 func (m *DeviceEnrollmentConfigurationsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *DeviceEnrollmentConfigurationsRequestBuilder) Post(ctx context.Context, } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable), nil } -// ToGetRequestInformation list properties and relationships of the deviceEnrollmentConfiguration objects. +// ToGetRequestInformation list properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. // returns a *RequestInformation when successful func (m *DeviceEnrollmentConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_management_request_builder.go b/devicemanagement/device_management_request_builder.go index f8dc281aea..5afe7a52fa 100644 --- a/devicemanagement/device_management_request_builder.go +++ b/devicemanagement/device_management_request_builder.go @@ -122,7 +122,7 @@ func (m *DeviceManagementRequestBuilder) ExchangeConnectors()(*ExchangeConnector // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-androidforwork-devicemanagement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-enrollment-devicemanagement-get?view=graph-rest-1.0 func (m *DeviceManagementRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceManagementRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceManagementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -185,7 +185,7 @@ func (m *DeviceManagementRequestBuilder) NotificationMessageTemplates()(*Notific // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-androidforwork-devicemanagement-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-tem-devicemanagement-update?view=graph-rest-1.0 func (m *DeviceManagementRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceManagementable, requestConfiguration *DeviceManagementRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceManagementable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/devicemanagement/role_definitions_request_builder.go b/devicemanagement/role_definitions_request_builder.go index f475a23366..ec677498e8 100644 --- a/devicemanagement/role_definitions_request_builder.go +++ b/devicemanagement/role_definitions_request_builder.go @@ -11,7 +11,7 @@ import ( type RoleDefinitionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RoleDefinitionsRequestBuilderGetQueryParameters list properties and relationships of the roleDefinition objects. +// RoleDefinitionsRequestBuilderGetQueryParameters list properties and relationships of the deviceAndAppManagementRoleDefinition objects. type RoleDefinitionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewRoleDefinitionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da func (m *RoleDefinitionsRequestBuilder) Count()(*RoleDefinitionsCountRequestBuilder) { return NewRoleDefinitionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the roleDefinition objects. +// Get list properties and relationships of the deviceAndAppManagementRoleDefinition objects. // returns a RoleDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-list?view=graph-rest-1.0 func (m *RoleDefinitionsRequestBuilder) Get(ctx context.Context, requestConfiguration *RoleDefinitionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *RoleDefinitionsRequestBuilder) Post(ctx context.Context, body iadcd8112 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable), nil } -// ToGetRequestInformation list properties and relationships of the roleDefinition objects. +// ToGetRequestInformation list properties and relationships of the deviceAndAppManagementRoleDefinition objects. // returns a *RequestInformation when successful func (m *RoleDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RoleDefinitionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_retention_label_request_builder.go b/drives/item_items_item_retention_label_request_builder.go index e472b5a171..eb260627bb 100644 --- a/drives/item_items_item_retention_label_request_builder.go +++ b/drives/item_items_item_retention_label_request_builder.go @@ -93,12 +93,12 @@ func (m *ItemItemsItemRetentionLabelRequestBuilder) Get(ctx context.Context, req } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable), nil } -// Patch lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. +// Patch apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. // returns a ItemRetentionLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-lockorunlockrecord?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0 func (m *ItemItemsItemRetentionLabelRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemItemsItemRetentionLabelRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. +// ToPatchRequestInformation apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. // returns a *RequestInformation when successful func (m *ItemItemsItemRetentionLabelRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_add_request_builder.go b/drives/item_items_item_workbook_tables_add_request_builder.go index b1eb8a65bb..808418034c 100644 --- a/drives/item_items_item_workbook_tables_add_request_builder.go +++ b/drives/item_items_item_workbook_tables_add_request_builder.go @@ -31,12 +31,12 @@ func NewItemItemsItemWorkbookTablesAddRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesAddRequestBuilderInternal(urlParams, requestAdapter) } -// Post use this API to create a new Table. +// Post create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. // returns a WorkbookTableable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) Post(ctx context.Context, } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil } -// ToPostRequestInformation use this API to create a new Table. +// ToPostRequestInformation create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go index cfd54936ce..5f903bd102 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go @@ -31,12 +31,12 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderInternal(urlParams, requestAdapter) } -// Post use this API to create a new Table. +// Post create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. // returns a WorkbookTableable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx co } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil } -// ToPostRequestInformation use this API to create a new Table. +// ToPostRequestInformation create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/external/connections_item_items_external_item_item_request_builder.go b/external/connections_item_items_external_item_item_request_builder.go index a1ac084e7a..570aa37c17 100644 --- a/external/connections_item_items_external_item_item_request_builder.go +++ b/external/connections_item_items_external_item_item_request_builder.go @@ -106,12 +106,12 @@ func (m *ConnectionsItemItemsExternalItemItemRequestBuilder) Get(ctx context.Con func (m *ConnectionsItemItemsExternalItemItemRequestBuilder) MicrosoftGraphExternalConnectorsAddActivities()(*ConnectionsItemItemsItemMicrosoftGraphExternalConnectorsAddActivitiesRequestBuilder) { return NewConnectionsItemItemsItemMicrosoftGraphExternalConnectorsAddActivitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Put create a new externalItem object. +// Put update the properties of an externalItem object. // returns a ExternalItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-put-items?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-externalitem-update?view=graph-rest-1.0 func (m *ConnectionsItemItemsExternalItemItemRequestBuilder) Put(ctx context.Context, body i648e92ed22999203da3c8fad3bc63deefe974fd0d511e7f830d70ea0aff57ffc.ExternalItemable, requestConfiguration *ConnectionsItemItemsExternalItemItemRequestBuilderPutRequestConfiguration)(i648e92ed22999203da3c8fad3bc63deefe974fd0d511e7f830d70ea0aff57ffc.ExternalItemable, error) { requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -154,7 +154,7 @@ func (m *ConnectionsItemItemsExternalItemItemRequestBuilder) ToGetRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPutRequestInformation create a new externalItem object. +// ToPutRequestInformation update the properties of an externalItem object. // returns a *RequestInformation when successful func (m *ConnectionsItemItemsExternalItemItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body i648e92ed22999203da3c8fad3bc63deefe974fd0d511e7f830d70ea0aff57ffc.ExternalItemable, requestConfiguration *ConnectionsItemItemsExternalItemItemRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/groups_request_builder.go b/groups/groups_request_builder.go index 443889da01..3c46511b9e 100644 --- a/groups/groups_request_builder.go +++ b/groups/groups_request_builder.go @@ -114,12 +114,12 @@ func (m *GroupsRequestBuilder) GetAvailableExtensionProperties()(*GetAvailableEx func (m *GroupsRequestBuilder) GetByIds()(*GetByIdsRequestBuilder) { return NewGetByIdsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. +// Post create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-upsert?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-post-groups?view=graph-rest-1.0 func (m *GroupsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Groupable, requestConfiguration *GroupsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Groupable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -151,7 +151,7 @@ func (m *GroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. +// ToPostRequestInformation create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. // returns a *RequestInformation when successful func (m *GroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Groupable, requestConfiguration *GroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_conversations_conversation_item_request_builder.go b/groups/item_conversations_conversation_item_request_builder.go index cec5157b01..b2a85e78ab 100644 --- a/groups/item_conversations_conversation_item_request_builder.go +++ b/groups/item_conversations_conversation_item_request_builder.go @@ -18,7 +18,7 @@ type ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemConversationsConversationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of conversation object. +// ItemConversationsConversationItemRequestBuilderGetQueryParameters the group's conversations. type ItemConversationsConversationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -66,12 +66,12 @@ func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get retrieve the properties and relationships of conversation object. +// Get the group's conversations. // returns a Conversationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0 func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Conversationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -105,7 +105,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of conversation object. +// ToGetRequestInformation the group's conversations. // returns a *RequestInformation when successful func (m *ItemConversationsConversationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_conversations_item_threads_item_reply_request_builder.go b/groups/item_conversations_item_threads_item_reply_request_builder.go index 01fd23161c..0caa6b08a6 100644 --- a/groups/item_conversations_item_threads_item_reply_request_builder.go +++ b/groups/item_conversations_item_threads_item_reply_request_builder.go @@ -30,11 +30,11 @@ func NewItemConversationsItemThreadsItemReplyRequestBuilder(rawUrl string, reque urlParams["request-raw-url"] = rawUrl return NewItemConversationsItemThreadsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body ItemConversationsItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) Post(ctx context.C } return nil } -// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a *RequestInformation when successful func (m *ItemConversationsItemThreadsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemConversationsItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_conversations_request_builder.go b/groups/item_conversations_request_builder.go index 3ebc7a8359..292212aabe 100644 --- a/groups/item_conversations_request_builder.go +++ b/groups/item_conversations_request_builder.go @@ -99,12 +99,12 @@ func (m *ItemConversationsRequestBuilder) Get(ctx context.Context, requestConfig } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationCollectionResponseable), nil } -// Post use reply thread or reply post to further post to that conversation. +// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a Conversationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemConversationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Conversationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -136,7 +136,7 @@ func (m *ItemConversationsRequestBuilder) ToGetRequestInformation(ctx context.Co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use reply thread or reply post to further post to that conversation. +// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a *RequestInformation when successful func (m *ItemConversationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_team_schedule_day_notes_count_request_builder.go b/groups/item_team_schedule_day_notes_count_request_builder.go new file mode 100644 index 0000000000..078696c854 --- /dev/null +++ b/groups/item_team_schedule_day_notes_count_request_builder.go @@ -0,0 +1,80 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleDayNotesCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamScheduleDayNotesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleDayNotesCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamScheduleDayNotesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamScheduleDayNotesCountRequestBuilderGetQueryParameters +} +// NewItemTeamScheduleDayNotesCountRequestBuilderInternal instantiates a new ItemTeamScheduleDayNotesCountRequestBuilder and sets the default values. +func NewItemTeamScheduleDayNotesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleDayNotesCountRequestBuilder) { + m := &ItemTeamScheduleDayNotesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamScheduleDayNotesCountRequestBuilder instantiates a new ItemTeamScheduleDayNotesCountRequestBuilder and sets the default values. +func NewItemTeamScheduleDayNotesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleDayNotesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleDayNotesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleDayNotesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleDayNotesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleDayNotesCountRequestBuilder when successful +func (m *ItemTeamScheduleDayNotesCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleDayNotesCountRequestBuilder) { + return NewItemTeamScheduleDayNotesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_day_notes_day_note_item_request_builder.go b/groups/item_team_schedule_day_notes_day_note_item_request_builder.go new file mode 100644 index 0000000000..9cb27ecc52 --- /dev/null +++ b/groups/item_team_schedule_day_notes_day_note_item_request_builder.go @@ -0,0 +1,157 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleDayNotesDayNoteItemRequestBuilder provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +type ItemTeamScheduleDayNotesDayNoteItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters the day notes in the schedule. +type ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters +} +// ItemTeamScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamScheduleDayNotesDayNoteItemRequestBuilderInternal instantiates a new ItemTeamScheduleDayNotesDayNoteItemRequestBuilder and sets the default values. +func NewItemTeamScheduleDayNotesDayNoteItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) { + m := &ItemTeamScheduleDayNotesDayNoteItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes/{dayNote%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamScheduleDayNotesDayNoteItemRequestBuilder instantiates a new ItemTeamScheduleDayNotesDayNoteItemRequestBuilder and sets the default values. +func NewItemTeamScheduleDayNotesDayNoteItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleDayNotesDayNoteItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property dayNotes for groups +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the day notes in the schedule. +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// Patch update the navigation property dayNotes in groups +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemTeamScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// ToDeleteRequestInformation delete navigation property dayNotes for groups +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the day notes in the schedule. +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property dayNotes in groups +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemTeamScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder when successful +func (m *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) { + return NewItemTeamScheduleDayNotesDayNoteItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_day_notes_request_builder.go b/groups/item_team_schedule_day_notes_request_builder.go new file mode 100644 index 0000000000..e029764632 --- /dev/null +++ b/groups/item_team_schedule_day_notes_request_builder.go @@ -0,0 +1,152 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleDayNotesRequestBuilder provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +type ItemTeamScheduleDayNotesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters the day notes in the schedule. +type ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters +} +// ItemTeamScheduleDayNotesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleDayNotesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByDayNoteId provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +// returns a *ItemTeamScheduleDayNotesDayNoteItemRequestBuilder when successful +func (m *ItemTeamScheduleDayNotesRequestBuilder) ByDayNoteId(dayNoteId string)(*ItemTeamScheduleDayNotesDayNoteItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if dayNoteId != "" { + urlTplParams["dayNote%2Did"] = dayNoteId + } + return NewItemTeamScheduleDayNotesDayNoteItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamScheduleDayNotesRequestBuilderInternal instantiates a new ItemTeamScheduleDayNotesRequestBuilder and sets the default values. +func NewItemTeamScheduleDayNotesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleDayNotesRequestBuilder) { + m := &ItemTeamScheduleDayNotesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/dayNotes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamScheduleDayNotesRequestBuilder instantiates a new ItemTeamScheduleDayNotesRequestBuilder and sets the default values. +func NewItemTeamScheduleDayNotesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleDayNotesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleDayNotesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamScheduleDayNotesCountRequestBuilder when successful +func (m *ItemTeamScheduleDayNotesRequestBuilder) Count()(*ItemTeamScheduleDayNotesCountRequestBuilder) { + return NewItemTeamScheduleDayNotesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the day notes in the schedule. +// returns a DayNoteCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleDayNotesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable), nil +} +// Post create new navigation property to dayNotes for groups +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleDayNotesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemTeamScheduleDayNotesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// ToGetRequestInformation the day notes in the schedule. +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleDayNotesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to dayNotes for groups +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleDayNotesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemTeamScheduleDayNotesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleDayNotesRequestBuilder when successful +func (m *ItemTeamScheduleDayNotesRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleDayNotesRequestBuilder) { + return NewItemTeamScheduleDayNotesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_request_builder.go b/groups/item_team_schedule_request_builder.go index b0b6a9fefd..e2dbdf76e9 100644 --- a/groups/item_team_schedule_request_builder.go +++ b/groups/item_team_schedule_request_builder.go @@ -54,6 +54,11 @@ func NewItemTeamScheduleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d urlParams["request-raw-url"] = rawUrl return NewItemTeamScheduleRequestBuilderInternal(urlParams, requestAdapter) } +// DayNotes provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +// returns a *ItemTeamScheduleDayNotesRequestBuilder when successful +func (m *ItemTeamScheduleRequestBuilder) DayNotes()(*ItemTeamScheduleDayNotesRequestBuilder) { + return NewItemTeamScheduleDayNotesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Delete delete navigation property schedule for groups // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamScheduleRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamScheduleRequestBuilderDeleteRequestConfiguration)(error) { @@ -145,6 +150,11 @@ func (m *ItemTeamScheduleRequestBuilder) Shifts()(*ItemTeamScheduleShiftsRequest func (m *ItemTeamScheduleRequestBuilder) SwapShiftsChangeRequests()(*ItemTeamScheduleSwapShiftsChangeRequestsRequestBuilder) { return NewItemTeamScheduleSwapShiftsChangeRequestsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// TimeCards provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +// returns a *ItemTeamScheduleTimeCardsRequestBuilder when successful +func (m *ItemTeamScheduleRequestBuilder) TimeCards()(*ItemTeamScheduleTimeCardsRequestBuilder) { + return NewItemTeamScheduleTimeCardsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // TimeOffReasons provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity. // returns a *ItemTeamScheduleTimeOffReasonsRequestBuilder when successful func (m *ItemTeamScheduleRequestBuilder) TimeOffReasons()(*ItemTeamScheduleTimeOffReasonsRequestBuilder) { diff --git a/groups/item_team_schedule_time_cards_clock_in_post_request_body.go b/groups/item_team_schedule_time_cards_clock_in_post_request_body.go new file mode 100644 index 0000000000..6071ddb9e6 --- /dev/null +++ b/groups/item_team_schedule_time_cards_clock_in_post_request_body.go @@ -0,0 +1,151 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamScheduleTimeCardsClockInPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamScheduleTimeCardsClockInPostRequestBody instantiates a new ItemTeamScheduleTimeCardsClockInPostRequestBody and sets the default values. +func NewItemTeamScheduleTimeCardsClockInPostRequestBody()(*ItemTeamScheduleTimeCardsClockInPostRequestBody) { + m := &ItemTeamScheduleTimeCardsClockInPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamScheduleTimeCardsClockInPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemTeamScheduleTimeCardsClockInPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemTeamScheduleTimeCardsClockInPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/groups/item_team_schedule_time_cards_clock_in_request_builder.go b/groups/item_team_schedule_time_cards_clock_in_request_builder.go new file mode 100644 index 0000000000..762416f81f --- /dev/null +++ b/groups/item_team_schedule_time_cards_clock_in_request_builder.go @@ -0,0 +1,76 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleTimeCardsClockInRequestBuilder provides operations to call the clockIn method. +type ItemTeamScheduleTimeCardsClockInRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamScheduleTimeCardsClockInRequestBuilderInternal instantiates a new ItemTeamScheduleTimeCardsClockInRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsClockInRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsClockInRequestBuilder) { + m := &ItemTeamScheduleTimeCardsClockInRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/clockIn", pathParameters), + } + return m +} +// NewItemTeamScheduleTimeCardsClockInRequestBuilder instantiates a new ItemTeamScheduleTimeCardsClockInRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsClockInRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsClockInRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleTimeCardsClockInRequestBuilderInternal(urlParams, requestAdapter) +} +// Post clock in to start a timeCard. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/timecard-clockin?view=graph-rest-1.0 +func (m *ItemTeamScheduleTimeCardsClockInRequestBuilder) Post(ctx context.Context, body ItemTeamScheduleTimeCardsClockInPostRequestBodyable, requestConfiguration *ItemTeamScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation clock in to start a timeCard. +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsClockInRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamScheduleTimeCardsClockInPostRequestBodyable, requestConfiguration *ItemTeamScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleTimeCardsClockInRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsClockInRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleTimeCardsClockInRequestBuilder) { + return NewItemTeamScheduleTimeCardsClockInRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_time_cards_count_request_builder.go b/groups/item_team_schedule_time_cards_count_request_builder.go new file mode 100644 index 0000000000..52fcdb819e --- /dev/null +++ b/groups/item_team_schedule_time_cards_count_request_builder.go @@ -0,0 +1,80 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleTimeCardsCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamScheduleTimeCardsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleTimeCardsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamScheduleTimeCardsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamScheduleTimeCardsCountRequestBuilderGetQueryParameters +} +// NewItemTeamScheduleTimeCardsCountRequestBuilderInternal instantiates a new ItemTeamScheduleTimeCardsCountRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsCountRequestBuilder) { + m := &ItemTeamScheduleTimeCardsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamScheduleTimeCardsCountRequestBuilder instantiates a new ItemTeamScheduleTimeCardsCountRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleTimeCardsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleTimeCardsCountRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleTimeCardsCountRequestBuilder) { + return NewItemTeamScheduleTimeCardsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_time_cards_item_clock_out_post_request_body.go b/groups/item_team_schedule_time_cards_item_clock_out_post_request_body.go new file mode 100644 index 0000000000..e82118759d --- /dev/null +++ b/groups/item_team_schedule_time_cards_item_clock_out_post_request_body.go @@ -0,0 +1,151 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamScheduleTimeCardsItemClockOutPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamScheduleTimeCardsItemClockOutPostRequestBody instantiates a new ItemTeamScheduleTimeCardsItemClockOutPostRequestBody and sets the default values. +func NewItemTeamScheduleTimeCardsItemClockOutPostRequestBody()(*ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) { + m := &ItemTeamScheduleTimeCardsItemClockOutPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamScheduleTimeCardsItemClockOutPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemTeamScheduleTimeCardsItemClockOutPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/groups/item_team_schedule_time_cards_item_clock_out_request_builder.go b/groups/item_team_schedule_time_cards_item_clock_out_request_builder.go new file mode 100644 index 0000000000..7d20131bab --- /dev/null +++ b/groups/item_team_schedule_time_cards_item_clock_out_request_builder.go @@ -0,0 +1,73 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleTimeCardsItemClockOutRequestBuilder provides operations to call the clockOut method. +type ItemTeamScheduleTimeCardsItemClockOutRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamScheduleTimeCardsItemClockOutRequestBuilderInternal instantiates a new ItemTeamScheduleTimeCardsItemClockOutRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsItemClockOutRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsItemClockOutRequestBuilder) { + m := &ItemTeamScheduleTimeCardsItemClockOutRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/clockOut", pathParameters), + } + return m +} +// NewItemTeamScheduleTimeCardsItemClockOutRequestBuilder instantiates a new ItemTeamScheduleTimeCardsItemClockOutRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsItemClockOutRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsItemClockOutRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleTimeCardsItemClockOutRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clockOut +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsItemClockOutRequestBuilder) Post(ctx context.Context, body ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable, requestConfiguration *ItemTeamScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action clockOut +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsItemClockOutRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable, requestConfiguration *ItemTeamScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleTimeCardsItemClockOutRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsItemClockOutRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleTimeCardsItemClockOutRequestBuilder) { + return NewItemTeamScheduleTimeCardsItemClockOutRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_time_cards_item_confirm_request_builder.go b/groups/item_team_schedule_time_cards_item_confirm_request_builder.go new file mode 100644 index 0000000000..9eb05744bc --- /dev/null +++ b/groups/item_team_schedule_time_cards_item_confirm_request_builder.go @@ -0,0 +1,72 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleTimeCardsItemConfirmRequestBuilder provides operations to call the confirm method. +type ItemTeamScheduleTimeCardsItemConfirmRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamScheduleTimeCardsItemConfirmRequestBuilderInternal instantiates a new ItemTeamScheduleTimeCardsItemConfirmRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsItemConfirmRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsItemConfirmRequestBuilder) { + m := &ItemTeamScheduleTimeCardsItemConfirmRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/confirm", pathParameters), + } + return m +} +// NewItemTeamScheduleTimeCardsItemConfirmRequestBuilder instantiates a new ItemTeamScheduleTimeCardsItemConfirmRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsItemConfirmRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsItemConfirmRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleTimeCardsItemConfirmRequestBuilderInternal(urlParams, requestAdapter) +} +// Post confirm a timeCard. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/timecard-confirm?view=graph-rest-1.0 +func (m *ItemTeamScheduleTimeCardsItemConfirmRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation confirm a timeCard. +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsItemConfirmRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleTimeCardsItemConfirmRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsItemConfirmRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleTimeCardsItemConfirmRequestBuilder) { + return NewItemTeamScheduleTimeCardsItemConfirmRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_time_cards_item_end_break_post_request_body.go b/groups/item_team_schedule_time_cards_item_end_break_post_request_body.go new file mode 100644 index 0000000000..885cdb2069 --- /dev/null +++ b/groups/item_team_schedule_time_cards_item_end_break_post_request_body.go @@ -0,0 +1,151 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamScheduleTimeCardsItemEndBreakPostRequestBody instantiates a new ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody and sets the default values. +func NewItemTeamScheduleTimeCardsItemEndBreakPostRequestBody()(*ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) { + m := &ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamScheduleTimeCardsItemEndBreakPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/groups/item_team_schedule_time_cards_item_end_break_request_builder.go b/groups/item_team_schedule_time_cards_item_end_break_request_builder.go new file mode 100644 index 0000000000..ada39ac149 --- /dev/null +++ b/groups/item_team_schedule_time_cards_item_end_break_request_builder.go @@ -0,0 +1,73 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder provides operations to call the endBreak method. +type ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamScheduleTimeCardsItemEndBreakRequestBuilderInternal instantiates a new ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsItemEndBreakRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder) { + m := &ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/endBreak", pathParameters), + } + return m +} +// NewItemTeamScheduleTimeCardsItemEndBreakRequestBuilder instantiates a new ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsItemEndBreakRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleTimeCardsItemEndBreakRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action endBreak +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder) Post(ctx context.Context, body ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable, requestConfiguration *ItemTeamScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action endBreak +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable, requestConfiguration *ItemTeamScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder) { + return NewItemTeamScheduleTimeCardsItemEndBreakRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_time_cards_item_start_break_post_request_body.go b/groups/item_team_schedule_time_cards_item_start_break_post_request_body.go new file mode 100644 index 0000000000..866d97b953 --- /dev/null +++ b/groups/item_team_schedule_time_cards_item_start_break_post_request_body.go @@ -0,0 +1,151 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamScheduleTimeCardsItemStartBreakPostRequestBody instantiates a new ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody and sets the default values. +func NewItemTeamScheduleTimeCardsItemStartBreakPostRequestBody()(*ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) { + m := &ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamScheduleTimeCardsItemStartBreakPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/groups/item_team_schedule_time_cards_item_start_break_request_builder.go b/groups/item_team_schedule_time_cards_item_start_break_request_builder.go new file mode 100644 index 0000000000..342554824c --- /dev/null +++ b/groups/item_team_schedule_time_cards_item_start_break_request_builder.go @@ -0,0 +1,73 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder provides operations to call the startBreak method. +type ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamScheduleTimeCardsItemStartBreakRequestBuilderInternal instantiates a new ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsItemStartBreakRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder) { + m := &ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}/startBreak", pathParameters), + } + return m +} +// NewItemTeamScheduleTimeCardsItemStartBreakRequestBuilder instantiates a new ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsItemStartBreakRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleTimeCardsItemStartBreakRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action startBreak +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder) Post(ctx context.Context, body ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable, requestConfiguration *ItemTeamScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action startBreak +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable, requestConfiguration *ItemTeamScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder) { + return NewItemTeamScheduleTimeCardsItemStartBreakRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_time_cards_request_builder.go b/groups/item_team_schedule_time_cards_request_builder.go new file mode 100644 index 0000000000..2bb50f1fa4 --- /dev/null +++ b/groups/item_team_schedule_time_cards_request_builder.go @@ -0,0 +1,157 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleTimeCardsRequestBuilder provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +type ItemTeamScheduleTimeCardsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters the time cards in the schedule. +type ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters +} +// ItemTeamScheduleTimeCardsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByTimeCardId provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +// returns a *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsRequestBuilder) ByTimeCardId(timeCardId string)(*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if timeCardId != "" { + urlTplParams["timeCard%2Did"] = timeCardId + } + return NewItemTeamScheduleTimeCardsTimeCardItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ClockIn provides operations to call the clockIn method. +// returns a *ItemTeamScheduleTimeCardsClockInRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsRequestBuilder) ClockIn()(*ItemTeamScheduleTimeCardsClockInRequestBuilder) { + return NewItemTeamScheduleTimeCardsClockInRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamScheduleTimeCardsRequestBuilderInternal instantiates a new ItemTeamScheduleTimeCardsRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsRequestBuilder) { + m := &ItemTeamScheduleTimeCardsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamScheduleTimeCardsRequestBuilder instantiates a new ItemTeamScheduleTimeCardsRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleTimeCardsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamScheduleTimeCardsCountRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsRequestBuilder) Count()(*ItemTeamScheduleTimeCardsCountRequestBuilder) { + return NewItemTeamScheduleTimeCardsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the time cards in the schedule. +// returns a TimeCardCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable), nil +} +// Post create new navigation property to timeCards for groups +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemTeamScheduleTimeCardsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToGetRequestInformation the time cards in the schedule. +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to timeCards for groups +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemTeamScheduleTimeCardsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleTimeCardsRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleTimeCardsRequestBuilder) { + return NewItemTeamScheduleTimeCardsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_schedule_time_cards_time_card_item_request_builder.go b/groups/item_team_schedule_time_cards_time_card_item_request_builder.go new file mode 100644 index 0000000000..790b9d48d8 --- /dev/null +++ b/groups/item_team_schedule_time_cards_time_card_item_request_builder.go @@ -0,0 +1,177 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +type ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters the time cards in the schedule. +type ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters +} +// ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ClockOut provides operations to call the clockOut method. +// returns a *ItemTeamScheduleTimeCardsItemClockOutRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) ClockOut()(*ItemTeamScheduleTimeCardsItemClockOutRequestBuilder) { + return NewItemTeamScheduleTimeCardsItemClockOutRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Confirm provides operations to call the confirm method. +// returns a *ItemTeamScheduleTimeCardsItemConfirmRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) Confirm()(*ItemTeamScheduleTimeCardsItemConfirmRequestBuilder) { + return NewItemTeamScheduleTimeCardsItemConfirmRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamScheduleTimeCardsTimeCardItemRequestBuilderInternal instantiates a new ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsTimeCardItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) { + m := &ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/schedule/timeCards/{timeCard%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamScheduleTimeCardsTimeCardItemRequestBuilder instantiates a new ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder and sets the default values. +func NewItemTeamScheduleTimeCardsTimeCardItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamScheduleTimeCardsTimeCardItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property timeCards for groups +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// EndBreak provides operations to call the endBreak method. +// returns a *ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) EndBreak()(*ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder) { + return NewItemTeamScheduleTimeCardsItemEndBreakRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the time cards in the schedule. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// Patch update the navigation property timeCards in groups +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// StartBreak provides operations to call the startBreak method. +// returns a *ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) StartBreak()(*ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder) { + return NewItemTeamScheduleTimeCardsItemStartBreakRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property timeCards for groups +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the time cards in the schedule. +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property timeCards in groups +// returns a *RequestInformation when successful +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder when successful +func (m *ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder) { + return NewItemTeamScheduleTimeCardsTimeCardItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_threads_conversation_thread_item_request_builder.go b/groups/item_threads_conversation_thread_item_request_builder.go index be821a0db8..afe7e7d2c6 100644 --- a/groups/item_threads_conversation_thread_item_request_builder.go +++ b/groups/item_threads_conversation_thread_item_request_builder.go @@ -18,7 +18,7 @@ type ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters get a thread object. +// ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. type ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,12 +73,12 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get get a thread object. +// Get get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. // returns a ConversationThreadable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationThreadable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a thread object. +// ToGetRequestInformation get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. // returns a *RequestInformation when successful func (m *ItemThreadsConversationThreadItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_threads_item_reply_request_builder.go b/groups/item_threads_item_reply_request_builder.go index aa5013a5c7..fbdaa2d0b8 100644 --- a/groups/item_threads_item_reply_request_builder.go +++ b/groups/item_threads_item_reply_request_builder.go @@ -30,11 +30,11 @@ func NewItemThreadsItemReplyRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemThreadsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body ItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemThreadsItemReplyRequestBuilder) Post(ctx context.Context, body Item } return nil } -// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. +// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a *RequestInformation when successful func (m *ItemThreadsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemThreadsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/conditional_access_named_locations_named_location_item_request_builder.go b/identity/conditional_access_named_locations_named_location_item_request_builder.go index 8286ff8450..748c380084 100644 --- a/identity/conditional_access_named_locations_named_location_item_request_builder.go +++ b/identity/conditional_access_named_locations_named_location_item_request_builder.go @@ -54,11 +54,11 @@ func NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a namedLocation object. +// Delete delete a countryNamedLocation object. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(c } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable), nil } -// ToDeleteRequestInformation delete a namedLocation object. +// ToDeleteRequestInformation delete a countryNamedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/035dc70034b87a918d74c29c8ef01e0b77d6b98ba10a3145d6df9ad09f77c65b.go b/identitygovernance/035dc70034b87a918d74c29c8ef01e0b77d6b98ba10a3145d6df9ad09f77c65b.go index 22c3ef4f0d..0a22fd5ca3 100644 --- a/identitygovernance/035dc70034b87a918d74c29c8ef01e0b77d6b98ba10a3145d6df9ad09f77c65b.go +++ b/identitygovernance/035dc70034b87a918d74c29c8ef01e0b77d6b98ba10a3145d6df9ad09f77c65b.go @@ -96,12 +96,12 @@ func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutE } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable), nil } -// Patch update the properties of an accessPackageAssignmentWorkflowExtension object. +// Patch update the properties of an accessPackageAssignmentRequestWorkflowExtension object. // returns a CustomCalloutExtensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0 func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutE requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an accessPackageAssignmentWorkflowExtension object. +// ToPatchRequestInformation update the properties of an accessPackageAssignmentRequestWorkflowExtension object. // returns a *RequestInformation when successful func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go index b811636392..623afecb77 100644 --- a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderDeleteReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an accessPackage object. +// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -88,12 +88,12 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Del } return nil } -// Get retrieve the properties and relationships of an accessPackage object. +// Get retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. // returns a AccessPackageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackage-list-resourcerolescopes?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AccessPackageable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -165,7 +165,7 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToD requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an accessPackage object. +// ToGetRequestInformation retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go index e638276ce5..634b42e719 100644 --- a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go +++ b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go @@ -18,7 +18,7 @@ type TermsOfUseAgreementsAgreementItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an agreement object. +// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve all files related to an agreement. This includes the default file and all localized files. type TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -88,12 +88,12 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) File()(*TermsOfUseAgre func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Files()(*TermsOfUseAgreementsItemFilesRequestBuilder) { return NewTermsOfUseAgreementsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of an agreement object. +// Get retrieve all files related to an agreement. This includes the default file and all localized files. // returns a Agreementable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-list-files?view=graph-rest-1.0 func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Agreementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an agreement object. +// ToGetRequestInformation retrieve all files related to an agreement. This includes the default file and all localized files. // returns a *RequestInformation when successful func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/kiota-dom-export.txt b/kiota-dom-export.txt index 4dad642305..fb0da7b09d 100644 --- a/kiota-dom-export.txt +++ b/kiota-dom-export.txt @@ -96691,6 +96691,68 @@ github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamRequestBuilder::|public github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamRequestBuilder::|public|unarchive():*ItemTeamUnarchiveRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder.ItemTeamScheduleDayNotesCountRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder.ItemTeamScheduleDayNotesCountRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder.ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder.ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder.ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemTeamScheduleDayNotesCountRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration):*int32 +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesCountRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesCountRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleDayNotesCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder.ItemTeamScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|Patch(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesDayNoteItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleDayNotesDayNoteItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemTeamScheduleDayNotesRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder.ItemTeamScheduleDayNotesRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|ByDayNoteId(dayNoteId:string):*ItemTeamScheduleDayNotesDayNoteItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|Count():*ItemTeamScheduleDayNotesCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|Post(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleDayNotesRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleDayNotesRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleDayNotesRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleOfferShiftRequestsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleOfferShiftRequestsCountRequestBuilder.ItemTeamScheduleOfferShiftRequestsCountRequestBuilderGetQueryParameters::|public|Filter:*string github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleOfferShiftRequestsCountRequestBuilder.ItemTeamScheduleOfferShiftRequestsCountRequestBuilderGetQueryParameters::|public|Search:*string @@ -96889,6 +96951,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder. github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder.ItemTeamScheduleRequestBuilderPutRequestConfiguration::|public|options:[]RequestOption github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|dayNotes():*ItemTeamScheduleDayNotesRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleRequestBuilderDeleteRequestConfiguration):void github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Scheduleable github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|offerShiftRequests():*ItemTeamScheduleOfferShiftRequestsRequestBuilder @@ -96901,6 +96964,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder: github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|share():*ItemTeamScheduleShareRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|shifts():*ItemTeamScheduleShiftsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|swapShiftsChangeRequests():*ItemTeamScheduleSwapShiftsChangeRequestsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|timeCards():*ItemTeamScheduleTimeCardsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|timeOffReasons():*ItemTeamScheduleTimeOffReasonsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|timeOffRequests():*ItemTeamScheduleTimeOffRequestsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleRequestBuilder::|public|timesOff():*ItemTeamScheduleTimesOffRequestBuilder @@ -97130,6 +97194,208 @@ github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleSwapShiftsChang github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SwapShiftsChangeRequestable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilderPatchRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInPostRequestBody~~>ItemTeamScheduleTimeCardsClockInPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder.ItemTeamScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder.ItemTeamScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder::|public|Post(body:ItemTeamScheduleTimeCardsClockInPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder::|public|ToPostRequestInformation(body:ItemTeamScheduleTimeCardsClockInPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsClockInRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleTimeCardsClockInRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder.ItemTeamScheduleTimeCardsCountRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder.ItemTeamScheduleTimeCardsCountRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder.ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder.ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder.ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemTeamScheduleTimeCardsCountRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration):*int32 +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsCountRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsCountRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleTimeCardsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutPostRequestBody~~>ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder.ItemTeamScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder.ItemTeamScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder::|public|Post(body:ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder::|public|ToPostRequestInformation(body:ItemTeamScheduleTimeCardsItemClockOutPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemClockOutRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleTimeCardsItemClockOutRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder.ItemTeamScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder.ItemTeamScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder::|public|Post(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder::|public|ToPostRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemConfirmRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleTimeCardsItemConfirmRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakPostRequestBody~~>ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder::|public|Post(body:ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder::|public|ToPostRequestInformation(body:ItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakPostRequestBody~~>ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder::|public|Post(body:ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder::|public|ToPostRequestInformation(body:ItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemTeamScheduleTimeCardsRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder.ItemTeamScheduleTimeCardsRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|ByTimeCardId(timeCardId:string):*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|clockIn():*ItemTeamScheduleTimeCardsClockInRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|Count():*ItemTeamScheduleTimeCardsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|Post(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleTimeCardsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|clockOut():*ItemTeamScheduleTimeCardsItemClockOutRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|confirm():*ItemTeamScheduleTimeCardsItemConfirmRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|endBreak():*ItemTeamScheduleTimeCardsItemEndBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|Patch(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|startBreak():*ItemTeamScheduleTimeCardsItemStartBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemTeamScheduleTimeCardsTimeCardItemRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeOffReasonsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeOffReasonsCountRequestBuilder.ItemTeamScheduleTimeOffReasonsCountRequestBuilderGetQueryParameters::|public|Filter:*string github.com/microsoftgraph/msgraph-sdk-go/.groups.ItemTeamScheduleTimeOffReasonsCountRequestBuilder.ItemTeamScheduleTimeOffReasonsCountRequestBuilderGetQueryParameters::|public|Search:*string @@ -120373,6 +120639,9 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.allLicensedUsersAssignmentTarge github.com/microsoftgraph/msgraph-sdk-go/.models.allLicensedUsersAssignmentTarget::|public|Serialize(writer:SerializationWriter):void github.com/microsoftgraph/msgraph-sdk-go/.models.allLicensedUsersAssignmentTarget::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.allLicensedUsersAssignmentTargetable~~>DeviceAndAppManagementAssignmentTargetable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.allowedLobbyAdmitterRoles::0000-organizerAndCoOrganizersAndPresenters +github.com/microsoftgraph/msgraph-sdk-go/.models.allowedLobbyAdmitterRoles::0001-organizerAndCoOrganizers +github.com/microsoftgraph/msgraph-sdk-go/.models.allowedLobbyAdmitterRoles::0002-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.allowedTargetScope::0000-notSpecified github.com/microsoftgraph/msgraph-sdk-go/.models.allowedTargetScope::0001-specificDirectoryUsers github.com/microsoftgraph/msgraph-sdk-go/.models.allowedTargetScope::0002-specificConnectedOrganizationUsers @@ -128733,19 +129002,23 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.certificationControl~~>Certific github.com/microsoftgraph/msgraph-sdk-go/.models.certification~~>Certificationable github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|GetCreatedBy():IdentitySetable github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|GetLastModifiedBy():IdentitySetable github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|GetLastModifiedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|SetCreatedBy(value:IdentitySetable):void github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|SetLastModifiedBy(value:IdentitySetable):void github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|public|SetLastModifiedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntity::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntityable::|public|GetCreatedBy():IdentitySetable github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntityable::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntityable::|public|GetLastModifiedBy():IdentitySetable github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntityable::|public|GetLastModifiedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntityable::|public|SetCreatedBy(value:IdentitySetable):void github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntityable::|public|SetCreatedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntityable::|public|SetLastModifiedBy(value:IdentitySetable):void github.com/microsoftgraph/msgraph-sdk-go/.models.changeTrackedEntityable::|public|SetLastModifiedDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void @@ -132188,6 +132461,10 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.configurationManagerCollectionA github.com/microsoftgraph/msgraph-sdk-go/.models.configurationManagerCollectionAssignmentTargetable::|public|GetCollectionId():*string github.com/microsoftgraph/msgraph-sdk-go/.models.configurationManagerCollectionAssignmentTargetable::|public|SetCollectionId(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.configurationManagerCollectionAssignmentTargetable~~>DeviceAndAppManagementAssignmentTargetable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.confirmedBy::0000-none +github.com/microsoftgraph/msgraph-sdk-go/.models.confirmedBy::0001-user +github.com/microsoftgraph/msgraph-sdk-go/.models.confirmedBy::0002-manager +github.com/microsoftgraph/msgraph-sdk-go/.models.confirmedBy::0003-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.connectedOrganization-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.connectedOrganization::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.connectedOrganization::|public|GetCreatedDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time @@ -133904,6 +134181,35 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.daylightTimeZoneOffset::|static github.com/microsoftgraph/msgraph-sdk-go/.models.daylightTimeZoneOffsetable::|public|GetDaylightBias():*int32 github.com/microsoftgraph/msgraph-sdk-go/.models.daylightTimeZoneOffsetable::|public|SetDaylightBias(value:*int32):void github.com/microsoftgraph/msgraph-sdk-go/.models.daylightTimeZoneOffsetable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable; StandardTimeZoneOffsetable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote-->*ChangeTrackedEntity +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|GetDayNoteDate():*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|GetDraftDayNote():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|GetSharedDayNote():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|SetDayNoteDate(value:*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|SetDraftDayNote(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|public|SetSharedDayNote(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNote::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteable::|public|GetDayNoteDate():*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteable::|public|GetDraftDayNote():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteable::|public|GetSharedDayNote():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteable::|public|SetDayNoteDate(value:*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteable::|public|SetDraftDayNote(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteable::|public|SetSharedDayNote(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteable~~>ChangeTrackedEntityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponse-->*BaseCollectionPaginationCountResponse +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponse::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponse::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponse::|public|GetValue():[]DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponse::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponse::|public|SetValue(value:[]DayNoteable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponse::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponseable::|public|GetValue():[]DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponseable::|public|SetValue(value:[]DayNoteable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.dayNoteCollectionResponseable~~>BaseCollectionPaginationCountResponseable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.dayOfWeek::0000-sunday github.com/microsoftgraph/msgraph-sdk-go/.models.dayOfWeek::0001-monday github.com/microsoftgraph/msgraph-sdk-go/.models.dayOfWeek::0002-tuesday @@ -151476,6 +151782,9 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.meetingInfoable::|public|SetBac github.com/microsoftgraph/msgraph-sdk-go/.models.meetingInfoable::|public|SetOdataType(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.meetingInfoable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.meetingInfo~~>MeetingInfoable +github.com/microsoftgraph/msgraph-sdk-go/.models.meetingLiveShareOptions::0000-enabled +github.com/microsoftgraph/msgraph-sdk-go/.models.meetingLiveShareOptions::0001-disabled +github.com/microsoftgraph/msgraph-sdk-go/.models.meetingLiveShareOptions::0002-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.meetingMessageType::0000-none github.com/microsoftgraph/msgraph-sdk-go/.models.meetingMessageType::0001-meetingRequest github.com/microsoftgraph/msgraph-sdk-go/.models.meetingMessageType::0002-meetingCancelled @@ -154631,12 +154940,17 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowAttendeeToEnableCamera():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowAttendeeToEnableMic():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowBreakoutRooms():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowedLobbyAdmitters():*AllowedLobbyAdmitterRoles github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowedPresenters():*OnlineMeetingPresenters +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowLiveShare():*MeetingLiveShareOptions github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowMeetingChat():*MeetingChatMode github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowParticipantsToChangeName():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowPowerPointSharing():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowRecording():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowTeamworkReactions():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowTranscription():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAllowWhiteboard():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAttendanceReports():[]MeetingAttendanceReportable github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetAudioConferencing():AudioConferencingable github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|GetChatInfo():ChatInfoable @@ -154656,12 +154970,17 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|Odat github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|Serialize(writer:SerializationWriter):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowAttendeeToEnableCamera(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowAttendeeToEnableMic(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowBreakoutRooms(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowedLobbyAdmitters(value:*AllowedLobbyAdmitterRoles):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowedPresenters(value:*OnlineMeetingPresenters):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowLiveShare(value:*MeetingLiveShareOptions):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowMeetingChat(value:*MeetingChatMode):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowParticipantsToChangeName(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowPowerPointSharing(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowRecording(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowTeamworkReactions(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowTranscription(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAllowWhiteboard(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAttendanceReports(value:[]MeetingAttendanceReportable):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetAudioConferencing(value:AudioConferencingable):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetChatInfo(value:ChatInfoable):void @@ -154679,12 +154998,17 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|public|SetW github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBase::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowAttendeeToEnableCamera():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowAttendeeToEnableMic():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowBreakoutRooms():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowedLobbyAdmitters():*AllowedLobbyAdmitterRoles github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowedPresenters():*OnlineMeetingPresenters +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowLiveShare():*MeetingLiveShareOptions github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowMeetingChat():*MeetingChatMode github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowParticipantsToChangeName():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowPowerPointSharing():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowRecording():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowTeamworkReactions():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowTranscription():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAllowWhiteboard():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAttendanceReports():[]MeetingAttendanceReportable github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetAudioConferencing():AudioConferencingable github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetChatInfo():ChatInfoable @@ -154701,12 +155025,17 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public| github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|GetWatermarkProtection():WatermarkProtectionValuesable github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowAttendeeToEnableCamera(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowAttendeeToEnableMic(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowBreakoutRooms(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowedLobbyAdmitters(value:*AllowedLobbyAdmitterRoles):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowedPresenters(value:*OnlineMeetingPresenters):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowLiveShare(value:*MeetingLiveShareOptions):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowMeetingChat(value:*MeetingChatMode):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowParticipantsToChangeName(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowPowerPointSharing(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowRecording(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowTeamworkReactions(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowTranscription(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAllowWhiteboard(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAttendanceReports(value:[]MeetingAttendanceReportable):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetAudioConferencing(value:AudioConferencingable):void github.com/microsoftgraph/msgraph-sdk-go/.models.onlineMeetingBaseable::|public|SetChatInfo(value:ChatInfoable):void @@ -164495,8 +164824,10 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.samlSingleSignOnSettingsable~~> github.com/microsoftgraph/msgraph-sdk-go/.models.samlSingleSignOnSettings~~>SamlSingleSignOnSettingsable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule-->*Entity github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetDayNotes():[]DayNoteable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetEnabled():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetIsActivitiesIncludedWhenCopyingShiftsEnabled():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetOfferShiftRequests():[]OfferShiftRequestable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetOfferShiftRequestsEnabled():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetOpenShiftChangeRequests():[]OpenShiftChangeRequestable @@ -164506,9 +164837,12 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetProvisionS github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetProvisionStatusCode():*string github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetSchedulingGroups():[]SchedulingGroupable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetShifts():[]Shiftable +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetStartDayOfWeek():*DayOfWeek github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetSwapShiftsChangeRequests():[]SwapShiftsChangeRequestable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetSwapShiftsRequestsEnabled():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetTimeCards():[]TimeCardable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetTimeClockEnabled():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetTimeClockSettings():TimeClockSettingsable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetTimeOffReasons():[]TimeOffReasonable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetTimeOffRequests():[]TimeOffRequestable github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetTimeOffRequestsEnabled():*bool @@ -164517,7 +164851,9 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetTimeZone() github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|GetWorkforceIntegrationIds():[]string github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetDayNotes(value:[]DayNoteable):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetEnabled(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetIsActivitiesIncludedWhenCopyingShiftsEnabled(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetOfferShiftRequests(value:[]OfferShiftRequestable):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetOfferShiftRequestsEnabled(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetOpenShiftChangeRequests(value:[]OpenShiftChangeRequestable):void @@ -164527,9 +164863,12 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetProvisionS github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetProvisionStatusCode(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetSchedulingGroups(value:[]SchedulingGroupable):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetShifts(value:[]Shiftable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetStartDayOfWeek(value:*DayOfWeek):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetSwapShiftsChangeRequests(value:[]SwapShiftsChangeRequestable):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetSwapShiftsRequestsEnabled(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetTimeCards(value:[]TimeCardable):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetTimeClockEnabled(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetTimeClockSettings(value:TimeClockSettingsable):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetTimeOffReasons(value:[]TimeOffReasonable):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetTimeOffRequests(value:[]TimeOffRequestable):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetTimeOffRequestsEnabled(value:*bool):void @@ -164537,7 +164876,9 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetTimesOff(v github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetTimeZone(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|public|SetWorkforceIntegrationIds(value:[]string):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedule::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetDayNotes():[]DayNoteable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetEnabled():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetIsActivitiesIncludedWhenCopyingShiftsEnabled():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetOfferShiftRequests():[]OfferShiftRequestable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetOfferShiftRequestsEnabled():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetOpenShiftChangeRequests():[]OpenShiftChangeRequestable @@ -164547,16 +164888,21 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetProvis github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetProvisionStatusCode():*string github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetSchedulingGroups():[]SchedulingGroupable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetShifts():[]Shiftable +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetStartDayOfWeek():*DayOfWeek github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetSwapShiftsChangeRequests():[]SwapShiftsChangeRequestable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetSwapShiftsRequestsEnabled():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetTimeCards():[]TimeCardable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetTimeClockEnabled():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetTimeClockSettings():TimeClockSettingsable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetTimeOffReasons():[]TimeOffReasonable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetTimeOffRequests():[]TimeOffRequestable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetTimeOffRequestsEnabled():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetTimesOff():[]TimeOffable github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetTimeZone():*string github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|GetWorkforceIntegrationIds():[]string +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetDayNotes(value:[]DayNoteable):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetEnabled(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetIsActivitiesIncludedWhenCopyingShiftsEnabled(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetOfferShiftRequests(value:[]OfferShiftRequestable):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetOfferShiftRequestsEnabled(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetOpenShiftChangeRequests(value:[]OpenShiftChangeRequestable):void @@ -164566,9 +164912,12 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetProvis github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetProvisionStatusCode(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetSchedulingGroups(value:[]SchedulingGroupable):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetShifts(value:[]Shiftable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetStartDayOfWeek(value:*DayOfWeek):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetSwapShiftsChangeRequests(value:[]SwapShiftsChangeRequestable):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetSwapShiftsRequestsEnabled(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetTimeCards(value:[]TimeCardable):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetTimeClockEnabled(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetTimeClockSettings(value:TimeClockSettingsable):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetTimeOffReasons(value:[]TimeOffReasonable):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetTimeOffRequests(value:[]TimeOffRequestable):void github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleable::|public|SetTimeOffRequestsEnabled(value:*bool):void @@ -164753,19 +165102,23 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleRequestActions::0008-se github.com/microsoftgraph/msgraph-sdk-go/.models.scheduleRequestActions::0009-unknownFutureValue github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup-->*ChangeTrackedEntity github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|GetCode():*string github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|GetIsActive():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|GetUserIds():[]string github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|SetCode(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|SetIsActive(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|public|SetUserIds(value:[]string):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroup::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroupable::|public|GetCode():*string github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroupable::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroupable::|public|GetIsActive():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroupable::|public|GetUserIds():[]string +github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroupable::|public|SetCode(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroupable::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroupable::|public|SetIsActive(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.schedulingGroupable::|public|SetUserIds(value:[]string):void @@ -178528,6 +178881,167 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.ticketInfoable::|public|SetTick github.com/microsoftgraph/msgraph-sdk-go/.models.ticketInfoable::|public|SetTicketSystem(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.ticketInfoable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable github.com/microsoftgraph/msgraph-sdk-go/.models.ticketInfo~~>TicketInfoable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard-->*ChangeTrackedEntity +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|GetBreaks():[]TimeCardBreakable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|GetClockInEvent():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|GetClockOutEvent():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|GetConfirmedBy():*ConfirmedBy +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|GetNotes():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|GetOriginalEntry():TimeCardEntryable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|GetState():*TimeCardState +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|GetUserId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|OdataType:*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|SetBreaks(value:[]TimeCardBreakable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|SetClockInEvent(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|SetClockOutEvent(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|SetConfirmedBy(value:*ConfirmedBy):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|SetNotes(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|SetOriginalEntry(value:TimeCardEntryable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|SetState(value:*TimeCardState):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|public|SetUserId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCard::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|GetBreaks():[]TimeCardBreakable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|GetClockInEvent():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|GetClockOutEvent():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|GetConfirmedBy():*ConfirmedBy +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|GetNotes():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|GetOriginalEntry():TimeCardEntryable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|GetState():*TimeCardState +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|GetUserId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|SetBreaks(value:[]TimeCardBreakable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|SetClockInEvent(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|SetClockOutEvent(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|SetConfirmedBy(value:*ConfirmedBy):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|SetNotes(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|SetOriginalEntry(value:TimeCardEntryable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|SetState(value:*TimeCardState):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable::|public|SetUserId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardable~~>ChangeTrackedEntityable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|GetBreakId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|GetEnd():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|GetNotes():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|GetStart():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|SetBreakId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|SetEnd(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|SetNotes(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|public|SetStart(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|GetBreakId():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|GetEnd():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|GetNotes():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|GetStart():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|SetBreakId(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|SetEnd(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|SetNotes(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable::|public|SetStart(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreakable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardBreak~~>TimeCardBreakable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponse-->*BaseCollectionPaginationCountResponse +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponse::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponse::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponse::|public|GetValue():[]TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponse::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponse::|public|SetValue(value:[]TimeCardable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponse::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponseable::|public|GetValue():[]TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponseable::|public|SetValue(value:[]TimeCardable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardCollectionResponseable~~>BaseCollectionPaginationCountResponseable; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|GetBreaks():[]TimeCardBreakable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|GetClockInEvent():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|GetClockOutEvent():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|SetBreaks(value:[]TimeCardBreakable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|SetClockInEvent(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|SetClockOutEvent(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|GetBreaks():[]TimeCardBreakable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|GetClockInEvent():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|GetClockOutEvent():TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|SetBreaks(value:[]TimeCardBreakable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|SetClockInEvent(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|SetClockOutEvent(value:TimeCardEventable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntryable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEntry~~>TimeCardEntryable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|GetDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|GetNotes():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|SetDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|SetNotes(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|GetDateTime():*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|GetNotes():ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|SetDateTime(value:*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|SetNotes(value:ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEventable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardEvent~~>TimeCardEventable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardState::0000-clockedIn +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardState::0001-onBreak +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardState::0002-clockedOut +github.com/microsoftgraph/msgraph-sdk-go/.models.timeCardState::0003-unknownFutureValue +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|GetApprovedLocation():GeoCoordinatesable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|SetApprovedLocation(value:GeoCoordinatesable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettingsable::|public|GetApprovedLocation():GeoCoordinatesable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettingsable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettingsable::|public|GetOdataType():*string +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettingsable::|public|SetApprovedLocation(value:GeoCoordinatesable):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettingsable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettingsable::|public|SetOdataType(value:*string):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettingsable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeClockSettings~~>TimeClockSettingsable github.com/microsoftgraph/msgraph-sdk-go/.models.timeConstraint::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.timeConstraint::|public|GetActivityDomain():*ActivityDomain github.com/microsoftgraph/msgraph-sdk-go/.models.timeConstraint::|public|GetAdditionalData():map[string]any @@ -178598,19 +179112,23 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffItemable::|public|SetTim github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffItemable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable; ScheduleEntityable github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason-->*ChangeTrackedEntity github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|GetCode():*string github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|GetIconType():*TimeOffReasonIconType github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|GetIsActive():*bool github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|OdataType:*string github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|SetCode(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|SetIconType(value:*TimeOffReasonIconType):void github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|public|SetIsActive(value:*bool):void github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReason::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReasonable::|public|GetCode():*string github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReasonable::|public|GetDisplayName():*string github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReasonable::|public|GetIconType():*TimeOffReasonIconType github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReasonable::|public|GetIsActive():*bool +github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReasonable::|public|SetCode(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReasonable::|public|SetDisplayName(value:*string):void github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReasonable::|public|SetIconType(value:*TimeOffReasonIconType):void github.com/microsoftgraph/msgraph-sdk-go/.models.timeOffReasonable::|public|SetIsActive(value:*bool):void @@ -189929,9 +190447,10 @@ github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEn github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0005-openShiftRequest github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0006-offerShiftRequest github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0007-unknownFutureValue -github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0008-timeOffReason -github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0009-timeOff -github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0010-timeOffRequest +github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0008-timeCard +github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0009-timeOffReason +github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0010-timeOff +github.com/microsoftgraph/msgraph-sdk-go/.models.workforceIntegrationSupportedEntities::0011-timeOffRequest github.com/microsoftgraph/msgraph-sdk-go/.models.workingHours::|public|constructor():void github.com/microsoftgraph/msgraph-sdk-go/.models.workingHours::|public|GetAdditionalData():map[string]any github.com/microsoftgraph/msgraph-sdk-go/.models.workingHours::|public|GetBackingStore():BackingStore @@ -235493,6 +236012,68 @@ github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemPrimaryChannelUnarchiveReque github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemPrimaryChannelUnarchiveRequestBuilder::|public|ToPostRequestInformation(ctx:context.Context; requestConfiguration?:*ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemPrimaryChannelUnarchiveRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemPrimaryChannelUnarchiveRequestBuilder::|public|WithUrl(rawUrl:string):*ItemPrimaryChannelUnarchiveRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder.ItemScheduleDayNotesCountRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder.ItemScheduleDayNotesCountRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder.ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder.ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder.ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemScheduleDayNotesCountRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration):*int32 +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesCountRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleDayNotesCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder.ItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|Patch(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesDayNoteItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleDayNotesDayNoteItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemScheduleDayNotesRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder.ItemScheduleDayNotesRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|ByDayNoteId(dayNoteId:string):*ItemScheduleDayNotesDayNoteItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|Count():*ItemScheduleDayNotesCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|Post(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemScheduleDayNotesRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleDayNotesRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleDayNotesRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleOfferShiftRequestsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleOfferShiftRequestsCountRequestBuilder.ItemScheduleOfferShiftRequestsCountRequestBuilderGetQueryParameters::|public|Filter:*string github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleOfferShiftRequestsCountRequestBuilder.ItemScheduleOfferShiftRequestsCountRequestBuilderGetQueryParameters::|public|Search:*string @@ -235691,6 +236272,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder.ItemS github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder.ItemScheduleRequestBuilderPutRequestConfiguration::|public|options:[]RequestOption github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|dayNotes():*ItemScheduleDayNotesRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemScheduleRequestBuilderDeleteRequestConfiguration):void github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemScheduleRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Scheduleable github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|offerShiftRequests():*ItemScheduleOfferShiftRequestsRequestBuilder @@ -235703,6 +236285,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|pub github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|share():*ItemScheduleShareRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|shifts():*ItemScheduleShiftsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|swapShiftsChangeRequests():*ItemScheduleSwapShiftsChangeRequestsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|timeCards():*ItemScheduleTimeCardsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|timeOffReasons():*ItemScheduleTimeOffReasonsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|timeOffRequests():*ItemScheduleTimeOffRequestsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleRequestBuilder::|public|timesOff():*ItemScheduleTimesOffRequestBuilder @@ -235932,6 +236515,208 @@ github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleSwapShiftsChangeRequ github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SwapShiftsChangeRequestable; ctx:context.Context; requestConfiguration?:*ItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilderPatchRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInPostRequestBody~~>ItemScheduleTimeCardsClockInPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder.ItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder.ItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder::|public|Post(body:ItemScheduleTimeCardsClockInPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder::|public|ToPostRequestInformation(body:ItemScheduleTimeCardsClockInPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsClockInRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleTimeCardsClockInRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder.ItemScheduleTimeCardsCountRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder.ItemScheduleTimeCardsCountRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder.ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder.ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder.ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemScheduleTimeCardsCountRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration):*int32 +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsCountRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleTimeCardsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutPostRequestBody~~>ItemScheduleTimeCardsItemClockOutPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder.ItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder.ItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder::|public|Post(body:ItemScheduleTimeCardsItemClockOutPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder::|public|ToPostRequestInformation(body:ItemScheduleTimeCardsItemClockOutPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemClockOutRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleTimeCardsItemClockOutRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder.ItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder.ItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder::|public|Post(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder::|public|ToPostRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemConfirmRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleTimeCardsItemConfirmRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakPostRequestBody~~>ItemScheduleTimeCardsItemEndBreakPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder.ItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder.ItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|Post(body:ItemScheduleTimeCardsItemEndBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|ToPostRequestInformation(body:ItemScheduleTimeCardsItemEndBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleTimeCardsItemEndBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakPostRequestBody~~>ItemScheduleTimeCardsItemStartBreakPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder.ItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder.ItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|Post(body:ItemScheduleTimeCardsItemStartBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|ToPostRequestInformation(body:ItemScheduleTimeCardsItemStartBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleTimeCardsItemStartBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemScheduleTimeCardsRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder.ItemScheduleTimeCardsRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|ByTimeCardId(timeCardId:string):*ItemScheduleTimeCardsTimeCardItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|clockIn():*ItemScheduleTimeCardsClockInRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|Count():*ItemScheduleTimeCardsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|Post(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleTimeCardsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|clockOut():*ItemScheduleTimeCardsItemClockOutRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|confirm():*ItemScheduleTimeCardsItemConfirmRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|endBreak():*ItemScheduleTimeCardsItemEndBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|Patch(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|startBreak():*ItemScheduleTimeCardsItemStartBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemScheduleTimeCardsTimeCardItemRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeOffReasonsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeOffReasonsCountRequestBuilder.ItemScheduleTimeOffReasonsCountRequestBuilderGetQueryParameters::|public|Filter:*string github.com/microsoftgraph/msgraph-sdk-go/.teams.ItemScheduleTimeOffReasonsCountRequestBuilder.ItemScheduleTimeOffReasonsCountRequestBuilderGetQueryParameters::|public|Search:*string @@ -254308,6 +255093,68 @@ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemPrimaryChanne github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder::|public|ToPostRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration):*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|Patch(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder.ItemJoinedTeamsItemScheduleDayNotesRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|ByDayNoteId(dayNoteId:string):*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|Count():*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|Post(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleDayNotesRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleDayNotesRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleDayNotesRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleOfferShiftRequestsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleOfferShiftRequestsCountRequestBuilder.ItemJoinedTeamsItemScheduleOfferShiftRequestsCountRequestBuilderGetQueryParameters::|public|Filter:*string github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleOfferShiftRequestsCountRequestBuilder.ItemJoinedTeamsItemScheduleOfferShiftRequestsCountRequestBuilderGetQueryParameters::|public|Search:*string @@ -254506,6 +255353,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleReque github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder.ItemJoinedTeamsItemScheduleRequestBuilderPutRequestConfiguration::|public|options:[]RequestOption github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|dayNotes():*ItemJoinedTeamsItemScheduleDayNotesRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleRequestBuilderDeleteRequestConfiguration):void github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Scheduleable github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|offerShiftRequests():*ItemJoinedTeamsItemScheduleOfferShiftRequestsRequestBuilder @@ -254518,6 +255366,7 @@ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleReque github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|share():*ItemJoinedTeamsItemScheduleShareRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|shifts():*ItemJoinedTeamsItemScheduleShiftsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|swapShiftsChangeRequests():*ItemJoinedTeamsItemScheduleSwapShiftsChangeRequestsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|timeCards():*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|timeOffReasons():*ItemJoinedTeamsItemScheduleTimeOffReasonsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|timeOffRequests():*ItemJoinedTeamsItemScheduleTimeOffRequestsRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleRequestBuilder::|public|timesOff():*ItemJoinedTeamsItemScheduleTimesOffRequestBuilder @@ -254747,6 +255596,208 @@ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleSwapS github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SwapShiftsChangeRequestable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilderPatchRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleSwapShiftsChangeRequestsSwapShiftsChangeRequestItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody~~>ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder::|public|Post(body:ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder::|public|ToPostRequestInformation(body:ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration):*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody~~>ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder::|public|Post(body:ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder::|public|ToPostRequestInformation(body:ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder::|public|Post(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder::|public|ToPostRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody~~>ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|Post(body:ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|ToPostRequestInformation(body:ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|constructor():void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetAdditionalData():map[string]any +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|getFieldDeserializers():map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|Serialize(writer:SerializationWriter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetAdditionalData(value:map[string]any):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody::|static|public|CreateFromDiscriminatorValue(parseNode:ParseNode):Parsable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetBackingStore():BackingStore +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetIsAtApprovedLocation():*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|GetNotes():iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetBackingStore(value:BackingStore):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetIsAtApprovedLocation(value:*bool):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable::|public|SetNotes(value:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable~~>*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder; *ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel; *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody~~>ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|Post(body:ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|ToPostRequestInformation(body:ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Count:*bool +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Filter:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Orderby:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Search:*string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Skip:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters::|public|Top:*int32 +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderPostRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderPostRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|ByTimeCardId(timeCardId:string):*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|clockIn():*ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|Count():*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|Post(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderPostRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderPostRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters::|public|Expand:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters::|public|Select:[]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration::|public|queryParameters:*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration::|public|headers:*RequestHeaders +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration::|public|options:[]RequestOption +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|clockOut():*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|confirm():*ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration):void +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|endBreak():*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|Patch(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|pathParameters:map[string]string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|requestAdapter:RequestAdapter +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|startBreak():*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|ToPatchRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable; ctx:context.Context; requestConfiguration?:*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration):*RequestInformation +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|urlTemplate:string +github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder::|public|WithUrl(rawUrl:string):*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeOffReasonsCountRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeOffReasonsCountRequestBuilder.ItemJoinedTeamsItemScheduleTimeOffReasonsCountRequestBuilderGetQueryParameters::|public|Filter:*string github.com/microsoftgraph/msgraph-sdk-go/.users.ItemJoinedTeamsItemScheduleTimeOffReasonsCountRequestBuilder.ItemJoinedTeamsItemScheduleTimeOffReasonsCountRequestBuilderGetQueryParameters::|public|Search:*string @@ -257600,25 +258651,6 @@ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagedDevicesRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagedDevicesRequestBuilder::|public|ToPostRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedDeviceable; ctx:context.Context; requestConfiguration?:*ItemManagedDevicesRequestBuilderPostRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagedDevicesRequestBuilder::|public|urlTemplate:string github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagedDevicesRequestBuilder::|public|WithUrl(rawUrl:string):*ItemManagedDevicesRequestBuilder -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder.ItemManagerRefRequestBuilderDeleteRequestConfiguration::|public|headers:*RequestHeaders -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder.ItemManagerRefRequestBuilderDeleteRequestConfiguration::|public|options:[]RequestOption -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder.ItemManagerRefRequestBuilderGetRequestConfiguration::|public|headers:*RequestHeaders -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder.ItemManagerRefRequestBuilderGetRequestConfiguration::|public|options:[]RequestOption -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder.ItemManagerRefRequestBuilderPutRequestConfiguration::|public|headers:*RequestHeaders -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder.ItemManagerRefRequestBuilderPutRequestConfiguration::|public|options:[]RequestOption -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|constructor(pathParameters:map[string]string; requestAdapter:RequestAdapter):void -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|Delete(ctx:context.Context; requestConfiguration?:*ItemManagerRefRequestBuilderDeleteRequestConfiguration):void -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemManagerRefRequestBuilderGetRequestConfiguration):*string -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|pathParameters:map[string]string -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|Put(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ReferenceUpdateable; ctx:context.Context; requestConfiguration?:*ItemManagerRefRequestBuilderPutRequestConfiguration):void -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|requestAdapter:RequestAdapter -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|ToDeleteRequestInformation(ctx:context.Context; requestConfiguration?:*ItemManagerRefRequestBuilderDeleteRequestConfiguration):*RequestInformation -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemManagerRefRequestBuilderGetRequestConfiguration):*RequestInformation -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|ToPutRequestInformation(body:iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ReferenceUpdateable; ctx:context.Context; requestConfiguration?:*ItemManagerRefRequestBuilderPutRequestConfiguration):*RequestInformation -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|urlTemplate:string -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRefRequestBuilder::|public|WithUrl(rawUrl:string):*ItemManagerRefRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder-->*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder.ItemManagerRequestBuilderGetQueryParameters::|public|Expand:[]string github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder.ItemManagerRequestBuilderGetQueryParameters::|public|Select:[]string @@ -257629,7 +258661,6 @@ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder::|publ github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder::|public|constructor(rawUrl:string; requestAdapter:RequestAdapter):void github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder::|public|Get(ctx:context.Context; requestConfiguration?:*ItemManagerRequestBuilderGetRequestConfiguration):iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder::|public|pathParameters:map[string]string -github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder::|public|Ref():*ItemManagerRefRequestBuilder github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder::|public|requestAdapter:RequestAdapter github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder::|public|ToGetRequestInformation(ctx:context.Context; requestConfiguration?:*ItemManagerRequestBuilderGetRequestConfiguration):*RequestInformation github.com/microsoftgraph/msgraph-sdk-go/.users.ItemManagerRequestBuilder::|public|urlTemplate:string diff --git a/kiota-lock.json b/kiota-lock.json index b5e7cc4ea4..f1faa307cd 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "0922012981783F96DC07F5D7A6C66ACF27F7231418359DF10E870D51A0337185AA115C991527B8D7447CE77BF79643604D78D413185E7274AE691774AA3D4716", + "descriptionHash": "0077549B9A55BB643B7A2BD1516D0A1B541CD52514513E618B5893B2BD0435073E4D6B1296F16B36B7C947FBB1D2F738DD71B168EA72A1F8230A71F3EAB99EC9", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.23.0", + "kiotaVersion": "1.24.0", "clientClassName": "GraphBaseServiceClient", "typeAccessModifier": "Public", "clientNamespaceName": "github.com/microsoftgraph/msgraph-sdk-go/", diff --git a/models/allowed_lobby_admitter_roles.go b/models/allowed_lobby_admitter_roles.go new file mode 100644 index 0000000000..f4960a2933 --- /dev/null +++ b/models/allowed_lobby_admitter_roles.go @@ -0,0 +1,36 @@ +package models +type AllowedLobbyAdmitterRoles int + +const ( + ORGANIZERANDCOORGANIZERSANDPRESENTERS_ALLOWEDLOBBYADMITTERROLES AllowedLobbyAdmitterRoles = iota + ORGANIZERANDCOORGANIZERS_ALLOWEDLOBBYADMITTERROLES + UNKNOWNFUTUREVALUE_ALLOWEDLOBBYADMITTERROLES +) + +func (i AllowedLobbyAdmitterRoles) String() string { + return []string{"organizerAndCoOrganizersAndPresenters", "organizerAndCoOrganizers", "unknownFutureValue"}[i] +} +func ParseAllowedLobbyAdmitterRoles(v string) (any, error) { + result := ORGANIZERANDCOORGANIZERSANDPRESENTERS_ALLOWEDLOBBYADMITTERROLES + switch v { + case "organizerAndCoOrganizersAndPresenters": + result = ORGANIZERANDCOORGANIZERSANDPRESENTERS_ALLOWEDLOBBYADMITTERROLES + case "organizerAndCoOrganizers": + result = ORGANIZERANDCOORGANIZERS_ALLOWEDLOBBYADMITTERROLES + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_ALLOWEDLOBBYADMITTERROLES + default: + return nil, nil + } + return &result, nil +} +func SerializeAllowedLobbyAdmitterRoles(values []AllowedLobbyAdmitterRoles) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i AllowedLobbyAdmitterRoles) isMultiValue() bool { + return false +} diff --git a/models/application.go b/models/application.go index ccce9c4466..2884c9665d 100644 --- a/models/application.go +++ b/models/application.go @@ -907,7 +907,7 @@ func (m *Application) GetOptionalClaims()(OptionalClaimsable) { } return nil } -// GetOwners gets the owners property value. Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// GetOwners gets the owners property value. Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // returns a []DirectoryObjectable when successful func (m *Application) GetOwners()([]DirectoryObjectable) { val, err := m.GetBackingStore().Get("owners") @@ -1699,7 +1699,7 @@ func (m *Application) SetOptionalClaims(value OptionalClaimsable)() { panic(err) } } -// SetOwners sets the owners property value. Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// SetOwners sets the owners property value. Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *Application) SetOwners(value []DirectoryObjectable)() { err := m.GetBackingStore().Set("owners", value) if err != nil { diff --git a/models/change_tracked_entity.go b/models/change_tracked_entity.go index f6d75896aa..ea8e6a3830 100644 --- a/models/change_tracked_entity.go +++ b/models/change_tracked_entity.go @@ -30,6 +30,8 @@ func CreateChangeTrackedEntityFromDiscriminatorValue(parseNode i878a80d2330e89d2 } if mappingValue != nil { switch *mappingValue { + case "#microsoft.graph.dayNote": + return NewDayNote(), nil case "#microsoft.graph.offerShiftRequest": return NewOfferShiftRequest(), nil case "#microsoft.graph.openShift": @@ -46,6 +48,8 @@ func CreateChangeTrackedEntityFromDiscriminatorValue(parseNode i878a80d2330e89d2 return NewShiftPreferences(), nil case "#microsoft.graph.swapShiftsChangeRequest": return NewSwapShiftsChangeRequest(), nil + case "#microsoft.graph.timeCard": + return NewTimeCard(), nil case "#microsoft.graph.timeOff": return NewTimeOff(), nil case "#microsoft.graph.timeOffReason": @@ -60,6 +64,18 @@ func CreateChangeTrackedEntityFromDiscriminatorValue(parseNode i878a80d2330e89d2 } return NewChangeTrackedEntity(), nil } +// GetCreatedBy gets the createdBy property value. Identity of the creator of the entity. +// returns a IdentitySetable when successful +func (m *ChangeTrackedEntity) GetCreatedBy()(IdentitySetable) { + val, err := m.GetBackingStore().Get("createdBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentitySetable) + } + return nil +} // GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z // returns a *Time when successful func (m *ChangeTrackedEntity) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { @@ -76,6 +92,16 @@ func (m *ChangeTrackedEntity) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3a // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *ChangeTrackedEntity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCreatedBy(val.(IdentitySetable)) + } + return nil + } res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -138,8 +164,21 @@ func (m *ChangeTrackedEntity) Serialize(writer i878a80d2330e89d26896388a3f487eef if err != nil { return err } + { + err = writer.WriteObjectValue("createdBy", m.GetCreatedBy()) + if err != nil { + return err + } + } return nil } +// SetCreatedBy sets the createdBy property value. Identity of the creator of the entity. +func (m *ChangeTrackedEntity) SetCreatedBy(value IdentitySetable)() { + err := m.GetBackingStore().Set("createdBy", value) + if err != nil { + panic(err) + } +} // SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z func (m *ChangeTrackedEntity) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) @@ -164,9 +203,11 @@ func (m *ChangeTrackedEntity) SetLastModifiedDateTime(value *i336074805fc853987a type ChangeTrackedEntityable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedBy()(IdentitySetable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastModifiedBy()(IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetCreatedBy(value IdentitySetable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastModifiedBy(value IdentitySetable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/confirmed_by.go b/models/confirmed_by.go new file mode 100644 index 0000000000..031abb2126 --- /dev/null +++ b/models/confirmed_by.go @@ -0,0 +1,54 @@ +package models +import ( + "math" + "strings" +) +type ConfirmedBy int + +const ( + NONE_CONFIRMEDBY = 1 + USER_CONFIRMEDBY = 2 + MANAGER_CONFIRMEDBY = 4 + UNKNOWNFUTUREVALUE_CONFIRMEDBY = 8 +) + +func (i ConfirmedBy) String() string { + var values []string + options := []string{"none", "user", "manager", "unknownFutureValue"} + for p := 0; p < 4; p++ { + mantis := ConfirmedBy(int(math.Pow(2, float64(p)))) + if i&mantis == mantis { + values = append(values, options[p]) + } + } + return strings.Join(values, ",") +} +func ParseConfirmedBy(v string) (any, error) { + var result ConfirmedBy + values := strings.Split(v, ",") + for _, str := range values { + switch str { + case "none": + result |= NONE_CONFIRMEDBY + case "user": + result |= USER_CONFIRMEDBY + case "manager": + result |= MANAGER_CONFIRMEDBY + case "unknownFutureValue": + result |= UNKNOWNFUTUREVALUE_CONFIRMEDBY + default: + return nil, nil + } + } + return &result, nil +} +func SerializeConfirmedBy(values []ConfirmedBy) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ConfirmedBy) isMultiValue() bool { + return true +} diff --git a/models/day_note.go b/models/day_note.go new file mode 100644 index 0000000000..ed05b51ba4 --- /dev/null +++ b/models/day_note.go @@ -0,0 +1,152 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DayNote struct { + ChangeTrackedEntity +} +// NewDayNote instantiates a new DayNote and sets the default values. +func NewDayNote()(*DayNote) { + m := &DayNote{ + ChangeTrackedEntity: *NewChangeTrackedEntity(), + } + odataTypeValue := "#microsoft.graph.dayNote" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDayNoteFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDayNoteFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDayNote(), nil +} +// GetDayNoteDate gets the dayNoteDate property value. The date of the day note. +// returns a *DateOnly when successful +func (m *DayNote) GetDayNoteDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("dayNoteDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} +// GetDraftDayNote gets the draftDayNote property value. The draft version of this day note that is viewable by managers. Only contentType text is supported. +// returns a ItemBodyable when successful +func (m *DayNote) GetDraftDayNote()(ItemBodyable) { + val, err := m.GetBackingStore().Get("draftDayNote") + if err != nil { + panic(err) + } + if val != nil { + return val.(ItemBodyable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DayNote) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ChangeTrackedEntity.GetFieldDeserializers() + res["dayNoteDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetDayNoteDate(val) + } + return nil + } + res["draftDayNote"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDraftDayNote(val.(ItemBodyable)) + } + return nil + } + res["sharedDayNote"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSharedDayNote(val.(ItemBodyable)) + } + return nil + } + return res +} +// GetSharedDayNote gets the sharedDayNote property value. The shared version of this day note that is viewable by both employees and managers. Only contentType text is supported. +// returns a ItemBodyable when successful +func (m *DayNote) GetSharedDayNote()(ItemBodyable) { + val, err := m.GetBackingStore().Get("sharedDayNote") + if err != nil { + panic(err) + } + if val != nil { + return val.(ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *DayNote) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ChangeTrackedEntity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteDateOnlyValue("dayNoteDate", m.GetDayNoteDate()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("draftDayNote", m.GetDraftDayNote()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("sharedDayNote", m.GetSharedDayNote()) + if err != nil { + return err + } + } + return nil +} +// SetDayNoteDate sets the dayNoteDate property value. The date of the day note. +func (m *DayNote) SetDayNoteDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("dayNoteDate", value) + if err != nil { + panic(err) + } +} +// SetDraftDayNote sets the draftDayNote property value. The draft version of this day note that is viewable by managers. Only contentType text is supported. +func (m *DayNote) SetDraftDayNote(value ItemBodyable)() { + err := m.GetBackingStore().Set("draftDayNote", value) + if err != nil { + panic(err) + } +} +// SetSharedDayNote sets the sharedDayNote property value. The shared version of this day note that is viewable by both employees and managers. Only contentType text is supported. +func (m *DayNote) SetSharedDayNote(value ItemBodyable)() { + err := m.GetBackingStore().Set("sharedDayNote", value) + if err != nil { + panic(err) + } +} +type DayNoteable interface { + ChangeTrackedEntityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDayNoteDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + GetDraftDayNote()(ItemBodyable) + GetSharedDayNote()(ItemBodyable) + SetDayNoteDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() + SetDraftDayNote(value ItemBodyable)() + SetSharedDayNote(value ItemBodyable)() +} diff --git a/models/day_note_collection_response.go b/models/day_note_collection_response.go new file mode 100644 index 0000000000..2b7978d5e5 --- /dev/null +++ b/models/day_note_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DayNoteCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewDayNoteCollectionResponse instantiates a new DayNoteCollectionResponse and sets the default values. +func NewDayNoteCollectionResponse()(*DayNoteCollectionResponse) { + m := &DayNoteCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateDayNoteCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDayNoteCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDayNoteCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DayNoteCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDayNoteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DayNoteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DayNoteable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []DayNoteable when successful +func (m *DayNoteCollectionResponse) GetValue()([]DayNoteable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DayNoteable) + } + return nil +} +// Serialize serializes information the current object +func (m *DayNoteCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *DayNoteCollectionResponse) SetValue(value []DayNoteable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type DayNoteCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]DayNoteable) + SetValue(value []DayNoteable)() +} diff --git a/models/entity.go b/models/entity.go index 18f9ab3f07..64a947417b 100644 --- a/models/entity.go +++ b/models/entity.go @@ -374,6 +374,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCustomSecurityAttributeDefinition(), nil case "#microsoft.graph.dataPolicyOperation": return NewDataPolicyOperation(), nil + case "#microsoft.graph.dayNote": + return NewDayNote(), nil case "#microsoft.graph.defaultManagedAppProtection": return NewDefaultManagedAppProtection(), nil case "#microsoft.graph.delegatedAdminAccessAssignment": @@ -1360,6 +1362,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewThreatAssessmentResult(), nil case "#microsoft.graph.thumbnailSet": return NewThumbnailSet(), nil + case "#microsoft.graph.timeCard": + return NewTimeCard(), nil case "#microsoft.graph.timeOff": return NewTimeOff(), nil case "#microsoft.graph.timeOffReason": diff --git a/models/meeting_live_share_options.go b/models/meeting_live_share_options.go new file mode 100644 index 0000000000..65dda74099 --- /dev/null +++ b/models/meeting_live_share_options.go @@ -0,0 +1,36 @@ +package models +type MeetingLiveShareOptions int + +const ( + ENABLED_MEETINGLIVESHAREOPTIONS MeetingLiveShareOptions = iota + DISABLED_MEETINGLIVESHAREOPTIONS + UNKNOWNFUTUREVALUE_MEETINGLIVESHAREOPTIONS +) + +func (i MeetingLiveShareOptions) String() string { + return []string{"enabled", "disabled", "unknownFutureValue"}[i] +} +func ParseMeetingLiveShareOptions(v string) (any, error) { + result := ENABLED_MEETINGLIVESHAREOPTIONS + switch v { + case "enabled": + result = ENABLED_MEETINGLIVESHAREOPTIONS + case "disabled": + result = DISABLED_MEETINGLIVESHAREOPTIONS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MEETINGLIVESHAREOPTIONS + default: + return nil, nil + } + return &result, nil +} +func SerializeMeetingLiveShareOptions(values []MeetingLiveShareOptions) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i MeetingLiveShareOptions) isMultiValue() bool { + return false +} diff --git a/models/online_meeting_base.go b/models/online_meeting_base.go index 47978cf8ff..1a96280542 100644 --- a/models/online_meeting_base.go +++ b/models/online_meeting_base.go @@ -63,6 +63,30 @@ func (m *OnlineMeetingBase) GetAllowAttendeeToEnableMic()(*bool) { } return nil } +// GetAllowBreakoutRooms gets the allowBreakoutRooms property value. Indicates whether breakout rooms are enabled for the meeting. +// returns a *bool when successful +func (m *OnlineMeetingBase) GetAllowBreakoutRooms()(*bool) { + val, err := m.GetBackingStore().Get("allowBreakoutRooms") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetAllowedLobbyAdmitters gets the allowedLobbyAdmitters property value. Specifies the users who can admit from the lobby. Possible values are: organizerAndCoOrganizersAndPresenters, organizerAndCoOrganizers, unknownFutureValue. +// returns a *AllowedLobbyAdmitterRoles when successful +func (m *OnlineMeetingBase) GetAllowedLobbyAdmitters()(*AllowedLobbyAdmitterRoles) { + val, err := m.GetBackingStore().Get("allowedLobbyAdmitters") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AllowedLobbyAdmitterRoles) + } + return nil +} // GetAllowedPresenters gets the allowedPresenters property value. Specifies who can be a presenter in a meeting. // returns a *OnlineMeetingPresenters when successful func (m *OnlineMeetingBase) GetAllowedPresenters()(*OnlineMeetingPresenters) { @@ -75,6 +99,18 @@ func (m *OnlineMeetingBase) GetAllowedPresenters()(*OnlineMeetingPresenters) { } return nil } +// GetAllowLiveShare gets the allowLiveShare property value. Indicates whether live share is enabled for the meeting. Possible values are: enabled, disabled, unknownFutureValue. +// returns a *MeetingLiveShareOptions when successful +func (m *OnlineMeetingBase) GetAllowLiveShare()(*MeetingLiveShareOptions) { + val, err := m.GetBackingStore().Get("allowLiveShare") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MeetingLiveShareOptions) + } + return nil +} // GetAllowMeetingChat gets the allowMeetingChat property value. Specifies the mode of the meeting chat. // returns a *MeetingChatMode when successful func (m *OnlineMeetingBase) GetAllowMeetingChat()(*MeetingChatMode) { @@ -99,6 +135,18 @@ func (m *OnlineMeetingBase) GetAllowParticipantsToChangeName()(*bool) { } return nil } +// GetAllowPowerPointSharing gets the allowPowerPointSharing property value. Indicates whether PowerPoint live is enabled for the meeting. +// returns a *bool when successful +func (m *OnlineMeetingBase) GetAllowPowerPointSharing()(*bool) { + val, err := m.GetBackingStore().Get("allowPowerPointSharing") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetAllowRecording gets the allowRecording property value. Indicates whether recording is enabled for the meeting. // returns a *bool when successful func (m *OnlineMeetingBase) GetAllowRecording()(*bool) { @@ -135,6 +183,18 @@ func (m *OnlineMeetingBase) GetAllowTranscription()(*bool) { } return nil } +// GetAllowWhiteboard gets the allowWhiteboard property value. Indicates whether whiteboard is enabled for the meeting. +// returns a *bool when successful +func (m *OnlineMeetingBase) GetAllowWhiteboard()(*bool) { + val, err := m.GetBackingStore().Get("allowWhiteboard") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetAttendanceReports gets the attendanceReports property value. The attendance reports of an online meeting. Read-only. // returns a []MeetingAttendanceReportable when successful func (m *OnlineMeetingBase) GetAttendanceReports()([]MeetingAttendanceReportable) { @@ -207,6 +267,26 @@ func (m *OnlineMeetingBase) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } + res["allowBreakoutRooms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowBreakoutRooms(val) + } + return nil + } + res["allowedLobbyAdmitters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAllowedLobbyAdmitterRoles) + if err != nil { + return err + } + if val != nil { + m.SetAllowedLobbyAdmitters(val.(*AllowedLobbyAdmitterRoles)) + } + return nil + } res["allowedPresenters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseOnlineMeetingPresenters) if err != nil { @@ -217,6 +297,16 @@ func (m *OnlineMeetingBase) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } + res["allowLiveShare"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMeetingLiveShareOptions) + if err != nil { + return err + } + if val != nil { + m.SetAllowLiveShare(val.(*MeetingLiveShareOptions)) + } + return nil + } res["allowMeetingChat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseMeetingChatMode) if err != nil { @@ -237,6 +327,16 @@ func (m *OnlineMeetingBase) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } + res["allowPowerPointSharing"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowPowerPointSharing(val) + } + return nil + } res["allowRecording"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -267,6 +367,16 @@ func (m *OnlineMeetingBase) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } + res["allowWhiteboard"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowWhiteboard(val) + } + return nil + } res["attendanceReports"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateMeetingAttendanceReportFromDiscriminatorValue) if err != nil { @@ -553,6 +663,19 @@ func (m *OnlineMeetingBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteBoolValue("allowBreakoutRooms", m.GetAllowBreakoutRooms()) + if err != nil { + return err + } + } + if m.GetAllowedLobbyAdmitters() != nil { + cast := (*m.GetAllowedLobbyAdmitters()).String() + err = writer.WriteStringValue("allowedLobbyAdmitters", &cast) + if err != nil { + return err + } + } if m.GetAllowedPresenters() != nil { cast := (*m.GetAllowedPresenters()).String() err = writer.WriteStringValue("allowedPresenters", &cast) @@ -560,6 +683,13 @@ func (m *OnlineMeetingBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + if m.GetAllowLiveShare() != nil { + cast := (*m.GetAllowLiveShare()).String() + err = writer.WriteStringValue("allowLiveShare", &cast) + if err != nil { + return err + } + } if m.GetAllowMeetingChat() != nil { cast := (*m.GetAllowMeetingChat()).String() err = writer.WriteStringValue("allowMeetingChat", &cast) @@ -573,6 +703,12 @@ func (m *OnlineMeetingBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteBoolValue("allowPowerPointSharing", m.GetAllowPowerPointSharing()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("allowRecording", m.GetAllowRecording()) if err != nil { @@ -591,6 +727,12 @@ func (m *OnlineMeetingBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + { + err = writer.WriteBoolValue("allowWhiteboard", m.GetAllowWhiteboard()) + if err != nil { + return err + } + } if m.GetAttendanceReports() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAttendanceReports())) for i, v := range m.GetAttendanceReports() { @@ -698,6 +840,20 @@ func (m *OnlineMeetingBase) SetAllowAttendeeToEnableMic(value *bool)() { panic(err) } } +// SetAllowBreakoutRooms sets the allowBreakoutRooms property value. Indicates whether breakout rooms are enabled for the meeting. +func (m *OnlineMeetingBase) SetAllowBreakoutRooms(value *bool)() { + err := m.GetBackingStore().Set("allowBreakoutRooms", value) + if err != nil { + panic(err) + } +} +// SetAllowedLobbyAdmitters sets the allowedLobbyAdmitters property value. Specifies the users who can admit from the lobby. Possible values are: organizerAndCoOrganizersAndPresenters, organizerAndCoOrganizers, unknownFutureValue. +func (m *OnlineMeetingBase) SetAllowedLobbyAdmitters(value *AllowedLobbyAdmitterRoles)() { + err := m.GetBackingStore().Set("allowedLobbyAdmitters", value) + if err != nil { + panic(err) + } +} // SetAllowedPresenters sets the allowedPresenters property value. Specifies who can be a presenter in a meeting. func (m *OnlineMeetingBase) SetAllowedPresenters(value *OnlineMeetingPresenters)() { err := m.GetBackingStore().Set("allowedPresenters", value) @@ -705,6 +861,13 @@ func (m *OnlineMeetingBase) SetAllowedPresenters(value *OnlineMeetingPresenters) panic(err) } } +// SetAllowLiveShare sets the allowLiveShare property value. Indicates whether live share is enabled for the meeting. Possible values are: enabled, disabled, unknownFutureValue. +func (m *OnlineMeetingBase) SetAllowLiveShare(value *MeetingLiveShareOptions)() { + err := m.GetBackingStore().Set("allowLiveShare", value) + if err != nil { + panic(err) + } +} // SetAllowMeetingChat sets the allowMeetingChat property value. Specifies the mode of the meeting chat. func (m *OnlineMeetingBase) SetAllowMeetingChat(value *MeetingChatMode)() { err := m.GetBackingStore().Set("allowMeetingChat", value) @@ -719,6 +882,13 @@ func (m *OnlineMeetingBase) SetAllowParticipantsToChangeName(value *bool)() { panic(err) } } +// SetAllowPowerPointSharing sets the allowPowerPointSharing property value. Indicates whether PowerPoint live is enabled for the meeting. +func (m *OnlineMeetingBase) SetAllowPowerPointSharing(value *bool)() { + err := m.GetBackingStore().Set("allowPowerPointSharing", value) + if err != nil { + panic(err) + } +} // SetAllowRecording sets the allowRecording property value. Indicates whether recording is enabled for the meeting. func (m *OnlineMeetingBase) SetAllowRecording(value *bool)() { err := m.GetBackingStore().Set("allowRecording", value) @@ -740,6 +910,13 @@ func (m *OnlineMeetingBase) SetAllowTranscription(value *bool)() { panic(err) } } +// SetAllowWhiteboard sets the allowWhiteboard property value. Indicates whether whiteboard is enabled for the meeting. +func (m *OnlineMeetingBase) SetAllowWhiteboard(value *bool)() { + err := m.GetBackingStore().Set("allowWhiteboard", value) + if err != nil { + panic(err) + } +} // SetAttendanceReports sets the attendanceReports property value. The attendance reports of an online meeting. Read-only. func (m *OnlineMeetingBase) SetAttendanceReports(value []MeetingAttendanceReportable)() { err := m.GetBackingStore().Set("attendanceReports", value) @@ -843,12 +1020,17 @@ type OnlineMeetingBaseable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowAttendeeToEnableCamera()(*bool) GetAllowAttendeeToEnableMic()(*bool) + GetAllowBreakoutRooms()(*bool) + GetAllowedLobbyAdmitters()(*AllowedLobbyAdmitterRoles) GetAllowedPresenters()(*OnlineMeetingPresenters) + GetAllowLiveShare()(*MeetingLiveShareOptions) GetAllowMeetingChat()(*MeetingChatMode) GetAllowParticipantsToChangeName()(*bool) + GetAllowPowerPointSharing()(*bool) GetAllowRecording()(*bool) GetAllowTeamworkReactions()(*bool) GetAllowTranscription()(*bool) + GetAllowWhiteboard()(*bool) GetAttendanceReports()([]MeetingAttendanceReportable) GetAudioConferencing()(AudioConferencingable) GetChatInfo()(ChatInfoable) @@ -865,12 +1047,17 @@ type OnlineMeetingBaseable interface { GetWatermarkProtection()(WatermarkProtectionValuesable) SetAllowAttendeeToEnableCamera(value *bool)() SetAllowAttendeeToEnableMic(value *bool)() + SetAllowBreakoutRooms(value *bool)() + SetAllowedLobbyAdmitters(value *AllowedLobbyAdmitterRoles)() SetAllowedPresenters(value *OnlineMeetingPresenters)() + SetAllowLiveShare(value *MeetingLiveShareOptions)() SetAllowMeetingChat(value *MeetingChatMode)() SetAllowParticipantsToChangeName(value *bool)() + SetAllowPowerPointSharing(value *bool)() SetAllowRecording(value *bool)() SetAllowTeamworkReactions(value *bool)() SetAllowTranscription(value *bool)() + SetAllowWhiteboard(value *bool)() SetAttendanceReports(value []MeetingAttendanceReportable)() SetAudioConferencing(value AudioConferencingable)() SetChatInfo(value ChatInfoable)() diff --git a/models/schedule.go b/models/schedule.go index be1e7f1fd2..8219d430fe 100644 --- a/models/schedule.go +++ b/models/schedule.go @@ -19,6 +19,18 @@ func NewSchedule()(*Schedule) { func CreateScheduleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSchedule(), nil } +// GetDayNotes gets the dayNotes property value. The day notes in the schedule. +// returns a []DayNoteable when successful +func (m *Schedule) GetDayNotes()([]DayNoteable) { + val, err := m.GetBackingStore().Get("dayNotes") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DayNoteable) + } + return nil +} // GetEnabled gets the enabled property value. Indicates whether the schedule is enabled for the team. Required. // returns a *bool when successful func (m *Schedule) GetEnabled()(*bool) { @@ -35,6 +47,22 @@ func (m *Schedule) GetEnabled()(*bool) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *Schedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["dayNotes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDayNoteFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DayNoteable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DayNoteable) + } + } + m.SetDayNotes(res) + } + return nil + } res["enabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -45,6 +73,16 @@ func (m *Schedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["isActivitiesIncludedWhenCopyingShiftsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsActivitiesIncludedWhenCopyingShiftsEnabled(val) + } + return nil + } res["offerShiftRequests"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateOfferShiftRequestFromDiscriminatorValue) if err != nil { @@ -165,6 +203,16 @@ func (m *Schedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["startDayOfWeek"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseDayOfWeek) + if err != nil { + return err + } + if val != nil { + m.SetStartDayOfWeek(val.(*DayOfWeek)) + } + return nil + } res["swapShiftsChangeRequests"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateSwapShiftsChangeRequestFromDiscriminatorValue) if err != nil { @@ -191,6 +239,22 @@ func (m *Schedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["timeCards"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTimeCardFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TimeCardable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TimeCardable) + } + } + m.SetTimeCards(res) + } + return nil + } res["timeClockEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -201,6 +265,16 @@ func (m *Schedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["timeClockSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTimeClockSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTimeClockSettings(val.(TimeClockSettingsable)) + } + return nil + } res["timeOffReasons"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateTimeOffReasonFromDiscriminatorValue) if err != nil { @@ -287,6 +361,18 @@ func (m *Schedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } +// GetIsActivitiesIncludedWhenCopyingShiftsEnabled gets the isActivitiesIncludedWhenCopyingShiftsEnabled property value. Indicates whether copied shifts include activities from the original shift. +// returns a *bool when successful +func (m *Schedule) GetIsActivitiesIncludedWhenCopyingShiftsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isActivitiesIncludedWhenCopyingShiftsEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetOfferShiftRequests gets the offerShiftRequests property value. The offer requests for shifts in the schedule. // returns a []OfferShiftRequestable when successful func (m *Schedule) GetOfferShiftRequests()([]OfferShiftRequestable) { @@ -395,6 +481,18 @@ func (m *Schedule) GetShifts()([]Shiftable) { } return nil } +// GetStartDayOfWeek gets the startDayOfWeek property value. Indicates the start day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. +// returns a *DayOfWeek when successful +func (m *Schedule) GetStartDayOfWeek()(*DayOfWeek) { + val, err := m.GetBackingStore().Get("startDayOfWeek") + if err != nil { + panic(err) + } + if val != nil { + return val.(*DayOfWeek) + } + return nil +} // GetSwapShiftsChangeRequests gets the swapShiftsChangeRequests property value. The swap requests for shifts in the schedule. // returns a []SwapShiftsChangeRequestable when successful func (m *Schedule) GetSwapShiftsChangeRequests()([]SwapShiftsChangeRequestable) { @@ -419,6 +517,18 @@ func (m *Schedule) GetSwapShiftsRequestsEnabled()(*bool) { } return nil } +// GetTimeCards gets the timeCards property value. The time cards in the schedule. +// returns a []TimeCardable when successful +func (m *Schedule) GetTimeCards()([]TimeCardable) { + val, err := m.GetBackingStore().Get("timeCards") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TimeCardable) + } + return nil +} // GetTimeClockEnabled gets the timeClockEnabled property value. Indicates whether time clock is enabled for the schedule. // returns a *bool when successful func (m *Schedule) GetTimeClockEnabled()(*bool) { @@ -431,6 +541,18 @@ func (m *Schedule) GetTimeClockEnabled()(*bool) { } return nil } +// GetTimeClockSettings gets the timeClockSettings property value. The time clock location settings for this schedule. +// returns a TimeClockSettingsable when successful +func (m *Schedule) GetTimeClockSettings()(TimeClockSettingsable) { + val, err := m.GetBackingStore().Get("timeClockSettings") + if err != nil { + panic(err) + } + if val != nil { + return val.(TimeClockSettingsable) + } + return nil +} // GetTimeOffReasons gets the timeOffReasons property value. The set of reasons for a time off in the schedule. // returns a []TimeOffReasonable when successful func (m *Schedule) GetTimeOffReasons()([]TimeOffReasonable) { @@ -509,12 +631,30 @@ func (m *Schedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 if err != nil { return err } + if m.GetDayNotes() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDayNotes())) + for i, v := range m.GetDayNotes() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("dayNotes", cast) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("enabled", m.GetEnabled()) if err != nil { return err } } + { + err = writer.WriteBoolValue("isActivitiesIncludedWhenCopyingShiftsEnabled", m.GetIsActivitiesIncludedWhenCopyingShiftsEnabled()) + if err != nil { + return err + } + } if m.GetOfferShiftRequests() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOfferShiftRequests())) for i, v := range m.GetOfferShiftRequests() { @@ -587,6 +727,13 @@ func (m *Schedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + if m.GetStartDayOfWeek() != nil { + cast := (*m.GetStartDayOfWeek()).String() + err = writer.WriteStringValue("startDayOfWeek", &cast) + if err != nil { + return err + } + } if m.GetSwapShiftsChangeRequests() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSwapShiftsChangeRequests())) for i, v := range m.GetSwapShiftsChangeRequests() { @@ -605,12 +752,30 @@ func (m *Schedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + if m.GetTimeCards() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTimeCards())) + for i, v := range m.GetTimeCards() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("timeCards", cast) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("timeClockEnabled", m.GetTimeClockEnabled()) if err != nil { return err } } + { + err = writer.WriteObjectValue("timeClockSettings", m.GetTimeClockSettings()) + if err != nil { + return err + } + } if m.GetTimeOffReasons() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTimeOffReasons())) for i, v := range m.GetTimeOffReasons() { @@ -667,6 +832,13 @@ func (m *Schedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 } return nil } +// SetDayNotes sets the dayNotes property value. The day notes in the schedule. +func (m *Schedule) SetDayNotes(value []DayNoteable)() { + err := m.GetBackingStore().Set("dayNotes", value) + if err != nil { + panic(err) + } +} // SetEnabled sets the enabled property value. Indicates whether the schedule is enabled for the team. Required. func (m *Schedule) SetEnabled(value *bool)() { err := m.GetBackingStore().Set("enabled", value) @@ -674,6 +846,13 @@ func (m *Schedule) SetEnabled(value *bool)() { panic(err) } } +// SetIsActivitiesIncludedWhenCopyingShiftsEnabled sets the isActivitiesIncludedWhenCopyingShiftsEnabled property value. Indicates whether copied shifts include activities from the original shift. +func (m *Schedule) SetIsActivitiesIncludedWhenCopyingShiftsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isActivitiesIncludedWhenCopyingShiftsEnabled", value) + if err != nil { + panic(err) + } +} // SetOfferShiftRequests sets the offerShiftRequests property value. The offer requests for shifts in the schedule. func (m *Schedule) SetOfferShiftRequests(value []OfferShiftRequestable)() { err := m.GetBackingStore().Set("offerShiftRequests", value) @@ -737,6 +916,13 @@ func (m *Schedule) SetShifts(value []Shiftable)() { panic(err) } } +// SetStartDayOfWeek sets the startDayOfWeek property value. Indicates the start day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. +func (m *Schedule) SetStartDayOfWeek(value *DayOfWeek)() { + err := m.GetBackingStore().Set("startDayOfWeek", value) + if err != nil { + panic(err) + } +} // SetSwapShiftsChangeRequests sets the swapShiftsChangeRequests property value. The swap requests for shifts in the schedule. func (m *Schedule) SetSwapShiftsChangeRequests(value []SwapShiftsChangeRequestable)() { err := m.GetBackingStore().Set("swapShiftsChangeRequests", value) @@ -751,6 +937,13 @@ func (m *Schedule) SetSwapShiftsRequestsEnabled(value *bool)() { panic(err) } } +// SetTimeCards sets the timeCards property value. The time cards in the schedule. +func (m *Schedule) SetTimeCards(value []TimeCardable)() { + err := m.GetBackingStore().Set("timeCards", value) + if err != nil { + panic(err) + } +} // SetTimeClockEnabled sets the timeClockEnabled property value. Indicates whether time clock is enabled for the schedule. func (m *Schedule) SetTimeClockEnabled(value *bool)() { err := m.GetBackingStore().Set("timeClockEnabled", value) @@ -758,6 +951,13 @@ func (m *Schedule) SetTimeClockEnabled(value *bool)() { panic(err) } } +// SetTimeClockSettings sets the timeClockSettings property value. The time clock location settings for this schedule. +func (m *Schedule) SetTimeClockSettings(value TimeClockSettingsable)() { + err := m.GetBackingStore().Set("timeClockSettings", value) + if err != nil { + panic(err) + } +} // SetTimeOffReasons sets the timeOffReasons property value. The set of reasons for a time off in the schedule. func (m *Schedule) SetTimeOffReasons(value []TimeOffReasonable)() { err := m.GetBackingStore().Set("timeOffReasons", value) @@ -803,7 +1003,9 @@ func (m *Schedule) SetWorkforceIntegrationIds(value []string)() { type Scheduleable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDayNotes()([]DayNoteable) GetEnabled()(*bool) + GetIsActivitiesIncludedWhenCopyingShiftsEnabled()(*bool) GetOfferShiftRequests()([]OfferShiftRequestable) GetOfferShiftRequestsEnabled()(*bool) GetOpenShiftChangeRequests()([]OpenShiftChangeRequestable) @@ -813,16 +1015,21 @@ type Scheduleable interface { GetProvisionStatusCode()(*string) GetSchedulingGroups()([]SchedulingGroupable) GetShifts()([]Shiftable) + GetStartDayOfWeek()(*DayOfWeek) GetSwapShiftsChangeRequests()([]SwapShiftsChangeRequestable) GetSwapShiftsRequestsEnabled()(*bool) + GetTimeCards()([]TimeCardable) GetTimeClockEnabled()(*bool) + GetTimeClockSettings()(TimeClockSettingsable) GetTimeOffReasons()([]TimeOffReasonable) GetTimeOffRequests()([]TimeOffRequestable) GetTimeOffRequestsEnabled()(*bool) GetTimesOff()([]TimeOffable) GetTimeZone()(*string) GetWorkforceIntegrationIds()([]string) + SetDayNotes(value []DayNoteable)() SetEnabled(value *bool)() + SetIsActivitiesIncludedWhenCopyingShiftsEnabled(value *bool)() SetOfferShiftRequests(value []OfferShiftRequestable)() SetOfferShiftRequestsEnabled(value *bool)() SetOpenShiftChangeRequests(value []OpenShiftChangeRequestable)() @@ -832,9 +1039,12 @@ type Scheduleable interface { SetProvisionStatusCode(value *string)() SetSchedulingGroups(value []SchedulingGroupable)() SetShifts(value []Shiftable)() + SetStartDayOfWeek(value *DayOfWeek)() SetSwapShiftsChangeRequests(value []SwapShiftsChangeRequestable)() SetSwapShiftsRequestsEnabled(value *bool)() + SetTimeCards(value []TimeCardable)() SetTimeClockEnabled(value *bool)() + SetTimeClockSettings(value TimeClockSettingsable)() SetTimeOffReasons(value []TimeOffReasonable)() SetTimeOffRequests(value []TimeOffRequestable)() SetTimeOffRequestsEnabled(value *bool)() diff --git a/models/scheduling_group.go b/models/scheduling_group.go index b711c6d928..3db285009e 100644 --- a/models/scheduling_group.go +++ b/models/scheduling_group.go @@ -21,6 +21,18 @@ func NewSchedulingGroup()(*SchedulingGroup) { func CreateSchedulingGroupFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSchedulingGroup(), nil } +// GetCode gets the code property value. The code for the schedulingGroup to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. +// returns a *string when successful +func (m *SchedulingGroup) GetCode()(*string) { + val, err := m.GetBackingStore().Get("code") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetDisplayName gets the displayName property value. The display name for the schedulingGroup. Required. // returns a *string when successful func (m *SchedulingGroup) GetDisplayName()(*string) { @@ -37,6 +49,16 @@ func (m *SchedulingGroup) GetDisplayName()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *SchedulingGroup) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ChangeTrackedEntity.GetFieldDeserializers() + res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCode(val) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -105,6 +127,12 @@ func (m *SchedulingGroup) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 if err != nil { return err } + { + err = writer.WriteStringValue("code", m.GetCode()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -119,6 +147,13 @@ func (m *SchedulingGroup) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } +// SetCode sets the code property value. The code for the schedulingGroup to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. +func (m *SchedulingGroup) SetCode(value *string)() { + err := m.GetBackingStore().Set("code", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The display name for the schedulingGroup. Required. func (m *SchedulingGroup) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -143,9 +178,11 @@ func (m *SchedulingGroup) SetUserIds(value []string)() { type SchedulingGroupable interface { ChangeTrackedEntityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCode()(*string) GetDisplayName()(*string) GetIsActive()(*bool) GetUserIds()([]string) + SetCode(value *string)() SetDisplayName(value *string)() SetIsActive(value *bool)() SetUserIds(value []string)() diff --git a/models/service_principal.go b/models/service_principal.go index 266e996ac6..a5a174c84c 100644 --- a/models/service_principal.go +++ b/models/service_principal.go @@ -1118,7 +1118,7 @@ func (m *ServicePrincipal) GetOwnedObjects()([]DirectoryObjectable) { } return nil } -// GetOwners gets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// GetOwners gets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // returns a []DirectoryObjectable when successful func (m *ServicePrincipal) GetOwners()([]DirectoryObjectable) { val, err := m.GetBackingStore().Get("owners") @@ -2024,7 +2024,7 @@ func (m *ServicePrincipal) SetOwnedObjects(value []DirectoryObjectable)() { panic(err) } } -// SetOwners sets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// SetOwners sets the owners property value. Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. func (m *ServicePrincipal) SetOwners(value []DirectoryObjectable)() { err := m.GetBackingStore().Set("owners", value) if err != nil { diff --git a/models/time_card.go b/models/time_card.go new file mode 100644 index 0000000000..9a848bc85f --- /dev/null +++ b/models/time_card.go @@ -0,0 +1,351 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type TimeCard struct { + ChangeTrackedEntity +} +// NewTimeCard instantiates a new TimeCard and sets the default values. +func NewTimeCard()(*TimeCard) { + m := &TimeCard{ + ChangeTrackedEntity: *NewChangeTrackedEntity(), + } + odataTypeValue := "#microsoft.graph.timeCard" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateTimeCardFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTimeCardFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTimeCard(), nil +} +// GetBreaks gets the breaks property value. The list of breaks associated with the timeCard. +// returns a []TimeCardBreakable when successful +func (m *TimeCard) GetBreaks()([]TimeCardBreakable) { + val, err := m.GetBackingStore().Get("breaks") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TimeCardBreakable) + } + return nil +} +// GetClockInEvent gets the clockInEvent property value. The clock-in event of the timeCard. +// returns a TimeCardEventable when successful +func (m *TimeCard) GetClockInEvent()(TimeCardEventable) { + val, err := m.GetBackingStore().Get("clockInEvent") + if err != nil { + panic(err) + } + if val != nil { + return val.(TimeCardEventable) + } + return nil +} +// GetClockOutEvent gets the clockOutEvent property value. The clock-out event of the timeCard. +// returns a TimeCardEventable when successful +func (m *TimeCard) GetClockOutEvent()(TimeCardEventable) { + val, err := m.GetBackingStore().Get("clockOutEvent") + if err != nil { + panic(err) + } + if val != nil { + return val.(TimeCardEventable) + } + return nil +} +// GetConfirmedBy gets the confirmedBy property value. Indicates whether this timeCard entry is confirmed. Possible values are: none, user, manager, unknownFutureValue. +// returns a *ConfirmedBy when successful +func (m *TimeCard) GetConfirmedBy()(*ConfirmedBy) { + val, err := m.GetBackingStore().Get("confirmedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ConfirmedBy) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TimeCard) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ChangeTrackedEntity.GetFieldDeserializers() + res["breaks"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTimeCardBreakFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TimeCardBreakable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TimeCardBreakable) + } + } + m.SetBreaks(res) + } + return nil + } + res["clockInEvent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTimeCardEventFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClockInEvent(val.(TimeCardEventable)) + } + return nil + } + res["clockOutEvent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTimeCardEventFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClockOutEvent(val.(TimeCardEventable)) + } + return nil + } + res["confirmedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseConfirmedBy) + if err != nil { + return err + } + if val != nil { + m.SetConfirmedBy(val.(*ConfirmedBy)) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(ItemBodyable)) + } + return nil + } + res["originalEntry"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTimeCardEntryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOriginalEntry(val.(TimeCardEntryable)) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTimeCardState) + if err != nil { + return err + } + if val != nil { + m.SetState(val.(*TimeCardState)) + } + return nil + } + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserId(val) + } + return nil + } + return res +} +// GetNotes gets the notes property value. Notes about the timeCard. +// returns a ItemBodyable when successful +func (m *TimeCard) GetNotes()(ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(ItemBodyable) + } + return nil +} +// GetOriginalEntry gets the originalEntry property value. The original timeCardEntry of the timeCard before it was edited. +// returns a TimeCardEntryable when successful +func (m *TimeCard) GetOriginalEntry()(TimeCardEntryable) { + val, err := m.GetBackingStore().Get("originalEntry") + if err != nil { + panic(err) + } + if val != nil { + return val.(TimeCardEntryable) + } + return nil +} +// GetState gets the state property value. The current state of the timeCard during its life cycle. The possible values are: clockedIn, onBreak, clockedOut, unknownFutureValue. +// returns a *TimeCardState when successful +func (m *TimeCard) GetState()(*TimeCardState) { + val, err := m.GetBackingStore().Get("state") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TimeCardState) + } + return nil +} +// GetUserId gets the userId property value. User ID to which the timeCard belongs. +// returns a *string when successful +func (m *TimeCard) GetUserId()(*string) { + val, err := m.GetBackingStore().Get("userId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *TimeCard) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ChangeTrackedEntity.Serialize(writer) + if err != nil { + return err + } + if m.GetBreaks() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetBreaks())) + for i, v := range m.GetBreaks() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("breaks", cast) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("clockInEvent", m.GetClockInEvent()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("clockOutEvent", m.GetClockOutEvent()) + if err != nil { + return err + } + } + if m.GetConfirmedBy() != nil { + cast := (*m.GetConfirmedBy()).String() + err = writer.WriteStringValue("confirmedBy", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("originalEntry", m.GetOriginalEntry()) + if err != nil { + return err + } + } + if m.GetState() != nil { + cast := (*m.GetState()).String() + err = writer.WriteStringValue("state", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("userId", m.GetUserId()) + if err != nil { + return err + } + } + return nil +} +// SetBreaks sets the breaks property value. The list of breaks associated with the timeCard. +func (m *TimeCard) SetBreaks(value []TimeCardBreakable)() { + err := m.GetBackingStore().Set("breaks", value) + if err != nil { + panic(err) + } +} +// SetClockInEvent sets the clockInEvent property value. The clock-in event of the timeCard. +func (m *TimeCard) SetClockInEvent(value TimeCardEventable)() { + err := m.GetBackingStore().Set("clockInEvent", value) + if err != nil { + panic(err) + } +} +// SetClockOutEvent sets the clockOutEvent property value. The clock-out event of the timeCard. +func (m *TimeCard) SetClockOutEvent(value TimeCardEventable)() { + err := m.GetBackingStore().Set("clockOutEvent", value) + if err != nil { + panic(err) + } +} +// SetConfirmedBy sets the confirmedBy property value. Indicates whether this timeCard entry is confirmed. Possible values are: none, user, manager, unknownFutureValue. +func (m *TimeCard) SetConfirmedBy(value *ConfirmedBy)() { + err := m.GetBackingStore().Set("confirmedBy", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. Notes about the timeCard. +func (m *TimeCard) SetNotes(value ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +// SetOriginalEntry sets the originalEntry property value. The original timeCardEntry of the timeCard before it was edited. +func (m *TimeCard) SetOriginalEntry(value TimeCardEntryable)() { + err := m.GetBackingStore().Set("originalEntry", value) + if err != nil { + panic(err) + } +} +// SetState sets the state property value. The current state of the timeCard during its life cycle. The possible values are: clockedIn, onBreak, clockedOut, unknownFutureValue. +func (m *TimeCard) SetState(value *TimeCardState)() { + err := m.GetBackingStore().Set("state", value) + if err != nil { + panic(err) + } +} +// SetUserId sets the userId property value. User ID to which the timeCard belongs. +func (m *TimeCard) SetUserId(value *string)() { + err := m.GetBackingStore().Set("userId", value) + if err != nil { + panic(err) + } +} +type TimeCardable interface { + ChangeTrackedEntityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBreaks()([]TimeCardBreakable) + GetClockInEvent()(TimeCardEventable) + GetClockOutEvent()(TimeCardEventable) + GetConfirmedBy()(*ConfirmedBy) + GetNotes()(ItemBodyable) + GetOriginalEntry()(TimeCardEntryable) + GetState()(*TimeCardState) + GetUserId()(*string) + SetBreaks(value []TimeCardBreakable)() + SetClockInEvent(value TimeCardEventable)() + SetClockOutEvent(value TimeCardEventable)() + SetConfirmedBy(value *ConfirmedBy)() + SetNotes(value ItemBodyable)() + SetOriginalEntry(value TimeCardEntryable)() + SetState(value *TimeCardState)() + SetUserId(value *string)() +} diff --git a/models/time_card_break.go b/models/time_card_break.go new file mode 100644 index 0000000000..85a4df42f6 --- /dev/null +++ b/models/time_card_break.go @@ -0,0 +1,261 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TimeCardBreak struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTimeCardBreak instantiates a new TimeCardBreak and sets the default values. +func NewTimeCardBreak()(*TimeCardBreak) { + m := &TimeCardBreak{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTimeCardBreakFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTimeCardBreakFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTimeCardBreak(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TimeCardBreak) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TimeCardBreak) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBreakId gets the breakId property value. ID of the timeCardBreak. +// returns a *string when successful +func (m *TimeCardBreak) GetBreakId()(*string) { + val, err := m.GetBackingStore().Get("breakId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEnd gets the end property value. The start event of the timeCardBreak. +// returns a TimeCardEventable when successful +func (m *TimeCardBreak) GetEnd()(TimeCardEventable) { + val, err := m.GetBackingStore().Get("end") + if err != nil { + panic(err) + } + if val != nil { + return val.(TimeCardEventable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TimeCardBreak) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["breakId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBreakId(val) + } + return nil + } + res["end"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTimeCardEventFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetEnd(val.(TimeCardEventable)) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(ItemBodyable)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["start"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTimeCardEventFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStart(val.(TimeCardEventable)) + } + return nil + } + return res +} +// GetNotes gets the notes property value. Notes about the timeCardBreak. +// returns a ItemBodyable when successful +func (m *TimeCardBreak) GetNotes()(ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(ItemBodyable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *TimeCardBreak) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStart gets the start property value. The start property +// returns a TimeCardEventable when successful +func (m *TimeCardBreak) GetStart()(TimeCardEventable) { + val, err := m.GetBackingStore().Get("start") + if err != nil { + panic(err) + } + if val != nil { + return val.(TimeCardEventable) + } + return nil +} +// Serialize serializes information the current object +func (m *TimeCardBreak) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("breakId", m.GetBreakId()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("end", m.GetEnd()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("start", m.GetStart()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TimeCardBreak) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TimeCardBreak) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBreakId sets the breakId property value. ID of the timeCardBreak. +func (m *TimeCardBreak) SetBreakId(value *string)() { + err := m.GetBackingStore().Set("breakId", value) + if err != nil { + panic(err) + } +} +// SetEnd sets the end property value. The start event of the timeCardBreak. +func (m *TimeCardBreak) SetEnd(value TimeCardEventable)() { + err := m.GetBackingStore().Set("end", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. Notes about the timeCardBreak. +func (m *TimeCardBreak) SetNotes(value ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TimeCardBreak) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStart sets the start property value. The start property +func (m *TimeCardBreak) SetStart(value TimeCardEventable)() { + err := m.GetBackingStore().Set("start", value) + if err != nil { + panic(err) + } +} +type TimeCardBreakable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBreakId()(*string) + GetEnd()(TimeCardEventable) + GetNotes()(ItemBodyable) + GetOdataType()(*string) + GetStart()(TimeCardEventable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBreakId(value *string)() + SetEnd(value TimeCardEventable)() + SetNotes(value ItemBodyable)() + SetOdataType(value *string)() + SetStart(value TimeCardEventable)() +} diff --git a/models/time_card_collection_response.go b/models/time_card_collection_response.go new file mode 100644 index 0000000000..d7fda45d6b --- /dev/null +++ b/models/time_card_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type TimeCardCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewTimeCardCollectionResponse instantiates a new TimeCardCollectionResponse and sets the default values. +func NewTimeCardCollectionResponse()(*TimeCardCollectionResponse) { + m := &TimeCardCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTimeCardCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTimeCardCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTimeCardCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TimeCardCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTimeCardFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TimeCardable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TimeCardable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []TimeCardable when successful +func (m *TimeCardCollectionResponse) GetValue()([]TimeCardable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TimeCardable) + } + return nil +} +// Serialize serializes information the current object +func (m *TimeCardCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *TimeCardCollectionResponse) SetValue(value []TimeCardable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TimeCardCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]TimeCardable) + SetValue(value []TimeCardable)() +} diff --git a/models/time_card_entry.go b/models/time_card_entry.go new file mode 100644 index 0000000000..f70af86fa1 --- /dev/null +++ b/models/time_card_entry.go @@ -0,0 +1,236 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TimeCardEntry struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTimeCardEntry instantiates a new TimeCardEntry and sets the default values. +func NewTimeCardEntry()(*TimeCardEntry) { + m := &TimeCardEntry{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTimeCardEntryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTimeCardEntryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTimeCardEntry(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TimeCardEntry) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TimeCardEntry) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBreaks gets the breaks property value. The clock-in event of the timeCard. +// returns a []TimeCardBreakable when successful +func (m *TimeCardEntry) GetBreaks()([]TimeCardBreakable) { + val, err := m.GetBackingStore().Get("breaks") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TimeCardBreakable) + } + return nil +} +// GetClockInEvent gets the clockInEvent property value. The clock-out event of the timeCard. +// returns a TimeCardEventable when successful +func (m *TimeCardEntry) GetClockInEvent()(TimeCardEventable) { + val, err := m.GetBackingStore().Get("clockInEvent") + if err != nil { + panic(err) + } + if val != nil { + return val.(TimeCardEventable) + } + return nil +} +// GetClockOutEvent gets the clockOutEvent property value. The list of breaks associated with the timeCard. +// returns a TimeCardEventable when successful +func (m *TimeCardEntry) GetClockOutEvent()(TimeCardEventable) { + val, err := m.GetBackingStore().Get("clockOutEvent") + if err != nil { + panic(err) + } + if val != nil { + return val.(TimeCardEventable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TimeCardEntry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["breaks"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTimeCardBreakFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TimeCardBreakable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TimeCardBreakable) + } + } + m.SetBreaks(res) + } + return nil + } + res["clockInEvent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTimeCardEventFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClockInEvent(val.(TimeCardEventable)) + } + return nil + } + res["clockOutEvent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTimeCardEventFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetClockOutEvent(val.(TimeCardEventable)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *TimeCardEntry) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *TimeCardEntry) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetBreaks() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetBreaks())) + for i, v := range m.GetBreaks() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("breaks", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("clockInEvent", m.GetClockInEvent()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("clockOutEvent", m.GetClockOutEvent()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TimeCardEntry) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TimeCardEntry) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBreaks sets the breaks property value. The clock-in event of the timeCard. +func (m *TimeCardEntry) SetBreaks(value []TimeCardBreakable)() { + err := m.GetBackingStore().Set("breaks", value) + if err != nil { + panic(err) + } +} +// SetClockInEvent sets the clockInEvent property value. The clock-out event of the timeCard. +func (m *TimeCardEntry) SetClockInEvent(value TimeCardEventable)() { + err := m.GetBackingStore().Set("clockInEvent", value) + if err != nil { + panic(err) + } +} +// SetClockOutEvent sets the clockOutEvent property value. The list of breaks associated with the timeCard. +func (m *TimeCardEntry) SetClockOutEvent(value TimeCardEventable)() { + err := m.GetBackingStore().Set("clockOutEvent", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TimeCardEntry) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type TimeCardEntryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBreaks()([]TimeCardBreakable) + GetClockInEvent()(TimeCardEventable) + GetClockOutEvent()(TimeCardEventable) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBreaks(value []TimeCardBreakable)() + SetClockInEvent(value TimeCardEventable)() + SetClockOutEvent(value TimeCardEventable)() + SetOdataType(value *string)() +} diff --git a/models/time_card_event.go b/models/time_card_event.go new file mode 100644 index 0000000000..01f7736c2a --- /dev/null +++ b/models/time_card_event.go @@ -0,0 +1,225 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TimeCardEvent struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTimeCardEvent instantiates a new TimeCardEvent and sets the default values. +func NewTimeCardEvent()(*TimeCardEvent) { + m := &TimeCardEvent{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTimeCardEventFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTimeCardEventFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTimeCardEvent(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TimeCardEvent) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TimeCardEvent) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDateTime gets the dateTime property value. The time the entry is recorded. +// returns a *Time when successful +func (m *TimeCardEvent) GetDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("dateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TimeCardEvent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["dateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetDateTime(val) + } + return nil + } + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(ItemBodyable)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. Indicates whether this action happens at an approved location. +// returns a *bool when successful +func (m *TimeCardEvent) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. Notes about the timeCardEvent. +// returns a ItemBodyable when successful +func (m *TimeCardEvent) GetNotes()(ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(ItemBodyable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *TimeCardEvent) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *TimeCardEvent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("dateTime", m.GetDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TimeCardEvent) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TimeCardEvent) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDateTime sets the dateTime property value. The time the entry is recorded. +func (m *TimeCardEvent) SetDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("dateTime", value) + if err != nil { + panic(err) + } +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. Indicates whether this action happens at an approved location. +func (m *TimeCardEvent) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. Notes about the timeCardEvent. +func (m *TimeCardEvent) SetNotes(value ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TimeCardEvent) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type TimeCardEventable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetIsAtApprovedLocation()(*bool) + GetNotes()(ItemBodyable) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value ItemBodyable)() + SetOdataType(value *string)() +} diff --git a/models/time_card_state.go b/models/time_card_state.go new file mode 100644 index 0000000000..a88ed27ad4 --- /dev/null +++ b/models/time_card_state.go @@ -0,0 +1,39 @@ +package models +type TimeCardState int + +const ( + CLOCKEDIN_TIMECARDSTATE TimeCardState = iota + ONBREAK_TIMECARDSTATE + CLOCKEDOUT_TIMECARDSTATE + UNKNOWNFUTUREVALUE_TIMECARDSTATE +) + +func (i TimeCardState) String() string { + return []string{"clockedIn", "onBreak", "clockedOut", "unknownFutureValue"}[i] +} +func ParseTimeCardState(v string) (any, error) { + result := CLOCKEDIN_TIMECARDSTATE + switch v { + case "clockedIn": + result = CLOCKEDIN_TIMECARDSTATE + case "onBreak": + result = ONBREAK_TIMECARDSTATE + case "clockedOut": + result = CLOCKEDOUT_TIMECARDSTATE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_TIMECARDSTATE + default: + return nil, nil + } + return &result, nil +} +func SerializeTimeCardState(values []TimeCardState) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i TimeCardState) isMultiValue() bool { + return false +} diff --git a/models/time_clock_settings.go b/models/time_clock_settings.go new file mode 100644 index 0000000000..5aa169f773 --- /dev/null +++ b/models/time_clock_settings.go @@ -0,0 +1,150 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TimeClockSettings struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTimeClockSettings instantiates a new TimeClockSettings and sets the default values. +func NewTimeClockSettings()(*TimeClockSettings) { + m := &TimeClockSettings{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTimeClockSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTimeClockSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTimeClockSettings(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TimeClockSettings) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApprovedLocation gets the approvedLocation property value. The approved location of the timeClock. +// returns a GeoCoordinatesable when successful +func (m *TimeClockSettings) GetApprovedLocation()(GeoCoordinatesable) { + val, err := m.GetBackingStore().Get("approvedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(GeoCoordinatesable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TimeClockSettings) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TimeClockSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["approvedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateGeoCoordinatesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetApprovedLocation(val.(GeoCoordinatesable)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *TimeClockSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *TimeClockSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("approvedLocation", m.GetApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TimeClockSettings) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApprovedLocation sets the approvedLocation property value. The approved location of the timeClock. +func (m *TimeClockSettings) SetApprovedLocation(value GeoCoordinatesable)() { + err := m.GetBackingStore().Set("approvedLocation", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TimeClockSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TimeClockSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type TimeClockSettingsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApprovedLocation()(GeoCoordinatesable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetApprovedLocation(value GeoCoordinatesable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/time_off_reason.go b/models/time_off_reason.go index 8ccaac4889..a37f397ae4 100644 --- a/models/time_off_reason.go +++ b/models/time_off_reason.go @@ -21,6 +21,18 @@ func NewTimeOffReason()(*TimeOffReason) { func CreateTimeOffReasonFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewTimeOffReason(), nil } +// GetCode gets the code property value. The code of the timeOffReason to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. +// returns a *string when successful +func (m *TimeOffReason) GetCode()(*string) { + val, err := m.GetBackingStore().Get("code") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetDisplayName gets the displayName property value. The name of the timeOffReason. Required. // returns a *string when successful func (m *TimeOffReason) GetDisplayName()(*string) { @@ -37,6 +49,16 @@ func (m *TimeOffReason) GetDisplayName()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *TimeOffReason) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.ChangeTrackedEntity.GetFieldDeserializers() + res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCode(val) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -99,6 +121,12 @@ func (m *TimeOffReason) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 if err != nil { return err } + { + err = writer.WriteStringValue("code", m.GetCode()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -120,6 +148,13 @@ func (m *TimeOffReason) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } return nil } +// SetCode sets the code property value. The code of the timeOffReason to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. +func (m *TimeOffReason) SetCode(value *string)() { + err := m.GetBackingStore().Set("code", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The name of the timeOffReason. Required. func (m *TimeOffReason) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -144,9 +179,11 @@ func (m *TimeOffReason) SetIsActive(value *bool)() { type TimeOffReasonable interface { ChangeTrackedEntityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCode()(*string) GetDisplayName()(*string) GetIconType()(*TimeOffReasonIconType) GetIsActive()(*bool) + SetCode(value *string)() SetDisplayName(value *string)() SetIconType(value *TimeOffReasonIconType)() SetIsActive(value *bool)() diff --git a/models/workbook_worksheet_protection_options.go b/models/workbook_worksheet_protection_options.go index 5de76546f5..84df562c76 100644 --- a/models/workbook_worksheet_protection_options.go +++ b/models/workbook_worksheet_protection_options.go @@ -35,7 +35,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAdditionalData()(map[string]any) } return val.(map[string]any) } -// GetAllowAutoFilter gets the allowAutoFilter property value. Represents the worksheet protection option of allowing using auto filter feature. +// GetAllowAutoFilter gets the allowAutoFilter property value. Indicates whether the worksheet protection option to allow the use of the autofilter feature is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowAutoFilter()(*bool) { val, err := m.GetBackingStore().Get("allowAutoFilter") @@ -47,7 +47,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowAutoFilter()(*bool) { } return nil } -// GetAllowDeleteColumns gets the allowDeleteColumns property value. Represents the worksheet protection option of allowing deleting columns. +// GetAllowDeleteColumns gets the allowDeleteColumns property value. Indicates whether the worksheet protection option to allow deleting columns is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowDeleteColumns()(*bool) { val, err := m.GetBackingStore().Get("allowDeleteColumns") @@ -59,7 +59,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowDeleteColumns()(*bool) { } return nil } -// GetAllowDeleteRows gets the allowDeleteRows property value. Represents the worksheet protection option of allowing deleting rows. +// GetAllowDeleteRows gets the allowDeleteRows property value. Indicates whether the worksheet protection option to allow deleting rows is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowDeleteRows()(*bool) { val, err := m.GetBackingStore().Get("allowDeleteRows") @@ -71,7 +71,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowDeleteRows()(*bool) { } return nil } -// GetAllowFormatCells gets the allowFormatCells property value. Represents the worksheet protection option of allowing formatting cells. +// GetAllowFormatCells gets the allowFormatCells property value. Indicates whether the worksheet protection option to allow formatting cells is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowFormatCells()(*bool) { val, err := m.GetBackingStore().Get("allowFormatCells") @@ -83,7 +83,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowFormatCells()(*bool) { } return nil } -// GetAllowFormatColumns gets the allowFormatColumns property value. Represents the worksheet protection option of allowing formatting columns. +// GetAllowFormatColumns gets the allowFormatColumns property value. Indicates whether the worksheet protection option to allow formatting columns is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowFormatColumns()(*bool) { val, err := m.GetBackingStore().Get("allowFormatColumns") @@ -95,7 +95,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowFormatColumns()(*bool) { } return nil } -// GetAllowFormatRows gets the allowFormatRows property value. Represents the worksheet protection option of allowing formatting rows. +// GetAllowFormatRows gets the allowFormatRows property value. Indicates whether the worksheet protection option to allow formatting rows is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowFormatRows()(*bool) { val, err := m.GetBackingStore().Get("allowFormatRows") @@ -107,7 +107,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowFormatRows()(*bool) { } return nil } -// GetAllowInsertColumns gets the allowInsertColumns property value. Represents the worksheet protection option of allowing inserting columns. +// GetAllowInsertColumns gets the allowInsertColumns property value. Indicates whether the worksheet protection option to allow inserting columns is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowInsertColumns()(*bool) { val, err := m.GetBackingStore().Get("allowInsertColumns") @@ -119,7 +119,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowInsertColumns()(*bool) { } return nil } -// GetAllowInsertHyperlinks gets the allowInsertHyperlinks property value. Represents the worksheet protection option of allowing inserting hyperlinks. +// GetAllowInsertHyperlinks gets the allowInsertHyperlinks property value. Indicates whether the worksheet protection option to allow inserting hyperlinks is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowInsertHyperlinks()(*bool) { val, err := m.GetBackingStore().Get("allowInsertHyperlinks") @@ -131,7 +131,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowInsertHyperlinks()(*bool) { } return nil } -// GetAllowInsertRows gets the allowInsertRows property value. Represents the worksheet protection option of allowing inserting rows. +// GetAllowInsertRows gets the allowInsertRows property value. Indicates whether the worksheet protection option to allow inserting rows is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowInsertRows()(*bool) { val, err := m.GetBackingStore().Get("allowInsertRows") @@ -143,7 +143,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowInsertRows()(*bool) { } return nil } -// GetAllowPivotTables gets the allowPivotTables property value. Represents the worksheet protection option of allowing using pivot table feature. +// GetAllowPivotTables gets the allowPivotTables property value. Indicates whether the worksheet protection option to allow the use of the pivot table feature is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowPivotTables()(*bool) { val, err := m.GetBackingStore().Get("allowPivotTables") @@ -155,7 +155,7 @@ func (m *WorkbookWorksheetProtectionOptions) GetAllowPivotTables()(*bool) { } return nil } -// GetAllowSort gets the allowSort property value. Represents the worksheet protection option of allowing using sort feature. +// GetAllowSort gets the allowSort property value. Indicates whether the worksheet protection option to allow the use of the sort feature is enabled. // returns a *bool when successful func (m *WorkbookWorksheetProtectionOptions) GetAllowSort()(*bool) { val, err := m.GetBackingStore().Get("allowSort") @@ -399,77 +399,77 @@ func (m *WorkbookWorksheetProtectionOptions) SetAdditionalData(value map[string] panic(err) } } -// SetAllowAutoFilter sets the allowAutoFilter property value. Represents the worksheet protection option of allowing using auto filter feature. +// SetAllowAutoFilter sets the allowAutoFilter property value. Indicates whether the worksheet protection option to allow the use of the autofilter feature is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowAutoFilter(value *bool)() { err := m.GetBackingStore().Set("allowAutoFilter", value) if err != nil { panic(err) } } -// SetAllowDeleteColumns sets the allowDeleteColumns property value. Represents the worksheet protection option of allowing deleting columns. +// SetAllowDeleteColumns sets the allowDeleteColumns property value. Indicates whether the worksheet protection option to allow deleting columns is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowDeleteColumns(value *bool)() { err := m.GetBackingStore().Set("allowDeleteColumns", value) if err != nil { panic(err) } } -// SetAllowDeleteRows sets the allowDeleteRows property value. Represents the worksheet protection option of allowing deleting rows. +// SetAllowDeleteRows sets the allowDeleteRows property value. Indicates whether the worksheet protection option to allow deleting rows is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowDeleteRows(value *bool)() { err := m.GetBackingStore().Set("allowDeleteRows", value) if err != nil { panic(err) } } -// SetAllowFormatCells sets the allowFormatCells property value. Represents the worksheet protection option of allowing formatting cells. +// SetAllowFormatCells sets the allowFormatCells property value. Indicates whether the worksheet protection option to allow formatting cells is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowFormatCells(value *bool)() { err := m.GetBackingStore().Set("allowFormatCells", value) if err != nil { panic(err) } } -// SetAllowFormatColumns sets the allowFormatColumns property value. Represents the worksheet protection option of allowing formatting columns. +// SetAllowFormatColumns sets the allowFormatColumns property value. Indicates whether the worksheet protection option to allow formatting columns is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowFormatColumns(value *bool)() { err := m.GetBackingStore().Set("allowFormatColumns", value) if err != nil { panic(err) } } -// SetAllowFormatRows sets the allowFormatRows property value. Represents the worksheet protection option of allowing formatting rows. +// SetAllowFormatRows sets the allowFormatRows property value. Indicates whether the worksheet protection option to allow formatting rows is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowFormatRows(value *bool)() { err := m.GetBackingStore().Set("allowFormatRows", value) if err != nil { panic(err) } } -// SetAllowInsertColumns sets the allowInsertColumns property value. Represents the worksheet protection option of allowing inserting columns. +// SetAllowInsertColumns sets the allowInsertColumns property value. Indicates whether the worksheet protection option to allow inserting columns is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowInsertColumns(value *bool)() { err := m.GetBackingStore().Set("allowInsertColumns", value) if err != nil { panic(err) } } -// SetAllowInsertHyperlinks sets the allowInsertHyperlinks property value. Represents the worksheet protection option of allowing inserting hyperlinks. +// SetAllowInsertHyperlinks sets the allowInsertHyperlinks property value. Indicates whether the worksheet protection option to allow inserting hyperlinks is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowInsertHyperlinks(value *bool)() { err := m.GetBackingStore().Set("allowInsertHyperlinks", value) if err != nil { panic(err) } } -// SetAllowInsertRows sets the allowInsertRows property value. Represents the worksheet protection option of allowing inserting rows. +// SetAllowInsertRows sets the allowInsertRows property value. Indicates whether the worksheet protection option to allow inserting rows is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowInsertRows(value *bool)() { err := m.GetBackingStore().Set("allowInsertRows", value) if err != nil { panic(err) } } -// SetAllowPivotTables sets the allowPivotTables property value. Represents the worksheet protection option of allowing using pivot table feature. +// SetAllowPivotTables sets the allowPivotTables property value. Indicates whether the worksheet protection option to allow the use of the pivot table feature is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowPivotTables(value *bool)() { err := m.GetBackingStore().Set("allowPivotTables", value) if err != nil { panic(err) } } -// SetAllowSort sets the allowSort property value. Represents the worksheet protection option of allowing using sort feature. +// SetAllowSort sets the allowSort property value. Indicates whether the worksheet protection option to allow the use of the sort feature is enabled. func (m *WorkbookWorksheetProtectionOptions) SetAllowSort(value *bool)() { err := m.GetBackingStore().Set("allowSort", value) if err != nil { diff --git a/models/workforce_integration_supported_entities.go b/models/workforce_integration_supported_entities.go index 8b9ac194bd..5baec2cdc4 100644 --- a/models/workforce_integration_supported_entities.go +++ b/models/workforce_integration_supported_entities.go @@ -14,15 +14,16 @@ const ( OPENSHIFTREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 32 OFFERSHIFTREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 64 UNKNOWNFUTUREVALUE_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 128 - TIMEOFFREASON_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 256 - TIMEOFF_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 512 - TIMEOFFREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 1024 + TIMECARD_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 256 + TIMEOFFREASON_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 512 + TIMEOFF_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 1024 + TIMEOFFREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES = 2048 ) func (i WorkforceIntegrationSupportedEntities) String() string { var values []string - options := []string{"none", "shift", "swapRequest", "userShiftPreferences", "openShift", "openShiftRequest", "offerShiftRequest", "unknownFutureValue", "timeOffReason", "timeOff", "timeOffRequest"} - for p := 0; p < 11; p++ { + options := []string{"none", "shift", "swapRequest", "userShiftPreferences", "openShift", "openShiftRequest", "offerShiftRequest", "unknownFutureValue", "timeCard", "timeOffReason", "timeOff", "timeOffRequest"} + for p := 0; p < 12; p++ { mantis := WorkforceIntegrationSupportedEntities(int(math.Pow(2, float64(p)))) if i&mantis == mantis { values = append(values, options[p]) @@ -51,6 +52,8 @@ func ParseWorkforceIntegrationSupportedEntities(v string) (any, error) { result |= OFFERSHIFTREQUEST_WORKFORCEINTEGRATIONSUPPORTEDENTITIES case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_WORKFORCEINTEGRATIONSUPPORTEDENTITIES + case "timeCard": + result |= TIMECARD_WORKFORCEINTEGRATIONSUPPORTEDENTITIES case "timeOffReason": result |= TIMEOFFREASON_WORKFORCEINTEGRATIONSUPPORTEDENTITIES case "timeOff": diff --git a/organization/item_branding_localizations_item_banner_logo_request_builder.go b/organization/item_branding_localizations_item_banner_logo_request_builder.go index 1d12df19d1..387fd0524f 100644 --- a/organization/item_branding_localizations_item_banner_logo_request_builder.go +++ b/organization/item_branding_localizations_item_banner_logo_request_builder.go @@ -60,12 +60,12 @@ func (m *ItemBrandingLocalizationsItemBannerLogoRequestBuilder) Delete(ctx conte } return nil } -// Get read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. +// Get retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/organizationalbrandinglocalization-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/organizationalbranding-get?view=graph-rest-1.0 func (m *ItemBrandingLocalizationsItemBannerLogoRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemBrandingLocalizationsItemBannerLogoRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -117,7 +117,7 @@ func (m *ItemBrandingLocalizationsItemBannerLogoRequestBuilder) ToDeleteRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. +// ToGetRequestInformation retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. // returns a *RequestInformation when successful func (m *ItemBrandingLocalizationsItemBannerLogoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemBrandingLocalizationsItemBannerLogoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/organization/organization_item_request_builder.go b/organization/organization_item_request_builder.go index 342f99d404..df8c286116 100644 --- a/organization/organization_item_request_builder.go +++ b/organization/organization_item_request_builder.go @@ -18,7 +18,7 @@ type OrganizationItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// OrganizationItemRequestBuilderGetQueryParameters read properties and relationships of the organization object. +// OrganizationItemRequestBuilderGetQueryParameters get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. type OrganizationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -95,12 +95,12 @@ func (m *OrganizationItemRequestBuilder) Delete(ctx context.Context, requestConf func (m *OrganizationItemRequestBuilder) Extensions()(*ItemExtensionsRequestBuilder) { return NewItemExtensionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the organization object. +// Get get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. // returns a Organizationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-organization-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-1.0 func (m *OrganizationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *OrganizationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Organizationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -172,7 +172,7 @@ func (m *OrganizationItemRequestBuilder) ToDeleteRequestInformation(ctx context. requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the organization object. +// ToGetRequestInformation get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. // returns a *RequestInformation when successful func (m *OrganizationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OrganizationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/serviceprincipals/item_owners_ref_request_builder.go b/serviceprincipals/item_owners_ref_request_builder.go index ff3a5393bc..b926e6bb73 100644 --- a/serviceprincipals/item_owners_ref_request_builder.go +++ b/serviceprincipals/item_owners_ref_request_builder.go @@ -25,7 +25,7 @@ type ItemOwnersRefRequestBuilderDeleteRequestConfiguration struct { // Request query parameters QueryParameters *ItemOwnersRefRequestBuilderDeleteQueryParameters } -// ItemOwnersRefRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// ItemOwnersRefRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. type ItemOwnersRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -88,7 +88,7 @@ func (m *ItemOwnersRefRequestBuilder) Delete(ctx context.Context, requestConfigu } return nil } -// Get directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// Get directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // returns a StringCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersRefRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.StringCollectionResponseable, error) { @@ -141,7 +141,7 @@ func (m *ItemOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) diff --git a/serviceprincipals/item_owners_request_builder.go b/serviceprincipals/item_owners_request_builder.go index 401c7d5560..a5494ebb65 100644 --- a/serviceprincipals/item_owners_request_builder.go +++ b/serviceprincipals/item_owners_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnersRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// ItemOwnersRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. type ItemOwnersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewItemOwnersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *ItemOwnersRequestBuilder) Count()(*ItemOwnersCountRequestBuilder) { return NewItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// Get directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectCollectionResponseable, error) { @@ -114,7 +114,7 @@ func (m *ItemOwnersRequestBuilder) GraphUser()(*ItemOwnersGraphUserRequestBuilde func (m *ItemOwnersRequestBuilder) Ref()(*ItemOwnersRefRequestBuilder) { return NewItemOwnersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. +// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. // returns a *RequestInformation when successful func (m *ItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index fc6bc5ae51..dbda4c953a 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -11,7 +11,7 @@ import ( type SitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// SitesRequestBuilderGetQueryParameters search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. +// SitesRequestBuilderGetQueryParameters list all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. type SitesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -79,12 +79,12 @@ func (m *SitesRequestBuilder) Count()(*CountRequestBuilder) { func (m *SitesRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. +// Get list all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. // returns a SiteCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/site-search?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/site-list?view=graph-rest-1.0 func (m *SitesRequestBuilder) Get(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SiteCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *SitesRequestBuilder) GetAllSites()(*GetAllSitesRequestBuilder) { func (m *SitesRequestBuilder) Remove()(*RemoveRequestBuilder) { return NewRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. +// ToGetRequestInformation list all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. // returns a *RequestInformation when successful func (m *SitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_members_conversation_member_item_request_builder.go b/teams/item_channels_item_members_conversation_member_item_request_builder.go index ae2ecb4325..3a1ee4dc79 100644 --- a/teams/item_channels_item_members_conversation_member_item_request_builder.go +++ b/teams/item_channels_item_members_conversation_member_item_request_builder.go @@ -54,11 +54,11 @@ func NewItemChannelsItemMembersConversationMemberItemRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewItemChannelsItemMembersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a conversationMember from a channel. +// Delete delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0 func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationMemberable), nil } -// ToDeleteRequestInformation delete a conversationMember from a channel. +// ToDeleteRequestInformation delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. // returns a *RequestInformation when successful func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_messages_item_replies_request_builder.go b/teams/item_channels_item_messages_item_replies_request_builder.go index eee4373c34..0fad964c67 100644 --- a/teams/item_channels_item_messages_item_replies_request_builder.go +++ b/teams/item_channels_item_messages_item_replies_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemChannelsItemMessagesItemRepliesRequestBuilder) Get(ctx context.Cont } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageCollectionResponseable), nil } -// Post send a new reply to a chatMessage in a specified channel. +// Post create a new reply to a chatMessage in a specified channel. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0 func (m *ItemChannelsItemMessagesItemRepliesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, requestConfiguration *ItemChannelsItemMessagesItemRepliesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemChannelsItemMessagesItemRepliesRequestBuilder) ToGetRequestInformat requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new reply to a chatMessage in a specified channel. +// ToPostRequestInformation create a new reply to a chatMessage in a specified channel. // returns a *RequestInformation when successful func (m *ItemChannelsItemMessagesItemRepliesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, requestConfiguration *ItemChannelsItemMessagesItemRepliesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_messages_request_builder.go b/teams/item_channels_item_messages_request_builder.go index c30e9e2053..30a8a46ab2 100644 --- a/teams/item_channels_item_messages_request_builder.go +++ b/teams/item_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemChannelsItemMessagesRequestBuilder) Get(ctx context.Context, reques } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel. +// Post send a new chatMessage in the specified channel or a chat. // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 func (m *ItemChannelsItemMessagesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, requestConfiguration *ItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemChannelsItemMessagesRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel. +// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. // returns a *RequestInformation when successful func (m *ItemChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, requestConfiguration *ItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_schedule_day_notes_count_request_builder.go b/teams/item_schedule_day_notes_count_request_builder.go new file mode 100644 index 0000000000..4b2ed39677 --- /dev/null +++ b/teams/item_schedule_day_notes_count_request_builder.go @@ -0,0 +1,80 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleDayNotesCountRequestBuilder provides operations to count the resources in the collection. +type ItemScheduleDayNotesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleDayNotesCountRequestBuilderGetQueryParameters get the number of the resource +type ItemScheduleDayNotesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemScheduleDayNotesCountRequestBuilderGetQueryParameters +} +// NewItemScheduleDayNotesCountRequestBuilderInternal instantiates a new ItemScheduleDayNotesCountRequestBuilder and sets the default values. +func NewItemScheduleDayNotesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleDayNotesCountRequestBuilder) { + m := &ItemScheduleDayNotesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/dayNotes/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemScheduleDayNotesCountRequestBuilder instantiates a new ItemScheduleDayNotesCountRequestBuilder and sets the default values. +func NewItemScheduleDayNotesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleDayNotesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleDayNotesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleDayNotesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemScheduleDayNotesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleDayNotesCountRequestBuilder when successful +func (m *ItemScheduleDayNotesCountRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleDayNotesCountRequestBuilder) { + return NewItemScheduleDayNotesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_day_notes_day_note_item_request_builder.go b/teams/item_schedule_day_notes_day_note_item_request_builder.go new file mode 100644 index 0000000000..6ca040d3be --- /dev/null +++ b/teams/item_schedule_day_notes_day_note_item_request_builder.go @@ -0,0 +1,157 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleDayNotesDayNoteItemRequestBuilder provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +type ItemScheduleDayNotesDayNoteItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters the day notes in the schedule. +type ItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters +} +// ItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemScheduleDayNotesDayNoteItemRequestBuilderInternal instantiates a new ItemScheduleDayNotesDayNoteItemRequestBuilder and sets the default values. +func NewItemScheduleDayNotesDayNoteItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleDayNotesDayNoteItemRequestBuilder) { + m := &ItemScheduleDayNotesDayNoteItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/dayNotes/{dayNote%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemScheduleDayNotesDayNoteItemRequestBuilder instantiates a new ItemScheduleDayNotesDayNoteItemRequestBuilder and sets the default values. +func NewItemScheduleDayNotesDayNoteItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleDayNotesDayNoteItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleDayNotesDayNoteItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property dayNotes for teams +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleDayNotesDayNoteItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the day notes in the schedule. +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleDayNotesDayNoteItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// Patch update the navigation property dayNotes in teams +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleDayNotesDayNoteItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// ToDeleteRequestInformation delete navigation property dayNotes for teams +// returns a *RequestInformation when successful +func (m *ItemScheduleDayNotesDayNoteItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the day notes in the schedule. +// returns a *RequestInformation when successful +func (m *ItemScheduleDayNotesDayNoteItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property dayNotes in teams +// returns a *RequestInformation when successful +func (m *ItemScheduleDayNotesDayNoteItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleDayNotesDayNoteItemRequestBuilder when successful +func (m *ItemScheduleDayNotesDayNoteItemRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleDayNotesDayNoteItemRequestBuilder) { + return NewItemScheduleDayNotesDayNoteItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_day_notes_request_builder.go b/teams/item_schedule_day_notes_request_builder.go new file mode 100644 index 0000000000..83f68c06b6 --- /dev/null +++ b/teams/item_schedule_day_notes_request_builder.go @@ -0,0 +1,152 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleDayNotesRequestBuilder provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +type ItemScheduleDayNotesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleDayNotesRequestBuilderGetQueryParameters the day notes in the schedule. +type ItemScheduleDayNotesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemScheduleDayNotesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleDayNotesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemScheduleDayNotesRequestBuilderGetQueryParameters +} +// ItemScheduleDayNotesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleDayNotesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByDayNoteId provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +// returns a *ItemScheduleDayNotesDayNoteItemRequestBuilder when successful +func (m *ItemScheduleDayNotesRequestBuilder) ByDayNoteId(dayNoteId string)(*ItemScheduleDayNotesDayNoteItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if dayNoteId != "" { + urlTplParams["dayNote%2Did"] = dayNoteId + } + return NewItemScheduleDayNotesDayNoteItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemScheduleDayNotesRequestBuilderInternal instantiates a new ItemScheduleDayNotesRequestBuilder and sets the default values. +func NewItemScheduleDayNotesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleDayNotesRequestBuilder) { + m := &ItemScheduleDayNotesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/dayNotes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemScheduleDayNotesRequestBuilder instantiates a new ItemScheduleDayNotesRequestBuilder and sets the default values. +func NewItemScheduleDayNotesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleDayNotesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleDayNotesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemScheduleDayNotesCountRequestBuilder when successful +func (m *ItemScheduleDayNotesRequestBuilder) Count()(*ItemScheduleDayNotesCountRequestBuilder) { + return NewItemScheduleDayNotesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the day notes in the schedule. +// returns a DayNoteCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleDayNotesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScheduleDayNotesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable), nil +} +// Post create new navigation property to dayNotes for teams +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleDayNotesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemScheduleDayNotesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// ToGetRequestInformation the day notes in the schedule. +// returns a *RequestInformation when successful +func (m *ItemScheduleDayNotesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleDayNotesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to dayNotes for teams +// returns a *RequestInformation when successful +func (m *ItemScheduleDayNotesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemScheduleDayNotesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleDayNotesRequestBuilder when successful +func (m *ItemScheduleDayNotesRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleDayNotesRequestBuilder) { + return NewItemScheduleDayNotesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_request_builder.go b/teams/item_schedule_request_builder.go index 4056966dbb..92c81fee14 100644 --- a/teams/item_schedule_request_builder.go +++ b/teams/item_schedule_request_builder.go @@ -54,6 +54,11 @@ func NewItemScheduleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2 urlParams["request-raw-url"] = rawUrl return NewItemScheduleRequestBuilderInternal(urlParams, requestAdapter) } +// DayNotes provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +// returns a *ItemScheduleDayNotesRequestBuilder when successful +func (m *ItemScheduleRequestBuilder) DayNotes()(*ItemScheduleDayNotesRequestBuilder) { + return NewItemScheduleDayNotesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Delete delete navigation property schedule for teams // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScheduleRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemScheduleRequestBuilderDeleteRequestConfiguration)(error) { @@ -151,6 +156,11 @@ func (m *ItemScheduleRequestBuilder) Shifts()(*ItemScheduleShiftsRequestBuilder) func (m *ItemScheduleRequestBuilder) SwapShiftsChangeRequests()(*ItemScheduleSwapShiftsChangeRequestsRequestBuilder) { return NewItemScheduleSwapShiftsChangeRequestsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// TimeCards provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +// returns a *ItemScheduleTimeCardsRequestBuilder when successful +func (m *ItemScheduleRequestBuilder) TimeCards()(*ItemScheduleTimeCardsRequestBuilder) { + return NewItemScheduleTimeCardsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // TimeOffReasons provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity. // returns a *ItemScheduleTimeOffReasonsRequestBuilder when successful func (m *ItemScheduleRequestBuilder) TimeOffReasons()(*ItemScheduleTimeOffReasonsRequestBuilder) { diff --git a/teams/item_schedule_time_cards_clock_in_post_request_body.go b/teams/item_schedule_time_cards_clock_in_post_request_body.go new file mode 100644 index 0000000000..e7360a10bb --- /dev/null +++ b/teams/item_schedule_time_cards_clock_in_post_request_body.go @@ -0,0 +1,151 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemScheduleTimeCardsClockInPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemScheduleTimeCardsClockInPostRequestBody instantiates a new ItemScheduleTimeCardsClockInPostRequestBody and sets the default values. +func NewItemScheduleTimeCardsClockInPostRequestBody()(*ItemScheduleTimeCardsClockInPostRequestBody) { + m := &ItemScheduleTimeCardsClockInPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemScheduleTimeCardsClockInPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemScheduleTimeCardsClockInPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemScheduleTimeCardsClockInPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemScheduleTimeCardsClockInPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemScheduleTimeCardsClockInPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemScheduleTimeCardsClockInPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemScheduleTimeCardsClockInPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemScheduleTimeCardsClockInPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemScheduleTimeCardsClockInPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemScheduleTimeCardsClockInPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemScheduleTimeCardsClockInPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemScheduleTimeCardsClockInPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/teams/item_schedule_time_cards_clock_in_request_builder.go b/teams/item_schedule_time_cards_clock_in_request_builder.go new file mode 100644 index 0000000000..4f12fdbaa4 --- /dev/null +++ b/teams/item_schedule_time_cards_clock_in_request_builder.go @@ -0,0 +1,76 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleTimeCardsClockInRequestBuilder provides operations to call the clockIn method. +type ItemScheduleTimeCardsClockInRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemScheduleTimeCardsClockInRequestBuilderInternal instantiates a new ItemScheduleTimeCardsClockInRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsClockInRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsClockInRequestBuilder) { + m := &ItemScheduleTimeCardsClockInRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeCards/clockIn", pathParameters), + } + return m +} +// NewItemScheduleTimeCardsClockInRequestBuilder instantiates a new ItemScheduleTimeCardsClockInRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsClockInRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsClockInRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleTimeCardsClockInRequestBuilderInternal(urlParams, requestAdapter) +} +// Post clock in to start a timeCard. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/timecard-clockin?view=graph-rest-1.0 +func (m *ItemScheduleTimeCardsClockInRequestBuilder) Post(ctx context.Context, body ItemScheduleTimeCardsClockInPostRequestBodyable, requestConfiguration *ItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation clock in to start a timeCard. +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsClockInRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemScheduleTimeCardsClockInPostRequestBodyable, requestConfiguration *ItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleTimeCardsClockInRequestBuilder when successful +func (m *ItemScheduleTimeCardsClockInRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleTimeCardsClockInRequestBuilder) { + return NewItemScheduleTimeCardsClockInRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_time_cards_count_request_builder.go b/teams/item_schedule_time_cards_count_request_builder.go new file mode 100644 index 0000000000..c14c06e80d --- /dev/null +++ b/teams/item_schedule_time_cards_count_request_builder.go @@ -0,0 +1,80 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleTimeCardsCountRequestBuilder provides operations to count the resources in the collection. +type ItemScheduleTimeCardsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleTimeCardsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemScheduleTimeCardsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemScheduleTimeCardsCountRequestBuilderGetQueryParameters +} +// NewItemScheduleTimeCardsCountRequestBuilderInternal instantiates a new ItemScheduleTimeCardsCountRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsCountRequestBuilder) { + m := &ItemScheduleTimeCardsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeCards/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemScheduleTimeCardsCountRequestBuilder instantiates a new ItemScheduleTimeCardsCountRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleTimeCardsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleTimeCardsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleTimeCardsCountRequestBuilder when successful +func (m *ItemScheduleTimeCardsCountRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleTimeCardsCountRequestBuilder) { + return NewItemScheduleTimeCardsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_time_cards_item_clock_out_post_request_body.go b/teams/item_schedule_time_cards_item_clock_out_post_request_body.go new file mode 100644 index 0000000000..ff525987ed --- /dev/null +++ b/teams/item_schedule_time_cards_item_clock_out_post_request_body.go @@ -0,0 +1,151 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemScheduleTimeCardsItemClockOutPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemScheduleTimeCardsItemClockOutPostRequestBody instantiates a new ItemScheduleTimeCardsItemClockOutPostRequestBody and sets the default values. +func NewItemScheduleTimeCardsItemClockOutPostRequestBody()(*ItemScheduleTimeCardsItemClockOutPostRequestBody) { + m := &ItemScheduleTimeCardsItemClockOutPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemScheduleTimeCardsItemClockOutPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemScheduleTimeCardsItemClockOutPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemScheduleTimeCardsItemClockOutPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/teams/item_schedule_time_cards_item_clock_out_request_builder.go b/teams/item_schedule_time_cards_item_clock_out_request_builder.go new file mode 100644 index 0000000000..bccf9dd765 --- /dev/null +++ b/teams/item_schedule_time_cards_item_clock_out_request_builder.go @@ -0,0 +1,73 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleTimeCardsItemClockOutRequestBuilder provides operations to call the clockOut method. +type ItemScheduleTimeCardsItemClockOutRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemScheduleTimeCardsItemClockOutRequestBuilderInternal instantiates a new ItemScheduleTimeCardsItemClockOutRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsItemClockOutRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsItemClockOutRequestBuilder) { + m := &ItemScheduleTimeCardsItemClockOutRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeCards/{timeCard%2Did}/clockOut", pathParameters), + } + return m +} +// NewItemScheduleTimeCardsItemClockOutRequestBuilder instantiates a new ItemScheduleTimeCardsItemClockOutRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsItemClockOutRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsItemClockOutRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleTimeCardsItemClockOutRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clockOut +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleTimeCardsItemClockOutRequestBuilder) Post(ctx context.Context, body ItemScheduleTimeCardsItemClockOutPostRequestBodyable, requestConfiguration *ItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action clockOut +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsItemClockOutRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemScheduleTimeCardsItemClockOutPostRequestBodyable, requestConfiguration *ItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleTimeCardsItemClockOutRequestBuilder when successful +func (m *ItemScheduleTimeCardsItemClockOutRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleTimeCardsItemClockOutRequestBuilder) { + return NewItemScheduleTimeCardsItemClockOutRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_time_cards_item_confirm_request_builder.go b/teams/item_schedule_time_cards_item_confirm_request_builder.go new file mode 100644 index 0000000000..4563f517ec --- /dev/null +++ b/teams/item_schedule_time_cards_item_confirm_request_builder.go @@ -0,0 +1,72 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleTimeCardsItemConfirmRequestBuilder provides operations to call the confirm method. +type ItemScheduleTimeCardsItemConfirmRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemScheduleTimeCardsItemConfirmRequestBuilderInternal instantiates a new ItemScheduleTimeCardsItemConfirmRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsItemConfirmRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsItemConfirmRequestBuilder) { + m := &ItemScheduleTimeCardsItemConfirmRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeCards/{timeCard%2Did}/confirm", pathParameters), + } + return m +} +// NewItemScheduleTimeCardsItemConfirmRequestBuilder instantiates a new ItemScheduleTimeCardsItemConfirmRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsItemConfirmRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsItemConfirmRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleTimeCardsItemConfirmRequestBuilderInternal(urlParams, requestAdapter) +} +// Post confirm a timeCard. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/timecard-confirm?view=graph-rest-1.0 +func (m *ItemScheduleTimeCardsItemConfirmRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation confirm a timeCard. +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsItemConfirmRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleTimeCardsItemConfirmRequestBuilder when successful +func (m *ItemScheduleTimeCardsItemConfirmRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleTimeCardsItemConfirmRequestBuilder) { + return NewItemScheduleTimeCardsItemConfirmRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_time_cards_item_end_break_post_request_body.go b/teams/item_schedule_time_cards_item_end_break_post_request_body.go new file mode 100644 index 0000000000..3d4ea80bac --- /dev/null +++ b/teams/item_schedule_time_cards_item_end_break_post_request_body.go @@ -0,0 +1,151 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemScheduleTimeCardsItemEndBreakPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemScheduleTimeCardsItemEndBreakPostRequestBody instantiates a new ItemScheduleTimeCardsItemEndBreakPostRequestBody and sets the default values. +func NewItemScheduleTimeCardsItemEndBreakPostRequestBody()(*ItemScheduleTimeCardsItemEndBreakPostRequestBody) { + m := &ItemScheduleTimeCardsItemEndBreakPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemScheduleTimeCardsItemEndBreakPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemScheduleTimeCardsItemEndBreakPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemScheduleTimeCardsItemEndBreakPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/teams/item_schedule_time_cards_item_end_break_request_builder.go b/teams/item_schedule_time_cards_item_end_break_request_builder.go new file mode 100644 index 0000000000..3f655d3e0b --- /dev/null +++ b/teams/item_schedule_time_cards_item_end_break_request_builder.go @@ -0,0 +1,73 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleTimeCardsItemEndBreakRequestBuilder provides operations to call the endBreak method. +type ItemScheduleTimeCardsItemEndBreakRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemScheduleTimeCardsItemEndBreakRequestBuilderInternal instantiates a new ItemScheduleTimeCardsItemEndBreakRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsItemEndBreakRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsItemEndBreakRequestBuilder) { + m := &ItemScheduleTimeCardsItemEndBreakRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeCards/{timeCard%2Did}/endBreak", pathParameters), + } + return m +} +// NewItemScheduleTimeCardsItemEndBreakRequestBuilder instantiates a new ItemScheduleTimeCardsItemEndBreakRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsItemEndBreakRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsItemEndBreakRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleTimeCardsItemEndBreakRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action endBreak +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleTimeCardsItemEndBreakRequestBuilder) Post(ctx context.Context, body ItemScheduleTimeCardsItemEndBreakPostRequestBodyable, requestConfiguration *ItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action endBreak +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsItemEndBreakRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemScheduleTimeCardsItemEndBreakPostRequestBodyable, requestConfiguration *ItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleTimeCardsItemEndBreakRequestBuilder when successful +func (m *ItemScheduleTimeCardsItemEndBreakRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleTimeCardsItemEndBreakRequestBuilder) { + return NewItemScheduleTimeCardsItemEndBreakRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_time_cards_item_start_break_post_request_body.go b/teams/item_schedule_time_cards_item_start_break_post_request_body.go new file mode 100644 index 0000000000..193946c2e5 --- /dev/null +++ b/teams/item_schedule_time_cards_item_start_break_post_request_body.go @@ -0,0 +1,151 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemScheduleTimeCardsItemStartBreakPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemScheduleTimeCardsItemStartBreakPostRequestBody instantiates a new ItemScheduleTimeCardsItemStartBreakPostRequestBody and sets the default values. +func NewItemScheduleTimeCardsItemStartBreakPostRequestBody()(*ItemScheduleTimeCardsItemStartBreakPostRequestBody) { + m := &ItemScheduleTimeCardsItemStartBreakPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemScheduleTimeCardsItemStartBreakPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemScheduleTimeCardsItemStartBreakPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemScheduleTimeCardsItemStartBreakPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/teams/item_schedule_time_cards_item_start_break_request_builder.go b/teams/item_schedule_time_cards_item_start_break_request_builder.go new file mode 100644 index 0000000000..caac3b7557 --- /dev/null +++ b/teams/item_schedule_time_cards_item_start_break_request_builder.go @@ -0,0 +1,73 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleTimeCardsItemStartBreakRequestBuilder provides operations to call the startBreak method. +type ItemScheduleTimeCardsItemStartBreakRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemScheduleTimeCardsItemStartBreakRequestBuilderInternal instantiates a new ItemScheduleTimeCardsItemStartBreakRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsItemStartBreakRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsItemStartBreakRequestBuilder) { + m := &ItemScheduleTimeCardsItemStartBreakRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeCards/{timeCard%2Did}/startBreak", pathParameters), + } + return m +} +// NewItemScheduleTimeCardsItemStartBreakRequestBuilder instantiates a new ItemScheduleTimeCardsItemStartBreakRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsItemStartBreakRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsItemStartBreakRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleTimeCardsItemStartBreakRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action startBreak +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleTimeCardsItemStartBreakRequestBuilder) Post(ctx context.Context, body ItemScheduleTimeCardsItemStartBreakPostRequestBodyable, requestConfiguration *ItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action startBreak +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsItemStartBreakRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemScheduleTimeCardsItemStartBreakPostRequestBodyable, requestConfiguration *ItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleTimeCardsItemStartBreakRequestBuilder when successful +func (m *ItemScheduleTimeCardsItemStartBreakRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleTimeCardsItemStartBreakRequestBuilder) { + return NewItemScheduleTimeCardsItemStartBreakRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_time_cards_request_builder.go b/teams/item_schedule_time_cards_request_builder.go new file mode 100644 index 0000000000..2b62d5195b --- /dev/null +++ b/teams/item_schedule_time_cards_request_builder.go @@ -0,0 +1,163 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleTimeCardsRequestBuilder provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +type ItemScheduleTimeCardsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleTimeCardsRequestBuilderGetQueryParameters retrieve a list of timeCard entries in a schedule. +type ItemScheduleTimeCardsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemScheduleTimeCardsRequestBuilderGetQueryParameters +} +// ItemScheduleTimeCardsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByTimeCardId provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +// returns a *ItemScheduleTimeCardsTimeCardItemRequestBuilder when successful +func (m *ItemScheduleTimeCardsRequestBuilder) ByTimeCardId(timeCardId string)(*ItemScheduleTimeCardsTimeCardItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if timeCardId != "" { + urlTplParams["timeCard%2Did"] = timeCardId + } + return NewItemScheduleTimeCardsTimeCardItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ClockIn provides operations to call the clockIn method. +// returns a *ItemScheduleTimeCardsClockInRequestBuilder when successful +func (m *ItemScheduleTimeCardsRequestBuilder) ClockIn()(*ItemScheduleTimeCardsClockInRequestBuilder) { + return NewItemScheduleTimeCardsClockInRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemScheduleTimeCardsRequestBuilderInternal instantiates a new ItemScheduleTimeCardsRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsRequestBuilder) { + m := &ItemScheduleTimeCardsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemScheduleTimeCardsRequestBuilder instantiates a new ItemScheduleTimeCardsRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleTimeCardsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemScheduleTimeCardsCountRequestBuilder when successful +func (m *ItemScheduleTimeCardsRequestBuilder) Count()(*ItemScheduleTimeCardsCountRequestBuilder) { + return NewItemScheduleTimeCardsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get retrieve a list of timeCard entries in a schedule. +// returns a TimeCardCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/schedule-list-timecards?view=graph-rest-1.0 +func (m *ItemScheduleTimeCardsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable), nil +} +// Post create a timeCard instance in a schedule. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/schedule-post-timecards?view=graph-rest-1.0 +func (m *ItemScheduleTimeCardsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemScheduleTimeCardsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToGetRequestInformation retrieve a list of timeCard entries in a schedule. +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create a timeCard instance in a schedule. +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemScheduleTimeCardsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleTimeCardsRequestBuilder when successful +func (m *ItemScheduleTimeCardsRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleTimeCardsRequestBuilder) { + return NewItemScheduleTimeCardsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_schedule_time_cards_time_card_item_request_builder.go b/teams/item_schedule_time_cards_time_card_item_request_builder.go new file mode 100644 index 0000000000..d1bfd40349 --- /dev/null +++ b/teams/item_schedule_time_cards_time_card_item_request_builder.go @@ -0,0 +1,180 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemScheduleTimeCardsTimeCardItemRequestBuilder provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +type ItemScheduleTimeCardsTimeCardItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters the time cards in the schedule. +type ItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters +} +// ItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ClockOut provides operations to call the clockOut method. +// returns a *ItemScheduleTimeCardsItemClockOutRequestBuilder when successful +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) ClockOut()(*ItemScheduleTimeCardsItemClockOutRequestBuilder) { + return NewItemScheduleTimeCardsItemClockOutRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Confirm provides operations to call the confirm method. +// returns a *ItemScheduleTimeCardsItemConfirmRequestBuilder when successful +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) Confirm()(*ItemScheduleTimeCardsItemConfirmRequestBuilder) { + return NewItemScheduleTimeCardsItemConfirmRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemScheduleTimeCardsTimeCardItemRequestBuilderInternal instantiates a new ItemScheduleTimeCardsTimeCardItemRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsTimeCardItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsTimeCardItemRequestBuilder) { + m := &ItemScheduleTimeCardsTimeCardItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/schedule/timeCards/{timeCard%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemScheduleTimeCardsTimeCardItemRequestBuilder instantiates a new ItemScheduleTimeCardsTimeCardItemRequestBuilder and sets the default values. +func NewItemScheduleTimeCardsTimeCardItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemScheduleTimeCardsTimeCardItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemScheduleTimeCardsTimeCardItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete a timeCard instance in a schedule. +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/schedule-delete-timecards?view=graph-rest-1.0 +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// EndBreak provides operations to call the endBreak method. +// returns a *ItemScheduleTimeCardsItemEndBreakRequestBuilder when successful +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) EndBreak()(*ItemScheduleTimeCardsItemEndBreakRequestBuilder) { + return NewItemScheduleTimeCardsItemEndBreakRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the time cards in the schedule. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// Patch update the navigation property timeCards in teams +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// StartBreak provides operations to call the startBreak method. +// returns a *ItemScheduleTimeCardsItemStartBreakRequestBuilder when successful +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) StartBreak()(*ItemScheduleTimeCardsItemStartBreakRequestBuilder) { + return NewItemScheduleTimeCardsItemStartBreakRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete a timeCard instance in a schedule. +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the time cards in the schedule. +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property timeCards in teams +// returns a *RequestInformation when successful +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemScheduleTimeCardsTimeCardItemRequestBuilder when successful +func (m *ItemScheduleTimeCardsTimeCardItemRequestBuilder) WithUrl(rawUrl string)(*ItemScheduleTimeCardsTimeCardItemRequestBuilder) { + return NewItemScheduleTimeCardsTimeCardItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/tenantrelationships/multi_tenant_organization_request_builder.go b/tenantrelationships/multi_tenant_organization_request_builder.go index cbcb06192e..4ab172642e 100644 --- a/tenantrelationships/multi_tenant_organization_request_builder.go +++ b/tenantrelationships/multi_tenant_organization_request_builder.go @@ -75,12 +75,12 @@ func (m *MultiTenantOrganizationRequestBuilder) Get(ctx context.Context, request func (m *MultiTenantOrganizationRequestBuilder) JoinRequest()(*MultiTenantOrganizationJoinRequestRequestBuilder) { return NewMultiTenantOrganizationJoinRequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a multitenant organization. +// Patch create a new multitenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multitenant organization. // returns a MultiTenantOrganizationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/multitenantorganization-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0 func (m *MultiTenantOrganizationRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MultiTenantOrganizationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -117,7 +117,7 @@ func (m *MultiTenantOrganizationRequestBuilder) ToGetRequestInformation(ctx cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a multitenant organization. +// ToPatchRequestInformation create a new multitenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multitenant organization. // returns a *RequestInformation when successful func (m *MultiTenantOrganizationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_joined_teams_item_schedule_day_notes_count_request_builder.go b/users/item_joined_teams_item_schedule_day_notes_count_request_builder.go new file mode 100644 index 0000000000..79fb12fb55 --- /dev/null +++ b/users/item_joined_teams_item_schedule_day_notes_count_request_builder.go @@ -0,0 +1,80 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder provides operations to count the resources in the collection. +type ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetQueryParameters get the number of the resource +type ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetQueryParameters +} +// NewItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/dayNotes/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder) { + return NewItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_day_notes_day_note_item_request_builder.go b/users/item_joined_teams_item_schedule_day_notes_day_note_item_request_builder.go new file mode 100644 index 0000000000..3f63514026 --- /dev/null +++ b/users/item_joined_teams_item_schedule_day_notes_day_note_item_request_builder.go @@ -0,0 +1,157 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +type ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters the day notes in the schedule. +type ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetQueryParameters +} +// ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/dayNotes/{dayNote%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property dayNotes for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the day notes in the schedule. +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// Patch update the navigation property dayNotes in users +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// ToDeleteRequestInformation delete navigation property dayNotes for users +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the day notes in the schedule. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property dayNotes in users +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) { + return NewItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_day_notes_request_builder.go b/users/item_joined_teams_item_schedule_day_notes_request_builder.go new file mode 100644 index 0000000000..d3a31739e5 --- /dev/null +++ b/users/item_joined_teams_item_schedule_day_notes_request_builder.go @@ -0,0 +1,152 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleDayNotesRequestBuilder provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +type ItemJoinedTeamsItemScheduleDayNotesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters the day notes in the schedule. +type ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetQueryParameters +} +// ItemJoinedTeamsItemScheduleDayNotesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleDayNotesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByDayNoteId provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +// returns a *ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) ByDayNoteId(dayNoteId string)(*ItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if dayNoteId != "" { + urlTplParams["dayNote%2Did"] = dayNoteId + } + return NewItemJoinedTeamsItemScheduleDayNotesDayNoteItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemJoinedTeamsItemScheduleDayNotesRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleDayNotesRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleDayNotesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleDayNotesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/dayNotes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleDayNotesRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleDayNotesRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleDayNotesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleDayNotesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) Count()(*ItemJoinedTeamsItemScheduleDayNotesCountRequestBuilder) { + return NewItemJoinedTeamsItemScheduleDayNotesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the day notes in the schedule. +// returns a DayNoteCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteCollectionResponseable), nil +} +// Post create new navigation property to dayNotes for users +// returns a DayNoteable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDayNoteFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable), nil +} +// ToGetRequestInformation the day notes in the schedule. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to dayNotes for users +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DayNoteable, requestConfiguration *ItemJoinedTeamsItemScheduleDayNotesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) { + return NewItemJoinedTeamsItemScheduleDayNotesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_request_builder.go b/users/item_joined_teams_item_schedule_request_builder.go index b2793a6d76..17983f659c 100644 --- a/users/item_joined_teams_item_schedule_request_builder.go +++ b/users/item_joined_teams_item_schedule_request_builder.go @@ -54,6 +54,11 @@ func NewItemJoinedTeamsItemScheduleRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewItemJoinedTeamsItemScheduleRequestBuilderInternal(urlParams, requestAdapter) } +// DayNotes provides operations to manage the dayNotes property of the microsoft.graph.schedule entity. +// returns a *ItemJoinedTeamsItemScheduleDayNotesRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleRequestBuilder) DayNotes()(*ItemJoinedTeamsItemScheduleDayNotesRequestBuilder) { + return NewItemJoinedTeamsItemScheduleDayNotesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Delete delete navigation property schedule for users // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemJoinedTeamsItemScheduleRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleRequestBuilderDeleteRequestConfiguration)(error) { @@ -145,6 +150,11 @@ func (m *ItemJoinedTeamsItemScheduleRequestBuilder) Shifts()(*ItemJoinedTeamsIte func (m *ItemJoinedTeamsItemScheduleRequestBuilder) SwapShiftsChangeRequests()(*ItemJoinedTeamsItemScheduleSwapShiftsChangeRequestsRequestBuilder) { return NewItemJoinedTeamsItemScheduleSwapShiftsChangeRequestsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// TimeCards provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleRequestBuilder) TimeCards()(*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // TimeOffReasons provides operations to manage the timeOffReasons property of the microsoft.graph.schedule entity. // returns a *ItemJoinedTeamsItemScheduleTimeOffReasonsRequestBuilder when successful func (m *ItemJoinedTeamsItemScheduleRequestBuilder) TimeOffReasons()(*ItemJoinedTeamsItemScheduleTimeOffReasonsRequestBuilder) { diff --git a/users/item_joined_teams_item_schedule_time_cards_clock_in_post_request_body.go b/users/item_joined_teams_item_schedule_time_cards_clock_in_post_request_body.go new file mode 100644 index 0000000000..47ea08775f --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_clock_in_post_request_body.go @@ -0,0 +1,151 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody instantiates a new ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody()(*ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) { + m := &ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/users/item_joined_teams_item_schedule_time_cards_clock_in_request_builder.go b/users/item_joined_teams_item_schedule_time_cards_clock_in_request_builder.go new file mode 100644 index 0000000000..9800ff1662 --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_clock_in_request_builder.go @@ -0,0 +1,76 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder provides operations to call the clockIn method. +type ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeCards/clockIn", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderInternal(urlParams, requestAdapter) +} +// Post clock in to start a timeCard. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/timecard-clockin?view=graph-rest-1.0 +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder) Post(ctx context.Context, body ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation clock in to start a timeCard. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemJoinedTeamsItemScheduleTimeCardsClockInPostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_time_cards_count_request_builder.go b/users/item_joined_teams_item_schedule_time_cards_count_request_builder.go new file mode 100644 index 0000000000..5b9462cace --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_count_request_builder.go @@ -0,0 +1,80 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder provides operations to count the resources in the collection. +type ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetQueryParameters +} +// NewItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeCards/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_time_cards_item_clock_out_post_request_body.go b/users/item_joined_teams_item_schedule_time_cards_item_clock_out_post_request_body.go new file mode 100644 index 0000000000..642f3fb0d0 --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_item_clock_out_post_request_body.go @@ -0,0 +1,151 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody()(*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) { + m := &ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/users/item_joined_teams_item_schedule_time_cards_item_clock_out_request_builder.go b/users/item_joined_teams_item_schedule_time_cards_item_clock_out_request_builder.go new file mode 100644 index 0000000000..c032923b68 --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_item_clock_out_request_builder.go @@ -0,0 +1,73 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder provides operations to call the clockOut method. +type ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeCards/{timeCard%2Did}/clockOut", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clockOut +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder) Post(ctx context.Context, body ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action clockOut +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemJoinedTeamsItemScheduleTimeCardsItemClockOutPostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_time_cards_item_confirm_request_builder.go b/users/item_joined_teams_item_schedule_time_cards_item_confirm_request_builder.go new file mode 100644 index 0000000000..66f354870d --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_item_confirm_request_builder.go @@ -0,0 +1,72 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder provides operations to call the confirm method. +type ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeCards/{timeCard%2Did}/confirm", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderInternal(urlParams, requestAdapter) +} +// Post confirm a timeCard. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/timecard-confirm?view=graph-rest-1.0 +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation confirm a timeCard. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_time_cards_item_end_break_post_request_body.go b/users/item_joined_teams_item_schedule_time_cards_item_end_break_post_request_body.go new file mode 100644 index 0000000000..f5cf09aecd --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_item_end_break_post_request_body.go @@ -0,0 +1,151 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody()(*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) { + m := &ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/users/item_joined_teams_item_schedule_time_cards_item_end_break_request_builder.go b/users/item_joined_teams_item_schedule_time_cards_item_end_break_request_builder.go new file mode 100644 index 0000000000..1a56cff06b --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_item_end_break_request_builder.go @@ -0,0 +1,73 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder provides operations to call the endBreak method. +type ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeCards/{timeCard%2Did}/endBreak", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action endBreak +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder) Post(ctx context.Context, body ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action endBreak +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakPostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_time_cards_item_start_break_post_request_body.go b/users/item_joined_teams_item_schedule_time_cards_item_start_break_post_request_body.go new file mode 100644 index 0000000000..4db0b95eff --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_item_start_break_post_request_body.go @@ -0,0 +1,151 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody()(*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) { + m := &ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAtApprovedLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAtApprovedLocation(val) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)) + } + return nil + } + return res +} +// GetIsAtApprovedLocation gets the isAtApprovedLocation property value. The isAtApprovedLocation property +// returns a *bool when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) GetIsAtApprovedLocation()(*bool) { + val, err := m.GetBackingStore().Get("isAtApprovedLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAtApprovedLocation", m.GetIsAtApprovedLocation()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAtApprovedLocation sets the isAtApprovedLocation property value. The isAtApprovedLocation property +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) SetIsAtApprovedLocation(value *bool)() { + err := m.GetBackingStore().Set("isAtApprovedLocation", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBody) SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +type ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAtApprovedLocation()(*bool) + GetNotes()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAtApprovedLocation(value *bool)() + SetNotes(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemBodyable)() +} diff --git a/users/item_joined_teams_item_schedule_time_cards_item_start_break_request_builder.go b/users/item_joined_teams_item_schedule_time_cards_item_start_break_request_builder.go new file mode 100644 index 0000000000..168d104a83 --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_item_start_break_request_builder.go @@ -0,0 +1,73 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder provides operations to call the startBreak method. +type ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeCards/{timeCard%2Did}/startBreak", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action startBreak +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder) Post(ctx context.Context, body ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToPostRequestInformation invoke action startBreak +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakPostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_time_cards_request_builder.go b/users/item_joined_teams_item_schedule_time_cards_request_builder.go new file mode 100644 index 0000000000..7e2e330f23 --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_request_builder.go @@ -0,0 +1,157 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +type ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters the time cards in the schedule. +type ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetQueryParameters +} +// ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByTimeCardId provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) ByTimeCardId(timeCardId string)(*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if timeCardId != "" { + urlTplParams["timeCard%2Did"] = timeCardId + } + return NewItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// ClockIn provides operations to call the clockIn method. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) ClockIn()(*ItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsClockInRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemJoinedTeamsItemScheduleTimeCardsRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleTimeCardsRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleTimeCardsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) Count()(*ItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the time cards in the schedule. +// returns a TimeCardCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardCollectionResponseable), nil +} +// Post create new navigation property to timeCards for users +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// ToGetRequestInformation the time cards in the schedule. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to timeCards for users +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleTimeCardsRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_schedule_time_cards_time_card_item_request_builder.go b/users/item_joined_teams_item_schedule_time_cards_time_card_item_request_builder.go new file mode 100644 index 0000000000..ab4909ac9f --- /dev/null +++ b/users/item_joined_teams_item_schedule_time_cards_time_card_item_request_builder.go @@ -0,0 +1,177 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder provides operations to manage the timeCards property of the microsoft.graph.schedule entity. +type ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters the time cards in the schedule. +type ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetQueryParameters +} +// ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ClockOut provides operations to call the clockOut method. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) ClockOut()(*ItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemClockOutRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Confirm provides operations to call the confirm method. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) Confirm()(*ItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemConfirmRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderInternal instantiates a new ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) { + m := &ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/schedule/timeCards/{timeCard%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder instantiates a new ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property timeCards for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// EndBreak provides operations to call the endBreak method. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) EndBreak()(*ItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemEndBreakRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the time cards in the schedule. +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// Patch update the navigation property timeCards in users +// returns a TimeCardable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateTimeCardFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable), nil +} +// StartBreak provides operations to call the startBreak method. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) StartBreak()(*ItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsItemStartBreakRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property timeCards for users +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the time cards in the schedule. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property timeCards in users +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.TimeCardable, requestConfiguration *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder when successful +func (m *ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder) { + return NewItemJoinedTeamsItemScheduleTimeCardsTimeCardItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_manager_ref_request_builder.go b/users/item_manager_ref_request_builder.go deleted file mode 100644 index 7967f8193c..0000000000 --- a/users/item_manager_ref_request_builder.go +++ /dev/null @@ -1,150 +0,0 @@ -package users - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemManagerRefRequestBuilder provides operations to manage the collection of user entities. -type ItemManagerRefRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemManagerRefRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemManagerRefRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemManagerRefRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemManagerRefRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemManagerRefRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemManagerRefRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemManagerRefRequestBuilderInternal instantiates a new ItemManagerRefRequestBuilder and sets the default values. -func NewItemManagerRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemManagerRefRequestBuilder) { - m := &ItemManagerRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/manager/$ref", pathParameters), - } - return m -} -// NewItemManagerRefRequestBuilder instantiates a new ItemManagerRefRequestBuilder and sets the default values. -func NewItemManagerRefRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemManagerRefRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemManagerRefRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete remove a user's manager. -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/user-delete-manager?view=graph-rest-1.0 -func (m *ItemManagerRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagerRefRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. -// returns a *string when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-manager?view=graph-rest-1.0 -func (m *ItemManagerRefRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagerRefRequestBuilderGetRequestConfiguration)(*string, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "string", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*string), nil -} -// Put assign a user's manager. -// returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/user-post-manager?view=graph-rest-1.0 -func (m *ItemManagerRefRequestBuilder) Put(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ReferenceUpdateable, requestConfiguration *ItemManagerRefRequestBuilderPutRequestConfiguration)(error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToDeleteRequestInformation remove a user's manager. -// returns a *RequestInformation when successful -func (m *ItemManagerRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagerRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. -// returns a *RequestInformation when successful -func (m *ItemManagerRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagerRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPutRequestInformation assign a user's manager. -// returns a *RequestInformation when successful -func (m *ItemManagerRefRequestBuilder) ToPutRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ReferenceUpdateable, requestConfiguration *ItemManagerRefRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemManagerRefRequestBuilder when successful -func (m *ItemManagerRefRequestBuilder) WithUrl(rawUrl string)(*ItemManagerRefRequestBuilder) { - return NewItemManagerRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/users/item_manager_request_builder.go b/users/item_manager_request_builder.go index ad85a4717d..ffa596ac7e 100644 --- a/users/item_manager_request_builder.go +++ b/users/item_manager_request_builder.go @@ -63,11 +63,6 @@ func (m *ItemManagerRequestBuilder) Get(ctx context.Context, requestConfiguratio } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable), nil } -// Ref provides operations to manage the collection of user entities. -// returns a *ItemManagerRefRequestBuilder when successful -func (m *ItemManagerRequestBuilder) Ref()(*ItemManagerRefRequestBuilder) { - return NewItemManagerRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} // ToGetRequestInformation returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. // returns a *RequestInformation when successful func (m *ItemManagerRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagerRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/users/item_presence_request_builder.go b/users/item_presence_request_builder.go index 138f53bed6..987f34e3b0 100644 --- a/users/item_presence_request_builder.go +++ b/users/item_presence_request_builder.go @@ -18,7 +18,7 @@ type ItemPresenceRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemPresenceRequestBuilderGetQueryParameters set a presence status message for a user. An optional expiration date and time can be supplied. +// ItemPresenceRequestBuilderGetQueryParameters get a user's presence information. type ItemPresenceRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,12 +80,12 @@ func (m *ItemPresenceRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get set a presence status message for a user. An optional expiration date and time can be supplied. +// Get get a user's presence information. // returns a Presenceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0 func (m *ItemPresenceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Presenceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -149,7 +149,7 @@ func (m *ItemPresenceRequestBuilder) ToDeleteRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation set a presence status message for a user. An optional expiration date and time can be supplied. +// ToGetRequestInformation get a user's presence information. // returns a *RequestInformation when successful func (m *ItemPresenceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/user_item_request_builder.go b/users/user_item_request_builder.go index d9b5ebc483..2e43f2a7d8 100644 --- a/users/user_item_request_builder.go +++ b/users/user_item_request_builder.go @@ -143,7 +143,7 @@ func (m *UserItemRequestBuilder) CreatedObjects()(*ItemCreatedObjectsRequestBuil // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-user-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0 func (m *UserItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *UserItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -223,7 +223,7 @@ func (m *UserItemRequestBuilder) FollowedSites()(*ItemFollowedSitesRequestBuilde // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-user-get?view=graph-rest-1.0 func (m *UserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *UserItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/users/users_request_builder.go b/users/users_request_builder.go index 8f792cacac..0bc5d0b87c 100644 --- a/users/users_request_builder.go +++ b/users/users_request_builder.go @@ -11,7 +11,7 @@ import ( type UsersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// UsersRequestBuilderGetQueryParameters list properties and relationships of the user objects. +// UsersRequestBuilderGetQueryParameters retrieve a list of user objects. type UsersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -79,12 +79,12 @@ func (m *UsersRequestBuilder) Count()(*CountRequestBuilder) { func (m *UsersRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the user objects. +// Get retrieve a list of user objects. // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-user-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-list?view=graph-rest-1.0 func (m *UsersRequestBuilder) Get(ctx context.Context, requestConfiguration *UsersRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -135,7 +135,7 @@ func (m *UsersRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e64 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil } -// ToGetRequestInformation list properties and relationships of the user objects. +// ToGetRequestInformation retrieve a list of user objects. // returns a *RequestInformation when successful func (m *UsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/userswithuserprincipalname/users_with_user_principal_name_request_builder.go b/userswithuserprincipalname/users_with_user_principal_name_request_builder.go index d5b264ec0c..cab533751f 100644 --- a/userswithuserprincipalname/users_with_user_principal_name_request_builder.go +++ b/userswithuserprincipalname/users_with_user_principal_name_request_builder.go @@ -61,7 +61,7 @@ func NewUsersWithUserPrincipalNameRequestBuilder(rawUrl string, requestAdapter i // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-user-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0 func (m *UsersWithUserPrincipalNameRequestBuilder) Delete(ctx context.Context, requestConfiguration *UsersWithUserPrincipalNameRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -81,7 +81,7 @@ func (m *UsersWithUserPrincipalNameRequestBuilder) Delete(ctx context.Context, r // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-user-get?view=graph-rest-1.0 func (m *UsersWithUserPrincipalNameRequestBuilder) Get(ctx context.Context, requestConfiguration *UsersWithUserPrincipalNameRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil {