diff --git a/CHANGELOG.md b/CHANGELOG.md index 92400b1949..d95fedc9a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [1.42.0]- 2024-05-16 + +### Changed + +- Weekly generation. + ## [1.41.0]- 2024-05-08 ### Changed diff --git a/chats/item_messages_request_builder.go b/chats/item_messages_request_builder.go index 8e9f0d47e8..83d424a2a4 100644 --- a/chats/item_messages_request_builder.go +++ b/chats/item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfigurati } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. +// 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/chat-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 *ItemMessagesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. +// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. // returns a *RequestInformation when successful func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, 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/deviceappmanagement/managed_app_policies_managed_app_policy_item_request_builder.go b/deviceappmanagement/managed_app_policies_managed_app_policy_item_request_builder.go index d641a61a13..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 windowsInformationProtection 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 windowsInformationProtection 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-windowsinformationprotection-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 windowsInformationProtection 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_policies_request_builder.go b/deviceappmanagement/managed_app_policies_request_builder.go index e47893f261..e005c0a3cb 100644 --- a/deviceappmanagement/managed_app_policies_request_builder.go +++ b/deviceappmanagement/managed_app_policies_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedAppPoliciesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedAppPoliciesRequestBuilderGetQueryParameters list properties and relationships of the managedAppPolicy objects. +// ManagedAppPoliciesRequestBuilderGetQueryParameters list properties and relationships of the managedAppConfiguration objects. type ManagedAppPoliciesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedAppPoliciesRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ManagedAppPoliciesRequestBuilder) Count()(*ManagedAppPoliciesCountRequestBuilder) { return NewManagedAppPoliciesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the managedAppPolicy objects. +// Get list properties and relationships of the managedAppConfiguration objects. // returns a ManagedAppPolicyCollectionResponseable 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-managedapppolicy-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0 func (m *ManagedAppPoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppPoliciesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppPolicyCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ManagedAppPoliciesRequestBuilder) Post(ctx context.Context, body iadcd8 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppPolicyable), nil } -// ToGetRequestInformation list properties and relationships of the managedAppPolicy objects. +// ToGetRequestInformation list properties and relationships of the managedAppConfiguration objects. // returns a *RequestInformation when successful func (m *ManagedAppPoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) 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 1ea07360da..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 iosManagedAppRegistration 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 iosManagedAppRegistration 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-iosmanagedappregistration-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 iosManagedAppRegistration 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 0c0254e93d..8ad44f05a5 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 iosManagedAppRegistration objects. +// ManagedAppRegistrationsRequestBuilderGetQueryParameters list properties and relationships of the managedAppRegistration 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 iosManagedAppRegistration objects. +// Get list properties and relationships of the managedAppRegistration 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-iosmanagedappregistration-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-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 iosManagedAppRegistration objects. +// ToGetRequestInformation list properties and relationships of the managedAppRegistration 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_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 08a6d69f62..b8384d678a 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 @@ -96,12 +96,12 @@ func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) G } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable), nil } -// Patch update the properties of a iosVppEBookAssignment object. +// Patch update the properties of a managedEBookAssignment 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-iosvppebookassignment-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-update?view=graph-rest-1.0 func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, requestConfiguration *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) T requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a iosVppEBookAssignment object. +// ToPatchRequestInformation update the properties of a managedEBookAssignment object. // returns a *RequestInformation when successful func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, requestConfiguration *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, 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..04ea115496 100644 --- a/deviceappmanagement/managed_e_books_item_assignments_request_builder.go +++ b/deviceappmanagement/managed_e_books_item_assignments_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedEBooksItemAssignmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedEBooksItemAssignmentsRequestBuilderGetQueryParameters list properties and relationships of the managedEBookAssignment objects. +// ManagedEBooksItemAssignmentsRequestBuilderGetQueryParameters list properties and relationships of the iosVppEBookAssignment objects. type ManagedEBooksItemAssignmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedEBooksItemAssignmentsRequestBuilder(rawUrl string, requestAdapter func (m *ManagedEBooksItemAssignmentsRequestBuilder) Count()(*ManagedEBooksItemAssignmentsCountRequestBuilder) { return NewManagedEBooksItemAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the managedEBookAssignment objects. +// Get list properties and relationships of the iosVppEBookAssignment objects. // returns a ManagedEBookAssignmentCollectionResponseable 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-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-list?view=graph-rest-1.0 func (m *ManagedEBooksItemAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *ManagedEBooksItemAssignmentsRequestBuilder) Post(ctx context.Context, b } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable), nil } -// ToGetRequestInformation list properties and relationships of the managedEBookAssignment objects. +// ToGetRequestInformation list properties and relationships of the iosVppEBookAssignment objects. // returns a *RequestInformation when successful func (m *ManagedEBooksItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_app_configurations_managed_device_mobile_app_configuration_item_request_builder.go b/deviceappmanagement/mobile_app_configurations_managed_device_mobile_app_configuration_item_request_builder.go index fd7fe89944..7c88ee9e72 100644 --- a/deviceappmanagement/mobile_app_configurations_managed_device_mobile_app_configuration_item_request_builder.go +++ b/deviceappmanagement/mobile_app_configurations_managed_device_mobile_app_configuration_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilde // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the iosMobileAppConfiguration object. +// MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the managedDeviceMobileAppConfiguration object. type MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -93,12 +93,12 @@ func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBu func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilder) DeviceStatusSummary()(*MobileAppConfigurationsItemDeviceStatusSummaryRequestBuilder) { return NewMobileAppConfigurationsItemDeviceStatusSummaryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the iosMobileAppConfiguration object. +// Get read properties and relationships of the managedDeviceMobileAppConfiguration object. // returns a ManagedDeviceMobileAppConfigurationable 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-iosmobileappconfiguration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-get?view=graph-rest-1.0 func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedDeviceMobileAppConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -150,7 +150,7 @@ func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the iosMobileAppConfiguration object. +// ToGetRequestInformation read properties and relationships of the managedDeviceMobileAppConfiguration object. // returns a *RequestInformation when successful func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetRequestConfiguration)(*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 2fb2914033..85818495ed 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 mobileApp object. +// MobileAppsMobileAppItemRequestBuilderGetQueryParameters read properties and relationships of the windowsAppX 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 win32LobApp. +// Delete deletes a iosVppApp. // 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-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-iosvppapp-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 mobileApp object. +// Get read properties and relationships of the windowsAppX 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-mobileapp-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-windowsappx-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 iosVppApp object. +// Patch update the properties of a webApp 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-iosvppapp-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-webapp-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 win32LobApp. +// ToDeleteRequestInformation deletes a iosVppApp. // 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 mobileApp object. +// ToGetRequestInformation read properties and relationships of the windowsAppX 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 iosVppApp object. +// ToPatchRequestInformation update the properties of a webApp 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/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go b/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go index 256513f5ea..b6892d0905 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 windowsPhone81CompliancePolicy object. +// DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetQueryParameters read properties and relationships of the androidCompliancePolicy 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 windows10CompliancePolicy. +// Delete deletes a iosCompliancePolicy. // 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-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-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 windowsPhone81CompliancePolicy object. +// Get read properties and relationships of the androidCompliancePolicy 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-windowsphone81compliancepolicy-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-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 windows10CompliancePolicy object. +// Patch update the properties of a windowsPhone81CompliancePolicy 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-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81compliancepolicy-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 windows10CompliancePolicy. +// ToDeleteRequestInformation deletes a iosCompliancePolicy. // 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 windowsPhone81CompliancePolicy object. +// ToGetRequestInformation read properties and relationships of the androidCompliancePolicy 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 windows10CompliancePolicy object. +// ToPatchRequestInformation update the properties of a windowsPhone81CompliancePolicy 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 cfbee47607..51c1791bf8 100644 --- a/devicemanagement/device_compliance_policies_request_builder.go +++ b/devicemanagement/device_compliance_policies_request_builder.go @@ -11,7 +11,7 @@ import ( type DeviceCompliancePoliciesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeviceCompliancePoliciesRequestBuilderGetQueryParameters list properties and relationships of the androidWorkProfileCompliancePolicy objects. +// DeviceCompliancePoliciesRequestBuilderGetQueryParameters list properties and relationships of the windows81CompliancePolicy objects. type DeviceCompliancePoliciesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewDeviceCompliancePoliciesRequestBuilder(rawUrl string, requestAdapter i2a func (m *DeviceCompliancePoliciesRequestBuilder) Count()(*DeviceCompliancePoliciesCountRequestBuilder) { return NewDeviceCompliancePoliciesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the androidWorkProfileCompliancePolicy objects. +// Get list properties and relationships of the windows81CompliancePolicy objects. // returns a DeviceCompliancePolicyCollectionResponseable 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-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-list?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,12 +99,12 @@ func (m *DeviceCompliancePoliciesRequestBuilder) Get(ctx context.Context, reques } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyCollectionResponseable), nil } -// Post create a new iosCompliancePolicy object. +// Post create a new windows10CompliancePolicy 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-ioscompliancepolicy-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10compliancepolicy-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 { @@ -122,7 +122,7 @@ func (m *DeviceCompliancePoliciesRequestBuilder) Post(ctx context.Context, body } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable), nil } -// ToGetRequestInformation list properties and relationships of the androidWorkProfileCompliancePolicy objects. +// ToGetRequestInformation list properties and relationships of the windows81CompliancePolicy objects. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *DeviceCompliancePoliciesRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new iosCompliancePolicy object. +// ToPostRequestInformation create a new windows10CompliancePolicy 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 d7b8682b88..ae72937468 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 macOSDeviceFeaturesConfiguration object. +// DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the windows10SecureAssessmentConfiguration 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 windowsDefenderAdvancedThreatProtectionConfiguration. +// Delete deletes a macOSGeneralDeviceConfiguration. // 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-windowsdefenderadvancedthreatprotectionconfiguration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-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 macOSDeviceFeaturesConfiguration object. +// Get read properties and relationships of the windows10SecureAssessmentConfiguration 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-macosdevicefeaturesconfiguration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10secureassessmentconfiguration-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 windows10SecureAssessmentConfiguration object. +// Patch update the properties of a windows10TeamGeneralConfiguration 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-windows10secureassessmentconfiguration-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10teamgeneralconfiguration-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 windowsDefenderAdvancedThreatProtectionConfiguration. +// ToDeleteRequestInformation deletes a macOSGeneralDeviceConfiguration. // 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 macOSDeviceFeaturesConfiguration object. +// ToGetRequestInformation read properties and relationships of the windows10SecureAssessmentConfiguration 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 windows10SecureAssessmentConfiguration object. +// ToPatchRequestInformation update the properties of a windows10TeamGeneralConfiguration 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 028d3f53b5..55c893a0b8 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 windowsUpdateForBusinessConfiguration objects. +// DeviceConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the windowsPhone81CustomConfiguration 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 windowsUpdateForBusinessConfiguration objects. +// Get list properties and relationships of the windowsPhone81CustomConfiguration 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-windowsupdateforbusinessconfiguration-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81customconfiguration-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 { @@ -99,12 +99,12 @@ func (m *DeviceConfigurationsRequestBuilder) Get(ctx context.Context, requestCon } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationCollectionResponseable), nil } -// Post create a new windows10GeneralConfiguration object. +// Post create a new androidCustomConfiguration 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-windows10generalconfiguration-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcustomconfiguration-create?view=graph-rest-1.0 func (m *DeviceConfigurationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, requestConfiguration *DeviceConfigurationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, 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 windowsUpdateForBusinessConfiguration objects. +// ToGetRequestInformation list properties and relationships of the windowsPhone81CustomConfiguration 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) @@ -136,7 +136,7 @@ func (m *DeviceConfigurationsRequestBuilder) ToGetRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new windows10GeneralConfiguration object. +// ToPostRequestInformation create a new androidCustomConfiguration object. // returns a *RequestInformation when successful func (m *DeviceConfigurationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, requestConfiguration *DeviceConfigurationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, 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 b965bff05e..897a5b661e 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 @@ -18,7 +18,7 @@ type DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. +// DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. type DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -83,12 +83,12 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB } return nil } -// Get read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. +// Get read properties and relationships of the 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-deviceenrollmentplatformrestrictionsconfiguration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-get?view=graph-rest-1.0 func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -106,12 +106,12 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable), nil } -// Patch update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. +// Patch update the properties of a deviceEnrollmentLimitConfiguration 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-deviceenrollmentplatformrestrictionsconfiguration-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-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 { @@ -145,7 +145,7 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. +// ToGetRequestInformation read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. // returns a *RequestInformation when successful func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, 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 deviceEnrollmentPlatformRestrictionsConfiguration object. +// ToPatchRequestInformation update the properties of a deviceEnrollmentLimitConfiguration 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 81564fca39..1bb76068dc 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 deviceEnrollmentWindowsHelloForBusinessConfiguration 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 deviceEnrollmentWindowsHelloForBusinessConfiguration 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-deviceenrollmentwindowshelloforbusinessconfiguration-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 { @@ -99,12 +99,12 @@ func (m *DeviceEnrollmentConfigurationsRequestBuilder) Get(ctx context.Context, } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationCollectionResponseable), nil } -// Post create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. +// Post create a new deviceEnrollmentPlatformRestrictionsConfiguration 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-deviceenrollmentwindowshelloforbusinessconfiguration-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-create?view=graph-rest-1.0 func (m *DeviceEnrollmentConfigurationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, requestConfiguration *DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, 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 deviceEnrollmentWindowsHelloForBusinessConfiguration 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) @@ -136,7 +136,7 @@ func (m *DeviceEnrollmentConfigurationsRequestBuilder) ToGetRequestInformation(c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. +// ToPostRequestInformation create a new deviceEnrollmentPlatformRestrictionsConfiguration object. // returns a *RequestInformation when successful func (m *DeviceEnrollmentConfigurationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, requestConfiguration *DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_management_request_builder.go b/devicemanagement/device_management_request_builder.go index 9f9d36c58e..23ec9c21d6 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-auditing-devicemanagement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-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-raimportcerts-devicemanagement-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-auditing-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 ec677498e8..f475a23366 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 deviceAndAppManagementRoleDefinition objects. +// RoleDefinitionsRequestBuilderGetQueryParameters list properties and relationships of the roleDefinition 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 deviceAndAppManagementRoleDefinition objects. +// Get list properties and relationships of the roleDefinition 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-deviceandappmanagementroledefinition-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-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 deviceAndAppManagementRoleDefinition objects. +// ToGetRequestInformation list properties and relationships of the roleDefinition 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/devicemanagement/role_definitions_role_definition_item_request_builder.go b/devicemanagement/role_definitions_role_definition_item_request_builder.go index b20d08328b..21d44785f5 100644 --- a/devicemanagement/role_definitions_role_definition_item_request_builder.go +++ b/devicemanagement/role_definitions_role_definition_item_request_builder.go @@ -96,12 +96,12 @@ func (m *RoleDefinitionsRoleDefinitionItemRequestBuilder) Get(ctx context.Contex } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable), nil } -// Patch update the properties of a deviceAndAppManagementRoleDefinition object. +// Patch update the properties of a roleDefinition object. // returns a RoleDefinitionable 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-deviceandappmanagementroledefinition-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-update?view=graph-rest-1.0 func (m *RoleDefinitionsRoleDefinitionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable, requestConfiguration *RoleDefinitionsRoleDefinitionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -149,7 +149,7 @@ func (m *RoleDefinitionsRoleDefinitionItemRequestBuilder) ToGetRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a deviceAndAppManagementRoleDefinition object. +// ToPatchRequestInformation update the properties of a roleDefinition object. // returns a *RequestInformation when successful func (m *RoleDefinitionsRoleDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable, requestConfiguration *RoleDefinitionsRoleDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, 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_worksheets_item_charts_item_at_with_index_data_labels_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_at_with_index_data_labels_request_builder.go index f19e59c39b..31a5667495 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_at_with_index_data_labels_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_at_with_index_data_labels_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetQueryParameters represents the datalabels on the chart. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetQueryParameters represents the data labels on the chart. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsReque } return nil } -// Get represents the datalabels on the chart. Read-only. +// Get represents the data labels on the chart. Read-only. // returns a WorkbookChartDataLabelsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the datalabels on the chart. Read-only. +// ToGetRequestInformation represents the data labels on the chart. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_at_with_index_title_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_at_with_index_title_request_builder.go index 76e7c85188..524a08b31b 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_at_with_index_title_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_at_with_index_title_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBui } return nil } -// Get represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// Get represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. // returns a WorkbookChartTitleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_data_labels_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_data_labels_request_builder.go index 7283bbf0be..3eb4f22af1 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_data_labels_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_data_labels_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderDelete // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetQueryParameters represents the datalabels on the chart. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetQueryParameters represents the data labels on the chart. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents the datalabels on the chart. Read-only. +// Get represents the data labels on the chart. Read-only. // returns a WorkbookChartDataLabelsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the datalabels on the chart. Read-only. +// ToGetRequestInformation represents the data labels on the chart. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_title_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_title_request_builder.go index 96c2f90e41..e3a84040e4 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_title_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_title_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderDeleteReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) Delet func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// Get represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. // returns a WorkbookChartTitleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) ToDel requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_with_name_data_labels_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_with_name_data_labels_request_builder.go index b65ace2ad7..99f79cf845 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_with_name_data_labels_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_with_name_data_labels_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetQueryParameters represents the datalabels on the chart. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetQueryParameters represents the data labels on the chart. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestB } return nil } -// Get represents the datalabels on the chart. Read-only. +// Get represents the data labels on the chart. Read-only. // returns a WorkbookChartDataLabelsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the datalabels on the chart. Read-only. +// ToGetRequestInformation represents the data labels on the chart. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_with_name_title_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_with_name_title_request_builder.go index 895b4cc9bd..d11d57bee5 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_with_name_title_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_with_name_title_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderDel // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilde } return nil } -// Get represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// Get represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. // returns a WorkbookChartTitleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/graph_request_adapter.go b/graph_request_adapter.go index 81ae2e4e4e..02dd950cd3 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "", //v1 doesn't include the service version in the telemetry header - GraphServiceLibraryVersion: "1.41.0", + GraphServiceLibraryVersion: "1.42.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -109,5 +109,6 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH + 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 5950086cb1..70c4f05323 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 the group's conversations. +// ItemConversationsConversationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of conversation object. type ItemConversationsConversationItemRequestBuilderGetQueryParameters struct { // Select properties to be returned Select []string `uriparametername:"%24select"` @@ -49,7 +49,7 @@ func NewItemConversationsConversationItemRequestBuilder(rawUrl string, requestAd // 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-delete-conversation?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0 func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -64,12 +64,12 @@ func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get the group's conversations. +// Get retrieve the properties and relationships of conversation object. // 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-get-conversation?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-get?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 { @@ -103,7 +103,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the group's conversations. +// ToGetRequestInformation retrieve the properties and relationships of conversation object. // 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 0caa6b08a6..01fd23161c 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 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. +// 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. // 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/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?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 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. +// 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. // 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 84e6ef4a87..8c7988ce72 100644 --- a/groups/item_conversations_request_builder.go +++ b/groups/item_conversations_request_builder.go @@ -97,12 +97,12 @@ func (m *ItemConversationsRequestBuilder) Get(ctx context.Context, requestConfig } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationCollectionResponseable), nil } -// 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. +// Post use reply thread or reply post to further post to that conversation. // 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/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-post-conversations?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 { @@ -134,7 +134,7 @@ func (m *ItemConversationsRequestBuilder) ToGetRequestInformation(ctx context.Co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// 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. +// ToPostRequestInformation use reply thread or reply post to further post to that conversation. // 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_threads_item_posts_request_builder.go b/groups/item_threads_item_posts_request_builder.go index cfa90f08ca..f92d9b7a91 100644 --- a/groups/item_threads_item_posts_request_builder.go +++ b/groups/item_threads_item_posts_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemThreadsItemPostsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemThreadsItemPostsRequestBuilderGetQueryParameters get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. +// ItemThreadsItemPostsRequestBuilderGetQueryParameters get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. type ItemThreadsItemPostsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,12 +69,12 @@ func NewItemThreadsItemPostsRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *ItemThreadsItemPostsRequestBuilder) Count()(*ItemThreadsItemPostsCountRequestBuilder) { return NewItemThreadsItemPostsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. +// Get get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. // returns a PostCollectionResponseable 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/conversationthread-list-posts?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0 func (m *ItemThreadsItemPostsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsItemPostsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PostCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,7 +92,7 @@ func (m *ItemThreadsItemPostsRequestBuilder) Get(ctx context.Context, requestCon } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PostCollectionResponseable), nil } -// ToGetRequestInformation get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. +// ToGetRequestInformation get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. // returns a *RequestInformation when successful func (m *ItemThreadsItemPostsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsItemPostsRequestBuilderGetRequestConfiguration)(*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 fbdaa2d0b8..aa5013a5c7 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 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. +// 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. // 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/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?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 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. +// 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. // 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 c12dc5bc81..ea8c6317c8 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 @@ -18,7 +18,7 @@ type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an ipNamedLocation object. +// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a namedLocation object. type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,11 +54,11 @@ func NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a countryNamedLocation object. +// Delete delete an ipNamedLocation 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/countrynamedlocation-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-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 { @@ -73,12 +73,12 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete( } return nil } -// Get retrieve the properties and relationships of an ipNamedLocation object. +// Get retrieve the properties and relationships of a namedLocation object. // returns a NamedLocationable 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/ipnamedlocation-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/namedlocation-get?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,12 +96,12 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable), nil } -// Patch update the properties of an ipNamedLocation object. +// Patch update the properties of a countryNamedLocation object. // returns a NamedLocationable 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/ipnamedlocation-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-update?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(c } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable), nil } -// ToDeleteRequestInformation delete a countryNamedLocation object. +// ToDeleteRequestInformation delete an ipNamedLocation 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) @@ -130,7 +130,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDelet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an ipNamedLocation object. +// ToGetRequestInformation retrieve the properties and relationships of a namedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -144,7 +144,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an ipNamedLocation object. +// ToPatchRequestInformation update the properties of a countryNamedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderPatchRequestConfiguration)(*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/entitlement_management_catalogs_item_custom_workflow_extensions_custom_callout_extension_item_request_builder.go b/identitygovernance/entitlement_management_catalogs_item_custom_workflow_extensions_custom_callout_extension_item_request_builder.go index d7eade6877..e755db7e0a 100644 --- a/identitygovernance/entitlement_management_catalogs_item_custom_workflow_extensions_custom_callout_extension_item_request_builder.go +++ b/identitygovernance/entitlement_management_catalogs_item_custom_workflow_extensions_custom_callout_extension_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExten // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. type EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,12 +73,12 @@ func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutE } return nil } -// Get read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// Get read the properties and relationships of an accessPackageAssignmentWorkflowExtension 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/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutE requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // returns a *RequestInformation when successful func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(*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-lock.json b/kiota-lock.json index da8fe3a487..efbfd7248e 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "EAE74593D4BFB666C53D9ED29D1BF17C2642A547B5D1FF2819F620EEE2F8D958AF29232D5F1FA190BEB63694D2888A8EB7DE7D0565961335865F4C565B5AB4CB", + "descriptionHash": "41F46A61AB97C2B4FC18FF278DE999CCC43513B3ECB606FA2794C7330CF3049A4B6E69CBB4661E648C24B1A962436A4607A98CDC72C8752725EA02A1ECAF128D", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.15.0", diff --git a/models/access_package_assignment_state.go b/models/access_package_assignment_state.go index a9af5a749f..5be23a13d2 100644 --- a/models/access_package_assignment_state.go +++ b/models/access_package_assignment_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessPackageAssignmentState int const ( @@ -32,7 +29,7 @@ func ParseAccessPackageAssignmentState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSPACKAGEASSIGNMENTSTATE default: - return 0, errors.New("Unknown AccessPackageAssignmentState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_package_catalog_state.go b/models/access_package_catalog_state.go index e7ccd78674..dcfaa8defb 100644 --- a/models/access_package_catalog_state.go +++ b/models/access_package_catalog_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessPackageCatalogState int const ( @@ -23,7 +20,7 @@ func ParseAccessPackageCatalogState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSPACKAGECATALOGSTATE default: - return 0, errors.New("Unknown AccessPackageCatalogState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_package_catalog_type.go b/models/access_package_catalog_type.go index 6d25e16376..e90df114cb 100644 --- a/models/access_package_catalog_type.go +++ b/models/access_package_catalog_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessPackageCatalogType int const ( @@ -26,7 +23,7 @@ func ParseAccessPackageCatalogType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSPACKAGECATALOGTYPE default: - return 0, errors.New("Unknown AccessPackageCatalogType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_package_custom_extension_stage.go b/models/access_package_custom_extension_stage.go index 5df54896fd..0bea925f19 100644 --- a/models/access_package_custom_extension_stage.go +++ b/models/access_package_custom_extension_stage.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessPackageCustomExtensionStage int const ( @@ -35,7 +32,7 @@ func ParseAccessPackageCustomExtensionStage(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSPACKAGECUSTOMEXTENSIONSTAGE default: - return 0, errors.New("Unknown AccessPackageCustomExtensionStage value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_package_external_user_lifecycle_action.go b/models/access_package_external_user_lifecycle_action.go index 6a035fafc8..6e0a1928a5 100644 --- a/models/access_package_external_user_lifecycle_action.go +++ b/models/access_package_external_user_lifecycle_action.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessPackageExternalUserLifecycleAction int const ( @@ -26,7 +23,7 @@ func ParseAccessPackageExternalUserLifecycleAction(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSPACKAGEEXTERNALUSERLIFECYCLEACTION default: - return 0, errors.New("Unknown AccessPackageExternalUserLifecycleAction value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_package_request_state.go b/models/access_package_request_state.go index 455a53d501..1526acdab0 100644 --- a/models/access_package_request_state.go +++ b/models/access_package_request_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessPackageRequestState int const ( @@ -44,7 +41,7 @@ func ParseAccessPackageRequestState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSPACKAGEREQUESTSTATE default: - return 0, errors.New("Unknown AccessPackageRequestState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_package_request_type.go b/models/access_package_request_type.go index 18ab9df601..284985610d 100644 --- a/models/access_package_request_type.go +++ b/models/access_package_request_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessPackageRequestType int const ( @@ -50,7 +47,7 @@ func ParseAccessPackageRequestType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSPACKAGEREQUESTTYPE default: - return 0, errors.New("Unknown AccessPackageRequestType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_package_subject_type.go b/models/access_package_subject_type.go index 3c390db58c..cf67fad533 100644 --- a/models/access_package_subject_type.go +++ b/models/access_package_subject_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessPackageSubjectType int const ( @@ -26,7 +23,7 @@ func ParseAccessPackageSubjectType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSPACKAGESUBJECTTYPE default: - return 0, errors.New("Unknown AccessPackageSubjectType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_review_expiration_behavior.go b/models/access_review_expiration_behavior.go index a3970d35b3..323ed68a76 100644 --- a/models/access_review_expiration_behavior.go +++ b/models/access_review_expiration_behavior.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessReviewExpirationBehavior int const ( @@ -26,7 +23,7 @@ func ParseAccessReviewExpirationBehavior(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSREVIEWEXPIRATIONBEHAVIOR default: - return 0, errors.New("Unknown AccessReviewExpirationBehavior value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_review_history_decision_filter.go b/models/access_review_history_decision_filter.go index 2a86afe371..3ac5d5f34f 100644 --- a/models/access_review_history_decision_filter.go +++ b/models/access_review_history_decision_filter.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessReviewHistoryDecisionFilter int const ( @@ -32,7 +29,7 @@ func ParseAccessReviewHistoryDecisionFilter(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSREVIEWHISTORYDECISIONFILTER default: - return 0, errors.New("Unknown AccessReviewHistoryDecisionFilter value: " + v) + return nil, nil } return &result, nil } diff --git a/models/access_review_history_status.go b/models/access_review_history_status.go index 3d84bd8c64..2f2d62e627 100644 --- a/models/access_review_history_status.go +++ b/models/access_review_history_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccessReviewHistoryStatus int const ( @@ -29,7 +26,7 @@ func ParseAccessReviewHistoryStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSREVIEWHISTORYSTATUS default: - return 0, errors.New("Unknown AccessReviewHistoryStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/account_target_content_type.go b/models/account_target_content_type.go index 6671a78996..d91d5da525 100644 --- a/models/account_target_content_type.go +++ b/models/account_target_content_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AccountTargetContentType int const ( @@ -26,7 +23,7 @@ func ParseAccountTargetContentType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCOUNTTARGETCONTENTTYPE default: - return 0, errors.New("Unknown AccountTargetContentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/action_state.go b/models/action_state.go index e0ebc795fd..070c594ccc 100644 --- a/models/action_state.go +++ b/models/action_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // State of the action on the device type ActionState int @@ -43,7 +40,7 @@ func ParseActionState(v string) (any, error) { case "notSupported": result = NOTSUPPORTED_ACTIONSTATE default: - return 0, errors.New("Unknown ActionState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/activity_domain.go b/models/activity_domain.go index 95fb3ae1c8..3334054aa9 100644 --- a/models/activity_domain.go +++ b/models/activity_domain.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ActivityDomain int const ( @@ -26,7 +23,7 @@ func ParseActivityDomain(v string) (any, error) { case "unrestricted": result = UNRESTRICTED_ACTIVITYDOMAIN default: - return 0, errors.New("Unknown ActivityDomain value: " + v) + return nil, nil } return &result, nil } diff --git a/models/activity_history_item.go b/models/activity_history_item.go index 0a2beacd11..3a1ce51225 100644 --- a/models/activity_history_item.go +++ b/models/activity_history_item.go @@ -56,7 +56,7 @@ func (m *ActivityHistoryItem) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3a } return nil } -// GetExpirationDateTime gets the expirationDateTime property value. Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client. +// GetExpirationDateTime gets the expirationDateTime property value. Optional. UTC DateTime when the activityHistoryItem will undergo hard-delete. Can be set by the client. // returns a *Time when successful func (m *ActivityHistoryItem) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expirationDateTime") @@ -164,7 +164,7 @@ func (m *ActivityHistoryItem) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } -// GetLastActiveDateTime gets the lastActiveDateTime property value. Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing. +// GetLastActiveDateTime gets the lastActiveDateTime property value. Optional. UTC DateTime when the activityHistoryItem (activity session) was last understood as active or finished - if null, activityHistoryItem status should be Ongoing. // returns a *Time when successful func (m *ActivityHistoryItem) GetLastActiveDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastActiveDateTime") @@ -188,7 +188,7 @@ func (m *ActivityHistoryItem) GetLastModifiedDateTime()(*i336074805fc853987abe6f } return nil } -// GetStartedDateTime gets the startedDateTime property value. Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history. +// GetStartedDateTime gets the startedDateTime property value. Required. UTC DateTime when the activityHistoryItem (activity session) was started. Required for timeline history. // returns a *Time when successful func (m *ActivityHistoryItem) GetStartedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("startedDateTime") @@ -308,14 +308,14 @@ func (m *ActivityHistoryItem) SetCreatedDateTime(value *i336074805fc853987abe6f7 panic(err) } } -// SetExpirationDateTime sets the expirationDateTime property value. Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client. +// SetExpirationDateTime sets the expirationDateTime property value. Optional. UTC DateTime when the activityHistoryItem will undergo hard-delete. Can be set by the client. func (m *ActivityHistoryItem) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expirationDateTime", value) if err != nil { panic(err) } } -// SetLastActiveDateTime sets the lastActiveDateTime property value. Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing. +// SetLastActiveDateTime sets the lastActiveDateTime property value. Optional. UTC DateTime when the activityHistoryItem (activity session) was last understood as active or finished - if null, activityHistoryItem status should be Ongoing. func (m *ActivityHistoryItem) SetLastActiveDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastActiveDateTime", value) if err != nil { @@ -329,7 +329,7 @@ func (m *ActivityHistoryItem) SetLastModifiedDateTime(value *i336074805fc853987a panic(err) } } -// SetStartedDateTime sets the startedDateTime property value. Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history. +// SetStartedDateTime sets the startedDateTime property value. Required. UTC DateTime when the activityHistoryItem (activity session) was started. Required for timeline history. func (m *ActivityHistoryItem) SetStartedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startedDateTime", value) if err != nil { diff --git a/models/activity_type.go b/models/activity_type.go index dd5a579876..186e220a80 100644 --- a/models/activity_type.go +++ b/models/activity_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ActivityType int const ( @@ -26,7 +23,7 @@ func ParseActivityType(v string) (any, error) { case "servicePrincipal": result = SERVICEPRINCIPAL_ACTIVITYTYPE default: - return 0, errors.New("Unknown ActivityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/advanced_config_state.go b/models/advanced_config_state.go index 99b0ff3967..bc7ce71317 100644 --- a/models/advanced_config_state.go +++ b/models/advanced_config_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AdvancedConfigState int const ( @@ -26,7 +23,7 @@ func ParseAdvancedConfigState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ADVANCEDCONFIGSTATE default: - return 0, errors.New("Unknown AdvancedConfigState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/agreement_acceptance_state.go b/models/agreement_acceptance_state.go index 57fec153b6..03f3a5bbb8 100644 --- a/models/agreement_acceptance_state.go +++ b/models/agreement_acceptance_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AgreementAcceptanceState int const ( @@ -23,7 +20,7 @@ func ParseAgreementAcceptanceState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AGREEMENTACCEPTANCESTATE default: - return 0, errors.New("Unknown AgreementAcceptanceState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/alert_feedback.go b/models/alert_feedback.go index b1bde8d539..ffe340cfc5 100644 --- a/models/alert_feedback.go +++ b/models/alert_feedback.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AlertFeedback int const ( @@ -29,7 +26,7 @@ func ParseAlertFeedback(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALERTFEEDBACK default: - return 0, errors.New("Unknown AlertFeedback value: " + v) + return nil, nil } return &result, nil } diff --git a/models/alert_severity.go b/models/alert_severity.go index e22a5e7e42..1394870901 100644 --- a/models/alert_severity.go +++ b/models/alert_severity.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AlertSeverity int const ( @@ -32,7 +29,7 @@ func ParseAlertSeverity(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALERTSEVERITY default: - return 0, errors.New("Unknown AlertSeverity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/alert_status.go b/models/alert_status.go index aa8baa5bff..8dd43fc9e2 100644 --- a/models/alert_status.go +++ b/models/alert_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AlertStatus int const ( @@ -32,7 +29,7 @@ func ParseAlertStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALERTSTATUS default: - return 0, errors.New("Unknown AlertStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/allow_invites_from.go b/models/allow_invites_from.go index b58c09eada..54f9737829 100644 --- a/models/allow_invites_from.go +++ b/models/allow_invites_from.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AllowInvitesFrom int const ( @@ -29,7 +26,7 @@ func ParseAllowInvitesFrom(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALLOWINVITESFROM default: - return 0, errors.New("Unknown AllowInvitesFrom value: " + v) + return nil, nil } return &result, nil } diff --git a/models/allowed_target_scope.go b/models/allowed_target_scope.go index 82c224f5b5..2046fa72ea 100644 --- a/models/allowed_target_scope.go +++ b/models/allowed_target_scope.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AllowedTargetScope int const ( @@ -44,7 +41,7 @@ func ParseAllowedTargetScope(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALLOWEDTARGETSCOPE default: - return 0, errors.New("Unknown AllowedTargetScope value: " + v) + return nil, nil } return &result, nil } diff --git a/models/android_required_password_type.go b/models/android_required_password_type.go index 380b6370fa..c2fbc62926 100644 --- a/models/android_required_password_type.go +++ b/models/android_required_password_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Android required password type. type AndroidRequiredPasswordType int @@ -47,7 +44,7 @@ func ParseAndroidRequiredPasswordType(v string) (any, error) { case "any": result = ANY_ANDROIDREQUIREDPASSWORDTYPE default: - return 0, errors.New("Unknown AndroidRequiredPasswordType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/android_work_profile_cross_profile_data_sharing_type.go b/models/android_work_profile_cross_profile_data_sharing_type.go index a612dbbd4f..a00ffdf49b 100644 --- a/models/android_work_profile_cross_profile_data_sharing_type.go +++ b/models/android_work_profile_cross_profile_data_sharing_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Android Work Profile cross profile data sharing type. type AndroidWorkProfileCrossProfileDataSharingType int @@ -31,7 +28,7 @@ func ParseAndroidWorkProfileCrossProfileDataSharingType(v string) (any, error) { case "noRestrictions": result = NORESTRICTIONS_ANDROIDWORKPROFILECROSSPROFILEDATASHARINGTYPE default: - return 0, errors.New("Unknown AndroidWorkProfileCrossProfileDataSharingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/android_work_profile_default_app_permission_policy_type.go b/models/android_work_profile_default_app_permission_policy_type.go index 50d12bc8dd..5bc783ef78 100644 --- a/models/android_work_profile_default_app_permission_policy_type.go +++ b/models/android_work_profile_default_app_permission_policy_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Android Work Profile default app permission policy type. type AndroidWorkProfileDefaultAppPermissionPolicyType int @@ -31,7 +28,7 @@ func ParseAndroidWorkProfileDefaultAppPermissionPolicyType(v string) (any, error case "autoDeny": result = AUTODENY_ANDROIDWORKPROFILEDEFAULTAPPPERMISSIONPOLICYTYPE default: - return 0, errors.New("Unknown AndroidWorkProfileDefaultAppPermissionPolicyType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/android_work_profile_required_password_type.go b/models/android_work_profile_required_password_type.go index 7f0f4f9105..be5f56694d 100644 --- a/models/android_work_profile_required_password_type.go +++ b/models/android_work_profile_required_password_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Android Work Profile required password type. type AndroidWorkProfileRequiredPasswordType int @@ -47,7 +44,7 @@ func ParseAndroidWorkProfileRequiredPasswordType(v string) (any, error) { case "alphanumericWithSymbols": result = ALPHANUMERICWITHSYMBOLS_ANDROIDWORKPROFILEREQUIREDPASSWORDTYPE default: - return 0, errors.New("Unknown AndroidWorkProfileRequiredPasswordType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/answer_input_type.go b/models/answer_input_type.go index b396b74fff..020bcb5da2 100644 --- a/models/answer_input_type.go +++ b/models/answer_input_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AnswerInputType int const ( @@ -23,7 +20,7 @@ func ParseAnswerInputType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ANSWERINPUTTYPE default: - return 0, errors.New("Unknown AnswerInputType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/app_credential_restriction_type.go b/models/app_credential_restriction_type.go index 1030fde132..2016a2a2f7 100644 --- a/models/app_credential_restriction_type.go +++ b/models/app_credential_restriction_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AppCredentialRestrictionType int const ( @@ -32,7 +29,7 @@ func ParseAppCredentialRestrictionType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_APPCREDENTIALRESTRICTIONTYPE default: - return 0, errors.New("Unknown AppCredentialRestrictionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/app_key_credential_restriction_type.go b/models/app_key_credential_restriction_type.go index 1007d4cf5d..dc11a01a0a 100644 --- a/models/app_key_credential_restriction_type.go +++ b/models/app_key_credential_restriction_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AppKeyCredentialRestrictionType int const ( @@ -20,7 +17,7 @@ func ParseAppKeyCredentialRestrictionType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_APPKEYCREDENTIALRESTRICTIONTYPE default: - return 0, errors.New("Unknown AppKeyCredentialRestrictionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/app_list_type.go b/models/app_list_type.go index 1833f4ef65..dbebb25c86 100644 --- a/models/app_list_type.go +++ b/models/app_list_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values of the compliance app list. type AppListType int @@ -27,7 +24,7 @@ func ParseAppListType(v string) (any, error) { case "appsNotInListCompliant": result = APPSNOTINLISTCOMPLIANT_APPLISTTYPE default: - return 0, errors.New("Unknown AppListType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/app_locker_application_control_type.go b/models/app_locker_application_control_type.go index 6bcec09244..17481df2ce 100644 --- a/models/app_locker_application_control_type.go +++ b/models/app_locker_application_control_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values of AppLocker Application Control Types type AppLockerApplicationControlType int @@ -35,7 +32,7 @@ func ParseAppLockerApplicationControlType(v string) (any, error) { case "auditComponentsStoreAppsAndSmartlocker": result = AUDITCOMPONENTSSTOREAPPSANDSMARTLOCKER_APPLOCKERAPPLICATIONCONTROLTYPE default: - return 0, errors.New("Unknown AppLockerApplicationControlType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/app_log_decryption_algorithm.go b/models/app_log_decryption_algorithm.go index 0be3dfb437..a922c846f3 100644 --- a/models/app_log_decryption_algorithm.go +++ b/models/app_log_decryption_algorithm.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AppLogDecryptionAlgorithm int const ( @@ -22,7 +19,7 @@ func ParseAppLogDecryptionAlgorithm(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_APPLOGDECRYPTIONALGORITHM default: - return 0, errors.New("Unknown AppLogDecryptionAlgorithm value: " + v) + return nil, nil } return &result, nil } diff --git a/models/app_log_upload_state.go b/models/app_log_upload_state.go index 52193f328e..52fe7cc27b 100644 --- a/models/app_log_upload_state.go +++ b/models/app_log_upload_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // AppLogUploadStatus type AppLogUploadState int @@ -31,7 +28,7 @@ func ParseAppLogUploadState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_APPLOGUPLOADSTATE default: - return 0, errors.New("Unknown AppLogUploadState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/application_guard_block_clipboard_sharing_type.go b/models/application_guard_block_clipboard_sharing_type.go index 90ce306767..00b12061b6 100644 --- a/models/application_guard_block_clipboard_sharing_type.go +++ b/models/application_guard_block_clipboard_sharing_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for applicationGuardBlockClipboardSharingType type ApplicationGuardBlockClipboardSharingType int @@ -35,7 +32,7 @@ func ParseApplicationGuardBlockClipboardSharingType(v string) (any, error) { case "blockNone": result = BLOCKNONE_APPLICATIONGUARDBLOCKCLIPBOARDSHARINGTYPE default: - return 0, errors.New("Unknown ApplicationGuardBlockClipboardSharingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/application_guard_block_file_transfer_type.go b/models/application_guard_block_file_transfer_type.go index 5acc2941bb..01f4bb607e 100644 --- a/models/application_guard_block_file_transfer_type.go +++ b/models/application_guard_block_file_transfer_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for applicationGuardBlockFileTransfer type ApplicationGuardBlockFileTransferType int @@ -35,7 +32,7 @@ func ParseApplicationGuardBlockFileTransferType(v string) (any, error) { case "blockTextFile": result = BLOCKTEXTFILE_APPLICATIONGUARDBLOCKFILETRANSFERTYPE default: - return 0, errors.New("Unknown ApplicationGuardBlockFileTransferType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/application_type.go b/models/application_type.go index ae9481e170..b91b9121d7 100644 --- a/models/application_type.go +++ b/models/application_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible types of Application type ApplicationType int @@ -23,7 +20,7 @@ func ParseApplicationType(v string) (any, error) { case "desktop": result = DESKTOP_APPLICATIONTYPE default: - return 0, errors.New("Unknown ApplicationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/applied_conditional_access_policy_result.go b/models/applied_conditional_access_policy_result.go index c34ace6a0d..9d959d20c9 100644 --- a/models/applied_conditional_access_policy_result.go +++ b/models/applied_conditional_access_policy_result.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AppliedConditionalAccessPolicyResult int const ( @@ -44,7 +41,7 @@ func ParseAppliedConditionalAccessPolicyResult(v string) (any, error) { case "reportOnlyInterrupted": result = REPORTONLYINTERRUPTED_APPLIEDCONDITIONALACCESSPOLICYRESULT default: - return 0, errors.New("Unknown AppliedConditionalAccessPolicyResult value: " + v) + return nil, nil } return &result, nil } diff --git a/models/apps_update_channel_type.go b/models/apps_update_channel_type.go index 47d769996d..629ae40c73 100644 --- a/models/apps_update_channel_type.go +++ b/models/apps_update_channel_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AppsUpdateChannelType int const ( @@ -26,7 +23,7 @@ func ParseAppsUpdateChannelType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_APPSUPDATECHANNELTYPE default: - return 0, errors.New("Unknown AppsUpdateChannelType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/assignment_type.go b/models/assignment_type.go index 92a5c1f274..fd87e63747 100644 --- a/models/assignment_type.go +++ b/models/assignment_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AssignmentType int const ( @@ -23,7 +20,7 @@ func ParseAssignmentType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ASSIGNMENTTYPE default: - return 0, errors.New("Unknown AssignmentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attachment_type.go b/models/attachment_type.go index 0d2e6fd981..f84196ca36 100644 --- a/models/attachment_type.go +++ b/models/attachment_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttachmentType int const ( @@ -23,7 +20,7 @@ func ParseAttachmentType(v string) (any, error) { case "reference": result = REFERENCE_ATTACHMENTTYPE default: - return 0, errors.New("Unknown AttachmentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attack_simulation_operation_type.go b/models/attack_simulation_operation_type.go index bd9e7b35af..3bf9459ed3 100644 --- a/models/attack_simulation_operation_type.go +++ b/models/attack_simulation_operation_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttackSimulationOperationType int const ( @@ -23,7 +20,7 @@ func ParseAttackSimulationOperationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ATTACKSIMULATIONOPERATIONTYPE default: - return 0, errors.New("Unknown AttackSimulationOperationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attendee_type.go b/models/attendee_type.go index f6a41a1664..f60d2b3b36 100644 --- a/models/attendee_type.go +++ b/models/attendee_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttendeeType int const ( @@ -23,7 +20,7 @@ func ParseAttendeeType(v string) (any, error) { case "resource": result = RESOURCE_ATTENDEETYPE default: - return 0, errors.New("Unknown AttendeeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attestation_level.go b/models/attestation_level.go index cf19f63b81..c0e3d68c01 100644 --- a/models/attestation_level.go +++ b/models/attestation_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttestationLevel int const ( @@ -23,7 +20,7 @@ func ParseAttestationLevel(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ATTESTATIONLEVEL default: - return 0, errors.New("Unknown AttestationLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attribute_definition_metadata.go b/models/attribute_definition_metadata.go index f02ca0ac84..78b8563ba1 100644 --- a/models/attribute_definition_metadata.go +++ b/models/attribute_definition_metadata.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttributeDefinitionMetadata int const ( @@ -41,7 +38,7 @@ func ParseAttributeDefinitionMetadata(v string) (any, error) { case "ReferencedProperty": result = REFERENCEDPROPERTY_ATTRIBUTEDEFINITIONMETADATA default: - return 0, errors.New("Unknown AttributeDefinitionMetadata value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attribute_flow_behavior.go b/models/attribute_flow_behavior.go index e51c405211..818a64027f 100644 --- a/models/attribute_flow_behavior.go +++ b/models/attribute_flow_behavior.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttributeFlowBehavior int const ( @@ -20,7 +17,7 @@ func ParseAttributeFlowBehavior(v string) (any, error) { case "FlowAlways": result = FLOWALWAYS_ATTRIBUTEFLOWBEHAVIOR default: - return 0, errors.New("Unknown AttributeFlowBehavior value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attribute_flow_type.go b/models/attribute_flow_type.go index 5682ffd423..876038646b 100644 --- a/models/attribute_flow_type.go +++ b/models/attribute_flow_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttributeFlowType int const ( @@ -29,7 +26,7 @@ func ParseAttributeFlowType(v string) (any, error) { case "AttributeAddOnly": result = ATTRIBUTEADDONLY_ATTRIBUTEFLOWTYPE default: - return 0, errors.New("Unknown AttributeFlowType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attribute_mapping_source_type.go b/models/attribute_mapping_source_type.go index f08e998a79..19c4641535 100644 --- a/models/attribute_mapping_source_type.go +++ b/models/attribute_mapping_source_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttributeMappingSourceType int const ( @@ -23,7 +20,7 @@ func ParseAttributeMappingSourceType(v string) (any, error) { case "Function": result = FUNCTION_ATTRIBUTEMAPPINGSOURCETYPE default: - return 0, errors.New("Unknown AttributeMappingSourceType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/attribute_type.go b/models/attribute_type.go index b0d1101ce9..c90f601a88 100644 --- a/models/attribute_type.go +++ b/models/attribute_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AttributeType int const ( @@ -32,7 +29,7 @@ func ParseAttributeType(v string) (any, error) { case "DateTime": result = DATETIME_ATTRIBUTETYPE default: - return 0, errors.New("Unknown AttributeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_method_feature.go b/models/authentication_method_feature.go index a054b49345..333c7b05d8 100644 --- a/models/authentication_method_feature.go +++ b/models/authentication_method_feature.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationMethodFeature int const ( @@ -32,7 +29,7 @@ func ParseAuthenticationMethodFeature(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODFEATURE default: - return 0, errors.New("Unknown AuthenticationMethodFeature value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_method_key_strength.go b/models/authentication_method_key_strength.go index 4091eddf07..f26261d87b 100644 --- a/models/authentication_method_key_strength.go +++ b/models/authentication_method_key_strength.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationMethodKeyStrength int const ( @@ -23,7 +20,7 @@ func ParseAuthenticationMethodKeyStrength(v string) (any, error) { case "unknown": result = UNKNOWN_AUTHENTICATIONMETHODKEYSTRENGTH default: - return 0, errors.New("Unknown AuthenticationMethodKeyStrength value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_method_modes.go b/models/authentication_method_modes.go index 598491a4d2..41b7377a00 100644 --- a/models/authentication_method_modes.go +++ b/models/authentication_method_modes.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -77,7 +76,7 @@ func ParseAuthenticationMethodModes(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODMODES default: - return 0, errors.New("Unknown AuthenticationMethodModes value: " + v) + return nil, nil } } return &result, nil diff --git a/models/authentication_method_sign_in_state.go b/models/authentication_method_sign_in_state.go index 7aff3e674d..7d814d4673 100644 --- a/models/authentication_method_sign_in_state.go +++ b/models/authentication_method_sign_in_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationMethodSignInState int const ( @@ -35,7 +32,7 @@ func ParseAuthenticationMethodSignInState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODSIGNINSTATE default: - return 0, errors.New("Unknown AuthenticationMethodSignInState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_method_state.go b/models/authentication_method_state.go index 843ee96492..5854056ee3 100644 --- a/models/authentication_method_state.go +++ b/models/authentication_method_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationMethodState int const ( @@ -20,7 +17,7 @@ func ParseAuthenticationMethodState(v string) (any, error) { case "disabled": result = DISABLED_AUTHENTICATIONMETHODSTATE default: - return 0, errors.New("Unknown AuthenticationMethodState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_method_target_type.go b/models/authentication_method_target_type.go index b142788d02..bd74627b41 100644 --- a/models/authentication_method_target_type.go +++ b/models/authentication_method_target_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationMethodTargetType int const ( @@ -23,7 +20,7 @@ func ParseAuthenticationMethodTargetType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODTARGETTYPE default: - return 0, errors.New("Unknown AuthenticationMethodTargetType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_methods_policy_migration_state.go b/models/authentication_methods_policy_migration_state.go index f7fb5b75a2..a6b9ff82af 100644 --- a/models/authentication_methods_policy_migration_state.go +++ b/models/authentication_methods_policy_migration_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationMethodsPolicyMigrationState int const ( @@ -26,7 +23,7 @@ func ParseAuthenticationMethodsPolicyMigrationState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTHENTICATIONMETHODSPOLICYMIGRATIONSTATE default: - return 0, errors.New("Unknown AuthenticationMethodsPolicyMigrationState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_phone_type.go b/models/authentication_phone_type.go index d4fb92f20f..a838cb88b2 100644 --- a/models/authentication_phone_type.go +++ b/models/authentication_phone_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationPhoneType int const ( @@ -26,7 +23,7 @@ func ParseAuthenticationPhoneType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTHENTICATIONPHONETYPE default: - return 0, errors.New("Unknown AuthenticationPhoneType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_protocol.go b/models/authentication_protocol.go index ba647b6842..59fa7b253c 100644 --- a/models/authentication_protocol.go +++ b/models/authentication_protocol.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationProtocol int const ( @@ -23,7 +20,7 @@ func ParseAuthenticationProtocol(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTHENTICATIONPROTOCOL default: - return 0, errors.New("Unknown AuthenticationProtocol value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_strength_policy_type.go b/models/authentication_strength_policy_type.go index 1b9fdf5b55..625b1f69ff 100644 --- a/models/authentication_strength_policy_type.go +++ b/models/authentication_strength_policy_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AuthenticationStrengthPolicyType int const ( @@ -23,7 +20,7 @@ func ParseAuthenticationStrengthPolicyType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTHENTICATIONSTRENGTHPOLICYTYPE default: - return 0, errors.New("Unknown AuthenticationStrengthPolicyType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/authentication_strength_requirements.go b/models/authentication_strength_requirements.go index b03df07c4d..92e51f49ea 100644 --- a/models/authentication_strength_requirements.go +++ b/models/authentication_strength_requirements.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -35,7 +34,7 @@ func ParseAuthenticationStrengthRequirements(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_AUTHENTICATIONSTRENGTHREQUIREMENTS default: - return 0, errors.New("Unknown AuthenticationStrengthRequirements value: " + v) + return nil, nil } } return &result, nil diff --git a/models/auto_restart_notification_dismissal_method.go b/models/auto_restart_notification_dismissal_method.go index 239a687e9c..146e1bb227 100644 --- a/models/auto_restart_notification_dismissal_method.go +++ b/models/auto_restart_notification_dismissal_method.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Auto restart required notification dismissal method type AutoRestartNotificationDismissalMethod int @@ -31,7 +28,7 @@ func ParseAutoRestartNotificationDismissalMethod(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTORESTARTNOTIFICATIONDISMISSALMETHOD default: - return 0, errors.New("Unknown AutoRestartNotificationDismissalMethod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/automatic_replies_status.go b/models/automatic_replies_status.go index 8df6afffc9..4392ba5558 100644 --- a/models/automatic_replies_status.go +++ b/models/automatic_replies_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type AutomaticRepliesStatus int const ( @@ -23,7 +20,7 @@ func ParseAutomaticRepliesStatus(v string) (any, error) { case "scheduled": result = SCHEDULED_AUTOMATICREPLIESSTATUS default: - return 0, errors.New("Unknown AutomaticRepliesStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/automatic_update_mode.go b/models/automatic_update_mode.go index 3797a5b3fb..9c66dbb2e1 100644 --- a/models/automatic_update_mode.go +++ b/models/automatic_update_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for automatic update mode. type AutomaticUpdateMode int @@ -39,7 +36,7 @@ func ParseAutomaticUpdateMode(v string) (any, error) { case "autoInstallAndRebootWithoutEndUserControl": result = AUTOINSTALLANDREBOOTWITHOUTENDUSERCONTROL_AUTOMATICUPDATEMODE default: - return 0, errors.New("Unknown AutomaticUpdateMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/b2b_identity_providers_type.go b/models/b2b_identity_providers_type.go index 3d49107a64..e5d4d3f115 100644 --- a/models/b2b_identity_providers_type.go +++ b/models/b2b_identity_providers_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type B2bIdentityProvidersType int const ( @@ -35,7 +32,7 @@ func ParseB2bIdentityProvidersType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_B2BIDENTITYPROVIDERSTYPE default: - return 0, errors.New("Unknown B2bIdentityProvidersType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/base_authentication_method.go b/models/base_authentication_method.go index 1c4e4fb3be..ffd0f6d4bc 100644 --- a/models/base_authentication_method.go +++ b/models/base_authentication_method.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BaseAuthenticationMethod int const ( @@ -53,7 +50,7 @@ func ParseBaseAuthenticationMethod(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BASEAUTHENTICATIONMETHOD default: - return 0, errors.New("Unknown BaseAuthenticationMethod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/binary_operator.go b/models/binary_operator.go index 5edd122fef..2656576e33 100644 --- a/models/binary_operator.go +++ b/models/binary_operator.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BinaryOperator int const ( @@ -20,7 +17,7 @@ func ParseBinaryOperator(v string) (any, error) { case "and": result = AND_BINARYOPERATOR default: - return 0, errors.New("Unknown BinaryOperator value: " + v) + return nil, nil } return &result, nil } diff --git a/models/bit_locker_encryption_method.go b/models/bit_locker_encryption_method.go index 7a346e16b7..481d73ae9f 100644 --- a/models/bit_locker_encryption_method.go +++ b/models/bit_locker_encryption_method.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // BitLockerEncryptionMethod types type BitLockerEncryptionMethod int @@ -31,7 +28,7 @@ func ParseBitLockerEncryptionMethod(v string) (any, error) { case "xtsAes256": result = XTSAES256_BITLOCKERENCRYPTIONMETHOD default: - return 0, errors.New("Unknown BitLockerEncryptionMethod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/body_type.go b/models/body_type.go index 90da1ffdd5..a49c1abdc9 100644 --- a/models/body_type.go +++ b/models/body_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BodyType int const ( @@ -20,7 +17,7 @@ func ParseBodyType(v string) (any, error) { case "html": result = HTML_BODYTYPE default: - return 0, errors.New("Unknown BodyType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/booking_price_type.go b/models/booking_price_type.go index 11816abe2e..06b4617190 100644 --- a/models/booking_price_type.go +++ b/models/booking_price_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Represents the type of pricing of a booking service. type BookingPriceType int @@ -50,7 +47,7 @@ func ParseBookingPriceType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BOOKINGPRICETYPE default: - return 0, errors.New("Unknown BookingPriceType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/booking_question_assignment.go b/models/booking_question_assignment.go index 78e46f7ea4..19c9cae1aa 100644 --- a/models/booking_question_assignment.go +++ b/models/booking_question_assignment.go @@ -76,7 +76,7 @@ func (m *BookingQuestionAssignment) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetIsRequired gets the isRequired property value. The ID of the custom question. +// GetIsRequired gets the isRequired property value. Indicates whether it's mandatory to answer the custom question. // returns a *bool when successful func (m *BookingQuestionAssignment) GetIsRequired()(*bool) { val, err := m.GetBackingStore().Get("isRequired") @@ -100,7 +100,7 @@ func (m *BookingQuestionAssignment) GetOdataType()(*string) { } return nil } -// GetQuestionId gets the questionId property value. Indicates whether it's mandatory to answer the custom question. +// GetQuestionId gets the questionId property value. The ID of the custom question. // returns a *string when successful func (m *BookingQuestionAssignment) GetQuestionId()(*string) { val, err := m.GetBackingStore().Get("questionId") @@ -151,7 +151,7 @@ func (m *BookingQuestionAssignment) SetAdditionalData(value map[string]any)() { func (m *BookingQuestionAssignment) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsRequired sets the isRequired property value. The ID of the custom question. +// SetIsRequired sets the isRequired property value. Indicates whether it's mandatory to answer the custom question. func (m *BookingQuestionAssignment) SetIsRequired(value *bool)() { err := m.GetBackingStore().Set("isRequired", value) if err != nil { @@ -165,7 +165,7 @@ func (m *BookingQuestionAssignment) SetOdataType(value *string)() { panic(err) } } -// SetQuestionId sets the questionId property value. Indicates whether it's mandatory to answer the custom question. +// SetQuestionId sets the questionId property value. The ID of the custom question. func (m *BookingQuestionAssignment) SetQuestionId(value *string)() { err := m.GetBackingStore().Set("questionId", value) if err != nil { diff --git a/models/booking_reminder_recipients.go b/models/booking_reminder_recipients.go index 4e4ba6663b..61e826976c 100644 --- a/models/booking_reminder_recipients.go +++ b/models/booking_reminder_recipients.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BookingReminderRecipients int const ( @@ -26,7 +23,7 @@ func ParseBookingReminderRecipients(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BOOKINGREMINDERRECIPIENTS default: - return 0, errors.New("Unknown BookingReminderRecipients value: " + v) + return nil, nil } return &result, nil } diff --git a/models/booking_staff_membership_status.go b/models/booking_staff_membership_status.go index 4e236bf457..6f6bc4f9d2 100644 --- a/models/booking_staff_membership_status.go +++ b/models/booking_staff_membership_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BookingStaffMembershipStatus int const ( @@ -26,7 +23,7 @@ func ParseBookingStaffMembershipStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BOOKINGSTAFFMEMBERSHIPSTATUS default: - return 0, errors.New("Unknown BookingStaffMembershipStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/booking_staff_role.go b/models/booking_staff_role.go index f7d73d9fd5..366f6c5cd3 100644 --- a/models/booking_staff_role.go +++ b/models/booking_staff_role.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BookingStaffRole int const ( @@ -35,7 +32,7 @@ func ParseBookingStaffRole(v string) (any, error) { case "teamMember": result = TEAMMEMBER_BOOKINGSTAFFROLE default: - return 0, errors.New("Unknown BookingStaffRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/booking_type.go b/models/booking_type.go index c789e76613..4ad1ac3d72 100644 --- a/models/booking_type.go +++ b/models/booking_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BookingType int const ( @@ -23,7 +20,7 @@ func ParseBookingType(v string) (any, error) { case "reserved": result = RESERVED_BOOKINGTYPE default: - return 0, errors.New("Unknown BookingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/bookings_availability_status.go b/models/bookings_availability_status.go index 26fcb020ad..57e441a17b 100644 --- a/models/bookings_availability_status.go +++ b/models/bookings_availability_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BookingsAvailabilityStatus int const ( @@ -29,7 +26,7 @@ func ParseBookingsAvailabilityStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BOOKINGSAVAILABILITYSTATUS default: - return 0, errors.New("Unknown BookingsAvailabilityStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/broadcast_meeting_audience.go b/models/broadcast_meeting_audience.go index 7fc398b90f..1f1fab6ffa 100644 --- a/models/broadcast_meeting_audience.go +++ b/models/broadcast_meeting_audience.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BroadcastMeetingAudience int const ( @@ -26,7 +23,7 @@ func ParseBroadcastMeetingAudience(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BROADCASTMEETINGAUDIENCE default: - return 0, errors.New("Unknown BroadcastMeetingAudience value: " + v) + return nil, nil } return &result, nil } diff --git a/models/browser_shared_cookie_source_environment.go b/models/browser_shared_cookie_source_environment.go index 277691d492..f11f5b3fc1 100644 --- a/models/browser_shared_cookie_source_environment.go +++ b/models/browser_shared_cookie_source_environment.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BrowserSharedCookieSourceEnvironment int const ( @@ -30,7 +27,7 @@ func ParseBrowserSharedCookieSourceEnvironment(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BROWSERSHAREDCOOKIESOURCEENVIRONMENT default: - return 0, errors.New("Unknown BrowserSharedCookieSourceEnvironment value: " + v) + return nil, nil } return &result, nil } diff --git a/models/browser_shared_cookie_status.go b/models/browser_shared_cookie_status.go index b730df803a..66e2109387 100644 --- a/models/browser_shared_cookie_status.go +++ b/models/browser_shared_cookie_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BrowserSharedCookieStatus int const ( @@ -34,7 +31,7 @@ func ParseBrowserSharedCookieStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BROWSERSHAREDCOOKIESTATUS default: - return 0, errors.New("Unknown BrowserSharedCookieStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/browser_site_compatibility_mode.go b/models/browser_site_compatibility_mode.go index b0c836c89c..0dc5eb47d5 100644 --- a/models/browser_site_compatibility_mode.go +++ b/models/browser_site_compatibility_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BrowserSiteCompatibilityMode int const ( @@ -54,7 +51,7 @@ func ParseBrowserSiteCompatibilityMode(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BROWSERSITECOMPATIBILITYMODE default: - return 0, errors.New("Unknown BrowserSiteCompatibilityMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/browser_site_list_status.go b/models/browser_site_list_status.go index 2c7dc2bccb..54c8bdbd7d 100644 --- a/models/browser_site_list_status.go +++ b/models/browser_site_list_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BrowserSiteListStatus int const ( @@ -30,7 +27,7 @@ func ParseBrowserSiteListStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BROWSERSITELISTSTATUS default: - return 0, errors.New("Unknown BrowserSiteListStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/browser_site_merge_type.go b/models/browser_site_merge_type.go index 00f83b7e3d..935cbc64f2 100644 --- a/models/browser_site_merge_type.go +++ b/models/browser_site_merge_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BrowserSiteMergeType int const ( @@ -26,7 +23,7 @@ func ParseBrowserSiteMergeType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BROWSERSITEMERGETYPE default: - return 0, errors.New("Unknown BrowserSiteMergeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/browser_site_status.go b/models/browser_site_status.go index 2b771990ab..efb30080bd 100644 --- a/models/browser_site_status.go +++ b/models/browser_site_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BrowserSiteStatus int const ( @@ -34,7 +31,7 @@ func ParseBrowserSiteStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BROWSERSITESTATUS default: - return 0, errors.New("Unknown BrowserSiteStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/browser_site_target_environment.go b/models/browser_site_target_environment.go index c94a1c1b5f..19a2cb4442 100644 --- a/models/browser_site_target_environment.go +++ b/models/browser_site_target_environment.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BrowserSiteTargetEnvironment int const ( @@ -38,7 +35,7 @@ func ParseBrowserSiteTargetEnvironment(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BROWSERSITETARGETENVIRONMENT default: - return 0, errors.New("Unknown BrowserSiteTargetEnvironment value: " + v) + return nil, nil } return &result, nil } diff --git a/models/bucket_aggregation_sort_property.go b/models/bucket_aggregation_sort_property.go index 20dac2c878..b2eb477758 100644 --- a/models/bucket_aggregation_sort_property.go +++ b/models/bucket_aggregation_sort_property.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type BucketAggregationSortProperty int const ( @@ -26,7 +23,7 @@ func ParseBucketAggregationSortProperty(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BUCKETAGGREGATIONSORTPROPERTY default: - return 0, errors.New("Unknown BucketAggregationSortProperty value: " + v) + return nil, nil } return &result, nil } diff --git a/models/calendar_color.go b/models/calendar_color.go index 9170a2b5af..ce8355f1d6 100644 --- a/models/calendar_color.go +++ b/models/calendar_color.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CalendarColor int const ( @@ -47,7 +44,7 @@ func ParseCalendarColor(v string) (any, error) { case "maxColor": result = MAXCOLOR_CALENDARCOLOR default: - return 0, errors.New("Unknown CalendarColor value: " + v) + return nil, nil } return &result, nil } diff --git a/models/calendar_role_type.go b/models/calendar_role_type.go index c33386d6db..5957fc240f 100644 --- a/models/calendar_role_type.go +++ b/models/calendar_role_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CalendarRoleType int const ( @@ -38,7 +35,7 @@ func ParseCalendarRoleType(v string) (any, error) { case "custom": result = CUSTOM_CALENDARROLETYPE default: - return 0, errors.New("Unknown CalendarRoleType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/calendar_sharing_action.go b/models/calendar_sharing_action.go index 7a95020296..6e0c440062 100644 --- a/models/calendar_sharing_action.go +++ b/models/calendar_sharing_action.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CalendarSharingAction int const ( @@ -26,7 +23,7 @@ func ParseCalendarSharingAction(v string) (any, error) { case "addThisCalendar": result = ADDTHISCALENDAR_CALENDARSHARINGACTION default: - return 0, errors.New("Unknown CalendarSharingAction value: " + v) + return nil, nil } return &result, nil } diff --git a/models/calendar_sharing_action_importance.go b/models/calendar_sharing_action_importance.go index 5fb1743d2e..ad4300cd6b 100644 --- a/models/calendar_sharing_action_importance.go +++ b/models/calendar_sharing_action_importance.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CalendarSharingActionImportance int const ( @@ -20,7 +17,7 @@ func ParseCalendarSharingActionImportance(v string) (any, error) { case "secondary": result = SECONDARY_CALENDARSHARINGACTIONIMPORTANCE default: - return 0, errors.New("Unknown CalendarSharingActionImportance value: " + v) + return nil, nil } return &result, nil } diff --git a/models/calendar_sharing_action_type.go b/models/calendar_sharing_action_type.go index 372ca1d7a2..51aaa8e938 100644 --- a/models/calendar_sharing_action_type.go +++ b/models/calendar_sharing_action_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CalendarSharingActionType int const ( @@ -17,7 +14,7 @@ func ParseCalendarSharingActionType(v string) (any, error) { case "accept": result = ACCEPT_CALENDARSHARINGACTIONTYPE default: - return 0, errors.New("Unknown CalendarSharingActionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/call_direction.go b/models/call_direction.go index 874367e76c..b9e358ddfe 100644 --- a/models/call_direction.go +++ b/models/call_direction.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CallDirection int const ( @@ -20,7 +17,7 @@ func ParseCallDirection(v string) (any, error) { case "outgoing": result = OUTGOING_CALLDIRECTION default: - return 0, errors.New("Unknown CallDirection value: " + v) + return nil, nil } return &result, nil } diff --git a/models/call_recording_status.go b/models/call_recording_status.go index 9d36e697a9..282a176d81 100644 --- a/models/call_recording_status.go +++ b/models/call_recording_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CallRecordingStatus int const ( @@ -29,7 +26,7 @@ func ParseCallRecordingStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CALLRECORDINGSTATUS default: - return 0, errors.New("Unknown CallRecordingStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/call_state.go b/models/call_state.go index 78ff52db80..357b1575b6 100644 --- a/models/call_state.go +++ b/models/call_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CallState int const ( @@ -44,7 +41,7 @@ func ParseCallState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CALLSTATE default: - return 0, errors.New("Unknown CallState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/call_transcription_state.go b/models/call_transcription_state.go index 5d6e9ee9d4..71038937eb 100644 --- a/models/call_transcription_state.go +++ b/models/call_transcription_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CallTranscriptionState int const ( @@ -26,7 +23,7 @@ func ParseCallTranscriptionState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CALLTRANSCRIPTIONSTATE default: - return 0, errors.New("Unknown CallTranscriptionState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/audio_codec.go b/models/callrecords/audio_codec.go index 2f1ece0813..77bc0574c9 100644 --- a/models/callrecords/audio_codec.go +++ b/models/callrecords/audio_codec.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type AudioCodec int const ( @@ -83,7 +80,7 @@ func ParseAudioCodec(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUDIOCODEC default: - return 0, errors.New("Unknown AudioCodec value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/call_type.go b/models/callrecords/call_type.go index 32b3ac36cc..aa5c0575d3 100644 --- a/models/callrecords/call_type.go +++ b/models/callrecords/call_type.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type CallType int const ( @@ -26,7 +23,7 @@ func ParseCallType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CALLTYPE default: - return 0, errors.New("Unknown CallType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/client_platform.go b/models/callrecords/client_platform.go index 52c1c490a8..97a67404f2 100644 --- a/models/callrecords/client_platform.go +++ b/models/callrecords/client_platform.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type ClientPlatform int const ( @@ -47,7 +44,7 @@ func ParseClientPlatform(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLIENTPLATFORM default: - return 0, errors.New("Unknown ClientPlatform value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/failure_stage.go b/models/callrecords/failure_stage.go index 877f74ee7d..a10d222f23 100644 --- a/models/callrecords/failure_stage.go +++ b/models/callrecords/failure_stage.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type FailureStage int const ( @@ -26,7 +23,7 @@ func ParseFailureStage(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_FAILURESTAGE default: - return 0, errors.New("Unknown FailureStage value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/media_stream_direction.go b/models/callrecords/media_stream_direction.go index 29dcc72066..61752d4ca8 100644 --- a/models/callrecords/media_stream_direction.go +++ b/models/callrecords/media_stream_direction.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type MediaStreamDirection int const ( @@ -20,7 +17,7 @@ func ParseMediaStreamDirection(v string) (any, error) { case "calleeToCaller": result = CALLEETOCALLER_MEDIASTREAMDIRECTION default: - return 0, errors.New("Unknown MediaStreamDirection value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/modality.go b/models/callrecords/modality.go index 6eaa0cb2a9..d93e30e6ed 100644 --- a/models/callrecords/modality.go +++ b/models/callrecords/modality.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type Modality int const ( @@ -32,7 +29,7 @@ func ParseModality(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MODALITY default: - return 0, errors.New("Unknown Modality value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/network_connection_type.go b/models/callrecords/network_connection_type.go index be74a357f5..fd8e605ba2 100644 --- a/models/callrecords/network_connection_type.go +++ b/models/callrecords/network_connection_type.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type NetworkConnectionType int const ( @@ -32,7 +29,7 @@ func ParseNetworkConnectionType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_NETWORKCONNECTIONTYPE default: - return 0, errors.New("Unknown NetworkConnectionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/network_transport_protocol.go b/models/callrecords/network_transport_protocol.go index ea67e662cf..1d68bffa7c 100644 --- a/models/callrecords/network_transport_protocol.go +++ b/models/callrecords/network_transport_protocol.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type NetworkTransportProtocol int const ( @@ -26,7 +23,7 @@ func ParseNetworkTransportProtocol(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_NETWORKTRANSPORTPROTOCOL default: - return 0, errors.New("Unknown NetworkTransportProtocol value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/product_family.go b/models/callrecords/product_family.go index d5c445651e..5bec236a97 100644 --- a/models/callrecords/product_family.go +++ b/models/callrecords/product_family.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type ProductFamily int const ( @@ -32,7 +29,7 @@ func ParseProductFamily(v string) (any, error) { case "azureCommunicationServices": result = AZURECOMMUNICATIONSERVICES_PRODUCTFAMILY default: - return 0, errors.New("Unknown ProductFamily value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/pstn_call_duration_source.go b/models/callrecords/pstn_call_duration_source.go index 0107400d4a..8ba7e077ad 100644 --- a/models/callrecords/pstn_call_duration_source.go +++ b/models/callrecords/pstn_call_duration_source.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type PstnCallDurationSource int const ( @@ -20,7 +17,7 @@ func ParsePstnCallDurationSource(v string) (any, error) { case "operator": result = OPERATOR_PSTNCALLDURATIONSOURCE default: - return 0, errors.New("Unknown PstnCallDurationSource value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/service_role.go b/models/callrecords/service_role.go index 23fb98a354..4b8341fb96 100644 --- a/models/callrecords/service_role.go +++ b/models/callrecords/service_role.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type ServiceRole int const ( @@ -80,7 +77,7 @@ func ParseServiceRole(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SERVICEROLE default: - return 0, errors.New("Unknown ServiceRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/user_feedback_rating.go b/models/callrecords/user_feedback_rating.go index 6df4682465..7bd82183df 100644 --- a/models/callrecords/user_feedback_rating.go +++ b/models/callrecords/user_feedback_rating.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type UserFeedbackRating int const ( @@ -35,7 +32,7 @@ func ParseUserFeedbackRating(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USERFEEDBACKRATING default: - return 0, errors.New("Unknown UserFeedbackRating value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/video_codec.go b/models/callrecords/video_codec.go index 1fb97c5da0..fa778d8285 100644 --- a/models/callrecords/video_codec.go +++ b/models/callrecords/video_codec.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type VideoCodec int const ( @@ -50,7 +47,7 @@ func ParseVideoCodec(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_VIDEOCODEC default: - return 0, errors.New("Unknown VideoCodec value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/wifi_band.go b/models/callrecords/wifi_band.go index 61a909ccdb..559b8debc1 100644 --- a/models/callrecords/wifi_band.go +++ b/models/callrecords/wifi_band.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type WifiBand int const ( @@ -29,7 +26,7 @@ func ParseWifiBand(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_WIFIBAND default: - return 0, errors.New("Unknown WifiBand value: " + v) + return nil, nil } return &result, nil } diff --git a/models/callrecords/wifi_radio_type.go b/models/callrecords/wifi_radio_type.go index 8cd9de98b3..dd843178d9 100644 --- a/models/callrecords/wifi_radio_type.go +++ b/models/callrecords/wifi_radio_type.go @@ -1,7 +1,4 @@ package callrecords -import ( - "errors" -) type WifiRadioType int const ( @@ -38,7 +35,7 @@ func ParseWifiRadioType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_WIFIRADIOTYPE default: - return 0, errors.New("Unknown WifiRadioType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/category_color.go b/models/category_color.go index ad75af006e..b6195aa511 100644 --- a/models/category_color.go +++ b/models/category_color.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CategoryColor int const ( @@ -92,7 +89,7 @@ func ParseCategoryColor(v string) (any, error) { case "preset24": result = PRESET24_CATEGORYCOLOR default: - return 0, errors.New("Unknown CategoryColor value: " + v) + return nil, nil } return &result, nil } diff --git a/models/certificate_status.go b/models/certificate_status.go index 63e4ca639a..66179b4936 100644 --- a/models/certificate_status.go +++ b/models/certificate_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CertificateStatus int const ( @@ -20,7 +17,7 @@ func ParseCertificateStatus(v string) (any, error) { case "provisioned": result = PROVISIONED_CERTIFICATESTATUS default: - return 0, errors.New("Unknown CertificateStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/channel_membership_type.go b/models/channel_membership_type.go index 515b033f6f..f7108929a4 100644 --- a/models/channel_membership_type.go +++ b/models/channel_membership_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ChannelMembershipType int const ( @@ -26,7 +23,7 @@ func ParseChannelMembershipType(v string) (any, error) { case "shared": result = SHARED_CHANNELMEMBERSHIPTYPE default: - return 0, errors.New("Unknown ChannelMembershipType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/chat_message_actions.go b/models/chat_message_actions.go index c7c7a7ef48..920590d288 100644 --- a/models/chat_message_actions.go +++ b/models/chat_message_actions.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -38,7 +37,7 @@ func ParseChatMessageActions(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_CHATMESSAGEACTIONS default: - return 0, errors.New("Unknown ChatMessageActions value: " + v) + return nil, nil } } return &result, nil diff --git a/models/chat_message_importance.go b/models/chat_message_importance.go index 91c441145f..c71e600571 100644 --- a/models/chat_message_importance.go +++ b/models/chat_message_importance.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ChatMessageImportance int const ( @@ -26,7 +23,7 @@ func ParseChatMessageImportance(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CHATMESSAGEIMPORTANCE default: - return 0, errors.New("Unknown ChatMessageImportance value: " + v) + return nil, nil } return &result, nil } diff --git a/models/chat_message_policy_violation_dlp_action_types.go b/models/chat_message_policy_violation_dlp_action_types.go index 9a94f40eb6..cdb3650a83 100644 --- a/models/chat_message_policy_violation_dlp_action_types.go +++ b/models/chat_message_policy_violation_dlp_action_types.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -38,7 +37,7 @@ func ParseChatMessagePolicyViolationDlpActionTypes(v string) (any, error) { case "blockAccessExternal": result |= BLOCKACCESSEXTERNAL_CHATMESSAGEPOLICYVIOLATIONDLPACTIONTYPES default: - return 0, errors.New("Unknown ChatMessagePolicyViolationDlpActionTypes value: " + v) + return nil, nil } } return &result, nil diff --git a/models/chat_message_policy_violation_user_action_types.go b/models/chat_message_policy_violation_user_action_types.go index 965e7c6449..0a057bbaa8 100644 --- a/models/chat_message_policy_violation_user_action_types.go +++ b/models/chat_message_policy_violation_user_action_types.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -35,7 +34,7 @@ func ParseChatMessagePolicyViolationUserActionTypes(v string) (any, error) { case "reportFalsePositive": result |= REPORTFALSEPOSITIVE_CHATMESSAGEPOLICYVIOLATIONUSERACTIONTYPES default: - return 0, errors.New("Unknown ChatMessagePolicyViolationUserActionTypes value: " + v) + return nil, nil } } return &result, nil diff --git a/models/chat_message_policy_violation_verdict_details_types.go b/models/chat_message_policy_violation_verdict_details_types.go index b0e3ed928e..a799481493 100644 --- a/models/chat_message_policy_violation_verdict_details_types.go +++ b/models/chat_message_policy_violation_verdict_details_types.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -38,7 +37,7 @@ func ParseChatMessagePolicyViolationVerdictDetailsTypes(v string) (any, error) { case "allowOverrideWithJustification": result |= ALLOWOVERRIDEWITHJUSTIFICATION_CHATMESSAGEPOLICYVIOLATIONVERDICTDETAILSTYPES default: - return 0, errors.New("Unknown ChatMessagePolicyViolationVerdictDetailsTypes value: " + v) + return nil, nil } } return &result, nil diff --git a/models/chat_message_type.go b/models/chat_message_type.go index 09d1d7ddf9..f8d08a7d1a 100644 --- a/models/chat_message_type.go +++ b/models/chat_message_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ChatMessageType int const ( @@ -29,7 +26,7 @@ func ParseChatMessageType(v string) (any, error) { case "systemEventMessage": result = SYSTEMEVENTMESSAGE_CHATMESSAGETYPE default: - return 0, errors.New("Unknown ChatMessageType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/chat_type.go b/models/chat_type.go index 11765e8a88..1aed2de040 100644 --- a/models/chat_type.go +++ b/models/chat_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ChatType int const ( @@ -26,7 +23,7 @@ func ParseChatType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CHATTYPE default: - return 0, errors.New("Unknown ChatType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/clonable_team_parts.go b/models/clonable_team_parts.go index 142f47f18d..ee72382b3d 100644 --- a/models/clonable_team_parts.go +++ b/models/clonable_team_parts.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -41,7 +40,7 @@ func ParseClonableTeamParts(v string) (any, error) { case "members": result |= MEMBERS_CLONABLETEAMPARTS default: - return 0, errors.New("Unknown ClonableTeamParts value: " + v) + return nil, nil } } return &result, nil diff --git a/models/cloud_app_security_session_control_type.go b/models/cloud_app_security_session_control_type.go index 0f2678fb29..c1f9e10382 100644 --- a/models/cloud_app_security_session_control_type.go +++ b/models/cloud_app_security_session_control_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudAppSecuritySessionControlType int const ( @@ -26,7 +23,7 @@ func ParseCloudAppSecuritySessionControlType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDAPPSECURITYSESSIONCONTROLTYPE default: - return 0, errors.New("Unknown CloudAppSecuritySessionControlType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_audit_activity_operation_type.go b/models/cloud_pc_audit_activity_operation_type.go index 67c1b4ca39..9bf54d8bd4 100644 --- a/models/cloud_pc_audit_activity_operation_type.go +++ b/models/cloud_pc_audit_activity_operation_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcAuditActivityOperationType int const ( @@ -26,7 +23,7 @@ func ParseCloudPcAuditActivityOperationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYOPERATIONTYPE default: - return 0, errors.New("Unknown CloudPcAuditActivityOperationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_audit_activity_result.go b/models/cloud_pc_audit_activity_result.go index 84a5afb314..5d7a4cd21e 100644 --- a/models/cloud_pc_audit_activity_result.go +++ b/models/cloud_pc_audit_activity_result.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcAuditActivityResult int const ( @@ -29,7 +26,7 @@ func ParseCloudPcAuditActivityResult(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITACTIVITYRESULT default: - return 0, errors.New("Unknown CloudPcAuditActivityResult value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_audit_category.go b/models/cloud_pc_audit_category.go index a4af099e01..e89669adf6 100644 --- a/models/cloud_pc_audit_category.go +++ b/models/cloud_pc_audit_category.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcAuditCategory int const ( @@ -20,7 +17,7 @@ func ParseCloudPcAuditCategory(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCAUDITCATEGORY default: - return 0, errors.New("Unknown CloudPcAuditCategory value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_device_image_error_code.go b/models/cloud_pc_device_image_error_code.go index eca19adca6..8164d60fa0 100644 --- a/models/cloud_pc_device_image_error_code.go +++ b/models/cloud_pc_device_image_error_code.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcDeviceImageErrorCode int const ( @@ -44,7 +41,7 @@ func ParseCloudPcDeviceImageErrorCode(v string) (any, error) { case "sourceImageSizeExceedsLimitation": result = SOURCEIMAGESIZEEXCEEDSLIMITATION_CLOUDPCDEVICEIMAGEERRORCODE default: - return 0, errors.New("Unknown CloudPcDeviceImageErrorCode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_device_image_os_status.go b/models/cloud_pc_device_image_os_status.go index 43e07d2a31..6aa1910e94 100644 --- a/models/cloud_pc_device_image_os_status.go +++ b/models/cloud_pc_device_image_os_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcDeviceImageOsStatus int const ( @@ -26,7 +23,7 @@ func ParseCloudPcDeviceImageOsStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGEOSSTATUS default: - return 0, errors.New("Unknown CloudPcDeviceImageOsStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_device_image_status.go b/models/cloud_pc_device_image_status.go index 2a52d7f067..4b6de9a8a9 100644 --- a/models/cloud_pc_device_image_status.go +++ b/models/cloud_pc_device_image_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcDeviceImageStatus int const ( @@ -26,7 +23,7 @@ func ParseCloudPcDeviceImageStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCDEVICEIMAGESTATUS default: - return 0, errors.New("Unknown CloudPcDeviceImageStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_domain_join_type.go b/models/cloud_pc_domain_join_type.go index 05a95861ee..8112f21afb 100644 --- a/models/cloud_pc_domain_join_type.go +++ b/models/cloud_pc_domain_join_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcDomainJoinType int const ( @@ -23,7 +20,7 @@ func ParseCloudPcDomainJoinType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCDOMAINJOINTYPE default: - return 0, errors.New("Unknown CloudPcDomainJoinType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_gallery_image_status.go b/models/cloud_pc_gallery_image_status.go index d92cfa3e82..8039975183 100644 --- a/models/cloud_pc_gallery_image_status.go +++ b/models/cloud_pc_gallery_image_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcGalleryImageStatus int const ( @@ -26,7 +23,7 @@ func ParseCloudPcGalleryImageStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCGALLERYIMAGESTATUS default: - return 0, errors.New("Unknown CloudPcGalleryImageStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_on_premises_connection_health_check_error_type.go b/models/cloud_pc_on_premises_connection_health_check_error_type.go index 214c2c0ebe..2b665cd130 100644 --- a/models/cloud_pc_on_premises_connection_health_check_error_type.go +++ b/models/cloud_pc_on_premises_connection_health_check_error_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcOnPremisesConnectionHealthCheckErrorType int const ( @@ -218,7 +215,7 @@ func ParseCloudPcOnPremisesConnectionHealthCheckErrorType(v string) (any, error) case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCONPREMISESCONNECTIONHEALTHCHECKERRORTYPE default: - return 0, errors.New("Unknown CloudPcOnPremisesConnectionHealthCheckErrorType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_on_premises_connection_status.go b/models/cloud_pc_on_premises_connection_status.go index ec68c7ff8f..30c9d326db 100644 --- a/models/cloud_pc_on_premises_connection_status.go +++ b/models/cloud_pc_on_premises_connection_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcOnPremisesConnectionStatus int const ( @@ -35,7 +32,7 @@ func ParseCloudPcOnPremisesConnectionStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCONPREMISESCONNECTIONSTATUS default: - return 0, errors.New("Unknown CloudPcOnPremisesConnectionStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_on_premises_connection_type.go b/models/cloud_pc_on_premises_connection_type.go index c0f5da6423..2893c923fa 100644 --- a/models/cloud_pc_on_premises_connection_type.go +++ b/models/cloud_pc_on_premises_connection_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcOnPremisesConnectionType int const ( @@ -23,7 +20,7 @@ func ParseCloudPcOnPremisesConnectionType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCONPREMISESCONNECTIONTYPE default: - return 0, errors.New("Unknown CloudPcOnPremisesConnectionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_provisioning_policy_image_type.go b/models/cloud_pc_provisioning_policy_image_type.go index e67b9147b7..bad7851ceb 100644 --- a/models/cloud_pc_provisioning_policy_image_type.go +++ b/models/cloud_pc_provisioning_policy_image_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcProvisioningPolicyImageType int const ( @@ -23,7 +20,7 @@ func ParseCloudPcProvisioningPolicyImageType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCPROVISIONINGPOLICYIMAGETYPE default: - return 0, errors.New("Unknown CloudPcProvisioningPolicyImageType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_provisioning_type.go b/models/cloud_pc_provisioning_type.go index 4098d93e3a..e6ecc709a4 100644 --- a/models/cloud_pc_provisioning_type.go +++ b/models/cloud_pc_provisioning_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcProvisioningType int const ( @@ -23,7 +20,7 @@ func ParseCloudPcProvisioningType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCPROVISIONINGTYPE default: - return 0, errors.New("Unknown CloudPcProvisioningType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_region_group.go b/models/cloud_pc_region_group.go index b69d8ca8cd..429793166c 100644 --- a/models/cloud_pc_region_group.go +++ b/models/cloud_pc_region_group.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcRegionGroup int const ( @@ -77,7 +74,7 @@ func ParseCloudPcRegionGroup(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCREGIONGROUP default: - return 0, errors.New("Unknown CloudPcRegionGroup value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cloud_pc_restore_point_frequency_type.go b/models/cloud_pc_restore_point_frequency_type.go index 5493779dd5..aff4e96e30 100644 --- a/models/cloud_pc_restore_point_frequency_type.go +++ b/models/cloud_pc_restore_point_frequency_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CloudPcRestorePointFrequencyType int const ( @@ -35,7 +32,7 @@ func ParseCloudPcRestorePointFrequencyType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CLOUDPCRESTOREPOINTFREQUENCYTYPE default: - return 0, errors.New("Unknown CloudPcRestorePointFrequencyType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/coachmark_location_type.go b/models/coachmark_location_type.go index eedea895c0..d55fefa72c 100644 --- a/models/coachmark_location_type.go +++ b/models/coachmark_location_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CoachmarkLocationType int const ( @@ -35,7 +32,7 @@ func ParseCoachmarkLocationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_COACHMARKLOCATIONTYPE default: - return 0, errors.New("Unknown CoachmarkLocationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/column_types.go b/models/column_types.go index 963458ffc6..e62a244760 100644 --- a/models/column_types.go +++ b/models/column_types.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ColumnTypes int const ( @@ -71,7 +68,7 @@ func ParseColumnTypes(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_COLUMNTYPES default: - return 0, errors.New("Unknown ColumnTypes value: " + v) + return nil, nil } return &result, nil } diff --git a/models/compliance_state.go b/models/compliance_state.go index 4876ed3cab..2a14fd6b28 100644 --- a/models/compliance_state.go +++ b/models/compliance_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Compliance state. type ComplianceState int @@ -43,7 +40,7 @@ func ParseComplianceState(v string) (any, error) { case "configManager": result = CONFIGMANAGER_COMPLIANCESTATE default: - return 0, errors.New("Unknown ComplianceState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/compliance_status.go b/models/compliance_status.go index 0557b4f782..5276316b65 100644 --- a/models/compliance_status.go +++ b/models/compliance_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ComplianceStatus int const ( @@ -38,7 +35,7 @@ func ParseComplianceStatus(v string) (any, error) { case "notAssigned": result = NOTASSIGNED_COMPLIANCESTATUS default: - return 0, errors.New("Unknown ComplianceStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/conditional_access_client_app.go b/models/conditional_access_client_app.go index d1c4373b51..fcbcff609c 100644 --- a/models/conditional_access_client_app.go +++ b/models/conditional_access_client_app.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConditionalAccessClientApp int const ( @@ -35,7 +32,7 @@ func ParseConditionalAccessClientApp(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONDITIONALACCESSCLIENTAPP default: - return 0, errors.New("Unknown ConditionalAccessClientApp value: " + v) + return nil, nil } return &result, nil } diff --git a/models/conditional_access_device_platform.go b/models/conditional_access_device_platform.go index d65c103e7c..6cff4817c7 100644 --- a/models/conditional_access_device_platform.go +++ b/models/conditional_access_device_platform.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConditionalAccessDevicePlatform int const ( @@ -38,7 +35,7 @@ func ParseConditionalAccessDevicePlatform(v string) (any, error) { case "linux": result = LINUX_CONDITIONALACCESSDEVICEPLATFORM default: - return 0, errors.New("Unknown ConditionalAccessDevicePlatform value: " + v) + return nil, nil } return &result, nil } diff --git a/models/conditional_access_external_tenants_membership_kind.go b/models/conditional_access_external_tenants_membership_kind.go index 45257cf980..67bae90772 100644 --- a/models/conditional_access_external_tenants_membership_kind.go +++ b/models/conditional_access_external_tenants_membership_kind.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConditionalAccessExternalTenantsMembershipKind int const ( @@ -23,7 +20,7 @@ func ParseConditionalAccessExternalTenantsMembershipKind(v string) (any, error) case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONDITIONALACCESSEXTERNALTENANTSMEMBERSHIPKIND default: - return 0, errors.New("Unknown ConditionalAccessExternalTenantsMembershipKind value: " + v) + return nil, nil } return &result, nil } diff --git a/models/conditional_access_grant_control.go b/models/conditional_access_grant_control.go index f619d40ec4..799e6a4a7f 100644 --- a/models/conditional_access_grant_control.go +++ b/models/conditional_access_grant_control.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConditionalAccessGrantControl int const ( @@ -38,7 +35,7 @@ func ParseConditionalAccessGrantControl(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONDITIONALACCESSGRANTCONTROL default: - return 0, errors.New("Unknown ConditionalAccessGrantControl value: " + v) + return nil, nil } return &result, nil } diff --git a/models/conditional_access_guest_or_external_user_types.go b/models/conditional_access_guest_or_external_user_types.go index 78e287159a..8aa09346ba 100644 --- a/models/conditional_access_guest_or_external_user_types.go +++ b/models/conditional_access_guest_or_external_user_types.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -50,7 +49,7 @@ func ParseConditionalAccessGuestOrExternalUserTypes(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_CONDITIONALACCESSGUESTOREXTERNALUSERTYPES default: - return 0, errors.New("Unknown ConditionalAccessGuestOrExternalUserTypes value: " + v) + return nil, nil } } return &result, nil diff --git a/models/conditional_access_policy_state.go b/models/conditional_access_policy_state.go index 394d7226a7..6ea86efec1 100644 --- a/models/conditional_access_policy_state.go +++ b/models/conditional_access_policy_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConditionalAccessPolicyState int const ( @@ -23,7 +20,7 @@ func ParseConditionalAccessPolicyState(v string) (any, error) { case "enabledForReportingButNotEnforced": result = ENABLEDFORREPORTINGBUTNOTENFORCED_CONDITIONALACCESSPOLICYSTATE default: - return 0, errors.New("Unknown ConditionalAccessPolicyState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/conditional_access_status.go b/models/conditional_access_status.go index a608208ed5..192ccb2ddd 100644 --- a/models/conditional_access_status.go +++ b/models/conditional_access_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConditionalAccessStatus int const ( @@ -26,7 +23,7 @@ func ParseConditionalAccessStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONDITIONALACCESSSTATUS default: - return 0, errors.New("Unknown ConditionalAccessStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/connected_organization_state.go b/models/connected_organization_state.go index 7d29ae6fad..5141b598b6 100644 --- a/models/connected_organization_state.go +++ b/models/connected_organization_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConnectedOrganizationState int const ( @@ -23,7 +20,7 @@ func ParseConnectedOrganizationState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONNECTEDORGANIZATIONSTATE default: - return 0, errors.New("Unknown ConnectedOrganizationState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/connection_direction.go b/models/connection_direction.go index 8cbb5aa180..2019d1089e 100644 --- a/models/connection_direction.go +++ b/models/connection_direction.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConnectionDirection int const ( @@ -26,7 +23,7 @@ func ParseConnectionDirection(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONNECTIONDIRECTION default: - return 0, errors.New("Unknown ConnectionDirection value: " + v) + return nil, nil } return &result, nil } diff --git a/models/connection_status.go b/models/connection_status.go index 1b14e2c92d..c4b3628422 100644 --- a/models/connection_status.go +++ b/models/connection_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ConnectionStatus int const ( @@ -32,7 +29,7 @@ func ParseConnectionStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONNECTIONSTATUS default: - return 0, errors.New("Unknown ConnectionStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/contact_relationship.go b/models/contact_relationship.go index 29582a1c6a..8410a7055e 100644 --- a/models/contact_relationship.go +++ b/models/contact_relationship.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ContactRelationship int const ( @@ -38,7 +35,7 @@ func ParseContactRelationship(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONTACTRELATIONSHIP default: - return 0, errors.New("Unknown ContactRelationship value: " + v) + return nil, nil } return &result, nil } diff --git a/models/content_customization.go b/models/content_customization.go new file mode 100644 index 0000000000..02c7a92613 --- /dev/null +++ b/models/content_customization.go @@ -0,0 +1,285 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ContentCustomization struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewContentCustomization instantiates a new ContentCustomization and sets the default values. +func NewContentCustomization()(*ContentCustomization) { + m := &ContentCustomization{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateContentCustomizationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateContentCustomizationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewContentCustomization(), 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 *ContentCustomization) 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) +} +// GetAttributeCollection gets the attributeCollection property value. Represents the content options of External Identities to be customized throughout the authentication flow for a tenant. +// returns a []KeyValueable when successful +func (m *ContentCustomization) GetAttributeCollection()([]KeyValueable) { + val, err := m.GetBackingStore().Get("attributeCollection") + if err != nil { + panic(err) + } + if val != nil { + return val.([]KeyValueable) + } + return nil +} +// GetAttributeCollectionRelativeUrl gets the attributeCollectionRelativeUrl property value. A relative URL for the content options of External Identities to be customized throughout the authentication flow for a tenant. +// returns a *string when successful +func (m *ContentCustomization) GetAttributeCollectionRelativeUrl()(*string) { + val, err := m.GetBackingStore().Get("attributeCollectionRelativeUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ContentCustomization) 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 *ContentCustomization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["attributeCollection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateKeyValueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]KeyValueable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(KeyValueable) + } + } + m.SetAttributeCollection(res) + } + return nil + } + res["attributeCollectionRelativeUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAttributeCollectionRelativeUrl(val) + } + 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["registrationCampaign"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateKeyValueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]KeyValueable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(KeyValueable) + } + } + m.SetRegistrationCampaign(res) + } + return nil + } + res["registrationCampaignRelativeUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegistrationCampaignRelativeUrl(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ContentCustomization) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRegistrationCampaign gets the registrationCampaign property value. The registrationCampaign property +// returns a []KeyValueable when successful +func (m *ContentCustomization) GetRegistrationCampaign()([]KeyValueable) { + val, err := m.GetBackingStore().Get("registrationCampaign") + if err != nil { + panic(err) + } + if val != nil { + return val.([]KeyValueable) + } + return nil +} +// GetRegistrationCampaignRelativeUrl gets the registrationCampaignRelativeUrl property value. The registrationCampaignRelativeUrl property +// returns a *string when successful +func (m *ContentCustomization) GetRegistrationCampaignRelativeUrl()(*string) { + val, err := m.GetBackingStore().Get("registrationCampaignRelativeUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ContentCustomization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAttributeCollection() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAttributeCollection())) + for i, v := range m.GetAttributeCollection() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("attributeCollection", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("attributeCollectionRelativeUrl", m.GetAttributeCollectionRelativeUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRegistrationCampaign() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrationCampaign())) + for i, v := range m.GetRegistrationCampaign() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("registrationCampaign", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("registrationCampaignRelativeUrl", m.GetRegistrationCampaignRelativeUrl()) + 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 *ContentCustomization) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAttributeCollection sets the attributeCollection property value. Represents the content options of External Identities to be customized throughout the authentication flow for a tenant. +func (m *ContentCustomization) SetAttributeCollection(value []KeyValueable)() { + err := m.GetBackingStore().Set("attributeCollection", value) + if err != nil { + panic(err) + } +} +// SetAttributeCollectionRelativeUrl sets the attributeCollectionRelativeUrl property value. A relative URL for the content options of External Identities to be customized throughout the authentication flow for a tenant. +func (m *ContentCustomization) SetAttributeCollectionRelativeUrl(value *string)() { + err := m.GetBackingStore().Set("attributeCollectionRelativeUrl", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ContentCustomization) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ContentCustomization) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRegistrationCampaign sets the registrationCampaign property value. The registrationCampaign property +func (m *ContentCustomization) SetRegistrationCampaign(value []KeyValueable)() { + err := m.GetBackingStore().Set("registrationCampaign", value) + if err != nil { + panic(err) + } +} +// SetRegistrationCampaignRelativeUrl sets the registrationCampaignRelativeUrl property value. The registrationCampaignRelativeUrl property +func (m *ContentCustomization) SetRegistrationCampaignRelativeUrl(value *string)() { + err := m.GetBackingStore().Set("registrationCampaignRelativeUrl", value) + if err != nil { + panic(err) + } +} +type ContentCustomizationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAttributeCollection()([]KeyValueable) + GetAttributeCollectionRelativeUrl()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetRegistrationCampaign()([]KeyValueable) + GetRegistrationCampaignRelativeUrl()(*string) + SetAttributeCollection(value []KeyValueable)() + SetAttributeCollectionRelativeUrl(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetRegistrationCampaign(value []KeyValueable)() + SetRegistrationCampaignRelativeUrl(value *string)() +} diff --git a/models/country_lookup_method_type.go b/models/country_lookup_method_type.go index 3760e81f8b..e2e6486a83 100644 --- a/models/country_lookup_method_type.go +++ b/models/country_lookup_method_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CountryLookupMethodType int const ( @@ -23,7 +20,7 @@ func ParseCountryLookupMethodType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_COUNTRYLOOKUPMETHODTYPE default: - return 0, errors.New("Unknown CountryLookupMethodType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/course_status.go b/models/course_status.go index a2ae3c93f6..b05683ebb3 100644 --- a/models/course_status.go +++ b/models/course_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CourseStatus int const ( @@ -26,7 +23,7 @@ func ParseCourseStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_COURSESTATUS default: - return 0, errors.New("Unknown CourseStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cross_tenant_access_policy_target_configuration_access_type.go b/models/cross_tenant_access_policy_target_configuration_access_type.go index a0412be37c..9a724c818b 100644 --- a/models/cross_tenant_access_policy_target_configuration_access_type.go +++ b/models/cross_tenant_access_policy_target_configuration_access_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CrossTenantAccessPolicyTargetConfigurationAccessType int const ( @@ -23,7 +20,7 @@ func ParseCrossTenantAccessPolicyTargetConfigurationAccessType(v string) (any, e case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CROSSTENANTACCESSPOLICYTARGETCONFIGURATIONACCESSTYPE default: - return 0, errors.New("Unknown CrossTenantAccessPolicyTargetConfigurationAccessType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/cross_tenant_access_policy_target_type.go b/models/cross_tenant_access_policy_target_type.go index ee1616fa8b..7101d1071b 100644 --- a/models/cross_tenant_access_policy_target_type.go +++ b/models/cross_tenant_access_policy_target_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CrossTenantAccessPolicyTargetType int const ( @@ -26,7 +23,7 @@ func ParseCrossTenantAccessPolicyTargetType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CROSSTENANTACCESSPOLICYTARGETTYPE default: - return 0, errors.New("Unknown CrossTenantAccessPolicyTargetType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/custom_extension_callout_instance_status.go b/models/custom_extension_callout_instance_status.go index e54ad2c813..3d1ca2ee11 100644 --- a/models/custom_extension_callout_instance_status.go +++ b/models/custom_extension_callout_instance_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type CustomExtensionCalloutInstanceStatus int const ( @@ -32,7 +29,7 @@ func ParseCustomExtensionCalloutInstanceStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CUSTOMEXTENSIONCALLOUTINSTANCESTATUS default: - return 0, errors.New("Unknown CustomExtensionCalloutInstanceStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/data_policy_operation_status.go b/models/data_policy_operation_status.go index b7005e323b..4227b86907 100644 --- a/models/data_policy_operation_status.go +++ b/models/data_policy_operation_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DataPolicyOperationStatus int const ( @@ -29,7 +26,7 @@ func ParseDataPolicyOperationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DATAPOLICYOPERATIONSTATUS default: - return 0, errors.New("Unknown DataPolicyOperationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/data_subject_type.go b/models/data_subject_type.go index 699e08215c..543497125b 100644 --- a/models/data_subject_type.go +++ b/models/data_subject_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DataSubjectType int const ( @@ -41,7 +38,7 @@ func ParseDataSubjectType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DATASUBJECTTYPE default: - return 0, errors.New("Unknown DataSubjectType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/day_of_week.go b/models/day_of_week.go index d9c8f602e6..47348a4a81 100644 --- a/models/day_of_week.go +++ b/models/day_of_week.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DayOfWeek int const ( @@ -35,7 +32,7 @@ func ParseDayOfWeek(v string) (any, error) { case "saturday": result = SATURDAY_DAYOFWEEK default: - return 0, errors.New("Unknown DayOfWeek value: " + v) + return nil, nil } return &result, nil } diff --git a/models/defender_cloud_block_level_type.go b/models/defender_cloud_block_level_type.go index 3ec3c0504c..5500b610fa 100644 --- a/models/defender_cloud_block_level_type.go +++ b/models/defender_cloud_block_level_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values of Cloud Block Level type DefenderCloudBlockLevelType int @@ -31,7 +28,7 @@ func ParseDefenderCloudBlockLevelType(v string) (any, error) { case "zeroTolerance": result = ZEROTOLERANCE_DEFENDERCLOUDBLOCKLEVELTYPE default: - return 0, errors.New("Unknown DefenderCloudBlockLevelType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/defender_monitor_file_activity.go b/models/defender_monitor_file_activity.go index 7a0a8d7974..a7582aeaa6 100644 --- a/models/defender_monitor_file_activity.go +++ b/models/defender_monitor_file_activity.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for monitoring file activity. type DefenderMonitorFileActivity int @@ -35,7 +32,7 @@ func ParseDefenderMonitorFileActivity(v string) (any, error) { case "monitorOutgoingFilesOnly": result = MONITOROUTGOINGFILESONLY_DEFENDERMONITORFILEACTIVITY default: - return 0, errors.New("Unknown DefenderMonitorFileActivity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/defender_prompt_for_sample_submission.go b/models/defender_prompt_for_sample_submission.go index 1960067884..3b9db9dd77 100644 --- a/models/defender_prompt_for_sample_submission.go +++ b/models/defender_prompt_for_sample_submission.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for prompting user for samples submission. type DefenderPromptForSampleSubmission int @@ -35,7 +32,7 @@ func ParseDefenderPromptForSampleSubmission(v string) (any, error) { case "sendAllDataWithoutPrompting": result = SENDALLDATAWITHOUTPROMPTING_DEFENDERPROMPTFORSAMPLESUBMISSION default: - return 0, errors.New("Unknown DefenderPromptForSampleSubmission value: " + v) + return nil, nil } return &result, nil } diff --git a/models/defender_scan_type.go b/models/defender_scan_type.go index 622fae1464..af4cdedd20 100644 --- a/models/defender_scan_type.go +++ b/models/defender_scan_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for system scan type. type DefenderScanType int @@ -31,7 +28,7 @@ func ParseDefenderScanType(v string) (any, error) { case "full": result = FULL_DEFENDERSCANTYPE default: - return 0, errors.New("Unknown DefenderScanType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/defender_threat_action.go b/models/defender_threat_action.go index f89ce03a00..b7bf33b3b4 100644 --- a/models/defender_threat_action.go +++ b/models/defender_threat_action.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Defender’s default action to take on detected Malware threats. type DefenderThreatAction int @@ -43,7 +40,7 @@ func ParseDefenderThreatAction(v string) (any, error) { case "block": result = BLOCK_DEFENDERTHREATACTION default: - return 0, errors.New("Unknown DefenderThreatAction value: " + v) + return nil, nil } return &result, nil } diff --git a/models/delegate_meeting_message_delivery_options.go b/models/delegate_meeting_message_delivery_options.go index a3f585f6d2..bf57cb8d10 100644 --- a/models/delegate_meeting_message_delivery_options.go +++ b/models/delegate_meeting_message_delivery_options.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DelegateMeetingMessageDeliveryOptions int const ( @@ -23,7 +20,7 @@ func ParseDelegateMeetingMessageDeliveryOptions(v string) (any, error) { case "sendToDelegateOnly": result = SENDTODELEGATEONLY_DELEGATEMEETINGMESSAGEDELIVERYOPTIONS default: - return 0, errors.New("Unknown DelegateMeetingMessageDeliveryOptions value: " + v) + return nil, nil } return &result, nil } diff --git a/models/delegated_admin_access_assignment_status.go b/models/delegated_admin_access_assignment_status.go index be9eee4e11..1f4a586506 100644 --- a/models/delegated_admin_access_assignment_status.go +++ b/models/delegated_admin_access_assignment_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DelegatedAdminAccessAssignmentStatus int const ( @@ -32,7 +29,7 @@ func ParseDelegatedAdminAccessAssignmentStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DELEGATEDADMINACCESSASSIGNMENTSTATUS default: - return 0, errors.New("Unknown DelegatedAdminAccessAssignmentStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/delegated_admin_access_container_type.go b/models/delegated_admin_access_container_type.go index ce64574f7a..ce507ca259 100644 --- a/models/delegated_admin_access_container_type.go +++ b/models/delegated_admin_access_container_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DelegatedAdminAccessContainerType int const ( @@ -20,7 +17,7 @@ func ParseDelegatedAdminAccessContainerType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DELEGATEDADMINACCESSCONTAINERTYPE default: - return 0, errors.New("Unknown DelegatedAdminAccessContainerType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/delegated_admin_relationship_operation_type.go b/models/delegated_admin_relationship_operation_type.go index 8e5038df65..91c428b470 100644 --- a/models/delegated_admin_relationship_operation_type.go +++ b/models/delegated_admin_relationship_operation_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DelegatedAdminRelationshipOperationType int const ( @@ -23,7 +20,7 @@ func ParseDelegatedAdminRelationshipOperationType(v string) (any, error) { case "delegatedAdminRelationshipUpdate": result = DELEGATEDADMINRELATIONSHIPUPDATE_DELEGATEDADMINRELATIONSHIPOPERATIONTYPE default: - return 0, errors.New("Unknown DelegatedAdminRelationshipOperationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/delegated_admin_relationship_request_action.go b/models/delegated_admin_relationship_request_action.go index 0afc41610b..bf975ec329 100644 --- a/models/delegated_admin_relationship_request_action.go +++ b/models/delegated_admin_relationship_request_action.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DelegatedAdminRelationshipRequestAction int const ( @@ -29,7 +26,7 @@ func ParseDelegatedAdminRelationshipRequestAction(v string) (any, error) { case "reject": result = REJECT_DELEGATEDADMINRELATIONSHIPREQUESTACTION default: - return 0, errors.New("Unknown DelegatedAdminRelationshipRequestAction value: " + v) + return nil, nil } return &result, nil } diff --git a/models/delegated_admin_relationship_request_status.go b/models/delegated_admin_relationship_request_status.go index 97d4a7a9cc..4c56f4212f 100644 --- a/models/delegated_admin_relationship_request_status.go +++ b/models/delegated_admin_relationship_request_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DelegatedAdminRelationshipRequestStatus int const ( @@ -29,7 +26,7 @@ func ParseDelegatedAdminRelationshipRequestStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DELEGATEDADMINRELATIONSHIPREQUESTSTATUS default: - return 0, errors.New("Unknown DelegatedAdminRelationshipRequestStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/delegated_admin_relationship_status.go b/models/delegated_admin_relationship_status.go index a7f6868ae6..4cc8ee896d 100644 --- a/models/delegated_admin_relationship_status.go +++ b/models/delegated_admin_relationship_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DelegatedAdminRelationshipStatus int const ( @@ -47,7 +44,7 @@ func ParseDelegatedAdminRelationshipStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DELEGATEDADMINRELATIONSHIPSTATUS default: - return 0, errors.New("Unknown DelegatedAdminRelationshipStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/detected_app_platform_type.go b/models/detected_app_platform_type.go index 02a030e9db..1dcd0c1e10 100644 --- a/models/detected_app_platform_type.go +++ b/models/detected_app_platform_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Indicates the operating system / platform of the discovered application. Some possible values are Windows, iOS, macOS. The default value is unknown (0). type DetectedAppPlatformType int @@ -63,7 +60,7 @@ func ParseDetectedAppPlatformType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DETECTEDAPPPLATFORMTYPE default: - return 0, errors.New("Unknown DetectedAppPlatformType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_compliance_action_type.go b/models/device_compliance_action_type.go index 4b5accc20b..9dd635213f 100644 --- a/models/device_compliance_action_type.go +++ b/models/device_compliance_action_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Scheduled Action Type Enum type DeviceComplianceActionType int @@ -43,7 +40,7 @@ func ParseDeviceComplianceActionType(v string) (any, error) { case "pushNotification": result = PUSHNOTIFICATION_DEVICECOMPLIANCEACTIONTYPE default: - return 0, errors.New("Unknown DeviceComplianceActionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_enrollment_failure_reason.go b/models/device_enrollment_failure_reason.go index 6ef65dce47..269eaca44d 100644 --- a/models/device_enrollment_failure_reason.go +++ b/models/device_enrollment_failure_reason.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Top level failure categories for enrollment. type DeviceEnrollmentFailureReason int @@ -63,7 +60,7 @@ func ParseDeviceEnrollmentFailureReason(v string) (any, error) { case "userAbandonment": result = USERABANDONMENT_DEVICEENROLLMENTFAILUREREASON default: - return 0, errors.New("Unknown DeviceEnrollmentFailureReason value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_enrollment_type.go b/models/device_enrollment_type.go index 4f8dc64407..98f05147fd 100644 --- a/models/device_enrollment_type.go +++ b/models/device_enrollment_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible ways of adding a mobile device to management. type DeviceEnrollmentType int @@ -67,7 +64,7 @@ func ParseDeviceEnrollmentType(v string) (any, error) { case "appleUserEnrollmentWithServiceAccount": result = APPLEUSERENROLLMENTWITHSERVICEACCOUNT_DEVICEENROLLMENTTYPE default: - return 0, errors.New("Unknown DeviceEnrollmentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_exchange_access_state.go b/models/device_management_exchange_access_state.go index 5a0625408e..01e11dd581 100644 --- a/models/device_management_exchange_access_state.go +++ b/models/device_management_exchange_access_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Device Exchange Access State. type DeviceManagementExchangeAccessState int @@ -35,7 +32,7 @@ func ParseDeviceManagementExchangeAccessState(v string) (any, error) { case "quarantined": result = QUARANTINED_DEVICEMANAGEMENTEXCHANGEACCESSSTATE default: - return 0, errors.New("Unknown DeviceManagementExchangeAccessState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_exchange_access_state_reason.go b/models/device_management_exchange_access_state_reason.go index e57a52f768..d5843d75b1 100644 --- a/models/device_management_exchange_access_state_reason.go +++ b/models/device_management_exchange_access_state_reason.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Device Exchange Access State Reason. type DeviceManagementExchangeAccessStateReason int @@ -79,7 +76,7 @@ func ParseDeviceManagementExchangeAccessStateReason(v string) (any, error) { case "deviceNotKnownWithManagedApp": result = DEVICENOTKNOWNWITHMANAGEDAPP_DEVICEMANAGEMENTEXCHANGEACCESSSTATEREASON default: - return 0, errors.New("Unknown DeviceManagementExchangeAccessStateReason value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_exchange_connector_status.go b/models/device_management_exchange_connector_status.go index 2a1112fcfb..703c791924 100644 --- a/models/device_management_exchange_connector_status.go +++ b/models/device_management_exchange_connector_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // The current status of the Exchange Connector. type DeviceManagementExchangeConnectorStatus int @@ -35,7 +32,7 @@ func ParseDeviceManagementExchangeConnectorStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DEVICEMANAGEMENTEXCHANGECONNECTORSTATUS default: - return 0, errors.New("Unknown DeviceManagementExchangeConnectorStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_exchange_connector_sync_type.go b/models/device_management_exchange_connector_sync_type.go index d362db0403..a6f480e3c9 100644 --- a/models/device_management_exchange_connector_sync_type.go +++ b/models/device_management_exchange_connector_sync_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // The type of Exchange Connector sync requested. type DeviceManagementExchangeConnectorSyncType int @@ -23,7 +20,7 @@ func ParseDeviceManagementExchangeConnectorSyncType(v string) (any, error) { case "deltaSync": result = DELTASYNC_DEVICEMANAGEMENTEXCHANGECONNECTORSYNCTYPE default: - return 0, errors.New("Unknown DeviceManagementExchangeConnectorSyncType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_exchange_connector_type.go b/models/device_management_exchange_connector_type.go index 1c4f897662..679c03ca7e 100644 --- a/models/device_management_exchange_connector_type.go +++ b/models/device_management_exchange_connector_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // The type of Exchange Connector. type DeviceManagementExchangeConnectorType int @@ -35,7 +32,7 @@ func ParseDeviceManagementExchangeConnectorType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DEVICEMANAGEMENTEXCHANGECONNECTORTYPE default: - return 0, errors.New("Unknown DeviceManagementExchangeConnectorType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_export_job_localization_type.go b/models/device_management_export_job_localization_type.go index 5817af4137..fed16b085d 100644 --- a/models/device_management_export_job_localization_type.go +++ b/models/device_management_export_job_localization_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Configures how the requested export job is localized. type DeviceManagementExportJobLocalizationType int @@ -23,7 +20,7 @@ func ParseDeviceManagementExportJobLocalizationType(v string) (any, error) { case "replaceLocalizableValues": result = REPLACELOCALIZABLEVALUES_DEVICEMANAGEMENTEXPORTJOBLOCALIZATIONTYPE default: - return 0, errors.New("Unknown DeviceManagementExportJobLocalizationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_partner_app_type.go b/models/device_management_partner_app_type.go index 26a2bf7cca..1a5519712a 100644 --- a/models/device_management_partner_app_type.go +++ b/models/device_management_partner_app_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Partner App Type. type DeviceManagementPartnerAppType int @@ -27,7 +24,7 @@ func ParseDeviceManagementPartnerAppType(v string) (any, error) { case "multiTenantApp": result = MULTITENANTAPP_DEVICEMANAGEMENTPARTNERAPPTYPE default: - return 0, errors.New("Unknown DeviceManagementPartnerAppType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_partner_tenant_state.go b/models/device_management_partner_tenant_state.go index af726d8cec..04733969f3 100644 --- a/models/device_management_partner_tenant_state.go +++ b/models/device_management_partner_tenant_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Partner state of this tenant. type DeviceManagementPartnerTenantState int @@ -39,7 +36,7 @@ func ParseDeviceManagementPartnerTenantState(v string) (any, error) { case "unresponsive": result = UNRESPONSIVE_DEVICEMANAGEMENTPARTNERTENANTSTATE default: - return 0, errors.New("Unknown DeviceManagementPartnerTenantState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_report_file_format.go b/models/device_management_report_file_format.go index 0ec4e9e055..8324c307e9 100644 --- a/models/device_management_report_file_format.go +++ b/models/device_management_report_file_format.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for the file format of a report. type DeviceManagementReportFileFormat int @@ -31,7 +28,7 @@ func ParseDeviceManagementReportFileFormat(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DEVICEMANAGEMENTREPORTFILEFORMAT default: - return 0, errors.New("Unknown DeviceManagementReportFileFormat value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_report_status.go b/models/device_management_report_status.go index aecce99ac8..61a73bb025 100644 --- a/models/device_management_report_status.go +++ b/models/device_management_report_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible statuses associated with a generated report. type DeviceManagementReportStatus int @@ -35,7 +32,7 @@ func ParseDeviceManagementReportStatus(v string) (any, error) { case "failed": result = FAILED_DEVICEMANAGEMENTREPORTSTATUS default: - return 0, errors.New("Unknown DeviceManagementReportStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_management_subscription_state.go b/models/device_management_subscription_state.go index ade686d9d4..4f55e410de 100644 --- a/models/device_management_subscription_state.go +++ b/models/device_management_subscription_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Tenant mobile device management subscription state. type DeviceManagementSubscriptionState int @@ -43,7 +40,7 @@ func ParseDeviceManagementSubscriptionState(v string) (any, error) { case "lockedOut": result = LOCKEDOUT_DEVICEMANAGEMENTSUBSCRIPTIONSTATE default: - return 0, errors.New("Unknown DeviceManagementSubscriptionState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_platform_type.go b/models/device_platform_type.go index 7bd7ba5f50..20528e314c 100644 --- a/models/device_platform_type.go +++ b/models/device_platform_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Supported platform types. type DevicePlatformType int @@ -67,7 +64,7 @@ func ParseDevicePlatformType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DEVICEPLATFORMTYPE default: - return 0, errors.New("Unknown DevicePlatformType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_registration_state.go b/models/device_registration_state.go index 66f0968a7b..a1baeaa87e 100644 --- a/models/device_registration_state.go +++ b/models/device_registration_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Device registration status. type DeviceRegistrationState int @@ -47,7 +44,7 @@ func ParseDeviceRegistrationState(v string) (any, error) { case "unknown": result = UNKNOWN_DEVICEREGISTRATIONSTATE default: - return 0, errors.New("Unknown DeviceRegistrationState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/device_threat_protection_level.go b/models/device_threat_protection_level.go index 8df5e04b60..01d38a9d27 100644 --- a/models/device_threat_protection_level.go +++ b/models/device_threat_protection_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Device threat protection levels for the Device Threat Protection API. type DeviceThreatProtectionLevel int @@ -39,7 +36,7 @@ func ParseDeviceThreatProtectionLevel(v string) (any, error) { case "notSet": result = NOTSET_DEVICETHREATPROTECTIONLEVEL default: - return 0, errors.New("Unknown DeviceThreatProtectionLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/diagnostic_data_submission_mode.go b/models/diagnostic_data_submission_mode.go index ad264c88ce..06bf7539f6 100644 --- a/models/diagnostic_data_submission_mode.go +++ b/models/diagnostic_data_submission_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Allow the device to send diagnostic and usage telemetry data, such as Watson. type DiagnosticDataSubmissionMode int @@ -35,7 +32,7 @@ func ParseDiagnosticDataSubmissionMode(v string) (any, error) { case "full": result = FULL_DIAGNOSTICDATASUBMISSIONMODE default: - return 0, errors.New("Unknown DiagnosticDataSubmissionMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/directory_definition_discoverabilities.go b/models/directory_definition_discoverabilities.go index 219e7b82bc..9f13ac2afb 100644 --- a/models/directory_definition_discoverabilities.go +++ b/models/directory_definition_discoverabilities.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -44,7 +43,7 @@ func ParseDirectoryDefinitionDiscoverabilities(v string) (any, error) { case "UnknownFutureValue": result |= UNKNOWNFUTUREVALUE_DIRECTORYDEFINITIONDISCOVERABILITIES default: - return 0, errors.New("Unknown DirectoryDefinitionDiscoverabilities value: " + v) + return nil, nil } } return &result, nil diff --git a/models/disk_type.go b/models/disk_type.go index 42d858af39..3de233875d 100644 --- a/models/disk_type.go +++ b/models/disk_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DiskType int const ( @@ -30,7 +27,7 @@ func ParseDiskType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DISKTYPE default: - return 0, errors.New("Unknown DiskType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/drive_item_source_application.go b/models/drive_item_source_application.go index 6698a11962..34301d2d44 100644 --- a/models/drive_item_source_application.go +++ b/models/drive_item_source_application.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type DriveItemSourceApplication int const ( @@ -47,7 +44,7 @@ func ParseDriveItemSourceApplication(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DRIVEITEMSOURCEAPPLICATION default: - return 0, errors.New("Unknown DriveItemSourceApplication value: " + v) + return nil, nil } return &result, nil } diff --git a/models/edge_cookie_policy.go b/models/edge_cookie_policy.go index b724792ca9..438c5e636c 100644 --- a/models/edge_cookie_policy.go +++ b/models/edge_cookie_policy.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values to specify which cookies are allowed in Microsoft Edge. type EdgeCookiePolicy int @@ -31,7 +28,7 @@ func ParseEdgeCookiePolicy(v string) (any, error) { case "blockAll": result = BLOCKALL_EDGECOOKIEPOLICY default: - return 0, errors.New("Unknown EdgeCookiePolicy value: " + v) + return nil, nil } return &result, nil } diff --git a/models/edge_search_engine_type.go b/models/edge_search_engine_type.go index bd4902f179..f178e638f6 100644 --- a/models/edge_search_engine_type.go +++ b/models/edge_search_engine_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Allows IT admind to set a predefined default search engine for MDM-Controlled devices type EdgeSearchEngineType int @@ -23,7 +20,7 @@ func ParseEdgeSearchEngineType(v string) (any, error) { case "bing": result = BING_EDGESEARCHENGINETYPE default: - return 0, errors.New("Unknown EdgeSearchEngineType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/edition_upgrade_license_type.go b/models/edition_upgrade_license_type.go index 55583e38cd..dcb660cb4f 100644 --- a/models/edition_upgrade_license_type.go +++ b/models/edition_upgrade_license_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Edition Upgrade License type type EditionUpgradeLicenseType int @@ -23,7 +20,7 @@ func ParseEditionUpgradeLicenseType(v string) (any, error) { case "licenseFile": result = LICENSEFILE_EDITIONUPGRADELICENSETYPE default: - return 0, errors.New("Unknown EditionUpgradeLicenseType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_add_to_calendar_options.go b/models/education_add_to_calendar_options.go index 3d5a961a30..d01b2ad7ec 100644 --- a/models/education_add_to_calendar_options.go +++ b/models/education_add_to_calendar_options.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationAddToCalendarOptions int const ( @@ -29,7 +26,7 @@ func ParseEducationAddToCalendarOptions(v string) (any, error) { case "studentsOnly": result = STUDENTSONLY_EDUCATIONADDTOCALENDAROPTIONS default: - return 0, errors.New("Unknown EducationAddToCalendarOptions value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_added_student_action.go b/models/education_added_student_action.go index 9615b7f9e4..8cc49aec5b 100644 --- a/models/education_added_student_action.go +++ b/models/education_added_student_action.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationAddedStudentAction int const ( @@ -23,7 +20,7 @@ func ParseEducationAddedStudentAction(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EDUCATIONADDEDSTUDENTACTION default: - return 0, errors.New("Unknown EducationAddedStudentAction value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_assignment_status.go b/models/education_assignment_status.go index 28dbb847d2..6bc53daeca 100644 --- a/models/education_assignment_status.go +++ b/models/education_assignment_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationAssignmentStatus int const ( @@ -29,7 +26,7 @@ func ParseEducationAssignmentStatus(v string) (any, error) { case "inactive": result = INACTIVE_EDUCATIONASSIGNMENTSTATUS default: - return 0, errors.New("Unknown EducationAssignmentStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_external_source.go b/models/education_external_source.go index fd5d0a16b2..4d8887ee6f 100644 --- a/models/education_external_source.go +++ b/models/education_external_source.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationExternalSource int const ( @@ -23,7 +20,7 @@ func ParseEducationExternalSource(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EDUCATIONEXTERNALSOURCE default: - return 0, errors.New("Unknown EducationExternalSource value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_feedback_resource_outcome_status.go b/models/education_feedback_resource_outcome_status.go index f6296d59a5..adf704b660 100644 --- a/models/education_feedback_resource_outcome_status.go +++ b/models/education_feedback_resource_outcome_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationFeedbackResourceOutcomeStatus int const ( @@ -29,7 +26,7 @@ func ParseEducationFeedbackResourceOutcomeStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EDUCATIONFEEDBACKRESOURCEOUTCOMESTATUS default: - return 0, errors.New("Unknown EducationFeedbackResourceOutcomeStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_gender.go b/models/education_gender.go index 1725de823f..d224d7ef98 100644 --- a/models/education_gender.go +++ b/models/education_gender.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationGender int const ( @@ -26,7 +23,7 @@ func ParseEducationGender(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EDUCATIONGENDER default: - return 0, errors.New("Unknown EducationGender value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_module_status.go b/models/education_module_status.go index bfcfe09ddc..b490c41fb1 100644 --- a/models/education_module_status.go +++ b/models/education_module_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationModuleStatus int const ( @@ -23,7 +20,7 @@ func ParseEducationModuleStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EDUCATIONMODULESTATUS default: - return 0, errors.New("Unknown EducationModuleStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_submission_status.go b/models/education_submission_status.go index 92f2423d5a..9d8f103e8e 100644 --- a/models/education_submission_status.go +++ b/models/education_submission_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationSubmissionStatus int const ( @@ -35,7 +32,7 @@ func ParseEducationSubmissionStatus(v string) (any, error) { case "excused": result = EXCUSED_EDUCATIONSUBMISSIONSTATUS default: - return 0, errors.New("Unknown EducationSubmissionStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/education_user_role.go b/models/education_user_role.go index 1b76b31a45..be257a9ac5 100644 --- a/models/education_user_role.go +++ b/models/education_user_role.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EducationUserRole int const ( @@ -26,7 +23,7 @@ func ParseEducationUserRole(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EDUCATIONUSERROLE default: - return 0, errors.New("Unknown EducationUserRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/email_role.go b/models/email_role.go index 3ec5871845..9f3c78a6d6 100644 --- a/models/email_role.go +++ b/models/email_role.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EmailRole int const ( @@ -26,7 +23,7 @@ func ParseEmailRole(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EMAILROLE default: - return 0, errors.New("Unknown EmailRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/enablement.go b/models/enablement.go index 18c32dbe8f..8012c61f62 100644 --- a/models/enablement.go +++ b/models/enablement.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values of a property type Enablement int @@ -27,7 +24,7 @@ func ParseEnablement(v string) (any, error) { case "disabled": result = DISABLED_ENABLEMENT default: - return 0, errors.New("Unknown Enablement value: " + v) + return nil, nil } return &result, nil } diff --git a/models/end_user_notification_preference.go b/models/end_user_notification_preference.go index 6c024bfa09..3fd40663a9 100644 --- a/models/end_user_notification_preference.go +++ b/models/end_user_notification_preference.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EndUserNotificationPreference int const ( @@ -26,7 +23,7 @@ func ParseEndUserNotificationPreference(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONPREFERENCE default: - return 0, errors.New("Unknown EndUserNotificationPreference value: " + v) + return nil, nil } return &result, nil } diff --git a/models/end_user_notification_setting_type.go b/models/end_user_notification_setting_type.go index 77bdbdf697..69126377c9 100644 --- a/models/end_user_notification_setting_type.go +++ b/models/end_user_notification_setting_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EndUserNotificationSettingType int const ( @@ -29,7 +26,7 @@ func ParseEndUserNotificationSettingType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONSETTINGTYPE default: - return 0, errors.New("Unknown EndUserNotificationSettingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/end_user_notification_type.go b/models/end_user_notification_type.go index a82a016f9d..dc42626feb 100644 --- a/models/end_user_notification_type.go +++ b/models/end_user_notification_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EndUserNotificationType int const ( @@ -32,7 +29,7 @@ func ParseEndUserNotificationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ENDUSERNOTIFICATIONTYPE default: - return 0, errors.New("Unknown EndUserNotificationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/endpoint_type.go b/models/endpoint_type.go index db7cf8ad70..cb0fe4d853 100644 --- a/models/endpoint_type.go +++ b/models/endpoint_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EndpointType int const ( @@ -29,7 +26,7 @@ func ParseEndpointType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ENDPOINTTYPE default: - return 0, errors.New("Unknown EndpointType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/enrollment_state.go b/models/enrollment_state.go index 31bfdd135b..656fe68b95 100644 --- a/models/enrollment_state.go +++ b/models/enrollment_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EnrollmentState int const ( @@ -34,7 +31,7 @@ func ParseEnrollmentState(v string) (any, error) { case "notContacted": result = NOTCONTACTED_ENROLLMENTSTATE default: - return 0, errors.New("Unknown EnrollmentState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/entity_type.go b/models/entity_type.go index be889b5940..c2ed491c7a 100644 --- a/models/entity_type.go +++ b/models/entity_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EntityType int const ( @@ -53,7 +50,7 @@ func ParseEntityType(v string) (any, error) { case "bookmark": result = BOOKMARK_ENTITYTYPE default: - return 0, errors.New("Unknown EntityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/event_type.go b/models/event_type.go index 1006add0b1..3706bc9723 100644 --- a/models/event_type.go +++ b/models/event_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type EventType int const ( @@ -26,7 +23,7 @@ func ParseEventType(v string) (any, error) { case "seriesMaster": result = SERIESMASTER_EVENTTYPE default: - return 0, errors.New("Unknown EventType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/exchange_id_format.go b/models/exchange_id_format.go index 3d613d857a..8830354605 100644 --- a/models/exchange_id_format.go +++ b/models/exchange_id_format.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ExchangeIdFormat int const ( @@ -29,7 +26,7 @@ func ParseExchangeIdFormat(v string) (any, error) { case "restImmutableEntryId": result = RESTIMMUTABLEENTRYID_EXCHANGEIDFORMAT default: - return 0, errors.New("Unknown ExchangeIdFormat value: " + v) + return nil, nil } return &result, nil } diff --git a/models/expiration_pattern_type.go b/models/expiration_pattern_type.go index 5d809a0ef0..6446e07a95 100644 --- a/models/expiration_pattern_type.go +++ b/models/expiration_pattern_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ExpirationPatternType int const ( @@ -26,7 +23,7 @@ func ParseExpirationPatternType(v string) (any, error) { case "afterDuration": result = AFTERDURATION_EXPIRATIONPATTERNTYPE default: - return 0, errors.New("Unknown ExpirationPatternType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/external_audience_scope.go b/models/external_audience_scope.go index 976e1d560a..f22ae50343 100644 --- a/models/external_audience_scope.go +++ b/models/external_audience_scope.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ExternalAudienceScope int const ( @@ -23,7 +20,7 @@ func ParseExternalAudienceScope(v string) (any, error) { case "all": result = ALL_EXTERNALAUDIENCESCOPE default: - return 0, errors.New("Unknown ExternalAudienceScope value: " + v) + return nil, nil } return &result, nil } diff --git a/models/external_email_otp_state.go b/models/external_email_otp_state.go index 4ed5b462f7..cfa7a837de 100644 --- a/models/external_email_otp_state.go +++ b/models/external_email_otp_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ExternalEmailOtpState int const ( @@ -26,7 +23,7 @@ func ParseExternalEmailOtpState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EXTERNALEMAILOTPSTATE default: - return 0, errors.New("Unknown ExternalEmailOtpState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/access_type.go b/models/externalconnectors/access_type.go index 2708016593..08a2c31619 100644 --- a/models/externalconnectors/access_type.go +++ b/models/externalconnectors/access_type.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type AccessType int const ( @@ -23,7 +20,7 @@ func ParseAccessType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACCESSTYPE default: - return 0, errors.New("Unknown AccessType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/acl_type.go b/models/externalconnectors/acl_type.go index 977d6b5c08..cad7cf99ab 100644 --- a/models/externalconnectors/acl_type.go +++ b/models/externalconnectors/acl_type.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type AclType int const ( @@ -32,7 +29,7 @@ func ParseAclType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACLTYPE default: - return 0, errors.New("Unknown AclType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/connection_operation_status.go b/models/externalconnectors/connection_operation_status.go index c28dd6cdb3..384cac32e4 100644 --- a/models/externalconnectors/connection_operation_status.go +++ b/models/externalconnectors/connection_operation_status.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type ConnectionOperationStatus int const ( @@ -29,7 +26,7 @@ func ParseConnectionOperationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONNECTIONOPERATIONSTATUS default: - return 0, errors.New("Unknown ConnectionOperationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/connection_state.go b/models/externalconnectors/connection_state.go index b906782ed6..1bdd04891a 100644 --- a/models/externalconnectors/connection_state.go +++ b/models/externalconnectors/connection_state.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type ConnectionState int const ( @@ -29,7 +26,7 @@ func ParseConnectionState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONNECTIONSTATE default: - return 0, errors.New("Unknown ConnectionState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/external_activity_type.go b/models/externalconnectors/external_activity_type.go index 4fb90f181e..c2c2853222 100644 --- a/models/externalconnectors/external_activity_type.go +++ b/models/externalconnectors/external_activity_type.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type ExternalActivityType int const ( @@ -29,7 +26,7 @@ func ParseExternalActivityType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EXTERNALACTIVITYTYPE default: - return 0, errors.New("Unknown ExternalActivityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/external_item_content_type.go b/models/externalconnectors/external_item_content_type.go index b19a37c9c2..77e4e264aa 100644 --- a/models/externalconnectors/external_item_content_type.go +++ b/models/externalconnectors/external_item_content_type.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type ExternalItemContentType int const ( @@ -23,7 +20,7 @@ func ParseExternalItemContentType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EXTERNALITEMCONTENTTYPE default: - return 0, errors.New("Unknown ExternalItemContentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/identity_type.go b/models/externalconnectors/identity_type.go index 64b6d6bc6d..3fd07a02e3 100644 --- a/models/externalconnectors/identity_type.go +++ b/models/externalconnectors/identity_type.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type IdentityType int const ( @@ -26,7 +23,7 @@ func ParseIdentityType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_IDENTITYTYPE default: - return 0, errors.New("Unknown IdentityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/label.go b/models/externalconnectors/label.go index 2ddfd92a8a..b82d6b63b3 100644 --- a/models/externalconnectors/label.go +++ b/models/externalconnectors/label.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type Label int const ( @@ -47,7 +44,7 @@ func ParseLabel(v string) (any, error) { case "iconUrl": result = ICONURL_LABEL default: - return 0, errors.New("Unknown Label value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/property_type.go b/models/externalconnectors/property_type.go index c02f883515..a7b278720f 100644 --- a/models/externalconnectors/property_type.go +++ b/models/externalconnectors/property_type.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type PropertyType int const ( @@ -44,7 +41,7 @@ func ParsePropertyType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PROPERTYTYPE default: - return 0, errors.New("Unknown PropertyType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/externalconnectors/rule_operation.go b/models/externalconnectors/rule_operation.go index 3fd0ce3e75..2212d29b61 100644 --- a/models/externalconnectors/rule_operation.go +++ b/models/externalconnectors/rule_operation.go @@ -1,7 +1,4 @@ package externalconnectors -import ( - "errors" -) type RuleOperation int const ( @@ -38,7 +35,7 @@ func ParseRuleOperation(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_RULEOPERATION default: - return 0, errors.New("Unknown RuleOperation value: " + v) + return nil, nil } return &result, nil } diff --git a/models/feature_target_type.go b/models/feature_target_type.go index 8726ded8a2..111e62a124 100644 --- a/models/feature_target_type.go +++ b/models/feature_target_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type FeatureTargetType int const ( @@ -26,7 +23,7 @@ func ParseFeatureTargetType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_FEATURETARGETTYPE default: - return 0, errors.New("Unknown FeatureTargetType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/federated_idp_mfa_behavior.go b/models/federated_idp_mfa_behavior.go index b26675be27..da65c78668 100644 --- a/models/federated_idp_mfa_behavior.go +++ b/models/federated_idp_mfa_behavior.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type FederatedIdpMfaBehavior int const ( @@ -26,7 +23,7 @@ func ParseFederatedIdpMfaBehavior(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_FEDERATEDIDPMFABEHAVIOR default: - return 0, errors.New("Unknown FederatedIdpMfaBehavior value: " + v) + return nil, nil } return &result, nil } diff --git a/models/fido2_restriction_enforcement_type.go b/models/fido2_restriction_enforcement_type.go index 860c3af1c6..e688cc3ce6 100644 --- a/models/fido2_restriction_enforcement_type.go +++ b/models/fido2_restriction_enforcement_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type Fido2RestrictionEnforcementType int const ( @@ -23,7 +20,7 @@ func ParseFido2RestrictionEnforcementType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_FIDO2RESTRICTIONENFORCEMENTTYPE default: - return 0, errors.New("Unknown Fido2RestrictionEnforcementType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/file_hash_type.go b/models/file_hash_type.go index a5aa711ad4..cc2b954310 100644 --- a/models/file_hash_type.go +++ b/models/file_hash_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type FileHashType int const ( @@ -38,7 +35,7 @@ func ParseFileHashType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_FILEHASHTYPE default: - return 0, errors.New("Unknown FileHashType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/filter_mode.go b/models/filter_mode.go index cc6f1ecedc..4c9f8c932b 100644 --- a/models/filter_mode.go +++ b/models/filter_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type FilterMode int const ( @@ -20,7 +17,7 @@ func ParseFilterMode(v string) (any, error) { case "exclude": result = EXCLUDE_FILTERMODE default: - return 0, errors.New("Unknown FilterMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/firewall_certificate_revocation_list_check_method_type.go b/models/firewall_certificate_revocation_list_check_method_type.go index 1a5f1c6e13..38cef8d9fa 100644 --- a/models/firewall_certificate_revocation_list_check_method_type.go +++ b/models/firewall_certificate_revocation_list_check_method_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for firewallCertificateRevocationListCheckMethod type FirewallCertificateRevocationListCheckMethodType int @@ -31,7 +28,7 @@ func ParseFirewallCertificateRevocationListCheckMethodType(v string) (any, error case "require": result = REQUIRE_FIREWALLCERTIFICATEREVOCATIONLISTCHECKMETHODTYPE default: - return 0, errors.New("Unknown FirewallCertificateRevocationListCheckMethodType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/firewall_packet_queueing_method_type.go b/models/firewall_packet_queueing_method_type.go index b0ca28b1d8..c36be6720c 100644 --- a/models/firewall_packet_queueing_method_type.go +++ b/models/firewall_packet_queueing_method_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for firewallPacketQueueingMethod type FirewallPacketQueueingMethodType int @@ -35,7 +32,7 @@ func ParseFirewallPacketQueueingMethodType(v string) (any, error) { case "queueBoth": result = QUEUEBOTH_FIREWALLPACKETQUEUEINGMETHODTYPE default: - return 0, errors.New("Unknown FirewallPacketQueueingMethodType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/firewall_pre_shared_key_encoding_method_type.go b/models/firewall_pre_shared_key_encoding_method_type.go index b5f151364e..1f9ab595fc 100644 --- a/models/firewall_pre_shared_key_encoding_method_type.go +++ b/models/firewall_pre_shared_key_encoding_method_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for firewallPreSharedKeyEncodingMethod type FirewallPreSharedKeyEncodingMethodType int @@ -27,7 +24,7 @@ func ParseFirewallPreSharedKeyEncodingMethodType(v string) (any, error) { case "utF8": result = UTF8_FIREWALLPRESHAREDKEYENCODINGMETHODTYPE default: - return 0, errors.New("Unknown FirewallPreSharedKeyEncodingMethodType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/followup_flag_status.go b/models/followup_flag_status.go index 340c549af2..af8acd786e 100644 --- a/models/followup_flag_status.go +++ b/models/followup_flag_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type FollowupFlagStatus int const ( @@ -23,7 +20,7 @@ func ParseFollowupFlagStatus(v string) (any, error) { case "flagged": result = FLAGGED_FOLLOWUPFLAGSTATUS default: - return 0, errors.New("Unknown FollowupFlagStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/free_busy_status.go b/models/free_busy_status.go index cd57f01dad..4a1c4cc2a4 100644 --- a/models/free_busy_status.go +++ b/models/free_busy_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type FreeBusyStatus int const ( @@ -32,7 +29,7 @@ func ParseFreeBusyStatus(v string) (any, error) { case "workingElsewhere": result = WORKINGELSEWHERE_FREEBUSYSTATUS default: - return 0, errors.New("Unknown FreeBusyStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/giphy_rating_type.go b/models/giphy_rating_type.go index 22297bb88d..f5738b1058 100644 --- a/models/giphy_rating_type.go +++ b/models/giphy_rating_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type GiphyRatingType int const ( @@ -23,7 +20,7 @@ func ParseGiphyRatingType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_GIPHYRATINGTYPE default: - return 0, errors.New("Unknown GiphyRatingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/group_type.go b/models/group_type.go index a277f0d1f3..436867e445 100644 --- a/models/group_type.go +++ b/models/group_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type GroupType int const ( @@ -23,7 +20,7 @@ func ParseGroupType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_GROUPTYPE default: - return 0, errors.New("Unknown GroupType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/horizontal_section_layout_type.go b/models/horizontal_section_layout_type.go index d6bdbe9c5c..a853fa43d9 100644 --- a/models/horizontal_section_layout_type.go +++ b/models/horizontal_section_layout_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type HorizontalSectionLayoutType int const ( @@ -38,7 +35,7 @@ func ParseHorizontalSectionLayoutType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_HORIZONTALSECTIONLAYOUTTYPE default: - return 0, errors.New("Unknown HorizontalSectionLayoutType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identity_user_flow_attribute_data_type.go b/models/identity_user_flow_attribute_data_type.go index 3e1a35f702..1b6b7770fd 100644 --- a/models/identity_user_flow_attribute_data_type.go +++ b/models/identity_user_flow_attribute_data_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type IdentityUserFlowAttributeDataType int const ( @@ -32,7 +29,7 @@ func ParseIdentityUserFlowAttributeDataType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_IDENTITYUSERFLOWATTRIBUTEDATATYPE default: - return 0, errors.New("Unknown IdentityUserFlowAttributeDataType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identity_user_flow_attribute_input_type.go b/models/identity_user_flow_attribute_input_type.go index 08bf10ff9d..5aea3d77e9 100644 --- a/models/identity_user_flow_attribute_input_type.go +++ b/models/identity_user_flow_attribute_input_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type IdentityUserFlowAttributeInputType int const ( @@ -32,7 +29,7 @@ func ParseIdentityUserFlowAttributeInputType(v string) (any, error) { case "checkboxMultiSelect": result = CHECKBOXMULTISELECT_IDENTITYUSERFLOWATTRIBUTEINPUTTYPE default: - return 0, errors.New("Unknown IdentityUserFlowAttributeInputType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identity_user_flow_attribute_type.go b/models/identity_user_flow_attribute_type.go index 71f9cf8fdf..35f3516e85 100644 --- a/models/identity_user_flow_attribute_type.go +++ b/models/identity_user_flow_attribute_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type IdentityUserFlowAttributeType int const ( @@ -26,7 +23,7 @@ func ParseIdentityUserFlowAttributeType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_IDENTITYUSERFLOWATTRIBUTETYPE default: - return 0, errors.New("Unknown IdentityUserFlowAttributeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identitygovernance/custom_task_extension_operation_status.go b/models/identitygovernance/custom_task_extension_operation_status.go index 3aadb1b1d7..d694f8f55a 100644 --- a/models/identitygovernance/custom_task_extension_operation_status.go +++ b/models/identitygovernance/custom_task_extension_operation_status.go @@ -1,7 +1,4 @@ package identitygovernance -import ( - "errors" -) type CustomTaskExtensionOperationStatus int const ( @@ -23,7 +20,7 @@ func ParseCustomTaskExtensionOperationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CUSTOMTASKEXTENSIONOPERATIONSTATUS default: - return 0, errors.New("Unknown CustomTaskExtensionOperationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identitygovernance/lifecycle_task_category.go b/models/identitygovernance/lifecycle_task_category.go index 8281f63e5f..963dd399d7 100644 --- a/models/identitygovernance/lifecycle_task_category.go +++ b/models/identitygovernance/lifecycle_task_category.go @@ -1,6 +1,5 @@ package identitygovernance import ( - "errors" "math" "strings" ) @@ -38,7 +37,7 @@ func ParseLifecycleTaskCategory(v string) (any, error) { case "mover": result |= MOVER_LIFECYCLETASKCATEGORY default: - return 0, errors.New("Unknown LifecycleTaskCategory value: " + v) + return nil, nil } } return &result, nil diff --git a/models/identitygovernance/lifecycle_workflow_category.go b/models/identitygovernance/lifecycle_workflow_category.go index f800f877f0..f8e8b56af7 100644 --- a/models/identitygovernance/lifecycle_workflow_category.go +++ b/models/identitygovernance/lifecycle_workflow_category.go @@ -1,7 +1,4 @@ package identitygovernance -import ( - "errors" -) type LifecycleWorkflowCategory int const ( @@ -26,7 +23,7 @@ func ParseLifecycleWorkflowCategory(v string) (any, error) { case "mover": result = MOVER_LIFECYCLEWORKFLOWCATEGORY default: - return 0, errors.New("Unknown LifecycleWorkflowCategory value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identitygovernance/lifecycle_workflow_processing_status.go b/models/identitygovernance/lifecycle_workflow_processing_status.go index 8d1a3c2e09..c4ac9fbf5b 100644 --- a/models/identitygovernance/lifecycle_workflow_processing_status.go +++ b/models/identitygovernance/lifecycle_workflow_processing_status.go @@ -1,7 +1,4 @@ package identitygovernance -import ( - "errors" -) type LifecycleWorkflowProcessingStatus int const ( @@ -35,7 +32,7 @@ func ParseLifecycleWorkflowProcessingStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_LIFECYCLEWORKFLOWPROCESSINGSTATUS default: - return 0, errors.New("Unknown LifecycleWorkflowProcessingStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identitygovernance/value_type.go b/models/identitygovernance/value_type.go index 36e8f87402..fa091627aa 100644 --- a/models/identitygovernance/value_type.go +++ b/models/identitygovernance/value_type.go @@ -1,7 +1,4 @@ package identitygovernance -import ( - "errors" -) type ValueType int const ( @@ -29,7 +26,7 @@ func ParseValueType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_VALUETYPE default: - return 0, errors.New("Unknown ValueType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identitygovernance/workflow_execution_type.go b/models/identitygovernance/workflow_execution_type.go index db023d133a..1c0223a759 100644 --- a/models/identitygovernance/workflow_execution_type.go +++ b/models/identitygovernance/workflow_execution_type.go @@ -1,7 +1,4 @@ package identitygovernance -import ( - "errors" -) type WorkflowExecutionType int const ( @@ -23,7 +20,7 @@ func ParseWorkflowExecutionType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_WORKFLOWEXECUTIONTYPE default: - return 0, errors.New("Unknown WorkflowExecutionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/identitygovernance/workflow_trigger_time_based_attribute.go b/models/identitygovernance/workflow_trigger_time_based_attribute.go index e7a951a3fb..b74c9c6c9b 100644 --- a/models/identitygovernance/workflow_trigger_time_based_attribute.go +++ b/models/identitygovernance/workflow_trigger_time_based_attribute.go @@ -1,7 +1,4 @@ package identitygovernance -import ( - "errors" -) type WorkflowTriggerTimeBasedAttribute int const ( @@ -26,7 +23,7 @@ func ParseWorkflowTriggerTimeBasedAttribute(v string) (any, error) { case "createdDateTime": result = CREATEDDATETIME_WORKFLOWTRIGGERTIMEBASEDATTRIBUTE default: - return 0, errors.New("Unknown WorkflowTriggerTimeBasedAttribute value: " + v) + return nil, nil } return &result, nil } diff --git a/models/image_tagging_choice.go b/models/image_tagging_choice.go index 0aaa4033ad..cc1127aeba 100644 --- a/models/image_tagging_choice.go +++ b/models/image_tagging_choice.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ImageTaggingChoice int const ( @@ -26,7 +23,7 @@ func ParseImageTaggingChoice(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_IMAGETAGGINGCHOICE default: - return 0, errors.New("Unknown ImageTaggingChoice value: " + v) + return nil, nil } return &result, nil } diff --git a/models/importance.go b/models/importance.go index b8be0c9f47..9d3ad1aaec 100644 --- a/models/importance.go +++ b/models/importance.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type Importance int const ( @@ -23,7 +20,7 @@ func ParseImportance(v string) (any, error) { case "high": result = HIGH_IMPORTANCE default: - return 0, errors.New("Unknown Importance value: " + v) + return nil, nil } return &result, nil } diff --git a/models/imported_windows_autopilot_device_identity_import_status.go b/models/imported_windows_autopilot_device_identity_import_status.go index be33d003b7..66fe2aee32 100644 --- a/models/imported_windows_autopilot_device_identity_import_status.go +++ b/models/imported_windows_autopilot_device_identity_import_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ImportedWindowsAutopilotDeviceIdentityImportStatus int const ( @@ -34,7 +31,7 @@ func ParseImportedWindowsAutopilotDeviceIdentityImportStatus(v string) (any, err case "error": result = ERROR_IMPORTEDWINDOWSAUTOPILOTDEVICEIDENTITYIMPORTSTATUS default: - return 0, errors.New("Unknown ImportedWindowsAutopilotDeviceIdentityImportStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/imported_windows_autopilot_device_identity_upload_status.go b/models/imported_windows_autopilot_device_identity_upload_status.go index f400608332..d415750b56 100644 --- a/models/imported_windows_autopilot_device_identity_upload_status.go +++ b/models/imported_windows_autopilot_device_identity_upload_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ImportedWindowsAutopilotDeviceIdentityUploadStatus int const ( @@ -30,7 +27,7 @@ func ParseImportedWindowsAutopilotDeviceIdentityUploadStatus(v string) (any, err case "error": result = ERROR_IMPORTEDWINDOWSAUTOPILOTDEVICEIDENTITYUPLOADSTATUS default: - return 0, errors.New("Unknown ImportedWindowsAutopilotDeviceIdentityUploadStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/included_user_roles.go b/models/included_user_roles.go index 18de47d40c..94b2fc3407 100644 --- a/models/included_user_roles.go +++ b/models/included_user_roles.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type IncludedUserRoles int const ( @@ -29,7 +26,7 @@ func ParseIncludedUserRoles(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_INCLUDEDUSERROLES default: - return 0, errors.New("Unknown IncludedUserRoles value: " + v) + return nil, nil } return &result, nil } diff --git a/models/included_user_types.go b/models/included_user_types.go index a0626ec476..3f55ac6661 100644 --- a/models/included_user_types.go +++ b/models/included_user_types.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type IncludedUserTypes int const ( @@ -26,7 +23,7 @@ func ParseIncludedUserTypes(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_INCLUDEDUSERTYPES default: - return 0, errors.New("Unknown IncludedUserTypes value: " + v) + return nil, nil } return &result, nil } diff --git a/models/inference_classification_type.go b/models/inference_classification_type.go index 8fc14af95c..eb0da64819 100644 --- a/models/inference_classification_type.go +++ b/models/inference_classification_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type InferenceClassificationType int const ( @@ -20,7 +17,7 @@ func ParseInferenceClassificationType(v string) (any, error) { case "other": result = OTHER_INFERENCECLASSIFICATIONTYPE default: - return 0, errors.New("Unknown InferenceClassificationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/initiator_type.go b/models/initiator_type.go index c72679c796..5de0cf5e6a 100644 --- a/models/initiator_type.go +++ b/models/initiator_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type InitiatorType int const ( @@ -26,7 +23,7 @@ func ParseInitiatorType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_INITIATORTYPE default: - return 0, errors.New("Unknown InitiatorType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/install_intent.go b/models/install_intent.go index 8ad4345411..e1fc386eae 100644 --- a/models/install_intent.go +++ b/models/install_intent.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for the install intent chosen by the admin. type InstallIntent int @@ -31,7 +28,7 @@ func ParseInstallIntent(v string) (any, error) { case "availableWithoutEnrollment": result = AVAILABLEWITHOUTENROLLMENT_INSTALLINTENT default: - return 0, errors.New("Unknown InstallIntent value: " + v) + return nil, nil } return &result, nil } diff --git a/models/install_state.go b/models/install_state.go index 2695d2cebe..4b218013b4 100644 --- a/models/install_state.go +++ b/models/install_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for install state. type InstallState int @@ -39,7 +36,7 @@ func ParseInstallState(v string) (any, error) { case "unknown": result = UNKNOWN_INSTALLSTATE default: - return 0, errors.New("Unknown InstallState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/internet_site_security_level.go b/models/internet_site_security_level.go index 4cf63172f0..3942fbc8d1 100644 --- a/models/internet_site_security_level.go +++ b/models/internet_site_security_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for internet site security level. type InternetSiteSecurityLevel int @@ -31,7 +28,7 @@ func ParseInternetSiteSecurityLevel(v string) (any, error) { case "high": result = HIGH_INTERNETSITESECURITYLEVEL default: - return 0, errors.New("Unknown InternetSiteSecurityLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/ios_notification_alert_type.go b/models/ios_notification_alert_type.go index bf796b84fc..b7ac7f701b 100644 --- a/models/ios_notification_alert_type.go +++ b/models/ios_notification_alert_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Notification Settings Alert Type. type IosNotificationAlertType int @@ -31,7 +28,7 @@ func ParseIosNotificationAlertType(v string) (any, error) { case "none": result = NONE_IOSNOTIFICATIONALERTTYPE default: - return 0, errors.New("Unknown IosNotificationAlertType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/ios_updates_install_status.go b/models/ios_updates_install_status.go index 1fe1e3de07..e36addae05 100644 --- a/models/ios_updates_install_status.go +++ b/models/ios_updates_install_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type IosUpdatesInstallStatus int const ( @@ -68,7 +65,7 @@ func ParseIosUpdatesInstallStatus(v string) (any, error) { case "unknown": result = UNKNOWN_IOSUPDATESINSTALLSTATUS default: - return 0, errors.New("Unknown IosUpdatesInstallStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/layout_template_type.go b/models/layout_template_type.go index 9854304c5f..56c10bdbda 100644 --- a/models/layout_template_type.go +++ b/models/layout_template_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type LayoutTemplateType int const ( @@ -23,7 +20,7 @@ func ParseLayoutTemplateType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_LAYOUTTEMPLATETYPE default: - return 0, errors.New("Unknown LayoutTemplateType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/level.go b/models/level.go index 4d8db12040..a91a586cd9 100644 --- a/models/level.go +++ b/models/level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type Level int const ( @@ -26,7 +23,7 @@ func ParseLevel(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_LEVEL default: - return 0, errors.New("Unknown Level value: " + v) + return nil, nil } return &result, nil } diff --git a/models/lobby_bypass_scope.go b/models/lobby_bypass_scope.go index da11e0983a..c9b3162db2 100644 --- a/models/lobby_bypass_scope.go +++ b/models/lobby_bypass_scope.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type LobbyBypassScope int const ( @@ -35,7 +32,7 @@ func ParseLobbyBypassScope(v string) (any, error) { case "organizationExcludingGuests": result = ORGANIZATIONEXCLUDINGGUESTS_LOBBYBYPASSSCOPE default: - return 0, errors.New("Unknown LobbyBypassScope value: " + v) + return nil, nil } return &result, nil } diff --git a/models/location_type.go b/models/location_type.go index eb3551127a..fbecb79f9d 100644 --- a/models/location_type.go +++ b/models/location_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type LocationType int const ( @@ -44,7 +41,7 @@ func ParseLocationType(v string) (any, error) { case "postalAddress": result = POSTALADDRESS_LOCATIONTYPE default: - return 0, errors.New("Unknown LocationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/location_unique_id_type.go b/models/location_unique_id_type.go index cce3cda1a1..59484c0a12 100644 --- a/models/location_unique_id_type.go +++ b/models/location_unique_id_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type LocationUniqueIdType int const ( @@ -29,7 +26,7 @@ func ParseLocationUniqueIdType(v string) (any, error) { case "bing": result = BING_LOCATIONUNIQUEIDTYPE default: - return 0, errors.New("Unknown LocationUniqueIdType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/logon_type.go b/models/logon_type.go index 00b7f7fa97..951d36224e 100644 --- a/models/logon_type.go +++ b/models/logon_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type LogonType int const ( @@ -35,7 +32,7 @@ func ParseLogonType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_LOGONTYPE default: - return 0, errors.New("Unknown LogonType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/long_running_operation_status.go b/models/long_running_operation_status.go index fd11bd20bb..b4d6211a29 100644 --- a/models/long_running_operation_status.go +++ b/models/long_running_operation_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type LongRunningOperationStatus int const ( @@ -29,7 +26,7 @@ func ParseLongRunningOperationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_LONGRUNNINGOPERATIONSTATUS default: - return 0, errors.New("Unknown LongRunningOperationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/mail_destination_routing_reason.go b/models/mail_destination_routing_reason.go index 9614e4a9e1..1810b8fead 100644 --- a/models/mail_destination_routing_reason.go +++ b/models/mail_destination_routing_reason.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MailDestinationRoutingReason int const ( @@ -62,7 +59,7 @@ func ParseMailDestinationRoutingReason(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MAILDESTINATIONROUTINGREASON default: - return 0, errors.New("Unknown MailDestinationRoutingReason value: " + v) + return nil, nil } return &result, nil } diff --git a/models/mail_tips_type.go b/models/mail_tips_type.go index 31ff8085b6..c9bbcb6296 100644 --- a/models/mail_tips_type.go +++ b/models/mail_tips_type.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -56,7 +55,7 @@ func ParseMailTipsType(v string) (any, error) { case "recipientSuggestions": result |= RECIPIENTSUGGESTIONS_MAILTIPSTYPE default: - return 0, errors.New("Unknown MailTipsType value: " + v) + return nil, nil } } return &result, nil diff --git a/models/managed_app_availability.go b/models/managed_app_availability.go index affe022a6e..dcd0979896 100644 --- a/models/managed_app_availability.go +++ b/models/managed_app_availability.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // A managed (MAM) application's availability. type ManagedAppAvailability int @@ -23,7 +20,7 @@ func ParseManagedAppAvailability(v string) (any, error) { case "lineOfBusiness": result = LINEOFBUSINESS_MANAGEDAPPAVAILABILITY default: - return 0, errors.New("Unknown ManagedAppAvailability value: " + v) + return nil, nil } return &result, nil } diff --git a/models/managed_app_clipboard_sharing_level.go b/models/managed_app_clipboard_sharing_level.go index 252e7afc34..03a212f627 100644 --- a/models/managed_app_clipboard_sharing_level.go +++ b/models/managed_app_clipboard_sharing_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Represents the level to which the device's clipboard may be shared between apps type ManagedAppClipboardSharingLevel int @@ -31,7 +28,7 @@ func ParseManagedAppClipboardSharingLevel(v string) (any, error) { case "blocked": result = BLOCKED_MANAGEDAPPCLIPBOARDSHARINGLEVEL default: - return 0, errors.New("Unknown ManagedAppClipboardSharingLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/managed_app_data_encryption_type.go b/models/managed_app_data_encryption_type.go index 611780eefc..382882beb2 100644 --- a/models/managed_app_data_encryption_type.go +++ b/models/managed_app_data_encryption_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Represents the level to which app data is encrypted for managed apps type ManagedAppDataEncryptionType int @@ -31,7 +28,7 @@ func ParseManagedAppDataEncryptionType(v string) (any, error) { case "whenDeviceLocked": result = WHENDEVICELOCKED_MANAGEDAPPDATAENCRYPTIONTYPE default: - return 0, errors.New("Unknown ManagedAppDataEncryptionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/managed_app_data_storage_location.go b/models/managed_app_data_storage_location.go index a3635f389d..d5863ab7d9 100644 --- a/models/managed_app_data_storage_location.go +++ b/models/managed_app_data_storage_location.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Storage locations where managed apps can potentially store their data type ManagedAppDataStorageLocation int @@ -31,7 +28,7 @@ func ParseManagedAppDataStorageLocation(v string) (any, error) { case "localStorage": result = LOCALSTORAGE_MANAGEDAPPDATASTORAGELOCATION default: - return 0, errors.New("Unknown ManagedAppDataStorageLocation value: " + v) + return nil, nil } return &result, nil } diff --git a/models/managed_app_data_transfer_level.go b/models/managed_app_data_transfer_level.go index 627db9a028..47cf494f29 100644 --- a/models/managed_app_data_transfer_level.go +++ b/models/managed_app_data_transfer_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Data can be transferred from/to these classes of apps type ManagedAppDataTransferLevel int @@ -27,7 +24,7 @@ func ParseManagedAppDataTransferLevel(v string) (any, error) { case "none": result = NONE_MANAGEDAPPDATATRANSFERLEVEL default: - return 0, errors.New("Unknown ManagedAppDataTransferLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/managed_app_flagged_reason.go b/models/managed_app_flagged_reason.go index ef3b26d836..7fd8a3fb40 100644 --- a/models/managed_app_flagged_reason.go +++ b/models/managed_app_flagged_reason.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // The reason for which a user has been flagged type ManagedAppFlaggedReason int @@ -23,7 +20,7 @@ func ParseManagedAppFlaggedReason(v string) (any, error) { case "rootedDevice": result = ROOTEDDEVICE_MANAGEDAPPFLAGGEDREASON default: - return 0, errors.New("Unknown ManagedAppFlaggedReason value: " + v) + return nil, nil } return &result, nil } diff --git a/models/managed_app_pin_character_set.go b/models/managed_app_pin_character_set.go index a76ce2a117..2598fadb41 100644 --- a/models/managed_app_pin_character_set.go +++ b/models/managed_app_pin_character_set.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Character set which is to be used for a user's app PIN type ManagedAppPinCharacterSet int @@ -23,7 +20,7 @@ func ParseManagedAppPinCharacterSet(v string) (any, error) { case "alphanumericAndSymbol": result = ALPHANUMERICANDSYMBOL_MANAGEDAPPPINCHARACTERSET default: - return 0, errors.New("Unknown ManagedAppPinCharacterSet value: " + v) + return nil, nil } return &result, nil } diff --git a/models/managed_browser_type.go b/models/managed_browser_type.go index 8c940e2cac..f7a4e03db8 100644 --- a/models/managed_browser_type.go +++ b/models/managed_browser_type.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -35,7 +34,7 @@ func ParseManagedBrowserType(v string) (any, error) { case "microsoftEdge": result |= MICROSOFTEDGE_MANAGEDBROWSERTYPE default: - return 0, errors.New("Unknown ManagedBrowserType value: " + v) + return nil, nil } } return &result, nil diff --git a/models/managed_device_owner_type.go b/models/managed_device_owner_type.go index b3e00dfc6d..3db5f7658c 100644 --- a/models/managed_device_owner_type.go +++ b/models/managed_device_owner_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Owner type of device. type ManagedDeviceOwnerType int @@ -27,7 +24,7 @@ func ParseManagedDeviceOwnerType(v string) (any, error) { case "personal": result = PERSONAL_MANAGEDDEVICEOWNERTYPE default: - return 0, errors.New("Unknown ManagedDeviceOwnerType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/managed_device_partner_reported_health_state.go b/models/managed_device_partner_reported_health_state.go index 755465d246..1df969dd73 100644 --- a/models/managed_device_partner_reported_health_state.go +++ b/models/managed_device_partner_reported_health_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Available health states for the Device Health API type ManagedDevicePartnerReportedHealthState int @@ -55,7 +52,7 @@ func ParseManagedDevicePartnerReportedHealthState(v string) (any, error) { case "misconfigured": result = MISCONFIGURED_MANAGEDDEVICEPARTNERREPORTEDHEALTHSTATE default: - return 0, errors.New("Unknown ManagedDevicePartnerReportedHealthState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/management_agent_type.go b/models/management_agent_type.go index 1c922a5aa6..2282dfdb22 100644 --- a/models/management_agent_type.go +++ b/models/management_agent_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ManagementAgentType int const ( @@ -65,7 +62,7 @@ func ParseManagementAgentType(v string) (any, error) { case "msSense": result = MSSENSE_MANAGEMENTAGENTTYPE default: - return 0, errors.New("Unknown ManagementAgentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/mdm_app_config_key_type.go b/models/mdm_app_config_key_type.go index 7af540b37a..e620b8e5e3 100644 --- a/models/mdm_app_config_key_type.go +++ b/models/mdm_app_config_key_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // App configuration key types. type MdmAppConfigKeyType int @@ -30,7 +27,7 @@ func ParseMdmAppConfigKeyType(v string) (any, error) { case "tokenType": result = TOKENTYPE_MDMAPPCONFIGKEYTYPE default: - return 0, errors.New("Unknown MdmAppConfigKeyType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/mdm_authority.go b/models/mdm_authority.go index 387443529c..f847bfed8b 100644 --- a/models/mdm_authority.go +++ b/models/mdm_authority.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Mobile device management authority. type MdmAuthority int @@ -31,7 +28,7 @@ func ParseMdmAuthority(v string) (any, error) { case "office365": result = OFFICE365_MDMAUTHORITY default: - return 0, errors.New("Unknown MdmAuthority value: " + v) + return nil, nil } return &result, nil } diff --git a/models/media_direction.go b/models/media_direction.go index c55751d09a..66b8e9a0a6 100644 --- a/models/media_direction.go +++ b/models/media_direction.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MediaDirection int const ( @@ -26,7 +23,7 @@ func ParseMediaDirection(v string) (any, error) { case "sendReceive": result = SENDRECEIVE_MEDIADIRECTION default: - return 0, errors.New("Unknown MediaDirection value: " + v) + return nil, nil } return &result, nil } diff --git a/models/media_source_content_category.go b/models/media_source_content_category.go index 16005eedf3..f303c2739a 100644 --- a/models/media_source_content_category.go +++ b/models/media_source_content_category.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MediaSourceContentCategory int const ( @@ -44,7 +41,7 @@ func ParseMediaSourceContentCategory(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MEDIASOURCECONTENTCATEGORY default: - return 0, errors.New("Unknown MediaSourceContentCategory value: " + v) + return nil, nil } return &result, nil } diff --git a/models/media_state.go b/models/media_state.go index 801495d48a..d6b673e6ba 100644 --- a/models/media_state.go +++ b/models/media_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MediaState int const ( @@ -23,7 +20,7 @@ func ParseMediaState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MEDIASTATE default: - return 0, errors.New("Unknown MediaState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/meeting_audience.go b/models/meeting_audience.go index e978c3744f..b1cfe1507a 100644 --- a/models/meeting_audience.go +++ b/models/meeting_audience.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MeetingAudience int const ( @@ -23,7 +20,7 @@ func ParseMeetingAudience(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MEETINGAUDIENCE default: - return 0, errors.New("Unknown MeetingAudience value: " + v) + return nil, nil } return &result, nil } diff --git a/models/meeting_chat_history_default_mode.go b/models/meeting_chat_history_default_mode.go index 793522664f..9718c8b753 100644 --- a/models/meeting_chat_history_default_mode.go +++ b/models/meeting_chat_history_default_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MeetingChatHistoryDefaultMode int const ( @@ -23,7 +20,7 @@ func ParseMeetingChatHistoryDefaultMode(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MEETINGCHATHISTORYDEFAULTMODE default: - return 0, errors.New("Unknown MeetingChatHistoryDefaultMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/meeting_chat_mode.go b/models/meeting_chat_mode.go index 372a435693..8b5a8b7af4 100644 --- a/models/meeting_chat_mode.go +++ b/models/meeting_chat_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MeetingChatMode int const ( @@ -26,7 +23,7 @@ func ParseMeetingChatMode(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MEETINGCHATMODE default: - return 0, errors.New("Unknown MeetingChatMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/meeting_message_type.go b/models/meeting_message_type.go index 1c3570f2b7..0dc98d5508 100644 --- a/models/meeting_message_type.go +++ b/models/meeting_message_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MeetingMessageType int const ( @@ -32,7 +29,7 @@ func ParseMeetingMessageType(v string) (any, error) { case "meetingDeclined": result = MEETINGDECLINED_MEETINGMESSAGETYPE default: - return 0, errors.New("Unknown MeetingMessageType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/meeting_request_type.go b/models/meeting_request_type.go index 1b78e6281e..0c14464f25 100644 --- a/models/meeting_request_type.go +++ b/models/meeting_request_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MeetingRequestType int const ( @@ -35,7 +32,7 @@ func ParseMeetingRequestType(v string) (any, error) { case "principalWantsCopy": result = PRINCIPALWANTSCOPY_MEETINGREQUESTTYPE default: - return 0, errors.New("Unknown MeetingRequestType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/message_action_flag.go b/models/message_action_flag.go index 77fea99994..086f3ad144 100644 --- a/models/message_action_flag.go +++ b/models/message_action_flag.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MessageActionFlag int const ( @@ -47,7 +44,7 @@ func ParseMessageActionFlag(v string) (any, error) { case "review": result = REVIEW_MESSAGEACTIONFLAG default: - return 0, errors.New("Unknown MessageActionFlag value: " + v) + return nil, nil } return &result, nil } diff --git a/models/microsoft_authenticator_authentication_mode.go b/models/microsoft_authenticator_authentication_mode.go index 043ef5ca51..7e7d38fdac 100644 --- a/models/microsoft_authenticator_authentication_mode.go +++ b/models/microsoft_authenticator_authentication_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MicrosoftAuthenticatorAuthenticationMode int const ( @@ -23,7 +20,7 @@ func ParseMicrosoftAuthenticatorAuthenticationMode(v string) (any, error) { case "any": result = ANY_MICROSOFTAUTHENTICATORAUTHENTICATIONMODE default: - return 0, errors.New("Unknown MicrosoftAuthenticatorAuthenticationMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/microsoft_edge_channel.go b/models/microsoft_edge_channel.go index 3086993890..50b1df1ea3 100644 --- a/models/microsoft_edge_channel.go +++ b/models/microsoft_edge_channel.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // The enum to specify the channels for Microsoft Edge apps. type MicrosoftEdgeChannel int @@ -31,7 +28,7 @@ func ParseMicrosoftEdgeChannel(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MICROSOFTEDGECHANNEL default: - return 0, errors.New("Unknown MicrosoftEdgeChannel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/microsoft_managed_desktop_type.go b/models/microsoft_managed_desktop_type.go index fb2a0d7321..10f03c2ff4 100644 --- a/models/microsoft_managed_desktop_type.go +++ b/models/microsoft_managed_desktop_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MicrosoftManagedDesktopType int const ( @@ -29,7 +26,7 @@ func ParseMicrosoftManagedDesktopType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MICROSOFTMANAGEDDESKTOPTYPE default: - return 0, errors.New("Unknown MicrosoftManagedDesktopType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/microsoft_store_for_business_license_type.go b/models/microsoft_store_for_business_license_type.go index 33fb4dd6e4..6cbf52a1f6 100644 --- a/models/microsoft_store_for_business_license_type.go +++ b/models/microsoft_store_for_business_license_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MicrosoftStoreForBusinessLicenseType int const ( @@ -20,7 +17,7 @@ func ParseMicrosoftStoreForBusinessLicenseType(v string) (any, error) { case "online": result = ONLINE_MICROSOFTSTOREFORBUSINESSLICENSETYPE default: - return 0, errors.New("Unknown MicrosoftStoreForBusinessLicenseType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/migration_status.go b/models/migration_status.go index c59cfba50a..fedc3aecbd 100644 --- a/models/migration_status.go +++ b/models/migration_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MigrationStatus int const ( @@ -26,7 +23,7 @@ func ParseMigrationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MIGRATIONSTATUS default: - return 0, errors.New("Unknown MigrationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/miracast_channel.go b/models/miracast_channel.go index 9a0e5a2717..850855d0a6 100644 --- a/models/miracast_channel.go +++ b/models/miracast_channel.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for Miracast channel. type MiracastChannel int @@ -99,7 +96,7 @@ func ParseMiracastChannel(v string) (any, error) { case "oneHundredSixtyFive": result = ONEHUNDREDSIXTYFIVE_MIRACASTCHANNEL default: - return 0, errors.New("Unknown MiracastChannel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/mobile_app_content_file_upload_state.go b/models/mobile_app_content_file_upload_state.go index c032603841..2fec26c915 100644 --- a/models/mobile_app_content_file_upload_state.go +++ b/models/mobile_app_content_file_upload_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Contains properties for upload request states. type MobileAppContentFileUploadState int @@ -63,7 +60,7 @@ func ParseMobileAppContentFileUploadState(v string) (any, error) { case "commitFileTimedOut": result = COMMITFILETIMEDOUT_MOBILEAPPCONTENTFILEUPLOADSTATE default: - return 0, errors.New("Unknown MobileAppContentFileUploadState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/mobile_app_publishing_state.go b/models/mobile_app_publishing_state.go index 9f27d56d32..65d5bdc516 100644 --- a/models/mobile_app_publishing_state.go +++ b/models/mobile_app_publishing_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Indicates the publishing state of an app. type MobileAppPublishingState int @@ -27,7 +24,7 @@ func ParseMobileAppPublishingState(v string) (any, error) { case "published": result = PUBLISHED_MOBILEAPPPUBLISHINGSTATE default: - return 0, errors.New("Unknown MobileAppPublishingState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/mobile_threat_partner_tenant_state.go b/models/mobile_threat_partner_tenant_state.go index e09fcb197f..f45cf65baf 100644 --- a/models/mobile_threat_partner_tenant_state.go +++ b/models/mobile_threat_partner_tenant_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Partner state of this tenant. type MobileThreatPartnerTenantState int @@ -35,7 +32,7 @@ func ParseMobileThreatPartnerTenantState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MOBILETHREATPARTNERTENANTSTATE default: - return 0, errors.New("Unknown MobileThreatPartnerTenantState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/modality.go b/models/modality.go index ccee566dc9..472ea5fdd1 100644 --- a/models/modality.go +++ b/models/modality.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type Modality int const ( @@ -29,7 +26,7 @@ func ParseModality(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MODALITY default: - return 0, errors.New("Unknown Modality value: " + v) + return nil, nil } return &result, nil } diff --git a/models/multi_factor_auth_configuration.go b/models/multi_factor_auth_configuration.go index 4b8dbd904b..18ebb3d50a 100644 --- a/models/multi_factor_auth_configuration.go +++ b/models/multi_factor_auth_configuration.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MultiFactorAuthConfiguration int const ( @@ -23,7 +20,7 @@ func ParseMultiFactorAuthConfiguration(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MULTIFACTORAUTHCONFIGURATION default: - return 0, errors.New("Unknown MultiFactorAuthConfiguration value: " + v) + return nil, nil } return &result, nil } diff --git a/models/multi_tenant_organization_member_processing_status.go b/models/multi_tenant_organization_member_processing_status.go index fa8a491968..29f2e52851 100644 --- a/models/multi_tenant_organization_member_processing_status.go +++ b/models/multi_tenant_organization_member_processing_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MultiTenantOrganizationMemberProcessingStatus int const ( @@ -29,7 +26,7 @@ func ParseMultiTenantOrganizationMemberProcessingStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERPROCESSINGSTATUS default: - return 0, errors.New("Unknown MultiTenantOrganizationMemberProcessingStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/multi_tenant_organization_member_role.go b/models/multi_tenant_organization_member_role.go index 02c8a98bdc..cc26b4c470 100644 --- a/models/multi_tenant_organization_member_role.go +++ b/models/multi_tenant_organization_member_role.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MultiTenantOrganizationMemberRole int const ( @@ -23,7 +20,7 @@ func ParseMultiTenantOrganizationMemberRole(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERROLE default: - return 0, errors.New("Unknown MultiTenantOrganizationMemberRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/multi_tenant_organization_member_state.go b/models/multi_tenant_organization_member_state.go index 5c6a2665ac..ec1daaec6f 100644 --- a/models/multi_tenant_organization_member_state.go +++ b/models/multi_tenant_organization_member_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MultiTenantOrganizationMemberState int const ( @@ -26,7 +23,7 @@ func ParseMultiTenantOrganizationMemberState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONMEMBERSTATE default: - return 0, errors.New("Unknown MultiTenantOrganizationMemberState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/multi_tenant_organization_state.go b/models/multi_tenant_organization_state.go index c30c185c33..9f3347b584 100644 --- a/models/multi_tenant_organization_state.go +++ b/models/multi_tenant_organization_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type MultiTenantOrganizationState int const ( @@ -23,7 +20,7 @@ func ParseMultiTenantOrganizationState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MULTITENANTORGANIZATIONSTATE default: - return 0, errors.New("Unknown MultiTenantOrganizationState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/mutability.go b/models/mutability.go index 88d8fb945c..f95aca481a 100644 --- a/models/mutability.go +++ b/models/mutability.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type Mutability int const ( @@ -26,7 +23,7 @@ func ParseMutability(v string) (any, error) { case "WriteOnly": result = WRITEONLY_MUTABILITY default: - return 0, errors.New("Unknown Mutability value: " + v) + return nil, nil } return &result, nil } diff --git a/models/notification_delivery_frequency.go b/models/notification_delivery_frequency.go index b7274460c9..a6e02e181a 100644 --- a/models/notification_delivery_frequency.go +++ b/models/notification_delivery_frequency.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type NotificationDeliveryFrequency int const ( @@ -26,7 +23,7 @@ func ParseNotificationDeliveryFrequency(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_NOTIFICATIONDELIVERYFREQUENCY default: - return 0, errors.New("Unknown NotificationDeliveryFrequency value: " + v) + return nil, nil } return &result, nil } diff --git a/models/notification_delivery_preference.go b/models/notification_delivery_preference.go index 8405574485..59cc8fc7a5 100644 --- a/models/notification_delivery_preference.go +++ b/models/notification_delivery_preference.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type NotificationDeliveryPreference int const ( @@ -26,7 +23,7 @@ func ParseNotificationDeliveryPreference(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_NOTIFICATIONDELIVERYPREFERENCE default: - return 0, errors.New("Unknown NotificationDeliveryPreference value: " + v) + return nil, nil } return &result, nil } diff --git a/models/notification_template_branding_options.go b/models/notification_template_branding_options.go index 8e882c3e9b..ee25a2fbc7 100644 --- a/models/notification_template_branding_options.go +++ b/models/notification_template_branding_options.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -55,7 +54,7 @@ func ParseNotificationTemplateBrandingOptions(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_NOTIFICATIONTEMPLATEBRANDINGOPTIONS default: - return 0, errors.New("Unknown NotificationTemplateBrandingOptions value: " + v) + return nil, nil } } return &result, nil diff --git a/models/o_auth_app_scope.go b/models/o_auth_app_scope.go index dfca1fcee0..024edbb0cc 100644 --- a/models/o_auth_app_scope.go +++ b/models/o_auth_app_scope.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OAuthAppScope int const ( @@ -41,7 +38,7 @@ func ParseOAuthAppScope(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_OAUTHAPPSCOPE default: - return 0, errors.New("Unknown OAuthAppScope value: " + v) + return nil, nil } return &result, nil } diff --git a/models/object_definition_metadata.go b/models/object_definition_metadata.go index 8c35c2b55a..717fcb6f3c 100644 --- a/models/object_definition_metadata.go +++ b/models/object_definition_metadata.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ObjectDefinitionMetadata int const ( @@ -35,7 +32,7 @@ func ParseObjectDefinitionMetadata(v string) (any, error) { case "BaseObjectName": result = BASEOBJECTNAME_OBJECTDEFINITIONMETADATA default: - return 0, errors.New("Unknown ObjectDefinitionMetadata value: " + v) + return nil, nil } return &result, nil } diff --git a/models/object_flow_types.go b/models/object_flow_types.go index 0bd66c8b77..0aac49027c 100644 --- a/models/object_flow_types.go +++ b/models/object_flow_types.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -38,7 +37,7 @@ func ParseObjectFlowTypes(v string) (any, error) { case "Delete": result |= DELETE_OBJECTFLOWTYPES default: - return 0, errors.New("Unknown ObjectFlowTypes value: " + v) + return nil, nil } } return &result, nil diff --git a/models/object_mapping_metadata.go b/models/object_mapping_metadata.go index df359dca6b..2d9dd3f01f 100644 --- a/models/object_mapping_metadata.go +++ b/models/object_mapping_metadata.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ObjectMappingMetadata int const ( @@ -35,7 +32,7 @@ func ParseObjectMappingMetadata(v string) (any, error) { case "Unsynchronized": result = UNSYNCHRONIZED_OBJECTMAPPINGMETADATA default: - return 0, errors.New("Unknown ObjectMappingMetadata value: " + v) + return nil, nil } return &result, nil } diff --git a/models/on_premises_directory_synchronization_deletion_prevention_type.go b/models/on_premises_directory_synchronization_deletion_prevention_type.go index 8a0280f940..52a2f07b64 100644 --- a/models/on_premises_directory_synchronization_deletion_prevention_type.go +++ b/models/on_premises_directory_synchronization_deletion_prevention_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OnPremisesDirectorySynchronizationDeletionPreventionType int const ( @@ -26,7 +23,7 @@ func ParseOnPremisesDirectorySynchronizationDeletionPreventionType(v string) (an case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ONPREMISESDIRECTORYSYNCHRONIZATIONDELETIONPREVENTIONTYPE default: - return 0, errors.New("Unknown OnPremisesDirectorySynchronizationDeletionPreventionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/onenote_patch_action_type.go b/models/onenote_patch_action_type.go index 30c846df2b..e298f4dd75 100644 --- a/models/onenote_patch_action_type.go +++ b/models/onenote_patch_action_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OnenotePatchActionType int const ( @@ -29,7 +26,7 @@ func ParseOnenotePatchActionType(v string) (any, error) { case "Prepend": result = PREPEND_ONENOTEPATCHACTIONTYPE default: - return 0, errors.New("Unknown OnenotePatchActionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/onenote_patch_insert_position.go b/models/onenote_patch_insert_position.go index 4b33f3852b..8c54d43c4c 100644 --- a/models/onenote_patch_insert_position.go +++ b/models/onenote_patch_insert_position.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OnenotePatchInsertPosition int const ( @@ -20,7 +17,7 @@ func ParseOnenotePatchInsertPosition(v string) (any, error) { case "Before": result = BEFORE_ONENOTEPATCHINSERTPOSITION default: - return 0, errors.New("Unknown OnenotePatchInsertPosition value: " + v) + return nil, nil } return &result, nil } diff --git a/models/onenote_source_service.go b/models/onenote_source_service.go index fe50a456e9..6d2126a29e 100644 --- a/models/onenote_source_service.go +++ b/models/onenote_source_service.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OnenoteSourceService int const ( @@ -26,7 +23,7 @@ func ParseOnenoteSourceService(v string) (any, error) { case "OnPremOneDriveForBusiness": result = ONPREMONEDRIVEFORBUSINESS_ONENOTESOURCESERVICE default: - return 0, errors.New("Unknown OnenoteSourceService value: " + v) + return nil, nil } return &result, nil } diff --git a/models/onenote_user_role.go b/models/onenote_user_role.go index f125a41d9a..f353bece0d 100644 --- a/models/onenote_user_role.go +++ b/models/onenote_user_role.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OnenoteUserRole int const ( @@ -26,7 +23,7 @@ func ParseOnenoteUserRole(v string) (any, error) { case "Reader": result = READER_ONENOTEUSERROLE default: - return 0, errors.New("Unknown OnenoteUserRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/online_meeting_content_sharing_disabled_reason.go b/models/online_meeting_content_sharing_disabled_reason.go index 63ec209b44..f2a9b57840 100644 --- a/models/online_meeting_content_sharing_disabled_reason.go +++ b/models/online_meeting_content_sharing_disabled_reason.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -32,7 +31,7 @@ func ParseOnlineMeetingContentSharingDisabledReason(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_ONLINEMEETINGCONTENTSHARINGDISABLEDREASON default: - return 0, errors.New("Unknown OnlineMeetingContentSharingDisabledReason value: " + v) + return nil, nil } } return &result, nil diff --git a/models/online_meeting_presenters.go b/models/online_meeting_presenters.go index 7255e89e1b..455c05ac78 100644 --- a/models/online_meeting_presenters.go +++ b/models/online_meeting_presenters.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OnlineMeetingPresenters int const ( @@ -29,7 +26,7 @@ func ParseOnlineMeetingPresenters(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ONLINEMEETINGPRESENTERS default: - return 0, errors.New("Unknown OnlineMeetingPresenters value: " + v) + return nil, nil } return &result, nil } diff --git a/models/online_meeting_provider_type.go b/models/online_meeting_provider_type.go index 6a828efb18..9bea291eea 100644 --- a/models/online_meeting_provider_type.go +++ b/models/online_meeting_provider_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OnlineMeetingProviderType int const ( @@ -26,7 +23,7 @@ func ParseOnlineMeetingProviderType(v string) (any, error) { case "teamsForBusiness": result = TEAMSFORBUSINESS_ONLINEMEETINGPROVIDERTYPE default: - return 0, errors.New("Unknown OnlineMeetingProviderType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/online_meeting_role.go b/models/online_meeting_role.go index 0170b2f48a..f77605f87a 100644 --- a/models/online_meeting_role.go +++ b/models/online_meeting_role.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OnlineMeetingRole int const ( @@ -29,7 +26,7 @@ func ParseOnlineMeetingRole(v string) (any, error) { case "coorganizer": result = COORGANIZER_ONLINEMEETINGROLE default: - return 0, errors.New("Unknown OnlineMeetingRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/online_meeting_video_disabled_reason.go b/models/online_meeting_video_disabled_reason.go index a6adb11631..15241129c3 100644 --- a/models/online_meeting_video_disabled_reason.go +++ b/models/online_meeting_video_disabled_reason.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -32,7 +31,7 @@ func ParseOnlineMeetingVideoDisabledReason(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_ONLINEMEETINGVIDEODISABLEDREASON default: - return 0, errors.New("Unknown OnlineMeetingVideoDisabledReason value: " + v) + return nil, nil } } return &result, nil diff --git a/models/operating_system_upgrade_eligibility.go b/models/operating_system_upgrade_eligibility.go index fadfca3cdb..2a8db24ad6 100644 --- a/models/operating_system_upgrade_eligibility.go +++ b/models/operating_system_upgrade_eligibility.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Work From Anywhere windows device upgrade eligibility status. type OperatingSystemUpgradeEligibility int @@ -35,7 +32,7 @@ func ParseOperatingSystemUpgradeEligibility(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_OPERATINGSYSTEMUPGRADEELIGIBILITY default: - return 0, errors.New("Unknown OperatingSystemUpgradeEligibility value: " + v) + return nil, nil } return &result, nil } diff --git a/models/operation_result.go b/models/operation_result.go index 2639128bbb..6c497ffd94 100644 --- a/models/operation_result.go +++ b/models/operation_result.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OperationResult int const ( @@ -26,7 +23,7 @@ func ParseOperationResult(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_OPERATIONRESULT default: - return 0, errors.New("Unknown OperationResult value: " + v) + return nil, nil } return &result, nil } diff --git a/models/operation_status.go b/models/operation_status.go index cfbd485fee..e48c70d770 100644 --- a/models/operation_status.go +++ b/models/operation_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OperationStatus int const ( @@ -26,7 +23,7 @@ func ParseOperationStatus(v string) (any, error) { case "Failed": result = FAILED_OPERATIONSTATUS default: - return 0, errors.New("Unknown OperationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/organizational_branding_properties.go b/models/organizational_branding_properties.go index 7397ef9757..b498115e0a 100644 --- a/models/organizational_branding_properties.go +++ b/models/organizational_branding_properties.go @@ -111,6 +111,18 @@ func (m *OrganizationalBrandingProperties) GetCdnList()([]string) { } return nil } +// GetContentCustomization gets the contentCustomization property value. The contentCustomization property +// returns a ContentCustomizationable when successful +func (m *OrganizationalBrandingProperties) GetContentCustomization()(ContentCustomizationable) { + val, err := m.GetBackingStore().Get("contentCustomization") + if err != nil { + panic(err) + } + if val != nil { + return val.(ContentCustomizationable) + } + return nil +} // GetCustomAccountResetCredentialsUrl gets the customAccountResetCredentialsUrl property value. A custom URL for resetting account credentials. This URL must be in ASCII format or non-ASCII characters must be URL encoded, and not exceed 128 characters. // returns a *string when successful func (m *OrganizationalBrandingProperties) GetCustomAccountResetCredentialsUrl()(*string) { @@ -337,6 +349,16 @@ func (m *OrganizationalBrandingProperties) GetFieldDeserializers()(map[string]fu } return nil } + res["contentCustomization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateContentCustomizationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetContentCustomization(val.(ContentCustomizationable)) + } + return nil + } res["customAccountResetCredentialsUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -753,6 +775,12 @@ func (m *OrganizationalBrandingProperties) Serialize(writer i878a80d2330e89d2689 return err } } + { + err = writer.WriteObjectValue("contentCustomization", m.GetContentCustomization()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("customAccountResetCredentialsUrl", m.GetCustomAccountResetCredentialsUrl()) if err != nil { @@ -941,6 +969,13 @@ func (m *OrganizationalBrandingProperties) SetCdnList(value []string)() { panic(err) } } +// SetContentCustomization sets the contentCustomization property value. The contentCustomization property +func (m *OrganizationalBrandingProperties) SetContentCustomization(value ContentCustomizationable)() { + err := m.GetBackingStore().Set("contentCustomization", value) + if err != nil { + panic(err) + } +} // SetCustomAccountResetCredentialsUrl sets the customAccountResetCredentialsUrl property value. A custom URL for resetting account credentials. This URL must be in ASCII format or non-ASCII characters must be URL encoded, and not exceed 128 characters. func (m *OrganizationalBrandingProperties) SetCustomAccountResetCredentialsUrl(value *string)() { err := m.GetBackingStore().Set("customAccountResetCredentialsUrl", value) @@ -1118,6 +1153,7 @@ type OrganizationalBrandingPropertiesable interface { GetBannerLogo()([]byte) GetBannerLogoRelativeUrl()(*string) GetCdnList()([]string) + GetContentCustomization()(ContentCustomizationable) GetCustomAccountResetCredentialsUrl()(*string) GetCustomCannotAccessYourAccountText()(*string) GetCustomCannotAccessYourAccountUrl()(*string) @@ -1148,6 +1184,7 @@ type OrganizationalBrandingPropertiesable interface { SetBannerLogo(value []byte)() SetBannerLogoRelativeUrl(value *string)() SetCdnList(value []string)() + SetContentCustomization(value ContentCustomizationable)() SetCustomAccountResetCredentialsUrl(value *string)() SetCustomCannotAccessYourAccountText(value *string)() SetCustomCannotAccessYourAccountUrl(value *string)() diff --git a/models/outlier_container_type.go b/models/outlier_container_type.go index d30bd70224..c0624204ee 100644 --- a/models/outlier_container_type.go +++ b/models/outlier_container_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OutlierContainerType int const ( @@ -20,7 +17,7 @@ func ParseOutlierContainerType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_OUTLIERCONTAINERTYPE default: - return 0, errors.New("Unknown OutlierContainerType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/outlier_member_type.go b/models/outlier_member_type.go index 94b705349d..5ff56d26e8 100644 --- a/models/outlier_member_type.go +++ b/models/outlier_member_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type OutlierMemberType int const ( @@ -20,7 +17,7 @@ func ParseOutlierMemberType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_OUTLIERMEMBERTYPE default: - return 0, errors.New("Unknown OutlierMemberType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/page_layout_type.go b/models/page_layout_type.go index 31c8ba3203..f50ae6dfae 100644 --- a/models/page_layout_type.go +++ b/models/page_layout_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PageLayoutType int const ( @@ -26,7 +23,7 @@ func ParsePageLayoutType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PAGELAYOUTTYPE default: - return 0, errors.New("Unknown PageLayoutType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/page_promotion_type.go b/models/page_promotion_type.go index c64fc8c31e..ace2153d9d 100644 --- a/models/page_promotion_type.go +++ b/models/page_promotion_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PagePromotionType int const ( @@ -26,7 +23,7 @@ func ParsePagePromotionType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PAGEPROMOTIONTYPE default: - return 0, errors.New("Unknown PagePromotionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/partner_tenant_type.go b/models/partner_tenant_type.go index 3cd889b712..a4181ad541 100644 --- a/models/partner_tenant_type.go +++ b/models/partner_tenant_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PartnerTenantType int const ( @@ -35,7 +32,7 @@ func ParsePartnerTenantType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PARTNERTENANTTYPE default: - return 0, errors.New("Unknown PartnerTenantType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/partners/billing/attribute_set.go b/models/partners/billing/attribute_set.go index 84eabe31ab..4250623d6f 100644 --- a/models/partners/billing/attribute_set.go +++ b/models/partners/billing/attribute_set.go @@ -1,7 +1,4 @@ package billing -import ( - "errors" -) type AttributeSet int const ( @@ -23,7 +20,7 @@ func ParseAttributeSet(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ATTRIBUTESET default: - return 0, errors.New("Unknown AttributeSet value: " + v) + return nil, nil } return &result, nil } diff --git a/models/partners/billing/billing_period.go b/models/partners/billing/billing_period.go index d572073b3d..47b08031f1 100644 --- a/models/partners/billing/billing_period.go +++ b/models/partners/billing/billing_period.go @@ -1,7 +1,4 @@ package billing -import ( - "errors" -) type BillingPeriod int const ( @@ -23,7 +20,7 @@ func ParseBillingPeriod(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BILLINGPERIOD default: - return 0, errors.New("Unknown BillingPeriod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/payload_brand.go b/models/payload_brand.go index 775eb65a1d..7365aa7d3a 100644 --- a/models/payload_brand.go +++ b/models/payload_brand.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PayloadBrand int const ( @@ -77,7 +74,7 @@ func ParsePayloadBrand(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PAYLOADBRAND default: - return 0, errors.New("Unknown PayloadBrand value: " + v) + return nil, nil } return &result, nil } diff --git a/models/payload_complexity.go b/models/payload_complexity.go index ab9d00be00..c7b63370d2 100644 --- a/models/payload_complexity.go +++ b/models/payload_complexity.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PayloadComplexity int const ( @@ -29,7 +26,7 @@ func ParsePayloadComplexity(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PAYLOADCOMPLEXITY default: - return 0, errors.New("Unknown PayloadComplexity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/payload_delivery_platform.go b/models/payload_delivery_platform.go index 0fee98875b..4d030964d3 100644 --- a/models/payload_delivery_platform.go +++ b/models/payload_delivery_platform.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PayloadDeliveryPlatform int const ( @@ -29,7 +26,7 @@ func ParsePayloadDeliveryPlatform(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PAYLOADDELIVERYPLATFORM default: - return 0, errors.New("Unknown PayloadDeliveryPlatform value: " + v) + return nil, nil } return &result, nil } diff --git a/models/payload_industry.go b/models/payload_industry.go index 6e3a8cc2d2..8adea9ac54 100644 --- a/models/payload_industry.go +++ b/models/payload_industry.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PayloadIndustry int const ( @@ -80,7 +77,7 @@ func ParsePayloadIndustry(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PAYLOADINDUSTRY default: - return 0, errors.New("Unknown PayloadIndustry value: " + v) + return nil, nil } return &result, nil } diff --git a/models/payload_theme.go b/models/payload_theme.go index c99ba693a6..e0900a97b1 100644 --- a/models/payload_theme.go +++ b/models/payload_theme.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PayloadTheme int const ( @@ -110,7 +107,7 @@ func ParsePayloadTheme(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PAYLOADTHEME default: - return 0, errors.New("Unknown PayloadTheme value: " + v) + return nil, nil } return &result, nil } diff --git a/models/permission_classification_type.go b/models/permission_classification_type.go index 151c43be8a..85fa18dc57 100644 --- a/models/permission_classification_type.go +++ b/models/permission_classification_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PermissionClassificationType int const ( @@ -26,7 +23,7 @@ func ParsePermissionClassificationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PERMISSIONCLASSIFICATIONTYPE default: - return 0, errors.New("Unknown PermissionClassificationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/permission_type.go b/models/permission_type.go index 0a566d7d7d..afe6dcb12c 100644 --- a/models/permission_type.go +++ b/models/permission_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PermissionType int const ( @@ -23,7 +20,7 @@ func ParsePermissionType(v string) (any, error) { case "application": result = APPLICATION_PERMISSIONTYPE default: - return 0, errors.New("Unknown PermissionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/persistent_browser_session_mode.go b/models/persistent_browser_session_mode.go index 01a5120a83..87fca43252 100644 --- a/models/persistent_browser_session_mode.go +++ b/models/persistent_browser_session_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PersistentBrowserSessionMode int const ( @@ -20,7 +17,7 @@ func ParsePersistentBrowserSessionMode(v string) (any, error) { case "never": result = NEVER_PERSISTENTBROWSERSESSIONMODE default: - return 0, errors.New("Unknown PersistentBrowserSessionMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/phone_type.go b/models/phone_type.go index ba0a313a7d..07493a2b88 100644 --- a/models/phone_type.go +++ b/models/phone_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PhoneType int const ( @@ -44,7 +41,7 @@ func ParsePhoneType(v string) (any, error) { case "radio": result = RADIO_PHONETYPE default: - return 0, errors.New("Unknown PhoneType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/planner_container_type.go b/models/planner_container_type.go index 996dfee316..457f59b251 100644 --- a/models/planner_container_type.go +++ b/models/planner_container_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PlannerContainerType int const ( @@ -23,7 +20,7 @@ func ParsePlannerContainerType(v string) (any, error) { case "roster": result = ROSTER_PLANNERCONTAINERTYPE default: - return 0, errors.New("Unknown PlannerContainerType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/planner_preview_type.go b/models/planner_preview_type.go index 934466bc3d..c3699ca50c 100644 --- a/models/planner_preview_type.go +++ b/models/planner_preview_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PlannerPreviewType int const ( @@ -29,7 +26,7 @@ func ParsePlannerPreviewType(v string) (any, error) { case "reference": result = REFERENCE_PLANNERPREVIEWTYPE default: - return 0, errors.New("Unknown PlannerPreviewType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/policy_platform_type.go b/models/policy_platform_type.go index e6ff845f81..68df509bcc 100644 --- a/models/policy_platform_type.go +++ b/models/policy_platform_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Supported platform types for policies. type PolicyPlatformType int @@ -47,7 +44,7 @@ func ParsePolicyPlatformType(v string) (any, error) { case "all": result = ALL_POLICYPLATFORMTYPE default: - return 0, errors.New("Unknown PolicyPlatformType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/post_type.go b/models/post_type.go index 364bd700f3..1b4ea64ef6 100644 --- a/models/post_type.go +++ b/models/post_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PostType int const ( @@ -26,7 +23,7 @@ func ParsePostType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_POSTTYPE default: - return 0, errors.New("Unknown PostType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/prerelease_features.go b/models/prerelease_features.go index bcdd6b76d9..ffb6152c9e 100644 --- a/models/prerelease_features.go +++ b/models/prerelease_features.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for pre-release features. type PrereleaseFeatures int @@ -31,7 +28,7 @@ func ParsePrereleaseFeatures(v string) (any, error) { case "notAllowed": result = NOTALLOWED_PRERELEASEFEATURES default: - return 0, errors.New("Unknown PrereleaseFeatures value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_color_mode.go b/models/print_color_mode.go index dcd139194c..8ea58b777a 100644 --- a/models/print_color_mode.go +++ b/models/print_color_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintColorMode int const ( @@ -29,7 +26,7 @@ func ParsePrintColorMode(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTCOLORMODE default: - return 0, errors.New("Unknown PrintColorMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_duplex_mode.go b/models/print_duplex_mode.go index 078fc83eee..e98121dd61 100644 --- a/models/print_duplex_mode.go +++ b/models/print_duplex_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintDuplexMode int const ( @@ -26,7 +23,7 @@ func ParsePrintDuplexMode(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTDUPLEXMODE default: - return 0, errors.New("Unknown PrintDuplexMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_event.go b/models/print_event.go index a97fbaa07c..be5ecadd9a 100644 --- a/models/print_event.go +++ b/models/print_event.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintEvent int const ( @@ -20,7 +17,7 @@ func ParsePrintEvent(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTEVENT default: - return 0, errors.New("Unknown PrintEvent value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_finishing.go b/models/print_finishing.go index 0494e08ee3..00dd942f18 100644 --- a/models/print_finishing.go +++ b/models/print_finishing.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintFinishing int const ( @@ -25,10 +22,56 @@ const ( STAPLEDUALRIGHT_PRINTFINISHING STAPLEDUALBOTTOM_PRINTFINISHING UNKNOWNFUTUREVALUE_PRINTFINISHING + STAPLETRIPLELEFT_PRINTFINISHING + STAPLETRIPLETOP_PRINTFINISHING + STAPLETRIPLERIGHT_PRINTFINISHING + STAPLETRIPLEBOTTOM_PRINTFINISHING + BINDLEFT_PRINTFINISHING + BINDTOP_PRINTFINISHING + BINDRIGHT_PRINTFINISHING + BINDBOTTOM_PRINTFINISHING + FOLDACCORDION_PRINTFINISHING + FOLDDOUBLEGATE_PRINTFINISHING + FOLDGATE_PRINTFINISHING + FOLDHALF_PRINTFINISHING + FOLDHALFZ_PRINTFINISHING + FOLDLEFTGATE_PRINTFINISHING + FOLDLETTER_PRINTFINISHING + FOLDPARALLEL_PRINTFINISHING + FOLDPOSTER_PRINTFINISHING + FOLDRIGHTGATE_PRINTFINISHING + FOLDZ_PRINTFINISHING + FOLDENGINEERINGZ_PRINTFINISHING + PUNCHTOPLEFT_PRINTFINISHING + PUNCHBOTTOMLEFT_PRINTFINISHING + PUNCHTOPRIGHT_PRINTFINISHING + PUNCHBOTTOMRIGHT_PRINTFINISHING + PUNCHDUALLEFT_PRINTFINISHING + PUNCHDUALTOP_PRINTFINISHING + PUNCHDUALRIGHT_PRINTFINISHING + PUNCHDUALBOTTOM_PRINTFINISHING + PUNCHTRIPLELEFT_PRINTFINISHING + PUNCHTRIPLETOP_PRINTFINISHING + PUNCHTRIPLERIGHT_PRINTFINISHING + PUNCHTRIPLEBOTTOM_PRINTFINISHING + PUNCHQUADLEFT_PRINTFINISHING + PUNCHQUADTOP_PRINTFINISHING + PUNCHQUADRIGHT_PRINTFINISHING + PUNCHQUADBOTTOM_PRINTFINISHING + FOLD_PRINTFINISHING + TRIM_PRINTFINISHING + BALE_PRINTFINISHING + BOOKLETMAKER_PRINTFINISHING + COAT_PRINTFINISHING + LAMINATE_PRINTFINISHING + TRIMAFTERPAGES_PRINTFINISHING + TRIMAFTERDOCUMENTS_PRINTFINISHING + TRIMAFTERCOPIES_PRINTFINISHING + TRIMAFTERJOB_PRINTFINISHING ) func (i PrintFinishing) String() string { - return []string{"none", "staple", "punch", "cover", "bind", "saddleStitch", "stitchEdge", "stapleTopLeft", "stapleBottomLeft", "stapleTopRight", "stapleBottomRight", "stitchLeftEdge", "stitchTopEdge", "stitchRightEdge", "stitchBottomEdge", "stapleDualLeft", "stapleDualTop", "stapleDualRight", "stapleDualBottom", "unknownFutureValue"}[i] + return []string{"none", "staple", "punch", "cover", "bind", "saddleStitch", "stitchEdge", "stapleTopLeft", "stapleBottomLeft", "stapleTopRight", "stapleBottomRight", "stitchLeftEdge", "stitchTopEdge", "stitchRightEdge", "stitchBottomEdge", "stapleDualLeft", "stapleDualTop", "stapleDualRight", "stapleDualBottom", "unknownFutureValue", "stapleTripleLeft", "stapleTripleTop", "stapleTripleRight", "stapleTripleBottom", "bindLeft", "bindTop", "bindRight", "bindBottom", "foldAccordion", "foldDoubleGate", "foldGate", "foldHalf", "foldHalfZ", "foldLeftGate", "foldLetter", "foldParallel", "foldPoster", "foldRightGate", "foldZ", "foldEngineeringZ", "punchTopLeft", "punchBottomLeft", "punchTopRight", "punchBottomRight", "punchDualLeft", "punchDualTop", "punchDualRight", "punchDualBottom", "punchTripleLeft", "punchTripleTop", "punchTripleRight", "punchTripleBottom", "punchQuadLeft", "punchQuadTop", "punchQuadRight", "punchQuadBottom", "fold", "trim", "bale", "bookletMaker", "coat", "laminate", "trimAfterPages", "trimAfterDocuments", "trimAfterCopies", "trimAfterJob"}[i] } func ParsePrintFinishing(v string) (any, error) { result := NONE_PRINTFINISHING @@ -73,8 +116,100 @@ func ParsePrintFinishing(v string) (any, error) { result = STAPLEDUALBOTTOM_PRINTFINISHING case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTFINISHING + case "stapleTripleLeft": + result = STAPLETRIPLELEFT_PRINTFINISHING + case "stapleTripleTop": + result = STAPLETRIPLETOP_PRINTFINISHING + case "stapleTripleRight": + result = STAPLETRIPLERIGHT_PRINTFINISHING + case "stapleTripleBottom": + result = STAPLETRIPLEBOTTOM_PRINTFINISHING + case "bindLeft": + result = BINDLEFT_PRINTFINISHING + case "bindTop": + result = BINDTOP_PRINTFINISHING + case "bindRight": + result = BINDRIGHT_PRINTFINISHING + case "bindBottom": + result = BINDBOTTOM_PRINTFINISHING + case "foldAccordion": + result = FOLDACCORDION_PRINTFINISHING + case "foldDoubleGate": + result = FOLDDOUBLEGATE_PRINTFINISHING + case "foldGate": + result = FOLDGATE_PRINTFINISHING + case "foldHalf": + result = FOLDHALF_PRINTFINISHING + case "foldHalfZ": + result = FOLDHALFZ_PRINTFINISHING + case "foldLeftGate": + result = FOLDLEFTGATE_PRINTFINISHING + case "foldLetter": + result = FOLDLETTER_PRINTFINISHING + case "foldParallel": + result = FOLDPARALLEL_PRINTFINISHING + case "foldPoster": + result = FOLDPOSTER_PRINTFINISHING + case "foldRightGate": + result = FOLDRIGHTGATE_PRINTFINISHING + case "foldZ": + result = FOLDZ_PRINTFINISHING + case "foldEngineeringZ": + result = FOLDENGINEERINGZ_PRINTFINISHING + case "punchTopLeft": + result = PUNCHTOPLEFT_PRINTFINISHING + case "punchBottomLeft": + result = PUNCHBOTTOMLEFT_PRINTFINISHING + case "punchTopRight": + result = PUNCHTOPRIGHT_PRINTFINISHING + case "punchBottomRight": + result = PUNCHBOTTOMRIGHT_PRINTFINISHING + case "punchDualLeft": + result = PUNCHDUALLEFT_PRINTFINISHING + case "punchDualTop": + result = PUNCHDUALTOP_PRINTFINISHING + case "punchDualRight": + result = PUNCHDUALRIGHT_PRINTFINISHING + case "punchDualBottom": + result = PUNCHDUALBOTTOM_PRINTFINISHING + case "punchTripleLeft": + result = PUNCHTRIPLELEFT_PRINTFINISHING + case "punchTripleTop": + result = PUNCHTRIPLETOP_PRINTFINISHING + case "punchTripleRight": + result = PUNCHTRIPLERIGHT_PRINTFINISHING + case "punchTripleBottom": + result = PUNCHTRIPLEBOTTOM_PRINTFINISHING + case "punchQuadLeft": + result = PUNCHQUADLEFT_PRINTFINISHING + case "punchQuadTop": + result = PUNCHQUADTOP_PRINTFINISHING + case "punchQuadRight": + result = PUNCHQUADRIGHT_PRINTFINISHING + case "punchQuadBottom": + result = PUNCHQUADBOTTOM_PRINTFINISHING + case "fold": + result = FOLD_PRINTFINISHING + case "trim": + result = TRIM_PRINTFINISHING + case "bale": + result = BALE_PRINTFINISHING + case "bookletMaker": + result = BOOKLETMAKER_PRINTFINISHING + case "coat": + result = COAT_PRINTFINISHING + case "laminate": + result = LAMINATE_PRINTFINISHING + case "trimAfterPages": + result = TRIMAFTERPAGES_PRINTFINISHING + case "trimAfterDocuments": + result = TRIMAFTERDOCUMENTS_PRINTFINISHING + case "trimAfterCopies": + result = TRIMAFTERCOPIES_PRINTFINISHING + case "trimAfterJob": + result = TRIMAFTERJOB_PRINTFINISHING default: - return 0, errors.New("Unknown PrintFinishing value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_job_processing_state.go b/models/print_job_processing_state.go index 7be15e79e1..420869e19d 100644 --- a/models/print_job_processing_state.go +++ b/models/print_job_processing_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintJobProcessingState int const ( @@ -41,7 +38,7 @@ func ParsePrintJobProcessingState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTJOBPROCESSINGSTATE default: - return 0, errors.New("Unknown PrintJobProcessingState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_job_state_detail.go b/models/print_job_state_detail.go index 8895c4a8f0..5f40dc5710 100644 --- a/models/print_job_state_detail.go +++ b/models/print_job_state_detail.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintJobStateDetail int const ( @@ -38,7 +35,7 @@ func ParsePrintJobStateDetail(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTJOBSTATEDETAIL default: - return 0, errors.New("Unknown PrintJobStateDetail value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_multipage_layout.go b/models/print_multipage_layout.go index ff92e62526..44aedc8cd5 100644 --- a/models/print_multipage_layout.go +++ b/models/print_multipage_layout.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintMultipageLayout int const ( @@ -41,7 +38,7 @@ func ParsePrintMultipageLayout(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTMULTIPAGELAYOUT default: - return 0, errors.New("Unknown PrintMultipageLayout value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_operation_processing_state.go b/models/print_operation_processing_state.go index f224455099..801e7d8f0d 100644 --- a/models/print_operation_processing_state.go +++ b/models/print_operation_processing_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintOperationProcessingState int const ( @@ -29,7 +26,7 @@ func ParsePrintOperationProcessingState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTOPERATIONPROCESSINGSTATE default: - return 0, errors.New("Unknown PrintOperationProcessingState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_orientation.go b/models/print_orientation.go index c5f4dac896..af986204de 100644 --- a/models/print_orientation.go +++ b/models/print_orientation.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintOrientation int const ( @@ -29,7 +26,7 @@ func ParsePrintOrientation(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTORIENTATION default: - return 0, errors.New("Unknown PrintOrientation value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_quality.go b/models/print_quality.go index fdfc49862d..e2e41d4e1e 100644 --- a/models/print_quality.go +++ b/models/print_quality.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintQuality int const ( @@ -26,7 +23,7 @@ func ParsePrintQuality(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTQUALITY default: - return 0, errors.New("Unknown PrintQuality value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_scaling.go b/models/print_scaling.go index 1890883512..0a3ccd052d 100644 --- a/models/print_scaling.go +++ b/models/print_scaling.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintScaling int const ( @@ -32,7 +29,7 @@ func ParsePrintScaling(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTSCALING default: - return 0, errors.New("Unknown PrintScaling value: " + v) + return nil, nil } return &result, nil } diff --git a/models/print_task_processing_state.go b/models/print_task_processing_state.go index a9098a9693..342ee174d3 100644 --- a/models/print_task_processing_state.go +++ b/models/print_task_processing_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrintTaskProcessingState int const ( @@ -29,7 +26,7 @@ func ParsePrintTaskProcessingState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTTASKPROCESSINGSTATE default: - return 0, errors.New("Unknown PrintTaskProcessingState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/printer_feed_orientation.go b/models/printer_feed_orientation.go index d17c927d14..25f6fbf351 100644 --- a/models/printer_feed_orientation.go +++ b/models/printer_feed_orientation.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrinterFeedOrientation int const ( @@ -23,7 +20,7 @@ func ParsePrinterFeedOrientation(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTERFEEDORIENTATION default: - return 0, errors.New("Unknown PrinterFeedOrientation value: " + v) + return nil, nil } return &result, nil } diff --git a/models/printer_processing_state.go b/models/printer_processing_state.go index f3f7c3d0b5..0876d36a93 100644 --- a/models/printer_processing_state.go +++ b/models/printer_processing_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrinterProcessingState int const ( @@ -29,7 +26,7 @@ func ParsePrinterProcessingState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRINTERPROCESSINGSTATE default: - return 0, errors.New("Unknown PrinterProcessingState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/printer_processing_state_detail.go b/models/printer_processing_state_detail.go index eab673189e..e6c565861c 100644 --- a/models/printer_processing_state_detail.go +++ b/models/printer_processing_state_detail.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrinterProcessingStateDetail int const ( @@ -2492,7 +2489,7 @@ func ParsePrinterProcessingStateDetail(v string) (any, error) { case "wrapperWarmingUp": result = WRAPPERWARMINGUP_PRINTERPROCESSINGSTATEDETAIL default: - return 0, errors.New("Unknown PrinterProcessingStateDetail value: " + v) + return nil, nil } return &result, nil } diff --git a/models/privileged_access_group_assignment_type.go b/models/privileged_access_group_assignment_type.go index a969a7f7b9..0a8b4b8d67 100644 --- a/models/privileged_access_group_assignment_type.go +++ b/models/privileged_access_group_assignment_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrivilegedAccessGroupAssignmentType int const ( @@ -23,7 +20,7 @@ func ParsePrivilegedAccessGroupAssignmentType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPASSIGNMENTTYPE default: - return 0, errors.New("Unknown PrivilegedAccessGroupAssignmentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/privileged_access_group_member_type.go b/models/privileged_access_group_member_type.go index 58c81c6716..9028ddb818 100644 --- a/models/privileged_access_group_member_type.go +++ b/models/privileged_access_group_member_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrivilegedAccessGroupMemberType int const ( @@ -23,7 +20,7 @@ func ParsePrivilegedAccessGroupMemberType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPMEMBERTYPE default: - return 0, errors.New("Unknown PrivilegedAccessGroupMemberType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/privileged_access_group_relationships.go b/models/privileged_access_group_relationships.go index 2d15546a7f..b7aab5fd68 100644 --- a/models/privileged_access_group_relationships.go +++ b/models/privileged_access_group_relationships.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PrivilegedAccessGroupRelationships int const ( @@ -23,7 +20,7 @@ func ParsePrivilegedAccessGroupRelationships(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PRIVILEGEDACCESSGROUPRELATIONSHIPS default: - return 0, errors.New("Unknown PrivilegedAccessGroupRelationships value: " + v) + return nil, nil } return &result, nil } diff --git a/models/process_integrity_level.go b/models/process_integrity_level.go index bf4534a395..52bbd3fc00 100644 --- a/models/process_integrity_level.go +++ b/models/process_integrity_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ProcessIntegrityLevel int const ( @@ -35,7 +32,7 @@ func ParseProcessIntegrityLevel(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PROCESSINTEGRITYLEVEL default: - return 0, errors.New("Unknown ProcessIntegrityLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/prompt_login_behavior.go b/models/prompt_login_behavior.go index 8e7ff8de93..1247db82fc 100644 --- a/models/prompt_login_behavior.go +++ b/models/prompt_login_behavior.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type PromptLoginBehavior int const ( @@ -26,7 +23,7 @@ func ParsePromptLoginBehavior(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PROMPTLOGINBEHAVIOR default: - return 0, errors.New("Unknown PromptLoginBehavior value: " + v) + return nil, nil } return &result, nil } diff --git a/models/provisioning_action.go b/models/provisioning_action.go index 00356e6b9f..e27e7cbe38 100644 --- a/models/provisioning_action.go +++ b/models/provisioning_action.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ProvisioningAction int const ( @@ -35,7 +32,7 @@ func ParseProvisioningAction(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PROVISIONINGACTION default: - return 0, errors.New("Unknown ProvisioningAction value: " + v) + return nil, nil } return &result, nil } diff --git a/models/provisioning_result.go b/models/provisioning_result.go index 4427202aae..b02d3b85a3 100644 --- a/models/provisioning_result.go +++ b/models/provisioning_result.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ProvisioningResult int const ( @@ -29,7 +26,7 @@ func ParseProvisioningResult(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PROVISIONINGRESULT default: - return 0, errors.New("Unknown ProvisioningResult value: " + v) + return nil, nil } return &result, nil } diff --git a/models/provisioning_status_error_category.go b/models/provisioning_status_error_category.go index def25aad1a..f310291c49 100644 --- a/models/provisioning_status_error_category.go +++ b/models/provisioning_status_error_category.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ProvisioningStatusErrorCategory int const ( @@ -26,7 +23,7 @@ func ParseProvisioningStatusErrorCategory(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PROVISIONINGSTATUSERRORCATEGORY default: - return 0, errors.New("Unknown ProvisioningStatusErrorCategory value: " + v) + return nil, nil } return &result, nil } diff --git a/models/provisioning_step_type.go b/models/provisioning_step_type.go index 80290e1bf3..d5c4b2e5ad 100644 --- a/models/provisioning_step_type.go +++ b/models/provisioning_step_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ProvisioningStepType int const ( @@ -35,7 +32,7 @@ func ParseProvisioningStepType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PROVISIONINGSTEPTYPE default: - return 0, errors.New("Unknown ProvisioningStepType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/quarantine_reason.go b/models/quarantine_reason.go index a4db989405..dc155c7544 100644 --- a/models/quarantine_reason.go +++ b/models/quarantine_reason.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type QuarantineReason int const ( @@ -38,7 +35,7 @@ func ParseQuarantineReason(v string) (any, error) { case "IngestionInterrupted": result = INGESTIONINTERRUPTED_QUARANTINEREASON default: - return 0, errors.New("Unknown QuarantineReason value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_apps_type.go b/models/rating_apps_type.go index 7830027104..e2e4ecc21a 100644 --- a/models/rating_apps_type.go +++ b/models/rating_apps_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Apps rating as in media content type RatingAppsType int @@ -39,7 +36,7 @@ func ParseRatingAppsType(v string) (any, error) { case "agesAbove17": result = AGESABOVE17_RATINGAPPSTYPE default: - return 0, errors.New("Unknown RatingAppsType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_australia_movies_type.go b/models/rating_australia_movies_type.go index c25f066713..3c51b6ffaa 100644 --- a/models/rating_australia_movies_type.go +++ b/models/rating_australia_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in Australia type RatingAustraliaMoviesType int @@ -43,7 +40,7 @@ func ParseRatingAustraliaMoviesType(v string) (any, error) { case "agesAbove18": result = AGESABOVE18_RATINGAUSTRALIAMOVIESTYPE default: - return 0, errors.New("Unknown RatingAustraliaMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_australia_television_type.go b/models/rating_australia_television_type.go index 2534a12c98..7f16f1cb4f 100644 --- a/models/rating_australia_television_type.go +++ b/models/rating_australia_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in Australia type RatingAustraliaTelevisionType int @@ -51,7 +48,7 @@ func ParseRatingAustraliaTelevisionType(v string) (any, error) { case "agesAbove15AdultViolence": result = AGESABOVE15ADULTVIOLENCE_RATINGAUSTRALIATELEVISIONTYPE default: - return 0, errors.New("Unknown RatingAustraliaTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_canada_movies_type.go b/models/rating_canada_movies_type.go index 30648ed7d9..e1c7ecb287 100644 --- a/models/rating_canada_movies_type.go +++ b/models/rating_canada_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in Canada type RatingCanadaMoviesType int @@ -43,7 +40,7 @@ func ParseRatingCanadaMoviesType(v string) (any, error) { case "restricted": result = RESTRICTED_RATINGCANADAMOVIESTYPE default: - return 0, errors.New("Unknown RatingCanadaMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_canada_television_type.go b/models/rating_canada_television_type.go index e35661d44e..3284e37e8a 100644 --- a/models/rating_canada_television_type.go +++ b/models/rating_canada_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in Canada type RatingCanadaTelevisionType int @@ -47,7 +44,7 @@ func ParseRatingCanadaTelevisionType(v string) (any, error) { case "agesAbove18": result = AGESABOVE18_RATINGCANADATELEVISIONTYPE default: - return 0, errors.New("Unknown RatingCanadaTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_france_movies_type.go b/models/rating_france_movies_type.go index b93a4c4779..28b179ac09 100644 --- a/models/rating_france_movies_type.go +++ b/models/rating_france_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in France type RatingFranceMoviesType int @@ -39,7 +36,7 @@ func ParseRatingFranceMoviesType(v string) (any, error) { case "agesAbove18": result = AGESABOVE18_RATINGFRANCEMOVIESTYPE default: - return 0, errors.New("Unknown RatingFranceMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_france_television_type.go b/models/rating_france_television_type.go index 8d374a21d4..1d292c9748 100644 --- a/models/rating_france_television_type.go +++ b/models/rating_france_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in France type RatingFranceTelevisionType int @@ -39,7 +36,7 @@ func ParseRatingFranceTelevisionType(v string) (any, error) { case "agesAbove18": result = AGESABOVE18_RATINGFRANCETELEVISIONTYPE default: - return 0, errors.New("Unknown RatingFranceTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_germany_movies_type.go b/models/rating_germany_movies_type.go index 8895fa189a..c9568e4d16 100644 --- a/models/rating_germany_movies_type.go +++ b/models/rating_germany_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in Germany type RatingGermanyMoviesType int @@ -43,7 +40,7 @@ func ParseRatingGermanyMoviesType(v string) (any, error) { case "adults": result = ADULTS_RATINGGERMANYMOVIESTYPE default: - return 0, errors.New("Unknown RatingGermanyMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_germany_television_type.go b/models/rating_germany_television_type.go index 16340f9783..e4955914af 100644 --- a/models/rating_germany_television_type.go +++ b/models/rating_germany_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in Germany type RatingGermanyTelevisionType int @@ -43,7 +40,7 @@ func ParseRatingGermanyTelevisionType(v string) (any, error) { case "adults": result = ADULTS_RATINGGERMANYTELEVISIONTYPE default: - return 0, errors.New("Unknown RatingGermanyTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_ireland_movies_type.go b/models/rating_ireland_movies_type.go index 0c1309e1c8..8887fd813a 100644 --- a/models/rating_ireland_movies_type.go +++ b/models/rating_ireland_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in Ireland type RatingIrelandMoviesType int @@ -47,7 +44,7 @@ func ParseRatingIrelandMoviesType(v string) (any, error) { case "adults": result = ADULTS_RATINGIRELANDMOVIESTYPE default: - return 0, errors.New("Unknown RatingIrelandMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_ireland_television_type.go b/models/rating_ireland_television_type.go index d225cc09d1..c1fb83b7a3 100644 --- a/models/rating_ireland_television_type.go +++ b/models/rating_ireland_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in Ireland type RatingIrelandTelevisionType int @@ -43,7 +40,7 @@ func ParseRatingIrelandTelevisionType(v string) (any, error) { case "mature": result = MATURE_RATINGIRELANDTELEVISIONTYPE default: - return 0, errors.New("Unknown RatingIrelandTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_japan_movies_type.go b/models/rating_japan_movies_type.go index d7bd35f4ca..35578469bb 100644 --- a/models/rating_japan_movies_type.go +++ b/models/rating_japan_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in Japan type RatingJapanMoviesType int @@ -39,7 +36,7 @@ func ParseRatingJapanMoviesType(v string) (any, error) { case "agesAbove18": result = AGESABOVE18_RATINGJAPANMOVIESTYPE default: - return 0, errors.New("Unknown RatingJapanMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_japan_television_type.go b/models/rating_japan_television_type.go index e413eaa814..6bb170c77e 100644 --- a/models/rating_japan_television_type.go +++ b/models/rating_japan_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in Japan type RatingJapanTelevisionType int @@ -27,7 +24,7 @@ func ParseRatingJapanTelevisionType(v string) (any, error) { case "explicitAllowed": result = EXPLICITALLOWED_RATINGJAPANTELEVISIONTYPE default: - return 0, errors.New("Unknown RatingJapanTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_new_zealand_movies_type.go b/models/rating_new_zealand_movies_type.go index fec787b9c9..77fe570162 100644 --- a/models/rating_new_zealand_movies_type.go +++ b/models/rating_new_zealand_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in New Zealand type RatingNewZealandMoviesType int @@ -59,7 +56,7 @@ func ParseRatingNewZealandMoviesType(v string) (any, error) { case "agesAbove16Restricted": result = AGESABOVE16RESTRICTED_RATINGNEWZEALANDMOVIESTYPE default: - return 0, errors.New("Unknown RatingNewZealandMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_new_zealand_television_type.go b/models/rating_new_zealand_television_type.go index f8d4150e16..bb716dca77 100644 --- a/models/rating_new_zealand_television_type.go +++ b/models/rating_new_zealand_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in New Zealand type RatingNewZealandTelevisionType int @@ -35,7 +32,7 @@ func ParseRatingNewZealandTelevisionType(v string) (any, error) { case "adults": result = ADULTS_RATINGNEWZEALANDTELEVISIONTYPE default: - return 0, errors.New("Unknown RatingNewZealandTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_united_kingdom_movies_type.go b/models/rating_united_kingdom_movies_type.go index 3b0026573e..6edf0d8cfc 100644 --- a/models/rating_united_kingdom_movies_type.go +++ b/models/rating_united_kingdom_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in United Kingdom type RatingUnitedKingdomMoviesType int @@ -51,7 +48,7 @@ func ParseRatingUnitedKingdomMoviesType(v string) (any, error) { case "adults": result = ADULTS_RATINGUNITEDKINGDOMMOVIESTYPE default: - return 0, errors.New("Unknown RatingUnitedKingdomMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_united_kingdom_television_type.go b/models/rating_united_kingdom_television_type.go index eb42e88bf9..674689a847 100644 --- a/models/rating_united_kingdom_television_type.go +++ b/models/rating_united_kingdom_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in United Kingdom type RatingUnitedKingdomTelevisionType int @@ -27,7 +24,7 @@ func ParseRatingUnitedKingdomTelevisionType(v string) (any, error) { case "caution": result = CAUTION_RATINGUNITEDKINGDOMTELEVISIONTYPE default: - return 0, errors.New("Unknown RatingUnitedKingdomTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_united_states_movies_type.go b/models/rating_united_states_movies_type.go index 7274a4252a..eabf0821f0 100644 --- a/models/rating_united_states_movies_type.go +++ b/models/rating_united_states_movies_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Movies rating labels in United States type RatingUnitedStatesMoviesType int @@ -43,7 +40,7 @@ func ParseRatingUnitedStatesMoviesType(v string) (any, error) { case "adults": result = ADULTS_RATINGUNITEDSTATESMOVIESTYPE default: - return 0, errors.New("Unknown RatingUnitedStatesMoviesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/rating_united_states_television_type.go b/models/rating_united_states_television_type.go index 38748c85e6..00c9de4bf0 100644 --- a/models/rating_united_states_television_type.go +++ b/models/rating_united_states_television_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // TV content rating labels in United States type RatingUnitedStatesTelevisionType int @@ -47,7 +44,7 @@ func ParseRatingUnitedStatesTelevisionType(v string) (any, error) { case "adults": result = ADULTS_RATINGUNITEDSTATESTELEVISIONTYPE default: - return 0, errors.New("Unknown RatingUnitedStatesTelevisionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/recipient_scope_type.go b/models/recipient_scope_type.go index aaa30689b2..71a531b615 100644 --- a/models/recipient_scope_type.go +++ b/models/recipient_scope_type.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -41,7 +40,7 @@ func ParseRecipientScopeType(v string) (any, error) { case "externalNonPartner": result |= EXTERNALNONPARTNER_RECIPIENTSCOPETYPE default: - return 0, errors.New("Unknown RecipientScopeType value: " + v) + return nil, nil } } return &result, nil diff --git a/models/recording_status.go b/models/recording_status.go index 5d5ad9507a..9ffdd0d486 100644 --- a/models/recording_status.go +++ b/models/recording_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RecordingStatus int const ( @@ -29,7 +26,7 @@ func ParseRecordingStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_RECORDINGSTATUS default: - return 0, errors.New("Unknown RecordingStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/recurrence_pattern_type.go b/models/recurrence_pattern_type.go index e0e1b77fc1..274f619c60 100644 --- a/models/recurrence_pattern_type.go +++ b/models/recurrence_pattern_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RecurrencePatternType int const ( @@ -32,7 +29,7 @@ func ParseRecurrencePatternType(v string) (any, error) { case "relativeYearly": result = RELATIVEYEARLY_RECURRENCEPATTERNTYPE default: - return 0, errors.New("Unknown RecurrencePatternType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/recurrence_range_type.go b/models/recurrence_range_type.go index 32d282866e..53379dfd3c 100644 --- a/models/recurrence_range_type.go +++ b/models/recurrence_range_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RecurrenceRangeType int const ( @@ -23,7 +20,7 @@ func ParseRecurrenceRangeType(v string) (any, error) { case "numbered": result = NUMBERED_RECURRENCERANGETYPE default: - return 0, errors.New("Unknown RecurrenceRangeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/registry_hive.go b/models/registry_hive.go index a5653e64b0..2baeabf832 100644 --- a/models/registry_hive.go +++ b/models/registry_hive.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RegistryHive int const ( @@ -41,7 +38,7 @@ func ParseRegistryHive(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_REGISTRYHIVE default: - return 0, errors.New("Unknown RegistryHive value: " + v) + return nil, nil } return &result, nil } diff --git a/models/registry_operation.go b/models/registry_operation.go index cdb0d04971..1b98ee05fe 100644 --- a/models/registry_operation.go +++ b/models/registry_operation.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RegistryOperation int const ( @@ -29,7 +26,7 @@ func ParseRegistryOperation(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_REGISTRYOPERATION default: - return 0, errors.New("Unknown RegistryOperation value: " + v) + return nil, nil } return &result, nil } diff --git a/models/registry_value_type.go b/models/registry_value_type.go index a7e1e52f7e..d95f43901e 100644 --- a/models/registry_value_type.go +++ b/models/registry_value_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RegistryValueType int const ( @@ -53,7 +50,7 @@ func ParseRegistryValueType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_REGISTRYVALUETYPE default: - return 0, errors.New("Unknown RegistryValueType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/reject_reason.go b/models/reject_reason.go index a6cf9be455..5722956407 100644 --- a/models/reject_reason.go +++ b/models/reject_reason.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RejectReason int const ( @@ -26,7 +23,7 @@ func ParseRejectReason(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_REJECTREASON default: - return 0, errors.New("Unknown RejectReason value: " + v) + return nil, nil } return &result, nil } diff --git a/models/remind_before_time_in_minutes_type.go b/models/remind_before_time_in_minutes_type.go index d9ae0a9d55..ca6358008f 100644 --- a/models/remind_before_time_in_minutes_type.go +++ b/models/remind_before_time_in_minutes_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RemindBeforeTimeInMinutesType int const ( @@ -20,7 +17,7 @@ func ParseRemindBeforeTimeInMinutesType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_REMINDBEFORETIMEINMINUTESTYPE default: - return 0, errors.New("Unknown RemindBeforeTimeInMinutesType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/remote_assistance_onboarding_status.go b/models/remote_assistance_onboarding_status.go index 422a516e4c..ce61b6432f 100644 --- a/models/remote_assistance_onboarding_status.go +++ b/models/remote_assistance_onboarding_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // The current TeamViewer connector status type RemoteAssistanceOnboardingStatus int @@ -27,7 +24,7 @@ func ParseRemoteAssistanceOnboardingStatus(v string) (any, error) { case "onboarded": result = ONBOARDED_REMOTEASSISTANCEONBOARDINGSTATUS default: - return 0, errors.New("Unknown RemoteAssistanceOnboardingStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/required_password_type.go b/models/required_password_type.go index cc5a70bc38..0149cb1176 100644 --- a/models/required_password_type.go +++ b/models/required_password_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values of required passwords. type RequiredPasswordType int @@ -27,7 +24,7 @@ func ParseRequiredPasswordType(v string) (any, error) { case "numeric": result = NUMERIC_REQUIREDPASSWORDTYPE default: - return 0, errors.New("Unknown RequiredPasswordType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/response_type.go b/models/response_type.go index 4849f96fc5..4331039daa 100644 --- a/models/response_type.go +++ b/models/response_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ResponseType int const ( @@ -32,7 +29,7 @@ func ParseResponseType(v string) (any, error) { case "notResponded": result = NOTRESPONDED_RESPONSETYPE default: - return 0, errors.New("Unknown ResponseType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/risk_detail.go b/models/risk_detail.go index 8d81fd9163..429f6023e7 100644 --- a/models/risk_detail.go +++ b/models/risk_detail.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RiskDetail int const ( @@ -68,7 +65,7 @@ func ParseRiskDetail(v string) (any, error) { case "adminConfirmedAccountSafe": result = ADMINCONFIRMEDACCOUNTSAFE_RISKDETAIL default: - return 0, errors.New("Unknown RiskDetail value: " + v) + return nil, nil } return &result, nil } diff --git a/models/risk_detection_timing_type.go b/models/risk_detection_timing_type.go index 4f92e60df7..0607647c88 100644 --- a/models/risk_detection_timing_type.go +++ b/models/risk_detection_timing_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RiskDetectionTimingType int const ( @@ -29,7 +26,7 @@ func ParseRiskDetectionTimingType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_RISKDETECTIONTIMINGTYPE default: - return 0, errors.New("Unknown RiskDetectionTimingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/risk_event_type.go b/models/risk_event_type.go index c9d7e72857..8c6a35f035 100644 --- a/models/risk_event_type.go +++ b/models/risk_event_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RiskEventType int const ( @@ -59,7 +56,7 @@ func ParseRiskEventType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_RISKEVENTTYPE default: - return 0, errors.New("Unknown RiskEventType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/risk_level.go b/models/risk_level.go index 4061f97fb8..6123d4a83d 100644 --- a/models/risk_level.go +++ b/models/risk_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RiskLevel int const ( @@ -32,7 +29,7 @@ func ParseRiskLevel(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_RISKLEVEL default: - return 0, errors.New("Unknown RiskLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/risk_state.go b/models/risk_state.go index 9fd3821509..958ec73895 100644 --- a/models/risk_state.go +++ b/models/risk_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RiskState int const ( @@ -35,7 +32,7 @@ func ParseRiskState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_RISKSTATE default: - return 0, errors.New("Unknown RiskState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/routing_mode.go b/models/routing_mode.go index 892e7871f6..7855335055 100644 --- a/models/routing_mode.go +++ b/models/routing_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RoutingMode int const ( @@ -23,7 +20,7 @@ func ParseRoutingMode(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ROUTINGMODE default: - return 0, errors.New("Unknown RoutingMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/routing_type.go b/models/routing_type.go index 64550c76ab..a26216de81 100644 --- a/models/routing_type.go +++ b/models/routing_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type RoutingType int const ( @@ -26,7 +23,7 @@ func ParseRoutingType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ROUTINGTYPE default: - return 0, errors.New("Unknown RoutingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/run_as_account_type.go b/models/run_as_account_type.go index 78c78af916..ea370eaa46 100644 --- a/models/run_as_account_type.go +++ b/models/run_as_account_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Indicates the type of execution context the app runs in. type RunAsAccountType int @@ -23,7 +20,7 @@ func ParseRunAsAccountType(v string) (any, error) { case "user": result = USER_RUNASACCOUNTTYPE default: - return 0, errors.New("Unknown RunAsAccountType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/safe_search_filter_type.go b/models/safe_search_filter_type.go index 3fe1246932..47b3c038c5 100644 --- a/models/safe_search_filter_type.go +++ b/models/safe_search_filter_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Specifies what level of safe search (filtering adult content) is required type SafeSearchFilterType int @@ -27,7 +24,7 @@ func ParseSafeSearchFilterType(v string) (any, error) { case "moderate": result = MODERATE_SAFESEARCHFILTERTYPE default: - return 0, errors.New("Unknown SafeSearchFilterType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/schedule_change_request_actor.go b/models/schedule_change_request_actor.go index a303b33c2a..11353f7f32 100644 --- a/models/schedule_change_request_actor.go +++ b/models/schedule_change_request_actor.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ScheduleChangeRequestActor int const ( @@ -29,7 +26,7 @@ func ParseScheduleChangeRequestActor(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SCHEDULECHANGEREQUESTACTOR default: - return 0, errors.New("Unknown ScheduleChangeRequestActor value: " + v) + return nil, nil } return &result, nil } diff --git a/models/schedule_change_state.go b/models/schedule_change_state.go index dce388cf66..4f2b8e354a 100644 --- a/models/schedule_change_state.go +++ b/models/schedule_change_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ScheduleChangeState int const ( @@ -26,7 +23,7 @@ func ParseScheduleChangeState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SCHEDULECHANGESTATE default: - return 0, errors.New("Unknown ScheduleChangeState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/schedule_entity_theme.go b/models/schedule_entity_theme.go index bd3e1bd967..7b63dbbbed 100644 --- a/models/schedule_entity_theme.go +++ b/models/schedule_entity_theme.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ScheduleEntityTheme int const ( @@ -53,7 +50,7 @@ func ParseScheduleEntityTheme(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SCHEDULEENTITYTHEME default: - return 0, errors.New("Unknown ScheduleEntityTheme value: " + v) + return nil, nil } return &result, nil } diff --git a/models/schedule_request_actions.go b/models/schedule_request_actions.go index 068fc9772a..903ec1f4b5 100644 --- a/models/schedule_request_actions.go +++ b/models/schedule_request_actions.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ScheduleRequestActions int const ( @@ -44,7 +41,7 @@ func ParseScheduleRequestActions(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SCHEDULEREQUESTACTIONS default: - return 0, errors.New("Unknown ScheduleRequestActions value: " + v) + return nil, nil } return &result, nil } diff --git a/models/scope_operator_multi_valued_comparison_type.go b/models/scope_operator_multi_valued_comparison_type.go index 63f579975c..afdcc210a6 100644 --- a/models/scope_operator_multi_valued_comparison_type.go +++ b/models/scope_operator_multi_valued_comparison_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ScopeOperatorMultiValuedComparisonType int const ( @@ -20,7 +17,7 @@ func ParseScopeOperatorMultiValuedComparisonType(v string) (any, error) { case "Any": result = ANY_SCOPEOPERATORMULTIVALUEDCOMPARISONTYPE default: - return 0, errors.New("Unknown ScopeOperatorMultiValuedComparisonType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/scope_operator_type.go b/models/scope_operator_type.go index 6b86ff00f2..c5ce66e045 100644 --- a/models/scope_operator_type.go +++ b/models/scope_operator_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ScopeOperatorType int const ( @@ -20,7 +17,7 @@ func ParseScopeOperatorType(v string) (any, error) { case "Unary": result = UNARY_SCOPEOPERATORTYPE default: - return 0, errors.New("Unknown ScopeOperatorType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/screen_sharing_role.go b/models/screen_sharing_role.go index db203bb560..68102b986c 100644 --- a/models/screen_sharing_role.go +++ b/models/screen_sharing_role.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ScreenSharingRole int const ( @@ -20,7 +17,7 @@ func ParseScreenSharingRole(v string) (any, error) { case "sharer": result = SHARER_SCREENSHARINGROLE default: - return 0, errors.New("Unknown ScreenSharingRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/search/answer_state.go b/models/search/answer_state.go index 832f9c3dad..b86e1057bc 100644 --- a/models/search/answer_state.go +++ b/models/search/answer_state.go @@ -1,7 +1,4 @@ package search -import ( - "errors" -) type AnswerState int const ( @@ -26,7 +23,7 @@ func ParseAnswerState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ANSWERSTATE default: - return 0, errors.New("Unknown AnswerState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/search_alteration_type.go b/models/search_alteration_type.go index d47ad26fb1..7d58ed35cd 100644 --- a/models/search_alteration_type.go +++ b/models/search_alteration_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SearchAlterationType int const ( @@ -23,7 +20,7 @@ func ParseSearchAlterationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SEARCHALTERATIONTYPE default: - return 0, errors.New("Unknown SearchAlterationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/search_content.go b/models/search_content.go index 32ce7ae228..a8588e0490 100644 --- a/models/search_content.go +++ b/models/search_content.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -35,7 +34,7 @@ func ParseSearchContent(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_SEARCHCONTENT default: - return 0, errors.New("Unknown SearchContent value: " + v) + return nil, nil } } return &result, nil diff --git a/models/section_emphasis_type.go b/models/section_emphasis_type.go index 3e8316c198..860f299dc8 100644 --- a/models/section_emphasis_type.go +++ b/models/section_emphasis_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SectionEmphasisType int const ( @@ -29,7 +26,7 @@ func ParseSectionEmphasisType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SECTIONEMPHASISTYPE default: - return 0, errors.New("Unknown SectionEmphasisType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/action_after_retention_period.go b/models/security/action_after_retention_period.go index 08c1ddcd86..a80ab8128d 100644 --- a/models/security/action_after_retention_period.go +++ b/models/security/action_after_retention_period.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type ActionAfterRetentionPeriod int const ( @@ -29,7 +26,7 @@ func ParseActionAfterRetentionPeriod(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ACTIONAFTERRETENTIONPERIOD default: - return 0, errors.New("Unknown ActionAfterRetentionPeriod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/additional_data_options.go b/models/security/additional_data_options.go index dcd01d2831..204c066b1d 100644 --- a/models/security/additional_data_options.go +++ b/models/security/additional_data_options.go @@ -1,6 +1,5 @@ package security import ( - "errors" "math" "strings" ) @@ -35,7 +34,7 @@ func ParseAdditionalDataOptions(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_ADDITIONALDATAOPTIONS default: - return 0, errors.New("Unknown AdditionalDataOptions value: " + v) + return nil, nil } } return &result, nil diff --git a/models/security/alert_classification.go b/models/security/alert_classification.go index b8bb6f5e3b..150f7d13c5 100644 --- a/models/security/alert_classification.go +++ b/models/security/alert_classification.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type AlertClassification int const ( @@ -29,7 +26,7 @@ func ParseAlertClassification(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALERTCLASSIFICATION default: - return 0, errors.New("Unknown AlertClassification value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/alert_determination.go b/models/security/alert_determination.go index d947fcf398..7778acb5bb 100644 --- a/models/security/alert_determination.go +++ b/models/security/alert_determination.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type AlertDetermination int const ( @@ -62,7 +59,7 @@ func ParseAlertDetermination(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALERTDETERMINATION default: - return 0, errors.New("Unknown AlertDetermination value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/alert_severity.go b/models/security/alert_severity.go index 994a0a97d2..f6f5520db5 100644 --- a/models/security/alert_severity.go +++ b/models/security/alert_severity.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type AlertSeverity int const ( @@ -32,7 +29,7 @@ func ParseAlertSeverity(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALERTSEVERITY default: - return 0, errors.New("Unknown AlertSeverity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/alert_status.go b/models/security/alert_status.go index 93a570b22d..bb91bf5777 100644 --- a/models/security/alert_status.go +++ b/models/security/alert_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type AlertStatus int const ( @@ -29,7 +26,7 @@ func ParseAlertStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALERTSTATUS default: - return 0, errors.New("Unknown AlertStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/behavior_during_retention_period.go b/models/security/behavior_during_retention_period.go index 1e9cd6ab83..f90f461168 100644 --- a/models/security/behavior_during_retention_period.go +++ b/models/security/behavior_during_retention_period.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type BehaviorDuringRetentionPeriod int const ( @@ -29,7 +26,7 @@ func ParseBehaviorDuringRetentionPeriod(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_BEHAVIORDURINGRETENTIONPERIOD default: - return 0, errors.New("Unknown BehaviorDuringRetentionPeriod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/case_action.go b/models/security/case_action.go index 48b1fd5a4c..15bd9a493c 100644 --- a/models/security/case_action.go +++ b/models/security/case_action.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type CaseAction int const ( @@ -41,7 +38,7 @@ func ParseCaseAction(v string) (any, error) { case "purgeData": result = PURGEDATA_CASEACTION default: - return 0, errors.New("Unknown CaseAction value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/case_operation_status.go b/models/security/case_operation_status.go index 97989b1db4..8909f90512 100644 --- a/models/security/case_operation_status.go +++ b/models/security/case_operation_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type CaseOperationStatus int const ( @@ -35,7 +32,7 @@ func ParseCaseOperationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CASEOPERATIONSTATUS default: - return 0, errors.New("Unknown CaseOperationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/case_status.go b/models/security/case_status.go index 3791d703ee..fe06c5f390 100644 --- a/models/security/case_status.go +++ b/models/security/case_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type CaseStatus int const ( @@ -35,7 +32,7 @@ func ParseCaseStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CASESTATUS default: - return 0, errors.New("Unknown CaseStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/child_selectability.go b/models/security/child_selectability.go index 6a36bac854..1aa8bfc926 100644 --- a/models/security/child_selectability.go +++ b/models/security/child_selectability.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type ChildSelectability int const ( @@ -23,7 +20,7 @@ func ParseChildSelectability(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CHILDSELECTABILITY default: - return 0, errors.New("Unknown ChildSelectability value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/container_port_protocol.go b/models/security/container_port_protocol.go index 62bc97be9f..5b9a214d72 100644 --- a/models/security/container_port_protocol.go +++ b/models/security/container_port_protocol.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type ContainerPortProtocol int const ( @@ -26,7 +23,7 @@ func ParseContainerPortProtocol(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONTAINERPORTPROTOCOL default: - return 0, errors.New("Unknown ContainerPortProtocol value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/content_format.go b/models/security/content_format.go index 3861ecd669..a8cd5b5079 100644 --- a/models/security/content_format.go +++ b/models/security/content_format.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type ContentFormat int const ( @@ -26,7 +23,7 @@ func ParseContentFormat(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONTENTFORMAT default: - return 0, errors.New("Unknown ContentFormat value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/data_source_container_status.go b/models/security/data_source_container_status.go index a3c2521d34..a0022e6709 100644 --- a/models/security/data_source_container_status.go +++ b/models/security/data_source_container_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type DataSourceContainerStatus int const ( @@ -23,7 +20,7 @@ func ParseDataSourceContainerStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DATASOURCECONTAINERSTATUS default: - return 0, errors.New("Unknown DataSourceContainerStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/data_source_hold_status.go b/models/security/data_source_hold_status.go index 2261ca6a0a..1f92106ac7 100644 --- a/models/security/data_source_hold_status.go +++ b/models/security/data_source_hold_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type DataSourceHoldStatus int const ( @@ -32,7 +29,7 @@ func ParseDataSourceHoldStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DATASOURCEHOLDSTATUS default: - return 0, errors.New("Unknown DataSourceHoldStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/data_source_scopes.go b/models/security/data_source_scopes.go index 6d7fc993f4..2a90c2ec4d 100644 --- a/models/security/data_source_scopes.go +++ b/models/security/data_source_scopes.go @@ -1,6 +1,5 @@ package security import ( - "errors" "math" "strings" ) @@ -44,7 +43,7 @@ func ParseDataSourceScopes(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_DATASOURCESCOPES default: - return 0, errors.New("Unknown DataSourceScopes value: " + v) + return nil, nil } } return &result, nil diff --git a/models/security/default_record_behavior.go b/models/security/default_record_behavior.go index 7a642db76c..1e96738956 100644 --- a/models/security/default_record_behavior.go +++ b/models/security/default_record_behavior.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type DefaultRecordBehavior int const ( @@ -23,7 +20,7 @@ func ParseDefaultRecordBehavior(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DEFAULTRECORDBEHAVIOR default: - return 0, errors.New("Unknown DefaultRecordBehavior value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/defender_av_status.go b/models/security/defender_av_status.go index 877eab6a35..6f05645c36 100644 --- a/models/security/defender_av_status.go +++ b/models/security/defender_av_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type DefenderAvStatus int const ( @@ -35,7 +32,7 @@ func ParseDefenderAvStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DEFENDERAVSTATUS default: - return 0, errors.New("Unknown DefenderAvStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/detection_source.go b/models/security/detection_source.go index 37f0666aad..f9b3edd6e9 100644 --- a/models/security/detection_source.go +++ b/models/security/detection_source.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type DetectionSource int const ( @@ -122,7 +119,7 @@ func ParseDetectionSource(v string) (any, error) { case "microsoftSentinel": result = MICROSOFTSENTINEL_DETECTIONSOURCE default: - return 0, errors.New("Unknown DetectionSource value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/detection_status.go b/models/security/detection_status.go index 2e1000e1ee..5ba8648491 100644 --- a/models/security/detection_status.go +++ b/models/security/detection_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type DetectionStatus int const ( @@ -26,7 +23,7 @@ func ParseDetectionStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DETECTIONSTATUS default: - return 0, errors.New("Unknown DetectionStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/device_health_status.go b/models/security/device_health_status.go index 8ef6a567a2..cce48001d7 100644 --- a/models/security/device_health_status.go +++ b/models/security/device_health_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type DeviceHealthStatus int const ( @@ -35,7 +32,7 @@ func ParseDeviceHealthStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DEVICEHEALTHSTATUS default: - return 0, errors.New("Unknown DeviceHealthStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/device_risk_score.go b/models/security/device_risk_score.go index 409cc30f85..7c0459276a 100644 --- a/models/security/device_risk_score.go +++ b/models/security/device_risk_score.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type DeviceRiskScore int const ( @@ -32,7 +29,7 @@ func ParseDeviceRiskScore(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DEVICERISKSCORE default: - return 0, errors.New("Unknown DeviceRiskScore value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/event_propagation_status.go b/models/security/event_propagation_status.go index 06f10ed709..d50a680b30 100644 --- a/models/security/event_propagation_status.go +++ b/models/security/event_propagation_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type EventPropagationStatus int const ( @@ -29,7 +26,7 @@ func ParseEventPropagationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EVENTPROPAGATIONSTATUS default: - return 0, errors.New("Unknown EventPropagationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/event_status_type.go b/models/security/event_status_type.go index 34fadbb3ff..285e37b85a 100644 --- a/models/security/event_status_type.go +++ b/models/security/event_status_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type EventStatusType int const ( @@ -29,7 +26,7 @@ func ParseEventStatusType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EVENTSTATUSTYPE default: - return 0, errors.New("Unknown EventStatusType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/evidence_remediation_status.go b/models/security/evidence_remediation_status.go index ee49a99edd..73cfb5f1e9 100644 --- a/models/security/evidence_remediation_status.go +++ b/models/security/evidence_remediation_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type EvidenceRemediationStatus int const ( @@ -32,7 +29,7 @@ func ParseEvidenceRemediationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EVIDENCEREMEDIATIONSTATUS default: - return 0, errors.New("Unknown EvidenceRemediationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/evidence_role.go b/models/security/evidence_role.go index a5b46956f1..5469c3bb45 100644 --- a/models/security/evidence_role.go +++ b/models/security/evidence_role.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type EvidenceRole int const ( @@ -62,7 +59,7 @@ func ParseEvidenceRole(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EVIDENCEROLE default: - return 0, errors.New("Unknown EvidenceRole value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/evidence_verdict.go b/models/security/evidence_verdict.go index b728335469..f664a6fb5c 100644 --- a/models/security/evidence_verdict.go +++ b/models/security/evidence_verdict.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type EvidenceVerdict int const ( @@ -29,7 +26,7 @@ func ParseEvidenceVerdict(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EVIDENCEVERDICT default: - return 0, errors.New("Unknown EvidenceVerdict value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/export_file_structure.go b/models/security/export_file_structure.go index 8c4ded39c7..f1c98d4541 100644 --- a/models/security/export_file_structure.go +++ b/models/security/export_file_structure.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type ExportFileStructure int const ( @@ -26,7 +23,7 @@ func ParseExportFileStructure(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_EXPORTFILESTRUCTURE default: - return 0, errors.New("Unknown ExportFileStructure value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/export_options.go b/models/security/export_options.go index 358613244d..6e5ca95fb2 100644 --- a/models/security/export_options.go +++ b/models/security/export_options.go @@ -1,6 +1,5 @@ package security import ( - "errors" "math" "strings" ) @@ -41,7 +40,7 @@ func ParseExportOptions(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_EXPORTOPTIONS default: - return 0, errors.New("Unknown ExportOptions value: " + v) + return nil, nil } } return &result, nil diff --git a/models/security/file_hash_algorithm.go b/models/security/file_hash_algorithm.go index 8989bb8866..d24fea4313 100644 --- a/models/security/file_hash_algorithm.go +++ b/models/security/file_hash_algorithm.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type FileHashAlgorithm int const ( @@ -32,7 +29,7 @@ func ParseFileHashAlgorithm(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_FILEHASHALGORITHM default: - return 0, errors.New("Unknown FileHashAlgorithm value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/google_cloud_location_type.go b/models/security/google_cloud_location_type.go index a927ed09de..8917b32174 100644 --- a/models/security/google_cloud_location_type.go +++ b/models/security/google_cloud_location_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type GoogleCloudLocationType int const ( @@ -29,7 +26,7 @@ func ParseGoogleCloudLocationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_GOOGLECLOUDLOCATIONTYPE default: - return 0, errors.New("Unknown GoogleCloudLocationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/health_issue.go b/models/security/health_issue.go new file mode 100644 index 0000000000..17170cf0ba --- /dev/null +++ b/models/security/health_issue.go @@ -0,0 +1,555 @@ +package security + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type HealthIssue struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity +} +// NewHealthIssue instantiates a new HealthIssue and sets the default values. +func NewHealthIssue()(*HealthIssue) { + m := &HealthIssue{ + Entity: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewEntity(), + } + return m +} +// CreateHealthIssueFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHealthIssueFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHealthIssue(), nil +} +// GetAdditionalInformation gets the additionalInformation property value. The additionalInformation property +// returns a []string when successful +func (m *HealthIssue) GetAdditionalInformation()([]string) { + val, err := m.GetBackingStore().Get("additionalInformation") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *HealthIssue) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDescription gets the description property value. The description property +// returns a *string when successful +func (m *HealthIssue) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName property +// returns a *string when successful +func (m *HealthIssue) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDomainNames gets the domainNames property value. The domainNames property +// returns a []string when successful +func (m *HealthIssue) GetDomainNames()([]string) { + val, err := m.GetBackingStore().Get("domainNames") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HealthIssue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["additionalInformation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetAdditionalInformation(res) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["domainNames"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetDomainNames(res) + } + return nil + } + res["healthIssueType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseHealthIssueType) + if err != nil { + return err + } + if val != nil { + m.SetHealthIssueType(val.(*HealthIssueType)) + } + return nil + } + res["issueTypeId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIssueTypeId(val) + } + return nil + } + res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedDateTime(val) + } + return nil + } + res["recommendations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetRecommendations(res) + } + return nil + } + res["recommendedActionCommands"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetRecommendedActionCommands(res) + } + return nil + } + res["sensorDNSNames"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetSensorDNSNames(res) + } + return nil + } + res["severity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseHealthIssueSeverity) + if err != nil { + return err + } + if val != nil { + m.SetSeverity(val.(*HealthIssueSeverity)) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseHealthIssueStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*HealthIssueStatus)) + } + return nil + } + return res +} +// GetHealthIssueType gets the healthIssueType property value. The healthIssueType property +// returns a *HealthIssueType when successful +func (m *HealthIssue) GetHealthIssueType()(*HealthIssueType) { + val, err := m.GetBackingStore().Get("healthIssueType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*HealthIssueType) + } + return nil +} +// GetIssueTypeId gets the issueTypeId property value. The issueTypeId property +// returns a *string when successful +func (m *HealthIssue) GetIssueTypeId()(*string) { + val, err := m.GetBackingStore().Get("issueTypeId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// returns a *Time when successful +func (m *HealthIssue) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastModifiedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetRecommendations gets the recommendations property value. The recommendations property +// returns a []string when successful +func (m *HealthIssue) GetRecommendations()([]string) { + val, err := m.GetBackingStore().Get("recommendations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetRecommendedActionCommands gets the recommendedActionCommands property value. The recommendedActionCommands property +// returns a []string when successful +func (m *HealthIssue) GetRecommendedActionCommands()([]string) { + val, err := m.GetBackingStore().Get("recommendedActionCommands") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetSensorDNSNames gets the sensorDNSNames property value. The sensorDNSNames property +// returns a []string when successful +func (m *HealthIssue) GetSensorDNSNames()([]string) { + val, err := m.GetBackingStore().Get("sensorDNSNames") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetSeverity gets the severity property value. The severity property +// returns a *HealthIssueSeverity when successful +func (m *HealthIssue) GetSeverity()(*HealthIssueSeverity) { + val, err := m.GetBackingStore().Get("severity") + if err != nil { + panic(err) + } + if val != nil { + return val.(*HealthIssueSeverity) + } + return nil +} +// GetStatus gets the status property value. The status property +// returns a *HealthIssueStatus when successful +func (m *HealthIssue) GetStatus()(*HealthIssueStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*HealthIssueStatus) + } + return nil +} +// Serialize serializes information the current object +func (m *HealthIssue) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetAdditionalInformation() != nil { + err = writer.WriteCollectionOfStringValues("additionalInformation", m.GetAdditionalInformation()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + if m.GetDomainNames() != nil { + err = writer.WriteCollectionOfStringValues("domainNames", m.GetDomainNames()) + if err != nil { + return err + } + } + if m.GetHealthIssueType() != nil { + cast := (*m.GetHealthIssueType()).String() + err = writer.WriteStringValue("healthIssueType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("issueTypeId", m.GetIssueTypeId()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) + if err != nil { + return err + } + } + if m.GetRecommendations() != nil { + err = writer.WriteCollectionOfStringValues("recommendations", m.GetRecommendations()) + if err != nil { + return err + } + } + if m.GetRecommendedActionCommands() != nil { + err = writer.WriteCollectionOfStringValues("recommendedActionCommands", m.GetRecommendedActionCommands()) + if err != nil { + return err + } + } + if m.GetSensorDNSNames() != nil { + err = writer.WriteCollectionOfStringValues("sensorDNSNames", m.GetSensorDNSNames()) + if err != nil { + return err + } + } + if m.GetSeverity() != nil { + cast := (*m.GetSeverity()).String() + err = writer.WriteStringValue("severity", &cast) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err = writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalInformation sets the additionalInformation property value. The additionalInformation property +func (m *HealthIssue) SetAdditionalInformation(value []string)() { + err := m.GetBackingStore().Set("additionalInformation", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *HealthIssue) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. The description property +func (m *HealthIssue) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *HealthIssue) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetDomainNames sets the domainNames property value. The domainNames property +func (m *HealthIssue) SetDomainNames(value []string)() { + err := m.GetBackingStore().Set("domainNames", value) + if err != nil { + panic(err) + } +} +// SetHealthIssueType sets the healthIssueType property value. The healthIssueType property +func (m *HealthIssue) SetHealthIssueType(value *HealthIssueType)() { + err := m.GetBackingStore().Set("healthIssueType", value) + if err != nil { + panic(err) + } +} +// SetIssueTypeId sets the issueTypeId property value. The issueTypeId property +func (m *HealthIssue) SetIssueTypeId(value *string)() { + err := m.GetBackingStore().Set("issueTypeId", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +func (m *HealthIssue) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastModifiedDateTime", value) + if err != nil { + panic(err) + } +} +// SetRecommendations sets the recommendations property value. The recommendations property +func (m *HealthIssue) SetRecommendations(value []string)() { + err := m.GetBackingStore().Set("recommendations", value) + if err != nil { + panic(err) + } +} +// SetRecommendedActionCommands sets the recommendedActionCommands property value. The recommendedActionCommands property +func (m *HealthIssue) SetRecommendedActionCommands(value []string)() { + err := m.GetBackingStore().Set("recommendedActionCommands", value) + if err != nil { + panic(err) + } +} +// SetSensorDNSNames sets the sensorDNSNames property value. The sensorDNSNames property +func (m *HealthIssue) SetSensorDNSNames(value []string)() { + err := m.GetBackingStore().Set("sensorDNSNames", value) + if err != nil { + panic(err) + } +} +// SetSeverity sets the severity property value. The severity property +func (m *HealthIssue) SetSeverity(value *HealthIssueSeverity)() { + err := m.GetBackingStore().Set("severity", value) + if err != nil { + panic(err) + } +} +// SetStatus sets the status property value. The status property +func (m *HealthIssue) SetStatus(value *HealthIssueStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +type HealthIssueable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdditionalInformation()([]string) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDescription()(*string) + GetDisplayName()(*string) + GetDomainNames()([]string) + GetHealthIssueType()(*HealthIssueType) + GetIssueTypeId()(*string) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetRecommendations()([]string) + GetRecommendedActionCommands()([]string) + GetSensorDNSNames()([]string) + GetSeverity()(*HealthIssueSeverity) + GetStatus()(*HealthIssueStatus) + SetAdditionalInformation(value []string)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDescription(value *string)() + SetDisplayName(value *string)() + SetDomainNames(value []string)() + SetHealthIssueType(value *HealthIssueType)() + SetIssueTypeId(value *string)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetRecommendations(value []string)() + SetRecommendedActionCommands(value []string)() + SetSensorDNSNames(value []string)() + SetSeverity(value *HealthIssueSeverity)() + SetStatus(value *HealthIssueStatus)() +} diff --git a/models/security/health_issue_collection_response.go b/models/security/health_issue_collection_response.go new file mode 100644 index 0000000000..6b412b9f46 --- /dev/null +++ b/models/security/health_issue_collection_response.go @@ -0,0 +1,89 @@ +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type HealthIssueCollectionResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewHealthIssueCollectionResponse instantiates a new HealthIssueCollectionResponse and sets the default values. +func NewHealthIssueCollectionResponse()(*HealthIssueCollectionResponse) { + m := &HealthIssueCollectionResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateHealthIssueCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHealthIssueCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHealthIssueCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HealthIssueCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHealthIssueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HealthIssueable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HealthIssueable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []HealthIssueable when successful +func (m *HealthIssueCollectionResponse) GetValue()([]HealthIssueable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HealthIssueable) + } + return nil +} +// Serialize serializes information the current object +func (m *HealthIssueCollectionResponse) 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 *HealthIssueCollectionResponse) SetValue(value []HealthIssueable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type HealthIssueCollectionResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]HealthIssueable) + SetValue(value []HealthIssueable)() +} diff --git a/models/security/health_issue_severity.go b/models/security/health_issue_severity.go new file mode 100644 index 0000000000..39137e5d11 --- /dev/null +++ b/models/security/health_issue_severity.go @@ -0,0 +1,39 @@ +package security +type HealthIssueSeverity int + +const ( + LOW_HEALTHISSUESEVERITY HealthIssueSeverity = iota + MEDIUM_HEALTHISSUESEVERITY + HIGH_HEALTHISSUESEVERITY + UNKNOWNFUTUREVALUE_HEALTHISSUESEVERITY +) + +func (i HealthIssueSeverity) String() string { + return []string{"low", "medium", "high", "unknownFutureValue"}[i] +} +func ParseHealthIssueSeverity(v string) (any, error) { + result := LOW_HEALTHISSUESEVERITY + switch v { + case "low": + result = LOW_HEALTHISSUESEVERITY + case "medium": + result = MEDIUM_HEALTHISSUESEVERITY + case "high": + result = HIGH_HEALTHISSUESEVERITY + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_HEALTHISSUESEVERITY + default: + return nil, nil + } + return &result, nil +} +func SerializeHealthIssueSeverity(values []HealthIssueSeverity) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i HealthIssueSeverity) isMultiValue() bool { + return false +} diff --git a/models/security/health_issue_status.go b/models/security/health_issue_status.go new file mode 100644 index 0000000000..9b9c8c369e --- /dev/null +++ b/models/security/health_issue_status.go @@ -0,0 +1,39 @@ +package security +type HealthIssueStatus int + +const ( + OPEN_HEALTHISSUESTATUS HealthIssueStatus = iota + CLOSED_HEALTHISSUESTATUS + SUPPRESSED_HEALTHISSUESTATUS + UNKNOWNFUTUREVALUE_HEALTHISSUESTATUS +) + +func (i HealthIssueStatus) String() string { + return []string{"open", "closed", "suppressed", "unknownFutureValue"}[i] +} +func ParseHealthIssueStatus(v string) (any, error) { + result := OPEN_HEALTHISSUESTATUS + switch v { + case "open": + result = OPEN_HEALTHISSUESTATUS + case "closed": + result = CLOSED_HEALTHISSUESTATUS + case "suppressed": + result = SUPPRESSED_HEALTHISSUESTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_HEALTHISSUESTATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeHealthIssueStatus(values []HealthIssueStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i HealthIssueStatus) isMultiValue() bool { + return false +} diff --git a/models/security/health_issue_type.go b/models/security/health_issue_type.go new file mode 100644 index 0000000000..e55badfbc0 --- /dev/null +++ b/models/security/health_issue_type.go @@ -0,0 +1,36 @@ +package security +type HealthIssueType int + +const ( + SENSOR_HEALTHISSUETYPE HealthIssueType = iota + GLOBAL_HEALTHISSUETYPE + UNKNOWNFUTUREVALUE_HEALTHISSUETYPE +) + +func (i HealthIssueType) String() string { + return []string{"sensor", "global", "unknownFutureValue"}[i] +} +func ParseHealthIssueType(v string) (any, error) { + result := SENSOR_HEALTHISSUETYPE + switch v { + case "sensor": + result = SENSOR_HEALTHISSUETYPE + case "global": + result = GLOBAL_HEALTHISSUETYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_HEALTHISSUETYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeHealthIssueType(values []HealthIssueType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i HealthIssueType) isMultiValue() bool { + return false +} diff --git a/models/security/host_port_protocol.go b/models/security/host_port_protocol.go index 1bd9066b29..77c5eece34 100644 --- a/models/security/host_port_protocol.go +++ b/models/security/host_port_protocol.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type HostPortProtocol int const ( @@ -23,7 +20,7 @@ func ParseHostPortProtocol(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_HOSTPORTPROTOCOL default: - return 0, errors.New("Unknown HostPortProtocol value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/host_port_status.go b/models/security/host_port_status.go index 1a2550e29c..77a57e2854 100644 --- a/models/security/host_port_status.go +++ b/models/security/host_port_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type HostPortStatus int const ( @@ -26,7 +23,7 @@ func ParseHostPortStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_HOSTPORTSTATUS default: - return 0, errors.New("Unknown HostPortStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/host_reputation_classification.go b/models/security/host_reputation_classification.go index c2c442d139..7fbe86e802 100644 --- a/models/security/host_reputation_classification.go +++ b/models/security/host_reputation_classification.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type HostReputationClassification int const ( @@ -29,7 +26,7 @@ func ParseHostReputationClassification(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_HOSTREPUTATIONCLASSIFICATION default: - return 0, errors.New("Unknown HostReputationClassification value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/host_reputation_rule_severity.go b/models/security/host_reputation_rule_severity.go index 7cbe534ace..36c3f18ca0 100644 --- a/models/security/host_reputation_rule_severity.go +++ b/models/security/host_reputation_rule_severity.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type HostReputationRuleSeverity int const ( @@ -29,7 +26,7 @@ func ParseHostReputationRuleSeverity(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_HOSTREPUTATIONRULESEVERITY default: - return 0, errors.New("Unknown HostReputationRuleSeverity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/identity_container.go b/models/security/identity_container.go new file mode 100644 index 0000000000..eecbe67094 --- /dev/null +++ b/models/security/identity_container.go @@ -0,0 +1,89 @@ +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type IdentityContainer struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entity +} +// NewIdentityContainer instantiates a new IdentityContainer and sets the default values. +func NewIdentityContainer()(*IdentityContainer) { + m := &IdentityContainer{ + Entity: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewEntity(), + } + return m +} +// CreateIdentityContainerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIdentityContainerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIdentityContainer(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IdentityContainer) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["healthIssues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHealthIssueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HealthIssueable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HealthIssueable) + } + } + m.SetHealthIssues(res) + } + return nil + } + return res +} +// GetHealthIssues gets the healthIssues property value. The healthIssues property +// returns a []HealthIssueable when successful +func (m *IdentityContainer) GetHealthIssues()([]HealthIssueable) { + val, err := m.GetBackingStore().Get("healthIssues") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HealthIssueable) + } + return nil +} +// Serialize serializes information the current object +func (m *IdentityContainer) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetHealthIssues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHealthIssues())) + for i, v := range m.GetHealthIssues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("healthIssues", cast) + if err != nil { + return err + } + } + return nil +} +// SetHealthIssues sets the healthIssues property value. The healthIssues property +func (m *IdentityContainer) SetHealthIssues(value []HealthIssueable)() { + err := m.GetBackingStore().Set("healthIssues", value) + if err != nil { + panic(err) + } +} +type IdentityContainerable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetHealthIssues()([]HealthIssueable) + SetHealthIssues(value []HealthIssueable)() +} diff --git a/models/security/incident_status.go b/models/security/incident_status.go index 06c23664bb..a2bc3e403a 100644 --- a/models/security/incident_status.go +++ b/models/security/incident_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type IncidentStatus int const ( @@ -32,7 +29,7 @@ func ParseIncidentStatus(v string) (any, error) { case "awaitingAction": result = AWAITINGACTION_INCIDENTSTATUS default: - return 0, errors.New("Unknown IncidentStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/indicator_source.go b/models/security/indicator_source.go index 5ab6efcf38..b4883a2ce0 100644 --- a/models/security/indicator_source.go +++ b/models/security/indicator_source.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type IndicatorSource int const ( @@ -26,7 +23,7 @@ func ParseIndicatorSource(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_INDICATORSOURCE default: - return 0, errors.New("Unknown IndicatorSource value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/intelligence_profile_kind.go b/models/security/intelligence_profile_kind.go index 7b9c9f16c2..20b8bb3f15 100644 --- a/models/security/intelligence_profile_kind.go +++ b/models/security/intelligence_profile_kind.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type IntelligenceProfileKind int const ( @@ -23,7 +20,7 @@ func ParseIntelligenceProfileKind(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_INTELLIGENCEPROFILEKIND default: - return 0, errors.New("Unknown IntelligenceProfileKind value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/io_t_device_importance_type.go b/models/security/io_t_device_importance_type.go index b3b7102a8d..8bed258ac6 100644 --- a/models/security/io_t_device_importance_type.go +++ b/models/security/io_t_device_importance_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type IoTDeviceImportanceType int const ( @@ -29,7 +26,7 @@ func ParseIoTDeviceImportanceType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_IOTDEVICEIMPORTANCETYPE default: - return 0, errors.New("Unknown IoTDeviceImportanceType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/kubernetes_platform.go b/models/security/kubernetes_platform.go index 12c20840ca..927ecb29a6 100644 --- a/models/security/kubernetes_platform.go +++ b/models/security/kubernetes_platform.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type KubernetesPlatform int const ( @@ -32,7 +29,7 @@ func ParseKubernetesPlatform(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_KUBERNETESPLATFORM default: - return 0, errors.New("Unknown KubernetesPlatform value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/kubernetes_service_type.go b/models/security/kubernetes_service_type.go index 5d90e4d4fc..61702567d7 100644 --- a/models/security/kubernetes_service_type.go +++ b/models/security/kubernetes_service_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type KubernetesServiceType int const ( @@ -32,7 +29,7 @@ func ParseKubernetesServiceType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_KUBERNETESSERVICETYPE default: - return 0, errors.New("Unknown KubernetesServiceType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/mailbox_configuration_type.go b/models/security/mailbox_configuration_type.go index 800469403e..4b15288063 100644 --- a/models/security/mailbox_configuration_type.go +++ b/models/security/mailbox_configuration_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type MailboxConfigurationType int const ( @@ -32,7 +29,7 @@ func ParseMailboxConfigurationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_MAILBOXCONFIGURATIONTYPE default: - return 0, errors.New("Unknown MailboxConfigurationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/onboarding_status.go b/models/security/onboarding_status.go index 2ce899f470..b33c948273 100644 --- a/models/security/onboarding_status.go +++ b/models/security/onboarding_status.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type OnboardingStatus int const ( @@ -29,7 +26,7 @@ func ParseOnboardingStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ONBOARDINGSTATUS default: - return 0, errors.New("Unknown OnboardingStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/protocol_type.go b/models/security/protocol_type.go index 893999c198..8c5b5a5576 100644 --- a/models/security/protocol_type.go +++ b/models/security/protocol_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type ProtocolType int const ( @@ -23,7 +20,7 @@ func ParseProtocolType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PROTOCOLTYPE default: - return 0, errors.New("Unknown ProtocolType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/purge_areas.go b/models/security/purge_areas.go index dc268b70e5..216ea1fe27 100644 --- a/models/security/purge_areas.go +++ b/models/security/purge_areas.go @@ -1,6 +1,5 @@ package security import ( - "errors" "math" "strings" ) @@ -35,7 +34,7 @@ func ParsePurgeAreas(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_PURGEAREAS default: - return 0, errors.New("Unknown PurgeAreas value: " + v) + return nil, nil } } return &result, nil diff --git a/models/security/purge_type.go b/models/security/purge_type.go index 66f9040c6a..dca2344c45 100644 --- a/models/security/purge_type.go +++ b/models/security/purge_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type PurgeType int const ( @@ -23,7 +20,7 @@ func ParsePurgeType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_PURGETYPE default: - return 0, errors.New("Unknown PurgeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/query_type.go b/models/security/query_type.go index efe5e97ff8..f1221ff9a6 100644 --- a/models/security/query_type.go +++ b/models/security/query_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type QueryType int const ( @@ -23,7 +20,7 @@ func ParseQueryType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_QUERYTYPE default: - return 0, errors.New("Unknown QueryType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/retention_trigger.go b/models/security/retention_trigger.go index 2414dd5740..adc2fbbe02 100644 --- a/models/security/retention_trigger.go +++ b/models/security/retention_trigger.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type RetentionTrigger int const ( @@ -29,7 +26,7 @@ func ParseRetentionTrigger(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_RETENTIONTRIGGER default: - return 0, errors.New("Unknown RetentionTrigger value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/service_principal_type.go b/models/security/service_principal_type.go index b37ce6079c..44e8cd7e04 100644 --- a/models/security/service_principal_type.go +++ b/models/security/service_principal_type.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type ServicePrincipalType int const ( @@ -29,7 +26,7 @@ func ParseServicePrincipalType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SERVICEPRINCIPALTYPE default: - return 0, errors.New("Unknown ServicePrincipalType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/service_source.go b/models/security/service_source.go index e8de3291a9..958ba7ea7d 100644 --- a/models/security/service_source.go +++ b/models/security/service_source.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type ServiceSource int const ( @@ -53,7 +50,7 @@ func ParseServiceSource(v string) (any, error) { case "microsoftInsiderRiskManagement": result = MICROSOFTINSIDERRISKMANAGEMENT_SERVICESOURCE default: - return 0, errors.New("Unknown ServiceSource value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/source_type.go b/models/security/source_type.go index 70d58b71da..1256925678 100644 --- a/models/security/source_type.go +++ b/models/security/source_type.go @@ -1,6 +1,5 @@ package security import ( - "errors" "math" "strings" ) @@ -35,7 +34,7 @@ func ParseSourceType(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_SOURCETYPE default: - return 0, errors.New("Unknown SourceType value: " + v) + return nil, nil } } return &result, nil diff --git a/models/security/vm_cloud_provider.go b/models/security/vm_cloud_provider.go index 301be5ce10..51b13a16f6 100644 --- a/models/security/vm_cloud_provider.go +++ b/models/security/vm_cloud_provider.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type VmCloudProvider int const ( @@ -23,7 +20,7 @@ func ParseVmCloudProvider(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_VMCLOUDPROVIDER default: - return 0, errors.New("Unknown VmCloudProvider value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security/vulnerability_severity.go b/models/security/vulnerability_severity.go index 893091e6ec..812aba2e03 100644 --- a/models/security/vulnerability_severity.go +++ b/models/security/vulnerability_severity.go @@ -1,7 +1,4 @@ package security -import ( - "errors" -) type VulnerabilitySeverity int const ( @@ -32,7 +29,7 @@ func ParseVulnerabilitySeverity(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_VULNERABILITYSEVERITY default: - return 0, errors.New("Unknown VulnerabilitySeverity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security_network_protocol.go b/models/security_network_protocol.go index 38d82960ca..6004a827a5 100644 --- a/models/security_network_protocol.go +++ b/models/security_network_protocol.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SecurityNetworkProtocol int const ( @@ -86,7 +83,7 @@ func ParseSecurityNetworkProtocol(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SECURITYNETWORKPROTOCOL default: - return 0, errors.New("Unknown SecurityNetworkProtocol value: " + v) + return nil, nil } return &result, nil } diff --git a/models/security_resource_type.go b/models/security_resource_type.go index a535c79b1f..d0fe305024 100644 --- a/models/security_resource_type.go +++ b/models/security_resource_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SecurityResourceType int const ( @@ -26,7 +23,7 @@ func ParseSecurityResourceType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SECURITYRESOURCETYPE default: - return 0, errors.New("Unknown SecurityResourceType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/selection_likelihood_info.go b/models/selection_likelihood_info.go index 7ad8d2e0b1..c08628426d 100644 --- a/models/selection_likelihood_info.go +++ b/models/selection_likelihood_info.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SelectionLikelihoodInfo int const ( @@ -20,7 +17,7 @@ func ParseSelectionLikelihoodInfo(v string) (any, error) { case "high": result = HIGH_SELECTIONLIKELIHOODINFO default: - return 0, errors.New("Unknown SelectionLikelihoodInfo value: " + v) + return nil, nil } return &result, nil } diff --git a/models/send_dtmf_completion_reason.go b/models/send_dtmf_completion_reason.go index dd5ad03d42..a05711f9e9 100644 --- a/models/send_dtmf_completion_reason.go +++ b/models/send_dtmf_completion_reason.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SendDtmfCompletionReason int const ( @@ -26,7 +23,7 @@ func ParseSendDtmfCompletionReason(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SENDDTMFCOMPLETIONREASON default: - return 0, errors.New("Unknown SendDtmfCompletionReason value: " + v) + return nil, nil } return &result, nil } diff --git a/models/sensitivity.go b/models/sensitivity.go index 59c4faff22..fe0ceb2fb1 100644 --- a/models/sensitivity.go +++ b/models/sensitivity.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type Sensitivity int const ( @@ -26,7 +23,7 @@ func ParseSensitivity(v string) (any, error) { case "confidential": result = CONFIDENTIAL_SENSITIVITY default: - return 0, errors.New("Unknown Sensitivity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/sensitivity_label_assignment_method.go b/models/sensitivity_label_assignment_method.go index 4b6821a6b5..f19ca5fca1 100644 --- a/models/sensitivity_label_assignment_method.go +++ b/models/sensitivity_label_assignment_method.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SensitivityLabelAssignmentMethod int const ( @@ -26,7 +23,7 @@ func ParseSensitivityLabelAssignmentMethod(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SENSITIVITYLABELASSIGNMENTMETHOD default: - return 0, errors.New("Unknown SensitivityLabelAssignmentMethod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/service_health_classification_type.go b/models/service_health_classification_type.go index 8a633a97e6..f06317f056 100644 --- a/models/service_health_classification_type.go +++ b/models/service_health_classification_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ServiceHealthClassificationType int const ( @@ -23,7 +20,7 @@ func ParseServiceHealthClassificationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SERVICEHEALTHCLASSIFICATIONTYPE default: - return 0, errors.New("Unknown ServiceHealthClassificationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/service_health_origin.go b/models/service_health_origin.go index ca9431e3b4..bfebe20621 100644 --- a/models/service_health_origin.go +++ b/models/service_health_origin.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ServiceHealthOrigin int const ( @@ -26,7 +23,7 @@ func ParseServiceHealthOrigin(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SERVICEHEALTHORIGIN default: - return 0, errors.New("Unknown ServiceHealthOrigin value: " + v) + return nil, nil } return &result, nil } diff --git a/models/service_health_status.go b/models/service_health_status.go index ead05dae18..c7d78595ce 100644 --- a/models/service_health_status.go +++ b/models/service_health_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ServiceHealthStatus int const ( @@ -68,7 +65,7 @@ func ParseServiceHealthStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SERVICEHEALTHSTATUS default: - return 0, errors.New("Unknown ServiceHealthStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/service_update_category.go b/models/service_update_category.go index 8aa47e3359..5031e03c4f 100644 --- a/models/service_update_category.go +++ b/models/service_update_category.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ServiceUpdateCategory int const ( @@ -26,7 +23,7 @@ func ParseServiceUpdateCategory(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SERVICEUPDATECATEGORY default: - return 0, errors.New("Unknown ServiceUpdateCategory value: " + v) + return nil, nil } return &result, nil } diff --git a/models/service_update_severity.go b/models/service_update_severity.go index ff00a74031..a7b802014e 100644 --- a/models/service_update_severity.go +++ b/models/service_update_severity.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ServiceUpdateSeverity int const ( @@ -26,7 +23,7 @@ func ParseServiceUpdateSeverity(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SERVICEUPDATESEVERITY default: - return 0, errors.New("Unknown ServiceUpdateSeverity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/setting_source_type.go b/models/setting_source_type.go index e9695c7782..a4a6a5472c 100644 --- a/models/setting_source_type.go +++ b/models/setting_source_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SettingSourceType int const ( @@ -20,7 +17,7 @@ func ParseSettingSourceType(v string) (any, error) { case "deviceIntent": result = DEVICEINTENT_SETTINGSOURCETYPE default: - return 0, errors.New("Unknown SettingSourceType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/shared_p_c_account_deletion_policy_type.go b/models/shared_p_c_account_deletion_policy_type.go index 30556a8c4a..0af5e6e6ea 100644 --- a/models/shared_p_c_account_deletion_policy_type.go +++ b/models/shared_p_c_account_deletion_policy_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for when accounts are deleted on a shared PC. type SharedPCAccountDeletionPolicyType int @@ -27,7 +24,7 @@ func ParseSharedPCAccountDeletionPolicyType(v string) (any, error) { case "diskSpaceThresholdOrInactiveThreshold": result = DISKSPACETHRESHOLDORINACTIVETHRESHOLD_SHAREDPCACCOUNTDELETIONPOLICYTYPE default: - return 0, errors.New("Unknown SharedPCAccountDeletionPolicyType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/shared_p_c_allowed_account_type.go b/models/shared_p_c_allowed_account_type.go index ff67d3326e..d0c9f83566 100644 --- a/models/shared_p_c_allowed_account_type.go +++ b/models/shared_p_c_allowed_account_type.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -35,7 +34,7 @@ func ParseSharedPCAllowedAccountType(v string) (any, error) { case "domain": result |= DOMAIN_SHAREDPCALLOWEDACCOUNTTYPE default: - return 0, errors.New("Unknown SharedPCAllowedAccountType value: " + v) + return nil, nil } } return &result, nil diff --git a/models/sharing_capabilities.go b/models/sharing_capabilities.go index 44ae747e7b..757390f0cd 100644 --- a/models/sharing_capabilities.go +++ b/models/sharing_capabilities.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SharingCapabilities int const ( @@ -29,7 +26,7 @@ func ParseSharingCapabilities(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SHARINGCAPABILITIES default: - return 0, errors.New("Unknown SharingCapabilities value: " + v) + return nil, nil } return &result, nil } diff --git a/models/sharing_domain_restriction_mode.go b/models/sharing_domain_restriction_mode.go index 864e1184a4..02cfbde4b7 100644 --- a/models/sharing_domain_restriction_mode.go +++ b/models/sharing_domain_restriction_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SharingDomainRestrictionMode int const ( @@ -26,7 +23,7 @@ func ParseSharingDomainRestrictionMode(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SHARINGDOMAINRESTRICTIONMODE default: - return 0, errors.New("Unknown SharingDomainRestrictionMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/sign_in_frequency_authentication_type.go b/models/sign_in_frequency_authentication_type.go index ea55130778..d623bf806c 100644 --- a/models/sign_in_frequency_authentication_type.go +++ b/models/sign_in_frequency_authentication_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SignInFrequencyAuthenticationType int const ( @@ -23,7 +20,7 @@ func ParseSignInFrequencyAuthenticationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIGNINFREQUENCYAUTHENTICATIONTYPE default: - return 0, errors.New("Unknown SignInFrequencyAuthenticationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/sign_in_frequency_interval.go b/models/sign_in_frequency_interval.go index 557927b163..02db0e9e73 100644 --- a/models/sign_in_frequency_interval.go +++ b/models/sign_in_frequency_interval.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SignInFrequencyInterval int const ( @@ -23,7 +20,7 @@ func ParseSignInFrequencyInterval(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIGNINFREQUENCYINTERVAL default: - return 0, errors.New("Unknown SignInFrequencyInterval value: " + v) + return nil, nil } return &result, nil } diff --git a/models/sign_in_user_type.go b/models/sign_in_user_type.go index 03b6cecbac..2bb22858a8 100644 --- a/models/sign_in_user_type.go +++ b/models/sign_in_user_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SignInUserType int const ( @@ -23,7 +20,7 @@ func ParseSignInUserType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIGNINUSERTYPE default: - return 0, errors.New("Unknown SignInUserType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/signin_frequency_type.go b/models/signin_frequency_type.go index 23e9373e7d..69e4f55fa7 100644 --- a/models/signin_frequency_type.go +++ b/models/signin_frequency_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SigninFrequencyType int const ( @@ -20,7 +17,7 @@ func ParseSigninFrequencyType(v string) (any, error) { case "hours": result = HOURS_SIGNINFREQUENCYTYPE default: - return 0, errors.New("Unknown SigninFrequencyType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/simulation_attack_technique.go b/models/simulation_attack_technique.go index 043958cda8..3e7a06ff63 100644 --- a/models/simulation_attack_technique.go +++ b/models/simulation_attack_technique.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SimulationAttackTechnique int const ( @@ -35,7 +32,7 @@ func ParseSimulationAttackTechnique(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIMULATIONATTACKTECHNIQUE default: - return 0, errors.New("Unknown SimulationAttackTechnique value: " + v) + return nil, nil } return &result, nil } diff --git a/models/simulation_attack_type.go b/models/simulation_attack_type.go index 1211b2e885..76ce90c451 100644 --- a/models/simulation_attack_type.go +++ b/models/simulation_attack_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SimulationAttackType int const ( @@ -29,7 +26,7 @@ func ParseSimulationAttackType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIMULATIONATTACKTYPE default: - return 0, errors.New("Unknown SimulationAttackType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/simulation_automation_run_status.go b/models/simulation_automation_run_status.go index b041280138..f52092686e 100644 --- a/models/simulation_automation_run_status.go +++ b/models/simulation_automation_run_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SimulationAutomationRunStatus int const ( @@ -32,7 +29,7 @@ func ParseSimulationAutomationRunStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIMULATIONAUTOMATIONRUNSTATUS default: - return 0, errors.New("Unknown SimulationAutomationRunStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/simulation_automation_status.go b/models/simulation_automation_status.go index df57ac96a6..066aed8848 100644 --- a/models/simulation_automation_status.go +++ b/models/simulation_automation_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SimulationAutomationStatus int const ( @@ -32,7 +29,7 @@ func ParseSimulationAutomationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIMULATIONAUTOMATIONSTATUS default: - return 0, errors.New("Unknown SimulationAutomationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/simulation_content_source.go b/models/simulation_content_source.go index de69b2323b..f4695463e0 100644 --- a/models/simulation_content_source.go +++ b/models/simulation_content_source.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SimulationContentSource int const ( @@ -26,7 +23,7 @@ func ParseSimulationContentSource(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIMULATIONCONTENTSOURCE default: - return 0, errors.New("Unknown SimulationContentSource value: " + v) + return nil, nil } return &result, nil } diff --git a/models/simulation_content_status.go b/models/simulation_content_status.go index 8aa61cb386..fa22c25a20 100644 --- a/models/simulation_content_status.go +++ b/models/simulation_content_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SimulationContentStatus int const ( @@ -32,7 +29,7 @@ func ParseSimulationContentStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIMULATIONCONTENTSTATUS default: - return 0, errors.New("Unknown SimulationContentStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/simulation_status.go b/models/simulation_status.go index 8ead1a1b35..4809cfc174 100644 --- a/models/simulation_status.go +++ b/models/simulation_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SimulationStatus int const ( @@ -41,7 +38,7 @@ func ParseSimulationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SIMULATIONSTATUS default: - return 0, errors.New("Unknown SimulationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/site_security_level.go b/models/site_security_level.go index 332b4b4ebc..aa5d5bc279 100644 --- a/models/site_security_level.go +++ b/models/site_security_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for site security level. type SiteSecurityLevel int @@ -39,7 +36,7 @@ func ParseSiteSecurityLevel(v string) (any, error) { case "high": result = HIGH_SITESECURITYLEVEL default: - return 0, errors.New("Unknown SiteSecurityLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/social_identity_source_type.go b/models/social_identity_source_type.go index 4616bbfb16..406d426c7c 100644 --- a/models/social_identity_source_type.go +++ b/models/social_identity_source_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SocialIdentitySourceType int const ( @@ -20,7 +17,7 @@ func ParseSocialIdentitySourceType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SOCIALIDENTITYSOURCETYPE default: - return 0, errors.New("Unknown SocialIdentitySourceType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/staged_feature_name.go b/models/staged_feature_name.go index c69211ad03..037fe07435 100644 --- a/models/staged_feature_name.go +++ b/models/staged_feature_name.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type StagedFeatureName int const ( @@ -35,7 +32,7 @@ func ParseStagedFeatureName(v string) (any, error) { case "multiFactorAuthentication": result = MULTIFACTORAUTHENTICATION_STAGEDFEATURENAME default: - return 0, errors.New("Unknown StagedFeatureName value: " + v) + return nil, nil } return &result, nil } diff --git a/models/state_management_setting.go b/models/state_management_setting.go index 2b9eae393e..6459bcc101 100644 --- a/models/state_management_setting.go +++ b/models/state_management_setting.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // State Management Setting. type StateManagementSetting int @@ -27,7 +24,7 @@ func ParseStateManagementSetting(v string) (any, error) { case "allowed": result = ALLOWED_STATEMANAGEMENTSETTING default: - return 0, errors.New("Unknown StateManagementSetting value: " + v) + return nil, nil } return &result, nil } diff --git a/models/status.go b/models/status.go index cca0d8ca7e..8eb2ad9d3c 100644 --- a/models/status.go +++ b/models/status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type Status int const ( @@ -29,7 +26,7 @@ func ParseStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_STATUS default: - return 0, errors.New("Unknown Status value: " + v) + return nil, nil } return &result, nil } diff --git a/models/subject_rights_request_stage.go b/models/subject_rights_request_stage.go index 224a28d3b9..9d55dfacf7 100644 --- a/models/subject_rights_request_stage.go +++ b/models/subject_rights_request_stage.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SubjectRightsRequestStage int const ( @@ -38,7 +35,7 @@ func ParseSubjectRightsRequestStage(v string) (any, error) { case "approval": result = APPROVAL_SUBJECTRIGHTSREQUESTSTAGE default: - return 0, errors.New("Unknown SubjectRightsRequestStage value: " + v) + return nil, nil } return &result, nil } diff --git a/models/subject_rights_request_stage_status.go b/models/subject_rights_request_stage_status.go index ed8fd2c1ba..290bf8950a 100644 --- a/models/subject_rights_request_stage_status.go +++ b/models/subject_rights_request_stage_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SubjectRightsRequestStageStatus int const ( @@ -29,7 +26,7 @@ func ParseSubjectRightsRequestStageStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTSTAGESTATUS default: - return 0, errors.New("Unknown SubjectRightsRequestStageStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/subject_rights_request_status.go b/models/subject_rights_request_status.go index 9e46ee5e06..589585aaad 100644 --- a/models/subject_rights_request_status.go +++ b/models/subject_rights_request_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SubjectRightsRequestStatus int const ( @@ -23,7 +20,7 @@ func ParseSubjectRightsRequestStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTSTATUS default: - return 0, errors.New("Unknown SubjectRightsRequestStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/subject_rights_request_type.go b/models/subject_rights_request_type.go index 873f6f9d8f..39a8840522 100644 --- a/models/subject_rights_request_type.go +++ b/models/subject_rights_request_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SubjectRightsRequestType int const ( @@ -29,7 +26,7 @@ func ParseSubjectRightsRequestType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SUBJECTRIGHTSREQUESTTYPE default: - return 0, errors.New("Unknown SubjectRightsRequestType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/synchronization_job_restart_scope.go b/models/synchronization_job_restart_scope.go index 67397d4237..2151f34c5e 100644 --- a/models/synchronization_job_restart_scope.go +++ b/models/synchronization_job_restart_scope.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -47,7 +46,7 @@ func ParseSynchronizationJobRestartScope(v string) (any, error) { case "ForceDeletes": result |= FORCEDELETES_SYNCHRONIZATIONJOBRESTARTSCOPE default: - return 0, errors.New("Unknown SynchronizationJobRestartScope value: " + v) + return nil, nil } } return &result, nil diff --git a/models/synchronization_metadata.go b/models/synchronization_metadata.go index 052316df97..c7f2a507e6 100644 --- a/models/synchronization_metadata.go +++ b/models/synchronization_metadata.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SynchronizationMetadata int const ( @@ -41,7 +38,7 @@ func ParseSynchronizationMetadata(v string) (any, error) { case "ConfigurationFields": result = CONFIGURATIONFIELDS_SYNCHRONIZATIONMETADATA default: - return 0, errors.New("Unknown SynchronizationMetadata value: " + v) + return nil, nil } return &result, nil } diff --git a/models/synchronization_schedule_state.go b/models/synchronization_schedule_state.go index df79ee88c8..4ac24f3d4f 100644 --- a/models/synchronization_schedule_state.go +++ b/models/synchronization_schedule_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SynchronizationScheduleState int const ( @@ -23,7 +20,7 @@ func ParseSynchronizationScheduleState(v string) (any, error) { case "Paused": result = PAUSED_SYNCHRONIZATIONSCHEDULESTATE default: - return 0, errors.New("Unknown SynchronizationScheduleState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/synchronization_secret.go b/models/synchronization_secret.go index 2ecf43cc87..02df22172c 100644 --- a/models/synchronization_secret.go +++ b/models/synchronization_secret.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SynchronizationSecret int const ( @@ -149,7 +146,7 @@ func ParseSynchronizationSecret(v string) (any, error) { case "ConnectionString": result = CONNECTIONSTRING_SYNCHRONIZATIONSECRET default: - return 0, errors.New("Unknown SynchronizationSecret value: " + v) + return nil, nil } return &result, nil } diff --git a/models/synchronization_status_code.go b/models/synchronization_status_code.go index 96ec7740bd..a666aaf3c8 100644 --- a/models/synchronization_status_code.go +++ b/models/synchronization_status_code.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SynchronizationStatusCode int const ( @@ -29,7 +26,7 @@ func ParseSynchronizationStatusCode(v string) (any, error) { case "Quarantine": result = QUARANTINE_SYNCHRONIZATIONSTATUSCODE default: - return 0, errors.New("Unknown SynchronizationStatusCode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/synchronization_task_execution_result.go b/models/synchronization_task_execution_result.go index d5d45b9dbf..3e39a22275 100644 --- a/models/synchronization_task_execution_result.go +++ b/models/synchronization_task_execution_result.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type SynchronizationTaskExecutionResult int const ( @@ -23,7 +20,7 @@ func ParseSynchronizationTaskExecutionResult(v string) (any, error) { case "EntryLevelErrors": result = ENTRYLEVELERRORS_SYNCHRONIZATIONTASKEXECUTIONRESULT default: - return 0, errors.New("Unknown SynchronizationTaskExecutionResult value: " + v) + return nil, nil } return &result, nil } diff --git a/models/targeted_managed_app_group_type.go b/models/targeted_managed_app_group_type.go index 013231be59..3b2f91b7e1 100644 --- a/models/targeted_managed_app_group_type.go +++ b/models/targeted_managed_app_group_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Indicates a collection of apps to target which can be one of several pre-defined lists of apps or a manually selected list of apps type TargetedManagedAppGroupType int @@ -31,7 +28,7 @@ func ParseTargetedManagedAppGroupType(v string) (any, error) { case "allApps": result = ALLAPPS_TARGETEDMANAGEDAPPGROUPTYPE default: - return 0, errors.New("Unknown TargetedManagedAppGroupType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/targetted_user_type.go b/models/targetted_user_type.go index 4bc8551aa6..daff54557e 100644 --- a/models/targetted_user_type.go +++ b/models/targetted_user_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TargettedUserType int const ( @@ -29,7 +26,7 @@ func ParseTargettedUserType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TARGETTEDUSERTYPE default: - return 0, errors.New("Unknown TargettedUserType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/task_status.go b/models/task_status.go index 79d0d9f89f..d3519700de 100644 --- a/models/task_status.go +++ b/models/task_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TaskStatus int const ( @@ -29,7 +26,7 @@ func ParseTaskStatus(v string) (any, error) { case "deferred": result = DEFERRED_TASKSTATUS default: - return 0, errors.New("Unknown TaskStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/team_specialization.go b/models/team_specialization.go index a8d3f79c26..cb230b9f10 100644 --- a/models/team_specialization.go +++ b/models/team_specialization.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamSpecialization int const ( @@ -38,7 +35,7 @@ func ParseTeamSpecialization(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMSPECIALIZATION default: - return 0, errors.New("Unknown TeamSpecialization value: " + v) + return nil, nil } return &result, nil } diff --git a/models/team_visibility_type.go b/models/team_visibility_type.go index 26e1c040fc..57f35ca7c9 100644 --- a/models/team_visibility_type.go +++ b/models/team_visibility_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamVisibilityType int const ( @@ -26,7 +23,7 @@ func ParseTeamVisibilityType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMVISIBILITYTYPE default: - return 0, errors.New("Unknown TeamVisibilityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teams_app_distribution_method.go b/models/teams_app_distribution_method.go index 3f8730cdb9..e1e500c2f3 100644 --- a/models/teams_app_distribution_method.go +++ b/models/teams_app_distribution_method.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamsAppDistributionMethod int const ( @@ -26,7 +23,7 @@ func ParseTeamsAppDistributionMethod(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMSAPPDISTRIBUTIONMETHOD default: - return 0, errors.New("Unknown TeamsAppDistributionMethod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teams_app_publishing_state.go b/models/teams_app_publishing_state.go index 4c08a66ceb..e49eebc933 100644 --- a/models/teams_app_publishing_state.go +++ b/models/teams_app_publishing_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamsAppPublishingState int const ( @@ -26,7 +23,7 @@ func ParseTeamsAppPublishingState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMSAPPPUBLISHINGSTATE default: - return 0, errors.New("Unknown TeamsAppPublishingState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teams_app_resource_specific_permission_type.go b/models/teams_app_resource_specific_permission_type.go index df75c68657..a29fdd474a 100644 --- a/models/teams_app_resource_specific_permission_type.go +++ b/models/teams_app_resource_specific_permission_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamsAppResourceSpecificPermissionType int const ( @@ -23,7 +20,7 @@ func ParseTeamsAppResourceSpecificPermissionType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMSAPPRESOURCESPECIFICPERMISSIONTYPE default: - return 0, errors.New("Unknown TeamsAppResourceSpecificPermissionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teams_async_operation_status.go b/models/teams_async_operation_status.go index 3228f9abbf..67e2aa2de2 100644 --- a/models/teams_async_operation_status.go +++ b/models/teams_async_operation_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamsAsyncOperationStatus int const ( @@ -32,7 +29,7 @@ func ParseTeamsAsyncOperationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMSASYNCOPERATIONSTATUS default: - return 0, errors.New("Unknown TeamsAsyncOperationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teams_async_operation_type.go b/models/teams_async_operation_type.go index 1a7d29f6d3..0d97c96f16 100644 --- a/models/teams_async_operation_type.go +++ b/models/teams_async_operation_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamsAsyncOperationType int const ( @@ -38,7 +35,7 @@ func ParseTeamsAsyncOperationType(v string) (any, error) { case "createChannel": result = CREATECHANNEL_TEAMSASYNCOPERATIONTYPE default: - return 0, errors.New("Unknown TeamsAsyncOperationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teamwork_activity_topic_source.go b/models/teamwork_activity_topic_source.go index eb9cfd1fe5..18ce315e25 100644 --- a/models/teamwork_activity_topic_source.go +++ b/models/teamwork_activity_topic_source.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamworkActivityTopicSource int const ( @@ -20,7 +17,7 @@ func ParseTeamworkActivityTopicSource(v string) (any, error) { case "text": result = TEXT_TEAMWORKACTIVITYTOPICSOURCE default: - return 0, errors.New("Unknown TeamworkActivityTopicSource value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teamwork_application_identity_type.go b/models/teamwork_application_identity_type.go index 85ff667ccd..5c9c1c55ef 100644 --- a/models/teamwork_application_identity_type.go +++ b/models/teamwork_application_identity_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamworkApplicationIdentityType int const ( @@ -32,7 +29,7 @@ func ParseTeamworkApplicationIdentityType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMWORKAPPLICATIONIDENTITYTYPE default: - return 0, errors.New("Unknown TeamworkApplicationIdentityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teamwork_call_event_type.go b/models/teamwork_call_event_type.go index a1f9107e79..7fe541484a 100644 --- a/models/teamwork_call_event_type.go +++ b/models/teamwork_call_event_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamworkCallEventType int const ( @@ -26,7 +23,7 @@ func ParseTeamworkCallEventType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMWORKCALLEVENTTYPE default: - return 0, errors.New("Unknown TeamworkCallEventType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teamwork_conversation_identity_type.go b/models/teamwork_conversation_identity_type.go index 0b15e14142..ae2fdcad47 100644 --- a/models/teamwork_conversation_identity_type.go +++ b/models/teamwork_conversation_identity_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamworkConversationIdentityType int const ( @@ -26,7 +23,7 @@ func ParseTeamworkConversationIdentityType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMWORKCONVERSATIONIDENTITYTYPE default: - return 0, errors.New("Unknown TeamworkConversationIdentityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teamwork_tag_type.go b/models/teamwork_tag_type.go index 3f5a73e556..2c1cb6a1b4 100644 --- a/models/teamwork_tag_type.go +++ b/models/teamwork_tag_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamworkTagType int const ( @@ -20,7 +17,7 @@ func ParseTeamworkTagType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TEAMWORKTAGTYPE default: - return 0, errors.New("Unknown TeamworkTagType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/teamwork_user_identity_type.go b/models/teamwork_user_identity_type.go index 50ae992a54..9adac3bc37 100644 --- a/models/teamwork_user_identity_type.go +++ b/models/teamwork_user_identity_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TeamworkUserIdentityType int const ( @@ -41,7 +38,7 @@ func ParseTeamworkUserIdentityType(v string) (any, error) { case "emailUser": result = EMAILUSER_TEAMWORKUSERIDENTITYTYPE default: - return 0, errors.New("Unknown TeamworkUserIdentityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/template_application_level.go b/models/template_application_level.go index 31b3419a77..312b3d841d 100644 --- a/models/template_application_level.go +++ b/models/template_application_level.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -38,7 +37,7 @@ func ParseTemplateApplicationLevel(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_TEMPLATEAPPLICATIONLEVEL default: - return 0, errors.New("Unknown TemplateApplicationLevel value: " + v) + return nil, nil } } return &result, nil diff --git a/models/template_scenarios.go b/models/template_scenarios.go index c11796dac8..3144e5121a 100644 --- a/models/template_scenarios.go +++ b/models/template_scenarios.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -47,7 +46,7 @@ func ParseTemplateScenarios(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_TEMPLATESCENARIOS default: - return 0, errors.New("Unknown TemplateScenarios value: " + v) + return nil, nil } } return &result, nil diff --git a/models/termstore/relation_type.go b/models/termstore/relation_type.go index 29707c0e02..4995e51a79 100644 --- a/models/termstore/relation_type.go +++ b/models/termstore/relation_type.go @@ -1,7 +1,4 @@ package termstore -import ( - "errors" -) type RelationType int const ( @@ -23,7 +20,7 @@ func ParseRelationType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_RELATIONTYPE default: - return 0, errors.New("Unknown RelationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/termstore/term_group_scope.go b/models/termstore/term_group_scope.go index 018691c8fe..773554a3ad 100644 --- a/models/termstore/term_group_scope.go +++ b/models/termstore/term_group_scope.go @@ -1,7 +1,4 @@ package termstore -import ( - "errors" -) type TermGroupScope int const ( @@ -26,7 +23,7 @@ func ParseTermGroupScope(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TERMGROUPSCOPE default: - return 0, errors.New("Unknown TermGroupScope value: " + v) + return nil, nil } return &result, nil } diff --git a/models/threat_assessment_content_type.go b/models/threat_assessment_content_type.go index f857bb9103..ab2d10846f 100644 --- a/models/threat_assessment_content_type.go +++ b/models/threat_assessment_content_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ThreatAssessmentContentType int const ( @@ -23,7 +20,7 @@ func ParseThreatAssessmentContentType(v string) (any, error) { case "file": result = FILE_THREATASSESSMENTCONTENTTYPE default: - return 0, errors.New("Unknown ThreatAssessmentContentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/threat_assessment_request_source.go b/models/threat_assessment_request_source.go index 4ff201a5ae..d00773262a 100644 --- a/models/threat_assessment_request_source.go +++ b/models/threat_assessment_request_source.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ThreatAssessmentRequestSource int const ( @@ -23,7 +20,7 @@ func ParseThreatAssessmentRequestSource(v string) (any, error) { case "administrator": result = ADMINISTRATOR_THREATASSESSMENTREQUESTSOURCE default: - return 0, errors.New("Unknown ThreatAssessmentRequestSource value: " + v) + return nil, nil } return &result, nil } diff --git a/models/threat_assessment_result_type.go b/models/threat_assessment_result_type.go index b57aa43026..8ae337fb55 100644 --- a/models/threat_assessment_result_type.go +++ b/models/threat_assessment_result_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ThreatAssessmentResultType int const ( @@ -23,7 +20,7 @@ func ParseThreatAssessmentResultType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_THREATASSESSMENTRESULTTYPE default: - return 0, errors.New("Unknown ThreatAssessmentResultType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/threat_assessment_status.go b/models/threat_assessment_status.go index 4512e37848..7ca9534028 100644 --- a/models/threat_assessment_status.go +++ b/models/threat_assessment_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ThreatAssessmentStatus int const ( @@ -20,7 +17,7 @@ func ParseThreatAssessmentStatus(v string) (any, error) { case "completed": result = COMPLETED_THREATASSESSMENTSTATUS default: - return 0, errors.New("Unknown ThreatAssessmentStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/threat_category.go b/models/threat_category.go index f2780be175..6335db5e20 100644 --- a/models/threat_category.go +++ b/models/threat_category.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ThreatCategory int const ( @@ -29,7 +26,7 @@ func ParseThreatCategory(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_THREATCATEGORY default: - return 0, errors.New("Unknown ThreatCategory value: " + v) + return nil, nil } return &result, nil } diff --git a/models/threat_expected_assessment.go b/models/threat_expected_assessment.go index b03daca44a..05beb3506c 100644 --- a/models/threat_expected_assessment.go +++ b/models/threat_expected_assessment.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type ThreatExpectedAssessment int const ( @@ -20,7 +17,7 @@ func ParseThreatExpectedAssessment(v string) (any, error) { case "unblock": result = UNBLOCK_THREATEXPECTEDASSESSMENT default: - return 0, errors.New("Unknown ThreatExpectedAssessment value: " + v) + return nil, nil } return &result, nil } diff --git a/models/time_off_reason_icon_type.go b/models/time_off_reason_icon_type.go index 790217a035..81b065a1c1 100644 --- a/models/time_off_reason_icon_type.go +++ b/models/time_off_reason_icon_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TimeOffReasonIconType int const ( @@ -80,7 +77,7 @@ func ParseTimeOffReasonIconType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TIMEOFFREASONICONTYPE default: - return 0, errors.New("Unknown TimeOffReasonIconType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/title_area_layout_type.go b/models/title_area_layout_type.go index 17d5e91b36..5fa4ff937d 100644 --- a/models/title_area_layout_type.go +++ b/models/title_area_layout_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TitleAreaLayoutType int const ( @@ -29,7 +26,7 @@ func ParseTitleAreaLayoutType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TITLEAREALAYOUTTYPE default: - return 0, errors.New("Unknown TitleAreaLayoutType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/title_area_text_alignment_type.go b/models/title_area_text_alignment_type.go index 83877be4be..a89b81b52e 100644 --- a/models/title_area_text_alignment_type.go +++ b/models/title_area_text_alignment_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TitleAreaTextAlignmentType int const ( @@ -23,7 +20,7 @@ func ParseTitleAreaTextAlignmentType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TITLEAREATEXTALIGNMENTTYPE default: - return 0, errors.New("Unknown TitleAreaTextAlignmentType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/token_issuer_type.go b/models/token_issuer_type.go index bf569402df..8b8e220c2b 100644 --- a/models/token_issuer_type.go +++ b/models/token_issuer_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TokenIssuerType int const ( @@ -32,7 +29,7 @@ func ParseTokenIssuerType(v string) (any, error) { case "NPSExtension": result = NPSEXTENSION_TOKENISSUERTYPE default: - return 0, errors.New("Unknown TokenIssuerType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/tone.go b/models/tone.go index 987ecdf665..49adc366c2 100644 --- a/models/tone.go +++ b/models/tone.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type Tone int const ( @@ -65,7 +62,7 @@ func ParseTone(v string) (any, error) { case "flash": result = FLASH_TONE default: - return 0, errors.New("Unknown Tone value: " + v) + return nil, nil } return &result, nil } diff --git a/models/training_assigned_to.go b/models/training_assigned_to.go index 42cc35ed4d..d96b149b17 100644 --- a/models/training_assigned_to.go +++ b/models/training_assigned_to.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TrainingAssignedTo int const ( @@ -38,7 +35,7 @@ func ParseTrainingAssignedTo(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TRAININGASSIGNEDTO default: - return 0, errors.New("Unknown TrainingAssignedTo value: " + v) + return nil, nil } return &result, nil } diff --git a/models/training_availability_status.go b/models/training_availability_status.go index b4a06ff246..a04b9b48e4 100644 --- a/models/training_availability_status.go +++ b/models/training_availability_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TrainingAvailabilityStatus int const ( @@ -32,7 +29,7 @@ func ParseTrainingAvailabilityStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TRAININGAVAILABILITYSTATUS default: - return 0, errors.New("Unknown TrainingAvailabilityStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/training_completion_duration.go b/models/training_completion_duration.go index 7635e6bd97..9910109c52 100644 --- a/models/training_completion_duration.go +++ b/models/training_completion_duration.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TrainingCompletionDuration int const ( @@ -26,7 +23,7 @@ func ParseTrainingCompletionDuration(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TRAININGCOMPLETIONDURATION default: - return 0, errors.New("Unknown TrainingCompletionDuration value: " + v) + return nil, nil } return &result, nil } diff --git a/models/training_setting_type.go b/models/training_setting_type.go index 92e82ca6a1..d9ddac5ff6 100644 --- a/models/training_setting_type.go +++ b/models/training_setting_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TrainingSettingType int const ( @@ -29,7 +26,7 @@ func ParseTrainingSettingType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TRAININGSETTINGTYPE default: - return 0, errors.New("Unknown TrainingSettingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/training_status.go b/models/training_status.go index 00b91694a7..509a146fe1 100644 --- a/models/training_status.go +++ b/models/training_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TrainingStatus int const ( @@ -32,7 +29,7 @@ func ParseTrainingStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TRAININGSTATUS default: - return 0, errors.New("Unknown TrainingStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/training_type.go b/models/training_type.go index 48840b46ec..9eba8c6948 100644 --- a/models/training_type.go +++ b/models/training_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type TrainingType int const ( @@ -23,7 +20,7 @@ func ParseTrainingType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_TRAININGTYPE default: - return 0, errors.New("Unknown TrainingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/unified_role_assignment.go b/models/unified_role_assignment.go index 8d88b30cca..77b55d23ef 100644 --- a/models/unified_role_assignment.go +++ b/models/unified_role_assignment.go @@ -19,7 +19,7 @@ func NewUnifiedRoleAssignment()(*UnifiedRoleAssignment) { func CreateUnifiedRoleAssignmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUnifiedRoleAssignment(), nil } -// GetAppScope gets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. +// GetAppScope gets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. // returns a AppScopeable when successful func (m *UnifiedRoleAssignment) GetAppScope()(AppScopeable) { val, err := m.GetBackingStore().Get("appScope") @@ -31,7 +31,7 @@ func (m *UnifiedRoleAssignment) GetAppScope()(AppScopeable) { } return nil } -// GetAppScopeId gets the appScopeId property value. Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog, for example /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'. +// GetAppScopeId gets the appScopeId property value. Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog. For example, /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example, /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'. // returns a *string when successful func (m *UnifiedRoleAssignment) GetAppScopeId()(*string) { val, err := m.GetBackingStore().Get("appScopeId") @@ -285,14 +285,14 @@ func (m *UnifiedRoleAssignment) Serialize(writer i878a80d2330e89d26896388a3f487e } return nil } -// SetAppScope sets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. +// SetAppScope sets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. func (m *UnifiedRoleAssignment) SetAppScope(value AppScopeable)() { err := m.GetBackingStore().Set("appScope", value) if err != nil { panic(err) } } -// SetAppScopeId sets the appScopeId property value. Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog, for example /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'. +// SetAppScopeId sets the appScopeId property value. Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog. For example, /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example, /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'. func (m *UnifiedRoleAssignment) SetAppScopeId(value *string)() { err := m.GetBackingStore().Set("appScopeId", value) if err != nil { diff --git a/models/unified_role_management_policy_rule_target_operations.go b/models/unified_role_management_policy_rule_target_operations.go index 5cc2f149c9..4987222fab 100644 --- a/models/unified_role_management_policy_rule_target_operations.go +++ b/models/unified_role_management_policy_rule_target_operations.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type UnifiedRoleManagementPolicyRuleTargetOperations int const ( @@ -41,7 +38,7 @@ func ParseUnifiedRoleManagementPolicyRuleTargetOperations(v string) (any, error) case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_UNIFIEDROLEMANAGEMENTPOLICYRULETARGETOPERATIONS default: - return 0, errors.New("Unknown UnifiedRoleManagementPolicyRuleTargetOperations value: " + v) + return nil, nil } return &result, nil } diff --git a/models/unified_role_schedule_request_actions.go b/models/unified_role_schedule_request_actions.go index 41369faf53..534870601e 100644 --- a/models/unified_role_schedule_request_actions.go +++ b/models/unified_role_schedule_request_actions.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type UnifiedRoleScheduleRequestActions int const ( @@ -44,7 +41,7 @@ func ParseUnifiedRoleScheduleRequestActions(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_UNIFIEDROLESCHEDULEREQUESTACTIONS default: - return 0, errors.New("Unknown UnifiedRoleScheduleRequestActions value: " + v) + return nil, nil } return &result, nil } diff --git a/models/user_account_security_type.go b/models/user_account_security_type.go index dd9c2eedf9..141705be26 100644 --- a/models/user_account_security_type.go +++ b/models/user_account_security_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type UserAccountSecurityType int const ( @@ -29,7 +26,7 @@ func ParseUserAccountSecurityType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USERACCOUNTSECURITYTYPE default: - return 0, errors.New("Unknown UserAccountSecurityType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/user_default_authentication_method.go b/models/user_default_authentication_method.go index 21a5b99459..fc82b7a80a 100644 --- a/models/user_default_authentication_method.go +++ b/models/user_default_authentication_method.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type UserDefaultAuthenticationMethod int const ( @@ -38,7 +35,7 @@ func ParseUserDefaultAuthenticationMethod(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USERDEFAULTAUTHENTICATIONMETHOD default: - return 0, errors.New("Unknown UserDefaultAuthenticationMethod value: " + v) + return nil, nil } return &result, nil } diff --git a/models/user_experience_analytics_health_state.go b/models/user_experience_analytics_health_state.go index 6c885b196d..4f27e27299 100644 --- a/models/user_experience_analytics_health_state.go +++ b/models/user_experience_analytics_health_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type UserExperienceAnalyticsHealthState int const ( @@ -34,7 +31,7 @@ func ParseUserExperienceAnalyticsHealthState(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USEREXPERIENCEANALYTICSHEALTHSTATE default: - return 0, errors.New("Unknown UserExperienceAnalyticsHealthState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/user_experience_analytics_insight_severity.go b/models/user_experience_analytics_insight_severity.go index 48701256a7..8af0466626 100644 --- a/models/user_experience_analytics_insight_severity.go +++ b/models/user_experience_analytics_insight_severity.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Indicates severity of insights. Possible values are: None, Informational, Warning, Error. type UserExperienceAnalyticsInsightSeverity int @@ -35,7 +32,7 @@ func ParseUserExperienceAnalyticsInsightSeverity(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USEREXPERIENCEANALYTICSINSIGHTSEVERITY default: - return 0, errors.New("Unknown UserExperienceAnalyticsInsightSeverity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/user_experience_analytics_operating_system_restart_category.go b/models/user_experience_analytics_operating_system_restart_category.go index aa816f4f59..1c50bbd707 100644 --- a/models/user_experience_analytics_operating_system_restart_category.go +++ b/models/user_experience_analytics_operating_system_restart_category.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Operating System restart category. type UserExperienceAnalyticsOperatingSystemRestartCategory int @@ -55,7 +52,7 @@ func ParseUserExperienceAnalyticsOperatingSystemRestartCategory(v string) (any, case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USEREXPERIENCEANALYTICSOPERATINGSYSTEMRESTARTCATEGORY default: - return 0, errors.New("Unknown UserExperienceAnalyticsOperatingSystemRestartCategory value: " + v) + return nil, nil } return &result, nil } diff --git a/models/user_flow_type.go b/models/user_flow_type.go index b335e3f133..f6161ed779 100644 --- a/models/user_flow_type.go +++ b/models/user_flow_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type UserFlowType int const ( @@ -35,7 +32,7 @@ func ParseUserFlowType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USERFLOWTYPE default: - return 0, errors.New("Unknown UserFlowType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/user_purpose.go b/models/user_purpose.go index 4d2388a31c..c72c672b7a 100644 --- a/models/user_purpose.go +++ b/models/user_purpose.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type UserPurpose int const ( @@ -35,7 +32,7 @@ func ParseUserPurpose(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USERPURPOSE default: - return 0, errors.New("Unknown UserPurpose value: " + v) + return nil, nil } return &result, nil } diff --git a/models/user_sign_in_recommendation_scope.go b/models/user_sign_in_recommendation_scope.go index 8d942ba6c7..6048131355 100644 --- a/models/user_sign_in_recommendation_scope.go +++ b/models/user_sign_in_recommendation_scope.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type UserSignInRecommendationScope int const ( @@ -23,7 +20,7 @@ func ParseUserSignInRecommendationScope(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USERSIGNINRECOMMENDATIONSCOPE default: - return 0, errors.New("Unknown UserSignInRecommendationScope value: " + v) + return nil, nil } return &result, nil } diff --git a/models/virtual_appointment_message_type.go b/models/virtual_appointment_message_type.go index ec943b06b5..93183bd53a 100644 --- a/models/virtual_appointment_message_type.go +++ b/models/virtual_appointment_message_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type VirtualAppointmentMessageType int const ( @@ -26,7 +23,7 @@ func ParseVirtualAppointmentMessageType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_VIRTUALAPPOINTMENTMESSAGETYPE default: - return 0, errors.New("Unknown VirtualAppointmentMessageType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/virtual_event_attendee_registration_status.go b/models/virtual_event_attendee_registration_status.go index e4f64d421b..396cf1340e 100644 --- a/models/virtual_event_attendee_registration_status.go +++ b/models/virtual_event_attendee_registration_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type VirtualEventAttendeeRegistrationStatus int const ( @@ -32,7 +29,7 @@ func ParseVirtualEventAttendeeRegistrationStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_VIRTUALEVENTATTENDEEREGISTRATIONSTATUS default: - return 0, errors.New("Unknown VirtualEventAttendeeRegistrationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/virtual_event_status.go b/models/virtual_event_status.go index 7acac22332..b96f445bd6 100644 --- a/models/virtual_event_status.go +++ b/models/virtual_event_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type VirtualEventStatus int const ( @@ -26,7 +23,7 @@ func ParseVirtualEventStatus(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_VIRTUALEVENTSTATUS default: - return 0, errors.New("Unknown VirtualEventStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/visibility_setting.go b/models/visibility_setting.go index 2ad3ea0a23..bb7c2971d6 100644 --- a/models/visibility_setting.go +++ b/models/visibility_setting.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Generic visibility state. type VisibilitySetting int @@ -27,7 +24,7 @@ func ParseVisibilitySetting(v string) (any, error) { case "show": result = SHOW_VISIBILITYSETTING default: - return 0, errors.New("Unknown VisibilitySetting value: " + v) + return nil, nil } return &result, nil } diff --git a/models/volume_type.go b/models/volume_type.go index 467ff2048e..8e512e6a23 100644 --- a/models/volume_type.go +++ b/models/volume_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type VolumeType int const ( @@ -26,7 +23,7 @@ func ParseVolumeType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_VOLUMETYPE default: - return 0, errors.New("Unknown VolumeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/vpp_token_account_type.go b/models/vpp_token_account_type.go index 285361000a..a775c27f36 100644 --- a/models/vpp_token_account_type.go +++ b/models/vpp_token_account_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible types of an Apple Volume Purchase Program token. type VppTokenAccountType int @@ -23,7 +20,7 @@ func ParseVppTokenAccountType(v string) (any, error) { case "education": result = EDUCATION_VPPTOKENACCOUNTTYPE default: - return 0, errors.New("Unknown VppTokenAccountType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/vpp_token_state.go b/models/vpp_token_state.go index f5c950cc48..0295914964 100644 --- a/models/vpp_token_state.go +++ b/models/vpp_token_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible states associated with an Apple Volume Purchase Program token. type VppTokenState int @@ -35,7 +32,7 @@ func ParseVppTokenState(v string) (any, error) { case "assignedToExternalMDM": result = ASSIGNEDTOEXTERNALMDM_VPPTOKENSTATE default: - return 0, errors.New("Unknown VppTokenState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/vpp_token_sync_status.go b/models/vpp_token_sync_status.go index b4aee7b1b9..3dd85d09f6 100644 --- a/models/vpp_token_sync_status.go +++ b/models/vpp_token_sync_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible sync statuses associated with an Apple Volume Purchase Program token. type VppTokenSyncStatus int @@ -31,7 +28,7 @@ func ParseVppTokenSyncStatus(v string) (any, error) { case "failed": result = FAILED_VPPTOKENSYNCSTATUS default: - return 0, errors.New("Unknown VppTokenSyncStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/weak_algorithms.go b/models/weak_algorithms.go index 0b2978ae6b..a92fdcb40c 100644 --- a/models/weak_algorithms.go +++ b/models/weak_algorithms.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -32,7 +31,7 @@ func ParseWeakAlgorithms(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_WEAKALGORITHMS default: - return 0, errors.New("Unknown WeakAlgorithms value: " + v) + return nil, nil } } return &result, nil diff --git a/models/web_browser_cookie_settings.go b/models/web_browser_cookie_settings.go index c952e21bda..c654a6b5e6 100644 --- a/models/web_browser_cookie_settings.go +++ b/models/web_browser_cookie_settings.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Web Browser Cookie Settings. type WebBrowserCookieSettings int @@ -35,7 +32,7 @@ func ParseWebBrowserCookieSettings(v string) (any, error) { case "allowAlways": result = ALLOWALWAYS_WEBBROWSERCOOKIESETTINGS default: - return 0, errors.New("Unknown WebBrowserCookieSettings value: " + v) + return nil, nil } return &result, nil } diff --git a/models/website_type.go b/models/website_type.go index ca2f02efb4..1d0f457cb3 100644 --- a/models/website_type.go +++ b/models/website_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type WebsiteType int const ( @@ -29,7 +26,7 @@ func ParseWebsiteType(v string) (any, error) { case "profile": result = PROFILE_WEBSITETYPE default: - return 0, errors.New("Unknown WebsiteType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/week_index.go b/models/week_index.go index 2a1c0e523e..a00d4a6f5f 100644 --- a/models/week_index.go +++ b/models/week_index.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type WeekIndex int const ( @@ -29,7 +26,7 @@ func ParseWeekIndex(v string) (any, error) { case "last": result = LAST_WEEKINDEX default: - return 0, errors.New("Unknown WeekIndex value: " + v) + return nil, nil } return &result, nil } diff --git a/models/weekly_schedule.go b/models/weekly_schedule.go index 331c1c8a35..ae015c94f0 100644 --- a/models/weekly_schedule.go +++ b/models/weekly_schedule.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for a weekly schedule. type WeeklySchedule int @@ -51,7 +48,7 @@ func ParseWeeklySchedule(v string) (any, error) { case "saturday": result = SATURDAY_WEEKLYSCHEDULE default: - return 0, errors.New("Unknown WeeklySchedule value: " + v) + return nil, nil } return &result, nil } diff --git a/models/welcome_screen_meeting_information.go b/models/welcome_screen_meeting_information.go index 409adb7d41..85a671ec4c 100644 --- a/models/welcome_screen_meeting_information.go +++ b/models/welcome_screen_meeting_information.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for welcome screen meeting information. type WelcomeScreenMeetingInformation int @@ -27,7 +24,7 @@ func ParseWelcomeScreenMeetingInformation(v string) (any, error) { case "showOrganizerAndTimeAndSubject": result = SHOWORGANIZERANDTIMEANDSUBJECT_WELCOMESCREENMEETINGINFORMATION default: - return 0, errors.New("Unknown WelcomeScreenMeetingInformation value: " + v) + return nil, nil } return &result, nil } diff --git a/models/wellknown_list_name.go b/models/wellknown_list_name.go index c9a92dec3f..e964b11594 100644 --- a/models/wellknown_list_name.go +++ b/models/wellknown_list_name.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type WellknownListName int const ( @@ -26,7 +23,7 @@ func ParseWellknownListName(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_WELLKNOWNLISTNAME default: - return 0, errors.New("Unknown WellknownListName value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_delivery_optimization_priority.go b/models/win32_lob_app_delivery_optimization_priority.go index 380f9bdf4b..244ccef1f9 100644 --- a/models/win32_lob_app_delivery_optimization_priority.go +++ b/models/win32_lob_app_delivery_optimization_priority.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Contains value for delivery optimization priority. type Win32LobAppDeliveryOptimizationPriority int @@ -23,7 +20,7 @@ func ParseWin32LobAppDeliveryOptimizationPriority(v string) (any, error) { case "foreground": result = FOREGROUND_WIN32LOBAPPDELIVERYOPTIMIZATIONPRIORITY default: - return 0, errors.New("Unknown Win32LobAppDeliveryOptimizationPriority value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_file_system_operation_type.go b/models/win32_lob_app_file_system_operation_type.go index 1edd222499..472433b883 100644 --- a/models/win32_lob_app_file_system_operation_type.go +++ b/models/win32_lob_app_file_system_operation_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // A list of possible operations for rules used to make determinations about an application based on files or folders. Unless noted, can be used with either detection or requirement rules. type Win32LobAppFileSystemOperationType int @@ -39,7 +36,7 @@ func ParseWin32LobAppFileSystemOperationType(v string) (any, error) { case "sizeInMB": result = SIZEINMB_WIN32LOBAPPFILESYSTEMOPERATIONTYPE default: - return 0, errors.New("Unknown Win32LobAppFileSystemOperationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_msi_package_type.go b/models/win32_lob_app_msi_package_type.go index 4e165c7b2f..1e9b309f5b 100644 --- a/models/win32_lob_app_msi_package_type.go +++ b/models/win32_lob_app_msi_package_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Indicates the package type of an MSI Win32LobApp. type Win32LobAppMsiPackageType int @@ -27,7 +24,7 @@ func ParseWin32LobAppMsiPackageType(v string) (any, error) { case "dualPurpose": result = DUALPURPOSE_WIN32LOBAPPMSIPACKAGETYPE default: - return 0, errors.New("Unknown Win32LobAppMsiPackageType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_notification.go b/models/win32_lob_app_notification.go index 5cfc9ab768..6201da550b 100644 --- a/models/win32_lob_app_notification.go +++ b/models/win32_lob_app_notification.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Contains value for notification status. type Win32LobAppNotification int @@ -27,7 +24,7 @@ func ParseWin32LobAppNotification(v string) (any, error) { case "hideAll": result = HIDEALL_WIN32LOBAPPNOTIFICATION default: - return 0, errors.New("Unknown Win32LobAppNotification value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_power_shell_script_rule_operation_type.go b/models/win32_lob_app_power_shell_script_rule_operation_type.go index de2321a552..64b7ca8e27 100644 --- a/models/win32_lob_app_power_shell_script_rule_operation_type.go +++ b/models/win32_lob_app_power_shell_script_rule_operation_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Contains all supported Powershell Script output detection type. type Win32LobAppPowerShellScriptRuleOperationType int @@ -43,7 +40,7 @@ func ParseWin32LobAppPowerShellScriptRuleOperationType(v string) (any, error) { case "boolean": result = BOOLEAN_WIN32LOBAPPPOWERSHELLSCRIPTRULEOPERATIONTYPE default: - return 0, errors.New("Unknown Win32LobAppPowerShellScriptRuleOperationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_registry_rule_operation_type.go b/models/win32_lob_app_registry_rule_operation_type.go index c4f16c5f3e..ae7fb3a0f4 100644 --- a/models/win32_lob_app_registry_rule_operation_type.go +++ b/models/win32_lob_app_registry_rule_operation_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // A list of possible operations for rules used to make determinations about an application based on registry keys or values. Unless noted, the values can be used with either detection or requirement rules. type Win32LobAppRegistryRuleOperationType int @@ -39,7 +36,7 @@ func ParseWin32LobAppRegistryRuleOperationType(v string) (any, error) { case "version": result = VERSION_WIN32LOBAPPREGISTRYRULEOPERATIONTYPE default: - return 0, errors.New("Unknown Win32LobAppRegistryRuleOperationType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_restart_behavior.go b/models/win32_lob_app_restart_behavior.go index 211e1b5ced..3d6b8fba45 100644 --- a/models/win32_lob_app_restart_behavior.go +++ b/models/win32_lob_app_restart_behavior.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Indicates the type of restart action. type Win32LobAppRestartBehavior int @@ -31,7 +28,7 @@ func ParseWin32LobAppRestartBehavior(v string) (any, error) { case "force": result = FORCE_WIN32LOBAPPRESTARTBEHAVIOR default: - return 0, errors.New("Unknown Win32LobAppRestartBehavior value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_return_code_type.go b/models/win32_lob_app_return_code_type.go index b999de54ce..9ce655aa98 100644 --- a/models/win32_lob_app_return_code_type.go +++ b/models/win32_lob_app_return_code_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Indicates the type of return code. type Win32LobAppReturnCodeType int @@ -35,7 +32,7 @@ func ParseWin32LobAppReturnCodeType(v string) (any, error) { case "retry": result = RETRY_WIN32LOBAPPRETURNCODETYPE default: - return 0, errors.New("Unknown Win32LobAppReturnCodeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_rule_operator.go b/models/win32_lob_app_rule_operator.go index f58a5909a2..cc4bc76849 100644 --- a/models/win32_lob_app_rule_operator.go +++ b/models/win32_lob_app_rule_operator.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Contains properties for detection operator. type Win32LobAppRuleOperator int @@ -43,7 +40,7 @@ func ParseWin32LobAppRuleOperator(v string) (any, error) { case "lessThanOrEqual": result = LESSTHANOREQUAL_WIN32LOBAPPRULEOPERATOR default: - return 0, errors.New("Unknown Win32LobAppRuleOperator value: " + v) + return nil, nil } return &result, nil } diff --git a/models/win32_lob_app_rule_type.go b/models/win32_lob_app_rule_type.go index fcbac3bb6a..58e532680f 100644 --- a/models/win32_lob_app_rule_type.go +++ b/models/win32_lob_app_rule_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Contains rule types for Win32 LOB apps. type Win32LobAppRuleType int @@ -23,7 +20,7 @@ func ParseWin32LobAppRuleType(v string) (any, error) { case "requirement": result = REQUIREMENT_WIN32LOBAPPRULETYPE default: - return 0, errors.New("Unknown Win32LobAppRuleType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows10_edition_type.go b/models/windows10_edition_type.go index 711ab25a6c..137c1b6876 100644 --- a/models/windows10_edition_type.go +++ b/models/windows10_edition_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Windows 10 Edition type. type Windows10EditionType int @@ -63,7 +60,7 @@ func ParseWindows10EditionType(v string) (any, error) { case "windows10ProfessionalWorkstationN": result = WINDOWS10PROFESSIONALWORKSTATIONN_WINDOWS10EDITIONTYPE default: - return 0, errors.New("Unknown Windows10EditionType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_architecture.go b/models/windows_architecture.go index 3c98289d5f..b95c040046 100644 --- a/models/windows_architecture.go +++ b/models/windows_architecture.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -47,7 +46,7 @@ func ParseWindowsArchitecture(v string) (any, error) { case "neutral": result |= NEUTRAL_WINDOWSARCHITECTURE default: - return 0, errors.New("Unknown WindowsArchitecture value: " + v) + return nil, nil } } return &result, nil diff --git a/models/windows_defender_product_status.go b/models/windows_defender_product_status.go index ea1bc9367e..479c41afba 100644 --- a/models/windows_defender_product_status.go +++ b/models/windows_defender_product_status.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -131,7 +130,7 @@ func ParseWindowsDefenderProductStatus(v string) (any, error) { case "windowsSModeSignaturesInUseOnNonWin10SInstall": result |= WINDOWSSMODESIGNATURESINUSEONNONWIN10SINSTALL_WINDOWSDEFENDERPRODUCTSTATUS default: - return 0, errors.New("Unknown WindowsDefenderProductStatus value: " + v) + return nil, nil } } return &result, nil diff --git a/models/windows_delivery_optimization_mode.go b/models/windows_delivery_optimization_mode.go index 5f427a05a7..fafbb28a67 100644 --- a/models/windows_delivery_optimization_mode.go +++ b/models/windows_delivery_optimization_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Delivery optimization mode for peer distribution type WindowsDeliveryOptimizationMode int @@ -43,7 +40,7 @@ func ParseWindowsDeliveryOptimizationMode(v string) (any, error) { case "bypassMode": result = BYPASSMODE_WINDOWSDELIVERYOPTIMIZATIONMODE default: - return 0, errors.New("Unknown WindowsDeliveryOptimizationMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_device_health_state.go b/models/windows_device_health_state.go index 12025ce434..e61b5426a7 100644 --- a/models/windows_device_health_state.go +++ b/models/windows_device_health_state.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -51,7 +50,7 @@ func ParseWindowsDeviceHealthState(v string) (any, error) { case "critical": result |= CRITICAL_WINDOWSDEVICEHEALTHSTATE default: - return 0, errors.New("Unknown WindowsDeviceHealthState value: " + v) + return nil, nil } } return &result, nil diff --git a/models/windows_device_type.go b/models/windows_device_type.go index bf1163b0a6..c3d7fc24d7 100644 --- a/models/windows_device_type.go +++ b/models/windows_device_type.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -51,7 +50,7 @@ func ParseWindowsDeviceType(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_WINDOWSDEVICETYPE default: - return 0, errors.New("Unknown WindowsDeviceType value: " + v) + return nil, nil } } return &result, nil diff --git a/models/windows_hello_for_business_pin_usage.go b/models/windows_hello_for_business_pin_usage.go index 4446202284..3b59d2359b 100644 --- a/models/windows_hello_for_business_pin_usage.go +++ b/models/windows_hello_for_business_pin_usage.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Windows Hello for Business pin usage options type WindowsHelloForBusinessPinUsage int @@ -27,7 +24,7 @@ func ParseWindowsHelloForBusinessPinUsage(v string) (any, error) { case "disallowed": result = DISALLOWED_WINDOWSHELLOFORBUSINESSPINUSAGE default: - return 0, errors.New("Unknown WindowsHelloForBusinessPinUsage value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_information_protection_enforcement_level.go b/models/windows_information_protection_enforcement_level.go index e9e44df0c9..b9588dfbf0 100644 --- a/models/windows_information_protection_enforcement_level.go +++ b/models/windows_information_protection_enforcement_level.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for WIP Protection enforcement levels type WindowsInformationProtectionEnforcementLevel int @@ -31,7 +28,7 @@ func ParseWindowsInformationProtectionEnforcementLevel(v string) (any, error) { case "encryptAuditAndBlock": result = ENCRYPTAUDITANDBLOCK_WINDOWSINFORMATIONPROTECTIONENFORCEMENTLEVEL default: - return 0, errors.New("Unknown WindowsInformationProtectionEnforcementLevel value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_information_protection_pin_character_requirements.go b/models/windows_information_protection_pin_character_requirements.go index e8c0023055..b9be5b008d 100644 --- a/models/windows_information_protection_pin_character_requirements.go +++ b/models/windows_information_protection_pin_character_requirements.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Pin Character Requirements type WindowsInformationProtectionPinCharacterRequirements int @@ -27,7 +24,7 @@ func ParseWindowsInformationProtectionPinCharacterRequirements(v string) (any, e case "allow": result = ALLOW_WINDOWSINFORMATIONPROTECTIONPINCHARACTERREQUIREMENTS default: - return 0, errors.New("Unknown WindowsInformationProtectionPinCharacterRequirements value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_malware_category.go b/models/windows_malware_category.go index d754ecad5a..89cd8fa10e 100644 --- a/models/windows_malware_category.go +++ b/models/windows_malware_category.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Malware category id type WindowsMalwareCategory int @@ -215,7 +212,7 @@ func ParseWindowsMalwareCategory(v string) (any, error) { case "hipsRule": result = HIPSRULE_WINDOWSMALWARECATEGORY default: - return 0, errors.New("Unknown WindowsMalwareCategory value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_malware_execution_state.go b/models/windows_malware_execution_state.go index 9d74a2def8..4c4fc6c11f 100644 --- a/models/windows_malware_execution_state.go +++ b/models/windows_malware_execution_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Malware execution status type WindowsMalwareExecutionState int @@ -35,7 +32,7 @@ func ParseWindowsMalwareExecutionState(v string) (any, error) { case "notRunning": result = NOTRUNNING_WINDOWSMALWAREEXECUTIONSTATE default: - return 0, errors.New("Unknown WindowsMalwareExecutionState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_malware_severity.go b/models/windows_malware_severity.go index 5f27d867a3..610ffdc360 100644 --- a/models/windows_malware_severity.go +++ b/models/windows_malware_severity.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Malware severity type WindowsMalwareSeverity int @@ -35,7 +32,7 @@ func ParseWindowsMalwareSeverity(v string) (any, error) { case "severe": result = SEVERE_WINDOWSMALWARESEVERITY default: - return 0, errors.New("Unknown WindowsMalwareSeverity value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_malware_state.go b/models/windows_malware_state.go index 728bdf0757..0f9c81b69e 100644 --- a/models/windows_malware_state.go +++ b/models/windows_malware_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Malware current status type WindowsMalwareState int @@ -67,7 +64,7 @@ func ParseWindowsMalwareState(v string) (any, error) { case "blockFailed": result = BLOCKFAILED_WINDOWSMALWARESTATE default: - return 0, errors.New("Unknown WindowsMalwareState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_malware_threat_state.go b/models/windows_malware_threat_state.go index 21ba5ab57b..6cb71f650a 100644 --- a/models/windows_malware_threat_state.go +++ b/models/windows_malware_threat_state.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Malware threat status type WindowsMalwareThreatState int @@ -59,7 +56,7 @@ func ParseWindowsMalwareThreatState(v string) (any, error) { case "noStatusCleared": result = NOSTATUSCLEARED_WINDOWSMALWARETHREATSTATE default: - return 0, errors.New("Unknown WindowsMalwareThreatState value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_setting_type.go b/models/windows_setting_type.go index dd3d9668da..5532b2014c 100644 --- a/models/windows_setting_type.go +++ b/models/windows_setting_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type WindowsSettingType int const ( @@ -23,7 +20,7 @@ func ParseWindowsSettingType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_WINDOWSSETTINGTYPE default: - return 0, errors.New("Unknown WindowsSettingType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_spotlight_enablement_settings.go b/models/windows_spotlight_enablement_settings.go index 6c85196142..87892618bd 100644 --- a/models/windows_spotlight_enablement_settings.go +++ b/models/windows_spotlight_enablement_settings.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Allows IT admind to set a predefined default search engine for MDM-Controlled devices type WindowsSpotlightEnablementSettings int @@ -27,7 +24,7 @@ func ParseWindowsSpotlightEnablementSettings(v string) (any, error) { case "enabled": result = ENABLED_WINDOWSSPOTLIGHTENABLEMENTSETTINGS default: - return 0, errors.New("Unknown WindowsSpotlightEnablementSettings value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_start_menu_app_list_visibility_type.go b/models/windows_start_menu_app_list_visibility_type.go index 0cff04f5dc..6944fd8a73 100644 --- a/models/windows_start_menu_app_list_visibility_type.go +++ b/models/windows_start_menu_app_list_visibility_type.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -43,7 +42,7 @@ func ParseWindowsStartMenuAppListVisibilityType(v string) (any, error) { case "disableSettingsApp": result |= DISABLESETTINGSAPP_WINDOWSSTARTMENUAPPLISTVISIBILITYTYPE default: - return 0, errors.New("Unknown WindowsStartMenuAppListVisibilityType value: " + v) + return nil, nil } } return &result, nil diff --git a/models/windows_start_menu_mode_type.go b/models/windows_start_menu_mode_type.go index f9eb9346f4..c05bfe3714 100644 --- a/models/windows_start_menu_mode_type.go +++ b/models/windows_start_menu_mode_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Type of display modes for the start menu. type WindowsStartMenuModeType int @@ -27,7 +24,7 @@ func ParseWindowsStartMenuModeType(v string) (any, error) { case "nonFullScreen": result = NONFULLSCREEN_WINDOWSSTARTMENUMODETYPE default: - return 0, errors.New("Unknown WindowsStartMenuModeType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_update_for_business_update_weeks.go b/models/windows_update_for_business_update_weeks.go index e638108413..7a5481e9de 100644 --- a/models/windows_update_for_business_update_weeks.go +++ b/models/windows_update_for_business_update_weeks.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -55,7 +54,7 @@ func ParseWindowsUpdateForBusinessUpdateWeeks(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_WINDOWSUPDATEFORBUSINESSUPDATEWEEKS default: - return 0, errors.New("Unknown WindowsUpdateForBusinessUpdateWeeks value: " + v) + return nil, nil } } return &result, nil diff --git a/models/windows_update_notification_display_option.go b/models/windows_update_notification_display_option.go index 1373317669..8f5780d5dc 100644 --- a/models/windows_update_notification_display_option.go +++ b/models/windows_update_notification_display_option.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Windows Update Notification Display Options type WindowsUpdateNotificationDisplayOption int @@ -35,7 +32,7 @@ func ParseWindowsUpdateNotificationDisplayOption(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_WINDOWSUPDATENOTIFICATIONDISPLAYOPTION default: - return 0, errors.New("Unknown WindowsUpdateNotificationDisplayOption value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_update_type.go b/models/windows_update_type.go index b3dc79a3d8..b6b90504a5 100644 --- a/models/windows_update_type.go +++ b/models/windows_update_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Which branch devices will receive their updates from type WindowsUpdateType int @@ -39,7 +36,7 @@ func ParseWindowsUpdateType(v string) (any, error) { case "windowsInsiderBuildRelease": result = WINDOWSINSIDERBUILDRELEASE_WINDOWSUPDATETYPE default: - return 0, errors.New("Unknown WindowsUpdateType value: " + v) + return nil, nil } return &result, nil } diff --git a/models/windows_user_account_control_settings.go b/models/windows_user_account_control_settings.go index 1afb8e91da..ef1fd6c100 100644 --- a/models/windows_user_account_control_settings.go +++ b/models/windows_user_account_control_settings.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) // Possible values for Windows user account control settings. type WindowsUserAccountControlSettings int @@ -35,7 +32,7 @@ func ParseWindowsUserAccountControlSettings(v string) (any, error) { case "neverNotify": result = NEVERNOTIFY_WINDOWSUSERACCOUNTCONTROLSETTINGS default: - return 0, errors.New("Unknown WindowsUserAccountControlSettings value: " + v) + return nil, nil } return &result, nil } diff --git a/models/workbook_chart.go b/models/workbook_chart.go index fa04c1a284..4fab818898 100644 --- a/models/workbook_chart.go +++ b/models/workbook_chart.go @@ -31,7 +31,7 @@ func (m *WorkbookChart) GetAxes()(WorkbookChartAxesable) { } return nil } -// GetDataLabels gets the dataLabels property value. Represents the datalabels on the chart. Read-only. +// GetDataLabels gets the dataLabels property value. Represents the data labels on the chart. Read-only. // returns a WorkbookChartDataLabelsable when successful func (m *WorkbookChart) GetDataLabels()(WorkbookChartDataLabelsable) { val, err := m.GetBackingStore().Get("dataLabels") @@ -247,7 +247,7 @@ func (m *WorkbookChart) GetSeries()([]WorkbookChartSeriesable) { } return nil } -// GetTitle gets the title property value. Represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// GetTitle gets the title property value. Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. // returns a WorkbookChartTitleable when successful func (m *WorkbookChart) GetTitle()(WorkbookChartTitleable) { val, err := m.GetBackingStore().Get("title") @@ -388,7 +388,7 @@ func (m *WorkbookChart) SetAxes(value WorkbookChartAxesable)() { panic(err) } } -// SetDataLabels sets the dataLabels property value. Represents the datalabels on the chart. Read-only. +// SetDataLabels sets the dataLabels property value. Represents the data labels on the chart. Read-only. func (m *WorkbookChart) SetDataLabels(value WorkbookChartDataLabelsable)() { err := m.GetBackingStore().Set("dataLabels", value) if err != nil { @@ -437,7 +437,7 @@ func (m *WorkbookChart) SetSeries(value []WorkbookChartSeriesable)() { panic(err) } } -// SetTitle sets the title property value. Represents the title of the specified chart, including the text, visibility, position and formating of the title. Read-only. +// SetTitle sets the title property value. Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. func (m *WorkbookChart) SetTitle(value WorkbookChartTitleable)() { err := m.GetBackingStore().Set("title", value) if err != nil { diff --git a/models/workbook_operation_status.go b/models/workbook_operation_status.go index 8dcffd409a..cf9c0a3e8c 100644 --- a/models/workbook_operation_status.go +++ b/models/workbook_operation_status.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type WorkbookOperationStatus int const ( @@ -26,7 +23,7 @@ func ParseWorkbookOperationStatus(v string) (any, error) { case "failed": result = FAILED_WORKBOOKOPERATIONSTATUS default: - return 0, errors.New("Unknown WorkbookOperationStatus value: " + v) + return nil, nil } return &result, nil } diff --git a/models/workforce_integration_encryption_protocol.go b/models/workforce_integration_encryption_protocol.go index d6bd89b035..ebd1d8d6cf 100644 --- a/models/workforce_integration_encryption_protocol.go +++ b/models/workforce_integration_encryption_protocol.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type WorkforceIntegrationEncryptionProtocol int const ( @@ -20,7 +17,7 @@ func ParseWorkforceIntegrationEncryptionProtocol(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_WORKFORCEINTEGRATIONENCRYPTIONPROTOCOL default: - return 0, errors.New("Unknown WorkforceIntegrationEncryptionProtocol value: " + v) + return nil, nil } return &result, nil } diff --git a/models/workforce_integration_supported_entities.go b/models/workforce_integration_supported_entities.go index 05662ae231..58e0b728ed 100644 --- a/models/workforce_integration_supported_entities.go +++ b/models/workforce_integration_supported_entities.go @@ -1,6 +1,5 @@ package models import ( - "errors" "math" "strings" ) @@ -50,7 +49,7 @@ func ParseWorkforceIntegrationSupportedEntities(v string) (any, error) { case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_WORKFORCEINTEGRATIONSUPPORTEDENTITIES default: - return 0, errors.New("Unknown WorkforceIntegrationSupportedEntities value: " + v) + return nil, nil } } return &result, nil diff --git a/models/x509_certificate_authentication_mode.go b/models/x509_certificate_authentication_mode.go index e872d97e13..d64bd9a6e2 100644 --- a/models/x509_certificate_authentication_mode.go +++ b/models/x509_certificate_authentication_mode.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type X509CertificateAuthenticationMode int const ( @@ -23,7 +20,7 @@ func ParseX509CertificateAuthenticationMode(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_X509CERTIFICATEAUTHENTICATIONMODE default: - return 0, errors.New("Unknown X509CertificateAuthenticationMode value: " + v) + return nil, nil } return &result, nil } diff --git a/models/x509_certificate_rule_type.go b/models/x509_certificate_rule_type.go index 13c6d07158..2c7c9f9a1a 100644 --- a/models/x509_certificate_rule_type.go +++ b/models/x509_certificate_rule_type.go @@ -1,7 +1,4 @@ package models -import ( - "errors" -) type X509CertificateRuleType int const ( @@ -23,7 +20,7 @@ func ParseX509CertificateRuleType(v string) (any, error) { case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_X509CERTIFICATERULETYPE default: - return 0, errors.New("Unknown X509CertificateRuleType value: " + v) + return nil, nil } return &result, nil } 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 b4bbc68fea..342f99d404 100644 --- a/organization/organization_item_request_builder.go +++ b/organization/organization_item_request_builder.go @@ -128,12 +128,12 @@ func (m *OrganizationItemRequestBuilder) GetMemberGroups()(*ItemGetMemberGroupsR func (m *OrganizationItemRequestBuilder) GetMemberObjects()(*ItemGetMemberObjectsRequestBuilder) { return NewItemGetMemberObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a organization object. +// Patch update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. // 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-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/organization-update?view=graph-rest-1.0 func (m *OrganizationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Organizationable, requestConfiguration *OrganizationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Organizationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -186,7 +186,7 @@ func (m *OrganizationItemRequestBuilder) ToGetRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a organization object. +// ToPatchRequestInformation update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. // returns a *RequestInformation when successful func (m *OrganizationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Organizationable, requestConfiguration *OrganizationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/policies/cross_tenant_access_policy_partners_item_identity_synchronization_request_builder.go b/policies/cross_tenant_access_policy_partners_item_identity_synchronization_request_builder.go index efaced0fd0..f7b393e8d0 100644 --- a/policies/cross_tenant_access_policy_partners_item_identity_synchronization_request_builder.go +++ b/policies/cross_tenant_access_policy_partners_item_identity_synchronization_request_builder.go @@ -96,12 +96,12 @@ func (m *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilde } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CrossTenantIdentitySyncPolicyPartnerable), nil } -// Put update the user synchronization policy of a partner-specific configuration. +// Put create a cross-tenant user synchronization policy for a partner-specific configuration. // returns a CrossTenantIdentitySyncPolicyPartnerable 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/crosstenantidentitysyncpolicypartner-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/crosstenantaccesspolicyconfigurationpartner-put-identitysynchronization?view=graph-rest-1.0 func (m *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilder) Put(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CrossTenantIdentitySyncPolicyPartnerable, requestConfiguration *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CrossTenantIdentitySyncPolicyPartnerable, error) { requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPutRequestInformation update the user synchronization policy of a partner-specific configuration. +// ToPutRequestInformation create a cross-tenant user synchronization policy for a partner-specific configuration. // returns a *RequestInformation when successful func (m *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilder) ToPutRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CrossTenantIdentitySyncPolicyPartnerable, requestConfiguration *CrossTenantAccessPolicyPartnersItemIdentitySynchronizationRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignments_item_app_scope_request_builder.go b/rolemanagement/directory_role_assignments_item_app_scope_request_builder.go index 8bd572251c..a242e835b3 100644 --- a/rolemanagement/directory_role_assignments_item_app_scope_request_builder.go +++ b/rolemanagement/directory_role_assignments_item_app_scope_request_builder.go @@ -18,7 +18,7 @@ type DirectoryRoleAssignmentsItemAppScopeRequestBuilderDeleteRequestConfiguratio // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DirectoryRoleAssignmentsItemAppScopeRequestBuilderGetQueryParameters read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. +// DirectoryRoleAssignmentsItemAppScopeRequestBuilderGetQueryParameters read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. type DirectoryRoleAssignmentsItemAppScopeRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *DirectoryRoleAssignmentsItemAppScopeRequestBuilder) Delete(ctx context. } return nil } -// Get read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. +// Get read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. // returns a AppScopeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentsItemAppScopeRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentsItemAppScopeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AppScopeable, error) { @@ -121,7 +121,7 @@ func (m *DirectoryRoleAssignmentsItemAppScopeRequestBuilder) ToDeleteRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. +// ToGetRequestInformation read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentsItemAppScopeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentsItemAppScopeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignments_item_app_scope_request_builder.go b/rolemanagement/entitlement_management_role_assignments_item_app_scope_request_builder.go index a9dda3267a..32343c90c6 100644 --- a/rolemanagement/entitlement_management_role_assignments_item_app_scope_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignments_item_app_scope_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilderGetQueryParameters read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. +// EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilderGetQueryParameters read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. type EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilder) Delete( } return nil } -// Get read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. +// Get read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. // returns a AppScopeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AppScopeable, error) { @@ -121,7 +121,7 @@ func (m *EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilder) ToDelet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand. +// ToGetRequestInformation read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentsItemAppScopeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/identities_health_issues_count_request_builder.go b/security/identities_health_issues_count_request_builder.go new file mode 100644 index 0000000000..883d71a41a --- /dev/null +++ b/security/identities_health_issues_count_request_builder.go @@ -0,0 +1,80 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// IdentitiesHealthIssuesCountRequestBuilder provides operations to count the resources in the collection. +type IdentitiesHealthIssuesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// IdentitiesHealthIssuesCountRequestBuilderGetQueryParameters get the number of the resource +type IdentitiesHealthIssuesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// IdentitiesHealthIssuesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesHealthIssuesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *IdentitiesHealthIssuesCountRequestBuilderGetQueryParameters +} +// NewIdentitiesHealthIssuesCountRequestBuilderInternal instantiates a new IdentitiesHealthIssuesCountRequestBuilder and sets the default values. +func NewIdentitiesHealthIssuesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentitiesHealthIssuesCountRequestBuilder) { + m := &IdentitiesHealthIssuesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/identities/healthIssues/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewIdentitiesHealthIssuesCountRequestBuilder instantiates a new IdentitiesHealthIssuesCountRequestBuilder and sets the default values. +func NewIdentitiesHealthIssuesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentitiesHealthIssuesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewIdentitiesHealthIssuesCountRequestBuilderInternal(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 *IdentitiesHealthIssuesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentitiesHealthIssuesCountRequestBuilderGetRequestConfiguration)(*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 *IdentitiesHealthIssuesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentitiesHealthIssuesCountRequestBuilderGetRequestConfiguration)(*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 *IdentitiesHealthIssuesCountRequestBuilder when successful +func (m *IdentitiesHealthIssuesCountRequestBuilder) WithUrl(rawUrl string)(*IdentitiesHealthIssuesCountRequestBuilder) { + return NewIdentitiesHealthIssuesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/security/identities_health_issues_health_issue_item_request_builder.go b/security/identities_health_issues_health_issue_item_request_builder.go new file mode 100644 index 0000000000..079ec3d07a --- /dev/null +++ b/security/identities_health_issues_health_issue_item_request_builder.go @@ -0,0 +1,157 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" + idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae "github.com/microsoftgraph/msgraph-sdk-go/models/security" +) + +// IdentitiesHealthIssuesHealthIssueItemRequestBuilder provides operations to manage the healthIssues property of the microsoft.graph.security.identityContainer entity. +type IdentitiesHealthIssuesHealthIssueItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// IdentitiesHealthIssuesHealthIssueItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesHealthIssuesHealthIssueItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// IdentitiesHealthIssuesHealthIssueItemRequestBuilderGetQueryParameters get healthIssues from security +type IdentitiesHealthIssuesHealthIssueItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// IdentitiesHealthIssuesHealthIssueItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesHealthIssuesHealthIssueItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *IdentitiesHealthIssuesHealthIssueItemRequestBuilderGetQueryParameters +} +// IdentitiesHealthIssuesHealthIssueItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesHealthIssuesHealthIssueItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewIdentitiesHealthIssuesHealthIssueItemRequestBuilderInternal instantiates a new IdentitiesHealthIssuesHealthIssueItemRequestBuilder and sets the default values. +func NewIdentitiesHealthIssuesHealthIssueItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentitiesHealthIssuesHealthIssueItemRequestBuilder) { + m := &IdentitiesHealthIssuesHealthIssueItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/identities/healthIssues/{healthIssue%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewIdentitiesHealthIssuesHealthIssueItemRequestBuilder instantiates a new IdentitiesHealthIssuesHealthIssueItemRequestBuilder and sets the default values. +func NewIdentitiesHealthIssuesHealthIssueItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentitiesHealthIssuesHealthIssueItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewIdentitiesHealthIssuesHealthIssueItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property healthIssues for security +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentitiesHealthIssuesHealthIssueItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *IdentitiesHealthIssuesHealthIssueItemRequestBuilderDeleteRequestConfiguration)(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 get healthIssues from security +// returns a HealthIssueable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentitiesHealthIssuesHealthIssueItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentitiesHealthIssuesHealthIssueItemRequestBuilderGetRequestConfiguration)(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable, 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, idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.CreateHealthIssueFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable), nil +} +// Patch update the navigation property healthIssues in security +// returns a HealthIssueable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentitiesHealthIssuesHealthIssueItemRequestBuilder) Patch(ctx context.Context, body idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable, requestConfiguration *IdentitiesHealthIssuesHealthIssueItemRequestBuilderPatchRequestConfiguration)(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable, 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, idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.CreateHealthIssueFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable), nil +} +// ToDeleteRequestInformation delete navigation property healthIssues for security +// returns a *RequestInformation when successful +func (m *IdentitiesHealthIssuesHealthIssueItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IdentitiesHealthIssuesHealthIssueItemRequestBuilderDeleteRequestConfiguration)(*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 get healthIssues from security +// returns a *RequestInformation when successful +func (m *IdentitiesHealthIssuesHealthIssueItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentitiesHealthIssuesHealthIssueItemRequestBuilderGetRequestConfiguration)(*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 healthIssues in security +// returns a *RequestInformation when successful +func (m *IdentitiesHealthIssuesHealthIssueItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable, requestConfiguration *IdentitiesHealthIssuesHealthIssueItemRequestBuilderPatchRequestConfiguration)(*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 *IdentitiesHealthIssuesHealthIssueItemRequestBuilder when successful +func (m *IdentitiesHealthIssuesHealthIssueItemRequestBuilder) WithUrl(rawUrl string)(*IdentitiesHealthIssuesHealthIssueItemRequestBuilder) { + return NewIdentitiesHealthIssuesHealthIssueItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/security/identities_health_issues_request_builder.go b/security/identities_health_issues_request_builder.go new file mode 100644 index 0000000000..9a18c61db1 --- /dev/null +++ b/security/identities_health_issues_request_builder.go @@ -0,0 +1,152 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" + idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae "github.com/microsoftgraph/msgraph-sdk-go/models/security" +) + +// IdentitiesHealthIssuesRequestBuilder provides operations to manage the healthIssues property of the microsoft.graph.security.identityContainer entity. +type IdentitiesHealthIssuesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// IdentitiesHealthIssuesRequestBuilderGetQueryParameters get healthIssues from security +type IdentitiesHealthIssuesRequestBuilderGetQueryParameters 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"` +} +// IdentitiesHealthIssuesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesHealthIssuesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *IdentitiesHealthIssuesRequestBuilderGetQueryParameters +} +// IdentitiesHealthIssuesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesHealthIssuesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByHealthIssueId provides operations to manage the healthIssues property of the microsoft.graph.security.identityContainer entity. +// returns a *IdentitiesHealthIssuesHealthIssueItemRequestBuilder when successful +func (m *IdentitiesHealthIssuesRequestBuilder) ByHealthIssueId(healthIssueId string)(*IdentitiesHealthIssuesHealthIssueItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if healthIssueId != "" { + urlTplParams["healthIssue%2Did"] = healthIssueId + } + return NewIdentitiesHealthIssuesHealthIssueItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewIdentitiesHealthIssuesRequestBuilderInternal instantiates a new IdentitiesHealthIssuesRequestBuilder and sets the default values. +func NewIdentitiesHealthIssuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentitiesHealthIssuesRequestBuilder) { + m := &IdentitiesHealthIssuesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/identities/healthIssues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewIdentitiesHealthIssuesRequestBuilder instantiates a new IdentitiesHealthIssuesRequestBuilder and sets the default values. +func NewIdentitiesHealthIssuesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentitiesHealthIssuesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewIdentitiesHealthIssuesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *IdentitiesHealthIssuesCountRequestBuilder when successful +func (m *IdentitiesHealthIssuesRequestBuilder) Count()(*IdentitiesHealthIssuesCountRequestBuilder) { + return NewIdentitiesHealthIssuesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get healthIssues from security +// returns a HealthIssueCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentitiesHealthIssuesRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentitiesHealthIssuesRequestBuilderGetRequestConfiguration)(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueCollectionResponseable, 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, idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.CreateHealthIssueCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueCollectionResponseable), nil +} +// Post create new navigation property to healthIssues for security +// returns a HealthIssueable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentitiesHealthIssuesRequestBuilder) Post(ctx context.Context, body idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable, requestConfiguration *IdentitiesHealthIssuesRequestBuilderPostRequestConfiguration)(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable, 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, idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.CreateHealthIssueFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable), nil +} +// ToGetRequestInformation get healthIssues from security +// returns a *RequestInformation when successful +func (m *IdentitiesHealthIssuesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentitiesHealthIssuesRequestBuilderGetRequestConfiguration)(*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 healthIssues for security +// returns a *RequestInformation when successful +func (m *IdentitiesHealthIssuesRequestBuilder) ToPostRequestInformation(ctx context.Context, body idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.HealthIssueable, requestConfiguration *IdentitiesHealthIssuesRequestBuilderPostRequestConfiguration)(*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 *IdentitiesHealthIssuesRequestBuilder when successful +func (m *IdentitiesHealthIssuesRequestBuilder) WithUrl(rawUrl string)(*IdentitiesHealthIssuesRequestBuilder) { + return NewIdentitiesHealthIssuesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/security/identities_request_builder.go b/security/identities_request_builder.go new file mode 100644 index 0000000000..958ccb616c --- /dev/null +++ b/security/identities_request_builder.go @@ -0,0 +1,162 @@ +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" + idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae "github.com/microsoftgraph/msgraph-sdk-go/models/security" +) + +// IdentitiesRequestBuilder provides operations to manage the identities property of the microsoft.graph.security entity. +type IdentitiesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// IdentitiesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// IdentitiesRequestBuilderGetQueryParameters get identities from security +type IdentitiesRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// IdentitiesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *IdentitiesRequestBuilderGetQueryParameters +} +// IdentitiesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentitiesRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewIdentitiesRequestBuilderInternal instantiates a new IdentitiesRequestBuilder and sets the default values. +func NewIdentitiesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentitiesRequestBuilder) { + m := &IdentitiesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/identities{?%24expand,%24select}", pathParameters), + } + return m +} +// NewIdentitiesRequestBuilder instantiates a new IdentitiesRequestBuilder and sets the default values. +func NewIdentitiesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentitiesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewIdentitiesRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property identities for security +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentitiesRequestBuilder) Delete(ctx context.Context, requestConfiguration *IdentitiesRequestBuilderDeleteRequestConfiguration)(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 get identities from security +// returns a IdentityContainerable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentitiesRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentitiesRequestBuilderGetRequestConfiguration)(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.IdentityContainerable, 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, idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.CreateIdentityContainerFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.IdentityContainerable), nil +} +// HealthIssues provides operations to manage the healthIssues property of the microsoft.graph.security.identityContainer entity. +// returns a *IdentitiesHealthIssuesRequestBuilder when successful +func (m *IdentitiesRequestBuilder) HealthIssues()(*IdentitiesHealthIssuesRequestBuilder) { + return NewIdentitiesHealthIssuesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property identities in security +// returns a IdentityContainerable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentitiesRequestBuilder) Patch(ctx context.Context, body idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.IdentityContainerable, requestConfiguration *IdentitiesRequestBuilderPatchRequestConfiguration)(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.IdentityContainerable, 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, idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.CreateIdentityContainerFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.IdentityContainerable), nil +} +// ToDeleteRequestInformation delete navigation property identities for security +// returns a *RequestInformation when successful +func (m *IdentitiesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IdentitiesRequestBuilderDeleteRequestConfiguration)(*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 get identities from security +// returns a *RequestInformation when successful +func (m *IdentitiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentitiesRequestBuilderGetRequestConfiguration)(*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 identities in security +// returns a *RequestInformation when successful +func (m *IdentitiesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body idd6d442c3cc83a389b8f0b8dd7ac355916e813c2882ff3aaa23331424ba827ae.IdentityContainerable, requestConfiguration *IdentitiesRequestBuilderPatchRequestConfiguration)(*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 *IdentitiesRequestBuilder when successful +func (m *IdentitiesRequestBuilder) WithUrl(rawUrl string)(*IdentitiesRequestBuilder) { + return NewIdentitiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/security/security_request_builder.go b/security/security_request_builder.go index ce51d260fc..9b523bd29c 100644 --- a/security/security_request_builder.go +++ b/security/security_request_builder.go @@ -87,6 +87,11 @@ func (m *SecurityRequestBuilder) Get(ctx context.Context, requestConfiguration * } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Securityable), nil } +// Identities provides operations to manage the identities property of the microsoft.graph.security entity. +// returns a *IdentitiesRequestBuilder when successful +func (m *SecurityRequestBuilder) Identities()(*IdentitiesRequestBuilder) { + return NewIdentitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Incidents provides operations to manage the incidents property of the microsoft.graph.security entity. // returns a *IncidentsRequestBuilder when successful func (m *SecurityRequestBuilder) Incidents()(*IncidentsRequestBuilder) { diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index dbda4c953a..fc6bc5ae51 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -11,7 +11,7 @@ import ( type SitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// 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. +// 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. 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 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. +// 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. // 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-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/site-search?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 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. +// 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. // 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 ecfed98ba1..3fdaeafcd1 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/tenantrelationships/multi_tenant_organization_request_builder.go b/tenantrelationships/multi_tenant_organization_request_builder.go index 1c36ef7231..69f1bd1b02 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) } -// Put 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. +// Put update the properties of 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/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/multitenantorganization-update?view=graph-rest-1.0 func (m *MultiTenantOrganizationRequestBuilder) Put(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MultiTenantOrganizationable, error) { requestInfo, err := m.ToPutRequestInformation(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 } -// ToPutRequestInformation 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. +// ToPutRequestInformation update the properties of a multitenant organization. // returns a *RequestInformation when successful func (m *MultiTenantOrganizationRequestBuilder) ToPutRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_activities_recent_request_builder.go b/users/item_activities_recent_request_builder.go index bb85ea25e5..130a929158 100644 --- a/users/item_activities_recent_request_builder.go +++ b/users/item_activities_recent_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemActivitiesRecentRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemActivitiesRecentRequestBuilderGetQueryParameters get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. +// ItemActivitiesRecentRequestBuilderGetQueryParameters get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent activityHistoryItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the activityHistoryItem. This means that activities without activityHistoryItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. type ItemActivitiesRecentRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -51,7 +51,7 @@ func NewItemActivitiesRecentRequestBuilder(rawUrl string, requestAdapter i2ae418 urlParams["request-raw-url"] = rawUrl return NewItemActivitiesRecentRequestBuilderInternal(urlParams, requestAdapter) } -// Get get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. +// Get get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent activityHistoryItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the activityHistoryItem. This means that activities without activityHistoryItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. // Deprecated: This method is obsolete. Use GetAsRecentGetResponse instead. // returns a ItemActivitiesRecentResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -75,7 +75,7 @@ func (m *ItemActivitiesRecentRequestBuilder) Get(ctx context.Context, requestCon } return res.(ItemActivitiesRecentResponseable), nil } -// GetAsRecentGetResponse get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. +// GetAsRecentGetResponse get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent activityHistoryItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the activityHistoryItem. This means that activities without activityHistoryItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. // returns a ItemActivitiesRecentGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -98,7 +98,7 @@ func (m *ItemActivitiesRecentRequestBuilder) GetAsRecentGetResponse(ctx context. } return res.(ItemActivitiesRecentGetResponseable), nil } -// ToGetRequestInformation get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent historyItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the historyItem. This means that activities without historyItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. +// ToGetRequestInformation get recent activities for a given user. This OData function has some default behaviors included to make it operate like a 'most recently used' API. The service queries for the most recent activityHistoryItems, and then pull those related activities. Activities are sorted according to the most recent lastModified on the activityHistoryItem. This means that activities without activityHistoryItems won't be included in the response. The UserActivity.ReadWrite.CreatedByApp permission will also apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. // returns a *RequestInformation when successful func (m *ItemActivitiesRecentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesRecentRequestBuilderGetRequestConfiguration)(*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 c31ab1db87..cfc7e2bfd9 100644 --- a/users/user_item_request_builder.go +++ b/users/user_item_request_builder.go @@ -18,7 +18,7 @@ type UserItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// UserItemRequestBuilderGetQueryParameters read properties and relationships of the user object. +// UserItemRequestBuilderGetQueryParameters retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. type UserItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -139,11 +139,11 @@ func (m *UserItemRequestBuilder) Contacts()(*ItemContactsRequestBuilder) { func (m *UserItemRequestBuilder) CreatedObjects()(*ItemCreatedObjectsRequestBuilder) { return NewItemCreatedObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. +// Delete deletes a user. // 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?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-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 { @@ -218,12 +218,12 @@ func (m *UserItemRequestBuilder) FindMeetingTimes()(*ItemFindMeetingTimesRequest func (m *UserItemRequestBuilder) FollowedSites()(*ItemFollowedSitesRequestBuilder) { return NewItemFollowedSitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the user object. +// Get retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. // returns a Userable 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-user-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/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 { @@ -356,12 +356,12 @@ func (m *UserItemRequestBuilder) OwnedDevices()(*ItemOwnedDevicesRequestBuilder) func (m *UserItemRequestBuilder) OwnedObjects()(*ItemOwnedObjectsRequestBuilder) { return NewItemOwnedObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. +// Patch update the properties of a user object. // returns a Userable 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-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0 func (m *UserItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, requestConfiguration *UserItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -474,7 +474,7 @@ func (m *UserItemRequestBuilder) Sponsors()(*ItemSponsorsRequestBuilder) { func (m *UserItemRequestBuilder) Teamwork()(*ItemTeamworkRequestBuilder) { return NewItemTeamworkRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. +// ToDeleteRequestInformation deletes a user. // returns a *RequestInformation when successful func (m *UserItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *UserItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -490,7 +490,7 @@ func (m *UserItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, func (m *UserItemRequestBuilder) Todo()(*ItemTodoRequestBuilder) { return NewItemTodoRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation read properties and relationships of the user object. +// ToGetRequestInformation retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. // returns a *RequestInformation when successful func (m *UserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -504,7 +504,7 @@ func (m *UserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, re requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. +// ToPatchRequestInformation update the properties of a user object. // returns a *RequestInformation when successful func (m *UserItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, requestConfiguration *UserItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/users_request_builder.go b/users/users_request_builder.go index 715d574cb9..a4aedd3689 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 { @@ -112,12 +112,12 @@ func (m *UsersRequestBuilder) GetAvailableExtensionProperties()(*GetAvailableExt func (m *UsersRequestBuilder) GetByIds()(*GetByIdsRequestBuilder) { return NewGetByIdsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. +// Post create a new user object. // returns a Userable 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-post-users?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-user-create?view=graph-rest-1.0 func (m *UsersRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, requestConfiguration *UsersRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, 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) @@ -149,7 +149,7 @@ func (m *UsersRequestBuilder) ToGetRequestInformation(ctx context.Context, reque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. +// ToPostRequestInformation create a new user object. // returns a *RequestInformation when successful func (m *UsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, requestConfiguration *UsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)