diff --git a/admin/exchange_mailboxes_item_export_items_request_builder.go b/admin/exchange_mailboxes_item_export_items_request_builder.go index 1a4f228c118..e44c793a58b 100644 --- a/admin/exchange_mailboxes_item_export_items_request_builder.go +++ b/admin/exchange_mailboxes_item_export_items_request_builder.go @@ -33,7 +33,7 @@ func NewExchangeMailboxesItemExportItemsRequestBuilder(rawUrl string, requestAda urlParams["request-raw-url"] = rawUrl return NewExchangeMailboxesItemExportItemsRequestBuilderInternal(urlParams, requestAdapter) } -// Post export Exchange mailboxItem objects in full fidelity. This API exports each item as an opaque stream. The data stream isn't intended for parsing, but can be used to import an item back into an Exchange mailbox. For more information, see: Overview of the mailbox import and export APIs in Microsoft Graph (preview) You can export up to 20 items in a single export request. +// Post export Exchange mailboxItem objects in full fidelity. This API exports each item as an opaque stream. The data stream isn't intended for parsing, but can be used to import an item back into an Exchange mailbox. For more information, see Overview of the mailbox import and export APIs in Microsoft Graph. You can export up to 20 items in a single export request. // Deprecated: This method is obsolete. Use PostAsExportItemsPostResponse instead. // returns a ExchangeMailboxesItemExportItemsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -57,7 +57,7 @@ func (m *ExchangeMailboxesItemExportItemsRequestBuilder) Post(ctx context.Contex } return res.(ExchangeMailboxesItemExportItemsResponseable), nil } -// PostAsExportItemsPostResponse export Exchange mailboxItem objects in full fidelity. This API exports each item as an opaque stream. The data stream isn't intended for parsing, but can be used to import an item back into an Exchange mailbox. For more information, see: Overview of the mailbox import and export APIs in Microsoft Graph (preview) You can export up to 20 items in a single export request. +// PostAsExportItemsPostResponse export Exchange mailboxItem objects in full fidelity. This API exports each item as an opaque stream. The data stream isn't intended for parsing, but can be used to import an item back into an Exchange mailbox. For more information, see Overview of the mailbox import and export APIs in Microsoft Graph. You can export up to 20 items in a single export request. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2024-06-30 // returns a ExchangeMailboxesItemExportItemsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -81,7 +81,7 @@ func (m *ExchangeMailboxesItemExportItemsRequestBuilder) PostAsExportItemsPostRe } return res.(ExchangeMailboxesItemExportItemsPostResponseable), nil } -// ToPostRequestInformation export Exchange mailboxItem objects in full fidelity. This API exports each item as an opaque stream. The data stream isn't intended for parsing, but can be used to import an item back into an Exchange mailbox. For more information, see: Overview of the mailbox import and export APIs in Microsoft Graph (preview) You can export up to 20 items in a single export request. +// ToPostRequestInformation export Exchange mailboxItem objects in full fidelity. This API exports each item as an opaque stream. The data stream isn't intended for parsing, but can be used to import an item back into an Exchange mailbox. For more information, see Overview of the mailbox import and export APIs in Microsoft Graph. You can export up to 20 items in a single export request. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2024-06-30 // returns a *RequestInformation when successful func (m *ExchangeMailboxesItemExportItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ExchangeMailboxesItemExportItemsPostRequestBodyable, requestConfiguration *ExchangeMailboxesItemExportItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/admin/exchange_mailboxes_item_folders_delta_request_builder.go b/admin/exchange_mailboxes_item_folders_delta_request_builder.go index 740f02a7080..44d446da317 100644 --- a/admin/exchange_mailboxes_item_folders_delta_request_builder.go +++ b/admin/exchange_mailboxes_item_folders_delta_request_builder.go @@ -13,7 +13,7 @@ import ( type ExchangeMailboxesItemFoldersDeltaRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ExchangeMailboxesItemFoldersDeltaRequestBuilderGetQueryParameters get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. +// ExchangeMailboxesItemFoldersDeltaRequestBuilderGetQueryParameters get a set of mailboxFolder objects that were added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. type ExchangeMailboxesItemFoldersDeltaRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -54,7 +54,7 @@ func NewExchangeMailboxesItemFoldersDeltaRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewExchangeMailboxesItemFoldersDeltaRequestBuilderInternal(urlParams, requestAdapter) } -// Get get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. +// Get get a set of mailboxFolder objects that were added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. // Deprecated: This method is obsolete. Use GetAsDeltaGetResponse instead. // returns a ExchangeMailboxesItemFoldersDeltaResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -78,7 +78,7 @@ func (m *ExchangeMailboxesItemFoldersDeltaRequestBuilder) Get(ctx context.Contex } return res.(ExchangeMailboxesItemFoldersDeltaResponseable), nil } -// GetAsDeltaGetResponse get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. +// GetAsDeltaGetResponse get a set of mailboxFolder objects that were added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15 // returns a ExchangeMailboxesItemFoldersDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -102,7 +102,7 @@ func (m *ExchangeMailboxesItemFoldersDeltaRequestBuilder) GetAsDeltaGetResponse( } return res.(ExchangeMailboxesItemFoldersDeltaGetResponseable), nil } -// ToGetRequestInformation get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. +// ToGetRequestInformation get a set of mailboxFolder objects that were added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15 // returns a *RequestInformation when successful func (m *ExchangeMailboxesItemFoldersDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ExchangeMailboxesItemFoldersDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/admin/exchange_mailboxes_item_folders_item_child_folders_delta_request_builder.go b/admin/exchange_mailboxes_item_folders_item_child_folders_delta_request_builder.go index a30ae0173d5..878aa03acf4 100644 --- a/admin/exchange_mailboxes_item_folders_item_child_folders_delta_request_builder.go +++ b/admin/exchange_mailboxes_item_folders_item_child_folders_delta_request_builder.go @@ -13,7 +13,7 @@ import ( type ExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilderGetQueryParameters get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. +// ExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilderGetQueryParameters get a set of mailboxFolder objects that were added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. type ExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -54,7 +54,7 @@ func NewExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilderInternal(urlParams, requestAdapter) } -// Get get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. +// Get get a set of mailboxFolder objects that were added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. // Deprecated: This method is obsolete. Use GetAsDeltaGetResponse instead. // returns a ExchangeMailboxesItemFoldersItemChildFoldersDeltaResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -78,7 +78,7 @@ func (m *ExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilder) Get(ct } return res.(ExchangeMailboxesItemFoldersItemChildFoldersDeltaResponseable), nil } -// GetAsDeltaGetResponse get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. +// GetAsDeltaGetResponse get a set of mailboxFolder objects that were added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15 // returns a ExchangeMailboxesItemFoldersItemChildFoldersDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -102,7 +102,7 @@ func (m *ExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilder) GetAsD } return res.(ExchangeMailboxesItemFoldersItemChildFoldersDeltaGetResponseable), nil } -// ToGetRequestInformation get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. +// ToGetRequestInformation get a set of mailboxFolder objects that were added, deleted, or removed from the user's mailbox. A delta function call for folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15 // returns a *RequestInformation when successful func (m *ExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ExchangeMailboxesItemFoldersItemChildFoldersDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/admin/exchange_mailboxes_item_folders_item_child_folders_item_items_delta_request_builder.go b/admin/exchange_mailboxes_item_folders_item_child_folders_item_items_delta_request_builder.go index ff397f1ac20..c475b77323c 100644 --- a/admin/exchange_mailboxes_item_folders_item_child_folders_item_items_delta_request_builder.go +++ b/admin/exchange_mailboxes_item_folders_item_child_folders_item_items_delta_request_builder.go @@ -13,7 +13,7 @@ import ( type ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilderGetQueryParameters get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. +// ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilderGetQueryParameters get a set of mailboxItem objects that were added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. type ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -54,7 +54,7 @@ func NewExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilder urlParams["request-raw-url"] = rawUrl return NewExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilderInternal(urlParams, requestAdapter) } -// Get get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. +// Get get a set of mailboxItem objects that were added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. // Deprecated: This method is obsolete. Use GetAsDeltaGetResponse instead. // returns a ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -75,7 +75,7 @@ func (m *ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilde } return res.(ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaResponseable), nil } -// GetAsDeltaGetResponse get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. +// GetAsDeltaGetResponse get a set of mailboxItem objects that were added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15 // returns a ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -96,7 +96,7 @@ func (m *ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilde } return res.(ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaGetResponseable), nil } -// ToGetRequestInformation get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. +// ToGetRequestInformation get a set of mailboxItem objects that were added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15 // returns a *RequestInformation when successful func (m *ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ExchangeMailboxesItemFoldersItemChildFoldersItemItemsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/admin/exchange_mailboxes_item_folders_item_items_delta_request_builder.go b/admin/exchange_mailboxes_item_folders_item_items_delta_request_builder.go index 26d865f1a87..a56eb67eda5 100644 --- a/admin/exchange_mailboxes_item_folders_item_items_delta_request_builder.go +++ b/admin/exchange_mailboxes_item_folders_item_items_delta_request_builder.go @@ -13,7 +13,7 @@ import ( type ExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilderGetQueryParameters get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. +// ExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilderGetQueryParameters get a set of mailboxItem objects that were added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. type ExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -54,7 +54,7 @@ func NewExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilderInternal(urlParams, requestAdapter) } -// Get get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. +// Get get a set of mailboxItem objects that were added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. // Deprecated: This method is obsolete. Use GetAsDeltaGetResponse instead. // returns a ExchangeMailboxesItemFoldersItemItemsDeltaResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -78,7 +78,7 @@ func (m *ExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilder) Get(ctx conte } return res.(ExchangeMailboxesItemFoldersItemItemsDeltaResponseable), nil } -// GetAsDeltaGetResponse get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. +// GetAsDeltaGetResponse get a set of mailboxItem objects that were added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15 // returns a ExchangeMailboxesItemFoldersItemItemsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -102,7 +102,7 @@ func (m *ExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilder) GetAsDeltaGet } return res.(ExchangeMailboxesItemFoldersItemItemsDeltaGetResponseable), nil } -// ToGetRequestInformation get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. +// ToGetRequestInformation get a set of mailboxItem objects that were added, deleted, or updated in a specified mailboxFolder. A delta function call for items in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time. // Deprecated: Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15 // returns a *RequestInformation when successful func (m *ExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ExchangeMailboxesItemFoldersItemItemsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/admin/people_photo_update_settings_request_builder.go b/admin/people_photo_update_settings_request_builder.go index cbc1e11137a..946c1316284 100644 --- a/admin/people_photo_update_settings_request_builder.go +++ b/admin/people_photo_update_settings_request_builder.go @@ -21,7 +21,7 @@ type PeoplePhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// PeoplePhotoUpdateSettingsRequestBuilderGetQueryParameters read the properties and relationships of a photoUpdateSettings object. +// PeoplePhotoUpdateSettingsRequestBuilderGetQueryParameters get the properties of a photoUpdateSettings object. type PeoplePhotoUpdateSettingsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -57,11 +57,8 @@ func NewPeoplePhotoUpdateSettingsRequestBuilder(rawUrl string, requestAdapter i2 urlParams["request-raw-url"] = rawUrl return NewPeoplePhotoUpdateSettingsRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a photoUpdateSettings object. +// Delete delete navigation property photoUpdateSettings for admin // 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/peopleadminsettings-delete-photoupdatesettings?view=graph-rest-beta func (m *PeoplePhotoUpdateSettingsRequestBuilder) Delete(ctx context.Context, requestConfiguration *PeoplePhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -76,12 +73,12 @@ func (m *PeoplePhotoUpdateSettingsRequestBuilder) Delete(ctx context.Context, re } return nil } -// Get read the properties and relationships of a photoUpdateSettings object. +// Get get the properties of a photoUpdateSettings object. // returns a PhotoUpdateSettingsable 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/photoupdatesettings-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/peopleadminsettings-list-photoupdatesettings?view=graph-rest-beta func (m *PeoplePhotoUpdateSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *PeoplePhotoUpdateSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhotoUpdateSettingsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +119,7 @@ func (m *PeoplePhotoUpdateSettingsRequestBuilder) Patch(ctx context.Context, bod } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhotoUpdateSettingsable), nil } -// ToDeleteRequestInformation delete a photoUpdateSettings object. +// ToDeleteRequestInformation delete navigation property photoUpdateSettings for admin // returns a *RequestInformation when successful func (m *PeoplePhotoUpdateSettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PeoplePhotoUpdateSettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -133,7 +130,7 @@ func (m *PeoplePhotoUpdateSettingsRequestBuilder) ToDeleteRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a photoUpdateSettings object. +// ToGetRequestInformation get the properties of a photoUpdateSettings object. // returns a *RequestInformation when successful func (m *PeoplePhotoUpdateSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PeoplePhotoUpdateSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_bulk_actions_item_retry_request_builder.go b/devicemanagement/virtual_endpoint_bulk_actions_item_retry_request_builder.go index 08abc40c2c7..6d47c276f20 100644 --- a/devicemanagement/virtual_endpoint_bulk_actions_item_retry_request_builder.go +++ b/devicemanagement/virtual_endpoint_bulk_actions_item_retry_request_builder.go @@ -33,8 +33,11 @@ func NewVirtualEndpointBulkActionsItemRetryRequestBuilder(rawUrl string, request urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointBulkActionsItemRetryRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action retry +// Post retry a cloudPcBulkAction object with selected Cloud PCs. // 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/cloudpcbulkaction-retry?view=graph-rest-beta func (m *VirtualEndpointBulkActionsItemRetryRequestBuilder) Post(ctx context.Context, body VirtualEndpointBulkActionsItemRetryPostRequestBodyable, requestConfiguration *VirtualEndpointBulkActionsItemRetryRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +52,7 @@ func (m *VirtualEndpointBulkActionsItemRetryRequestBuilder) Post(ctx context.Con } return nil } -// ToPostRequestInformation invoke action retry +// ToPostRequestInformation retry a cloudPcBulkAction object with selected Cloud PCs. // returns a *RequestInformation when successful func (m *VirtualEndpointBulkActionsItemRetryRequestBuilder) ToPostRequestInformation(ctx context.Context, body VirtualEndpointBulkActionsItemRetryPostRequestBodyable, requestConfiguration *VirtualEndpointBulkActionsItemRetryRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/kiota-dom-export.txt b/kiota-dom-export.txt index c47254034d2..986f0a9720d 100644 --- a/kiota-dom-export.txt +++ b/kiota-dom-export.txt @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c3cb69ba5b653e94bc66b978a46b115b71970743ac48568db335c5c0f7b6038c -size 109357037 +oid sha256:d7764c3fd8f5d2ac6848ee48957ecc53547648fa52c5b3be01427c032210c196 +size 109481685 diff --git a/kiota-lock.json b/kiota-lock.json index e4f4ed481e7..27e7647c14a 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "81062D266870CDD1C63D67EB4257C3E3255F21FF20C99E089D89B980EC1876AE124C83678FA5AE9FDF44B0729717E766C2FF4AF50161F85AB3CADFC0117E03F7", + "descriptionHash": "41AA3137252C168612F152AAE2D7E85B9FE6B22B5FD310D2FACA3A1EE852CF5AE899BA2C71F933D7B4A220B626246E92D22DE66B763E3E7A4F7C5513AEB36801", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.31.1", diff --git a/models/access_drift_report.go b/models/access_drift_report.go deleted file mode 100644 index 20f6add5c2b..00000000000 --- a/models/access_drift_report.go +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package models - -import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type AccessDriftReport struct { - Entity -} -// NewAccessDriftReport instantiates a new AccessDriftReport and sets the default values. -func NewAccessDriftReport()(*AccessDriftReport) { - m := &AccessDriftReport{ - Entity: *NewEntity(), - } - return m -} -// CreateAccessDriftReportFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateAccessDriftReportFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAccessDriftReport(), nil -} -// GetDownloadUri gets the downloadUri property value. The downloadUri property -// returns a *string when successful -func (m *AccessDriftReport) GetDownloadUri()(*string) { - val, err := m.GetBackingStore().Get("downloadUri") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetExpiresAt gets the expiresAt property value. The expiresAt property -// returns a *Time when successful -func (m *AccessDriftReport) GetExpiresAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("expiresAt") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *AccessDriftReport) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["downloadUri"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDownloadUri(val) - } - return nil - } - res["expiresAt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetExpiresAt(val) - } - return nil - } - res["resourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParseAccessDriftReportResourceType) - if err != nil { - return err - } - if val != nil { - m.SetResourceType(val.(*AccessDriftReportResourceType)) - } - return nil - } - res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTenantId(val) - } - return nil - } - return res -} -// GetResourceType gets the resourceType property value. The resourceType property -// returns a *AccessDriftReportResourceType when successful -func (m *AccessDriftReport) GetResourceType()(*AccessDriftReportResourceType) { - val, err := m.GetBackingStore().Get("resourceType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*AccessDriftReportResourceType) - } - return nil -} -// GetTenantId gets the tenantId property value. The tenantId property -// returns a *string when successful -func (m *AccessDriftReport) GetTenantId()(*string) { - val, err := m.GetBackingStore().Get("tenantId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *AccessDriftReport) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteStringValue("downloadUri", m.GetDownloadUri()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("expiresAt", m.GetExpiresAt()) - if err != nil { - return err - } - } - if m.GetResourceType() != nil { - cast := (*m.GetResourceType()).String() - err = writer.WriteStringValue("resourceType", &cast) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("tenantId", m.GetTenantId()) - if err != nil { - return err - } - } - return nil -} -// SetDownloadUri sets the downloadUri property value. The downloadUri property -func (m *AccessDriftReport) SetDownloadUri(value *string)() { - err := m.GetBackingStore().Set("downloadUri", value) - if err != nil { - panic(err) - } -} -// SetExpiresAt sets the expiresAt property value. The expiresAt property -func (m *AccessDriftReport) SetExpiresAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("expiresAt", value) - if err != nil { - panic(err) - } -} -// SetResourceType sets the resourceType property value. The resourceType property -func (m *AccessDriftReport) SetResourceType(value *AccessDriftReportResourceType)() { - err := m.GetBackingStore().Set("resourceType", value) - if err != nil { - panic(err) - } -} -// SetTenantId sets the tenantId property value. The tenantId property -func (m *AccessDriftReport) SetTenantId(value *string)() { - err := m.GetBackingStore().Set("tenantId", value) - if err != nil { - panic(err) - } -} -type AccessDriftReportable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetDownloadUri()(*string) - GetExpiresAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetResourceType()(*AccessDriftReportResourceType) - GetTenantId()(*string) - SetDownloadUri(value *string)() - SetExpiresAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetResourceType(value *AccessDriftReportResourceType)() - SetTenantId(value *string)() -} diff --git a/models/access_drift_report_resource_type.go b/models/access_drift_report_resource_type.go deleted file mode 100644 index 81d9b30c46e..00000000000 --- a/models/access_drift_report_resource_type.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package models -type AccessDriftReportResourceType int - -const ( - APPLICATION_ACCESSDRIFTREPORTRESOURCETYPE AccessDriftReportResourceType = iota - GROUP_ACCESSDRIFTREPORTRESOURCETYPE - UNKNOWNFUTUREVALUE_ACCESSDRIFTREPORTRESOURCETYPE -) - -func (i AccessDriftReportResourceType) String() string { - return []string{"application", "group", "unknownFutureValue"}[i] -} -func ParseAccessDriftReportResourceType(v string) (any, error) { - result := APPLICATION_ACCESSDRIFTREPORTRESOURCETYPE - switch v { - case "application": - result = APPLICATION_ACCESSDRIFTREPORTRESOURCETYPE - case "group": - result = GROUP_ACCESSDRIFTREPORTRESOURCETYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_ACCESSDRIFTREPORTRESOURCETYPE - default: - return nil, nil - } - return &result, nil -} -func SerializeAccessDriftReportResourceType(values []AccessDriftReportResourceType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i AccessDriftReportResourceType) isMultiValue() bool { - return false -} diff --git a/models/agent_risk_detection.go b/models/agent_risk_detection.go index f12658c46f4..d045c3408e5 100644 --- a/models/agent_risk_detection.go +++ b/models/agent_risk_detection.go @@ -83,6 +83,18 @@ func (m *AgentRiskDetection) GetBlueprintId()(*string) { } return nil } +// GetClientSessionId gets the clientSessionId property value. The clientSessionId property +// returns a *string when successful +func (m *AgentRiskDetection) GetClientSessionId()(*string) { + val, err := m.GetBackingStore().Get("clientSessionId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetDetectedDateTime gets the detectedDateTime property value. Date and time that the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, le, and ge). // returns a *Time when successful func (m *AgentRiskDetection) GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { @@ -161,6 +173,16 @@ func (m *AgentRiskDetection) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["clientSessionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSessionId(val) + } + return nil + } res["detectedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -251,6 +273,36 @@ func (m *AgentRiskDetection) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["signInClientDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSignInClientDisplayName(val) + } + return nil + } + res["signInCorrelationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSignInCorrelationId(val) + } + return nil + } + res["signInRequestId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSignInRequestId(val) + } + return nil + } res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -347,6 +399,42 @@ func (m *AgentRiskDetection) GetRiskState()(*RiskState) { } return nil } +// GetSignInClientDisplayName gets the signInClientDisplayName property value. The signInClientDisplayName property +// returns a *string when successful +func (m *AgentRiskDetection) GetSignInClientDisplayName()(*string) { + val, err := m.GetBackingStore().Get("signInClientDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSignInCorrelationId gets the signInCorrelationId property value. The signInCorrelationId property +// returns a *string when successful +func (m *AgentRiskDetection) GetSignInCorrelationId()(*string) { + val, err := m.GetBackingStore().Get("signInCorrelationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSignInRequestId gets the signInRequestId property value. The signInRequestId property +// returns a *string when successful +func (m *AgentRiskDetection) GetSignInRequestId()(*string) { + val, err := m.GetBackingStore().Get("signInRequestId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSource gets the source property value. The source system that generated the risk detection. Nullable. // returns a *string when successful func (m *AgentRiskDetection) GetSource()(*string) { @@ -395,6 +483,12 @@ func (m *AgentRiskDetection) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("clientSessionId", m.GetClientSessionId()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("detectedDateTime", m.GetDetectedDateTime()) if err != nil { @@ -454,6 +548,24 @@ func (m *AgentRiskDetection) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("signInClientDisplayName", m.GetSignInClientDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("signInCorrelationId", m.GetSignInCorrelationId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("signInRequestId", m.GetSignInRequestId()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("source", m.GetSource()) if err != nil { @@ -497,6 +609,13 @@ func (m *AgentRiskDetection) SetBlueprintId(value *string)() { panic(err) } } +// SetClientSessionId sets the clientSessionId property value. The clientSessionId property +func (m *AgentRiskDetection) SetClientSessionId(value *string)() { + err := m.GetBackingStore().Set("clientSessionId", value) + if err != nil { + panic(err) + } +} // SetDetectedDateTime sets the detectedDateTime property value. Date and time that the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, le, and ge). func (m *AgentRiskDetection) SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("detectedDateTime", value) @@ -560,6 +679,27 @@ func (m *AgentRiskDetection) SetRiskState(value *RiskState)() { panic(err) } } +// SetSignInClientDisplayName sets the signInClientDisplayName property value. The signInClientDisplayName property +func (m *AgentRiskDetection) SetSignInClientDisplayName(value *string)() { + err := m.GetBackingStore().Set("signInClientDisplayName", value) + if err != nil { + panic(err) + } +} +// SetSignInCorrelationId sets the signInCorrelationId property value. The signInCorrelationId property +func (m *AgentRiskDetection) SetSignInCorrelationId(value *string)() { + err := m.GetBackingStore().Set("signInCorrelationId", value) + if err != nil { + panic(err) + } +} +// SetSignInRequestId sets the signInRequestId property value. The signInRequestId property +func (m *AgentRiskDetection) SetSignInRequestId(value *string)() { + err := m.GetBackingStore().Set("signInRequestId", value) + if err != nil { + panic(err) + } +} // SetSource sets the source property value. The source system that generated the risk detection. Nullable. func (m *AgentRiskDetection) SetSource(value *string)() { err := m.GetBackingStore().Set("source", value) @@ -575,6 +715,7 @@ type AgentRiskDetectionable interface { GetAgentDisplayName()(*string) GetAgentId()(*string) GetBlueprintId()(*string) + GetClientSessionId()(*string) GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDetectionTimingType()(*RiskDetectionTimingType) GetIdentityType()(*AgentIdentityType) @@ -584,12 +725,16 @@ type AgentRiskDetectionable interface { GetRiskEvidence()(*string) GetRiskLevel()(*RiskLevel) GetRiskState()(*RiskState) + GetSignInClientDisplayName()(*string) + GetSignInCorrelationId()(*string) + GetSignInRequestId()(*string) GetSource()(*string) SetActivityDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetAdditionalInfo(value *string)() SetAgentDisplayName(value *string)() SetAgentId(value *string)() SetBlueprintId(value *string)() + SetClientSessionId(value *string)() SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDetectionTimingType(value *RiskDetectionTimingType)() SetIdentityType(value *AgentIdentityType)() @@ -599,5 +744,8 @@ type AgentRiskDetectionable interface { SetRiskEvidence(value *string)() SetRiskLevel(value *RiskLevel)() SetRiskState(value *RiskState)() + SetSignInClientDisplayName(value *string)() + SetSignInCorrelationId(value *string)() + SetSignInRequestId(value *string)() SetSource(value *string)() } diff --git a/models/android_work_profile_vpn_configuration.go b/models/android_work_profile_vpn_configuration.go index 5be2b696dc7..3c594dc6d1a 100644 --- a/models/android_work_profile_vpn_configuration.go +++ b/models/android_work_profile_vpn_configuration.go @@ -215,6 +215,22 @@ func (m *AndroidWorkProfileVpnConfiguration) GetFieldDeserializers()(map[string] } return nil } + res["lockdownExclusionList"] = 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.SetLockdownExclusionList(res) + } + return nil + } res["microsoftTunnelSiteId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -345,6 +361,18 @@ func (m *AndroidWorkProfileVpnConfiguration) GetIdentityCertificate()(AndroidWor } return nil } +// GetLockdownExclusionList gets the lockdownExclusionList property value. List of app package names that will be able to access the network directly when VPN is in lockdown mode but not connected. +// returns a []string when successful +func (m *AndroidWorkProfileVpnConfiguration) GetLockdownExclusionList()([]string) { + val, err := m.GetBackingStore().Get("lockdownExclusionList") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} // GetMicrosoftTunnelSiteId gets the microsoftTunnelSiteId property value. Microsoft Tunnel site ID. // returns a *string when successful func (m *AndroidWorkProfileVpnConfiguration) GetMicrosoftTunnelSiteId()(*string) { @@ -515,6 +543,12 @@ func (m *AndroidWorkProfileVpnConfiguration) Serialize(writer i878a80d2330e89d26 return err } } + if m.GetLockdownExclusionList() != nil { + err = writer.WriteCollectionOfStringValues("lockdownExclusionList", m.GetLockdownExclusionList()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("microsoftTunnelSiteId", m.GetMicrosoftTunnelSiteId()) if err != nil { @@ -640,6 +674,13 @@ func (m *AndroidWorkProfileVpnConfiguration) SetIdentityCertificate(value Androi panic(err) } } +// SetLockdownExclusionList sets the lockdownExclusionList property value. List of app package names that will be able to access the network directly when VPN is in lockdown mode but not connected. +func (m *AndroidWorkProfileVpnConfiguration) SetLockdownExclusionList(value []string)() { + err := m.GetBackingStore().Set("lockdownExclusionList", value) + if err != nil { + panic(err) + } +} // SetMicrosoftTunnelSiteId sets the microsoftTunnelSiteId property value. Microsoft Tunnel site ID. func (m *AndroidWorkProfileVpnConfiguration) SetMicrosoftTunnelSiteId(value *string)() { err := m.GetBackingStore().Set("microsoftTunnelSiteId", value) @@ -708,6 +749,7 @@ type AndroidWorkProfileVpnConfigurationable interface { GetCustomKeyValueData()([]KeyValuePairable) GetFingerprint()(*string) GetIdentityCertificate()(AndroidWorkProfileCertificateProfileBaseable) + GetLockdownExclusionList()([]string) GetMicrosoftTunnelSiteId()(*string) GetProxyExclusionList()([]string) GetProxyServer()(VpnProxyServerable) @@ -725,6 +767,7 @@ type AndroidWorkProfileVpnConfigurationable interface { SetCustomKeyValueData(value []KeyValuePairable)() SetFingerprint(value *string)() SetIdentityCertificate(value AndroidWorkProfileCertificateProfileBaseable)() + SetLockdownExclusionList(value []string)() SetMicrosoftTunnelSiteId(value *string)() SetProxyExclusionList(value []string)() SetProxyServer(value VpnProxyServerable)() diff --git a/models/approver_delegate.go b/models/approver_delegate.go index af3b557ce33..0ac2f92d21d 100644 --- a/models/approver_delegate.go +++ b/models/approver_delegate.go @@ -43,7 +43,7 @@ func (m *ApproverDelegate) GetAdditionalData()(map[string]any) { func (m *ApproverDelegate) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDelegate gets the delegate property value. The delegate property +// GetDelegate gets the delegate property value. The identity that receives the approval delegation. Only singleUser and groupMembers are currently supported. // returns a UserSetable when successful func (m *ApproverDelegate) GetDelegate()(UserSetable) { val, err := m.GetBackingStore().Get("delegate") @@ -103,7 +103,7 @@ func (m *ApproverDelegate) GetOdataType()(*string) { } return nil } -// GetSchedule gets the schedule property value. The schedule property +// GetSchedule gets the schedule property value. The schedule for the delegation, including start date and expiration pattern (duration, end date, or no expiration). // returns a RequestScheduleable when successful func (m *ApproverDelegate) GetSchedule()(RequestScheduleable) { val, err := m.GetBackingStore().Get("schedule") @@ -154,7 +154,7 @@ func (m *ApproverDelegate) SetAdditionalData(value map[string]any)() { func (m *ApproverDelegate) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDelegate sets the delegate property value. The delegate property +// SetDelegate sets the delegate property value. The identity that receives the approval delegation. Only singleUser and groupMembers are currently supported. func (m *ApproverDelegate) SetDelegate(value UserSetable)() { err := m.GetBackingStore().Set("delegate", value) if err != nil { @@ -168,7 +168,7 @@ func (m *ApproverDelegate) SetOdataType(value *string)() { panic(err) } } -// SetSchedule sets the schedule property value. The schedule property +// SetSchedule sets the schedule property value. The schedule for the delegation, including start date and expiration pattern (duration, end date, or no expiration). func (m *ApproverDelegate) SetSchedule(value RequestScheduleable)() { err := m.GetBackingStore().Set("schedule", value) if err != nil { diff --git a/models/attendance_record.go b/models/attendance_record.go index bbe950186a6..90a999b497c 100644 --- a/models/attendance_record.go +++ b/models/attendance_record.go @@ -46,6 +46,18 @@ func (m *AttendanceRecord) GetEmailAddress()(*string) { } return nil } +// GetEngagements gets the engagements property value. The list of real-time participant interaction behaviors during a meeting. +// returns a []MeetingEngagementable when successful +func (m *AttendanceRecord) GetEngagements()([]MeetingEngagementable) { + val, err := m.GetBackingStore().Get("engagements") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MeetingEngagementable) + } + return nil +} // GetExternalRegistrationInformation gets the externalRegistrationInformation property value. The external information for a virtual event registration. // returns a VirtualEventExternalRegistrationInformationable when successful func (m *AttendanceRecord) GetExternalRegistrationInformation()(VirtualEventExternalRegistrationInformationable) { @@ -88,6 +100,22 @@ func (m *AttendanceRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e } return nil } + res["engagements"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMeetingEngagementFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MeetingEngagementable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MeetingEngagementable) + } + } + m.SetEngagements(res) + } + return nil + } res["externalRegistrationInformation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateVirtualEventExternalRegistrationInformationFromDiscriminatorValue) if err != nil { @@ -234,6 +262,18 @@ func (m *AttendanceRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + if m.GetEngagements() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetEngagements())) + for i, v := range m.GetEngagements() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("engagements", cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("externalRegistrationInformation", m.GetExternalRegistrationInformation()) if err != nil { @@ -286,6 +326,13 @@ func (m *AttendanceRecord) SetEmailAddress(value *string)() { panic(err) } } +// SetEngagements sets the engagements property value. The list of real-time participant interaction behaviors during a meeting. +func (m *AttendanceRecord) SetEngagements(value []MeetingEngagementable)() { + err := m.GetBackingStore().Set("engagements", value) + if err != nil { + panic(err) + } +} // SetExternalRegistrationInformation sets the externalRegistrationInformation property value. The external information for a virtual event registration. func (m *AttendanceRecord) SetExternalRegistrationInformation(value VirtualEventExternalRegistrationInformationable)() { err := m.GetBackingStore().Set("externalRegistrationInformation", value) @@ -333,6 +380,7 @@ type AttendanceRecordable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAttendanceIntervals()([]AttendanceIntervalable) GetEmailAddress()(*string) + GetEngagements()([]MeetingEngagementable) GetExternalRegistrationInformation()(VirtualEventExternalRegistrationInformationable) GetIdentity()(Identityable) GetRegistrantId()(*string) @@ -341,6 +389,7 @@ type AttendanceRecordable interface { GetTotalAttendanceInSeconds()(*int32) SetAttendanceIntervals(value []AttendanceIntervalable)() SetEmailAddress(value *string)() + SetEngagements(value []MeetingEngagementable)() SetExternalRegistrationInformation(value VirtualEventExternalRegistrationInformationable)() SetIdentity(value Identityable)() SetRegistrantId(value *string)() diff --git a/models/cloud_certification_authority.go b/models/cloud_certification_authority.go index d0cf0eda363..6b6de97d946 100644 --- a/models/cloud_certification_authority.go +++ b/models/cloud_certification_authority.go @@ -436,6 +436,16 @@ func (m *CloudCertificationAuthority) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["geographicRegion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGeographicRegion(val) + } + return nil + } res["issuerCommonName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -640,6 +650,18 @@ func (m *CloudCertificationAuthority) GetFieldDeserializers()(map[string]func(i8 } return res } +// GetGeographicRegion gets the geographicRegion property value. The geographic region where a cloud certification authority (CA) is hosted. Read-only. +// returns a *string when successful +func (m *CloudCertificationAuthority) GetGeographicRegion()(*string) { + val, err := m.GetBackingStore().Get("geographicRegion") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetIssuerCommonName gets the issuerCommonName property value. The issuerCommonName property // returns a *string when successful func (m *CloudCertificationAuthority) GetIssuerCommonName()(*string) { @@ -998,6 +1020,12 @@ func (m *CloudCertificationAuthority) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteStringValue("geographicRegion", m.GetGeographicRegion()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("issuerCommonName", m.GetIssuerCommonName()) if err != nil { @@ -1247,6 +1275,13 @@ func (m *CloudCertificationAuthority) SetExtendedKeyUsages(value []ExtendedKeyUs panic(err) } } +// SetGeographicRegion sets the geographicRegion property value. The geographic region where a cloud certification authority (CA) is hosted. Read-only. +func (m *CloudCertificationAuthority) SetGeographicRegion(value *string)() { + err := m.GetBackingStore().Set("geographicRegion", value) + if err != nil { + panic(err) + } +} // SetIssuerCommonName sets the issuerCommonName property value. The issuerCommonName property func (m *CloudCertificationAuthority) SetIssuerCommonName(value *string)() { err := m.GetBackingStore().Set("issuerCommonName", value) @@ -1401,6 +1436,7 @@ type CloudCertificationAuthorityable interface { GetDisplayName()(*string) GetETag()(*string) GetExtendedKeyUsages()([]ExtendedKeyUsageable) + GetGeographicRegion()(*string) GetIssuerCommonName()(*string) GetKeyPlatform()(*CloudCertificationAuthorityKeyPlatformType) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -1438,6 +1474,7 @@ type CloudCertificationAuthorityable interface { SetDisplayName(value *string)() SetETag(value *string)() SetExtendedKeyUsages(value []ExtendedKeyUsageable)() + SetGeographicRegion(value *string)() SetIssuerCommonName(value *string)() SetKeyPlatform(value *CloudCertificationAuthorityKeyPlatformType)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/cloud_p_c.go b/models/cloud_p_c.go index a28a802be42..b882a114072 100644 --- a/models/cloud_p_c.go +++ b/models/cloud_p_c.go @@ -755,7 +755,7 @@ func (m *CloudPC) GetProvisioningType()(*CloudPcProvisioningType) { } return nil } -// GetScopeIds gets the scopeIds property value. The scopeIds property +// GetScopeIds gets the scopeIds property value. The scope IDs of the corresponding permission. Currently, it's the Intune scope tag ID. Read-only. // returns a []string when successful func (m *CloudPC) GetScopeIds()([]string) { val, err := m.GetBackingStore().Get("scopeIds") @@ -1346,7 +1346,7 @@ func (m *CloudPC) SetProvisioningType(value *CloudPcProvisioningType)() { panic(err) } } -// SetScopeIds sets the scopeIds property value. The scopeIds property +// SetScopeIds sets the scopeIds property value. The scope IDs of the corresponding permission. Currently, it's the Intune scope tag ID. Read-only. func (m *CloudPC) SetScopeIds(value []string)() { err := m.GetBackingStore().Set("scopeIds", value) if err != nil { diff --git a/models/cloud_pc_device_image.go b/models/cloud_pc_device_image.go index 2cea18c456e..1d89f575664 100644 --- a/models/cloud_pc_device_image.go +++ b/models/cloud_pc_device_image.go @@ -271,7 +271,7 @@ func (m *CloudPcDeviceImage) GetOsVersionNumber()(*string) { } return nil } -// GetScopeIds gets the scopeIds property value. The scopeIds property +// GetScopeIds gets the scopeIds property value. The scope IDs of the corresponding permission. Currently, it's the Intune scope tag ID. Read-only. // returns a []string when successful func (m *CloudPcDeviceImage) GetScopeIds()([]string) { val, err := m.GetBackingStore().Get("scopeIds") @@ -495,7 +495,7 @@ func (m *CloudPcDeviceImage) SetOsVersionNumber(value *string)() { panic(err) } } -// SetScopeIds sets the scopeIds property value. The scopeIds property +// SetScopeIds sets the scopeIds property value. The scope IDs of the corresponding permission. Currently, it's the Intune scope tag ID. Read-only. func (m *CloudPcDeviceImage) SetScopeIds(value []string)() { err := m.GetBackingStore().Set("scopeIds", value) if err != nil { diff --git a/models/cloud_pc_geographic_location_type.go b/models/cloud_pc_geographic_location_type.go index 23797de3bbd..dbd86b8ec9a 100644 --- a/models/cloud_pc_geographic_location_type.go +++ b/models/cloud_pc_geographic_location_type.go @@ -21,10 +21,11 @@ const ( USGOVERNMENT_CLOUDPCGEOGRAPHICLOCATIONTYPE UNKNOWNFUTUREVALUE_CLOUDPCGEOGRAPHICLOCATIONTYPE MEXICO_CLOUDPCGEOGRAPHICLOCATIONTYPE + AUSTRALIANEWZEALAND_CLOUDPCGEOGRAPHICLOCATIONTYPE ) func (i CloudPcGeographicLocationType) String() string { - return []string{"default", "asia", "australasia", "canada", "europe", "india", "africa", "usCentral", "usEast", "usWest", "southAmerica", "middleEast", "centralAmerica", "usGovernment", "unknownFutureValue", "mexico"}[i] + return []string{"default", "asia", "australasia", "canada", "europe", "india", "africa", "usCentral", "usEast", "usWest", "southAmerica", "middleEast", "centralAmerica", "usGovernment", "unknownFutureValue", "mexico", "australiaNewZealand"}[i] } func ParseCloudPcGeographicLocationType(v string) (any, error) { result := DEFAULT_CLOUDPCGEOGRAPHICLOCATIONTYPE @@ -61,6 +62,8 @@ func ParseCloudPcGeographicLocationType(v string) (any, error) { result = UNKNOWNFUTUREVALUE_CLOUDPCGEOGRAPHICLOCATIONTYPE case "mexico": result = MEXICO_CLOUDPCGEOGRAPHICLOCATIONTYPE + case "australiaNewZealand": + result = AUSTRALIANEWZEALAND_CLOUDPCGEOGRAPHICLOCATIONTYPE default: return nil, nil } diff --git a/models/cloud_pc_provisioning_policy.go b/models/cloud_pc_provisioning_policy.go index 2b394a0736a..4b83d195710 100644 --- a/models/cloud_pc_provisioning_policy.go +++ b/models/cloud_pc_provisioning_policy.go @@ -581,7 +581,7 @@ func (m *CloudPcProvisioningPolicy) GetProvisioningType()(*CloudPcProvisioningTy } return nil } -// GetScopeIds gets the scopeIds property value. The scopeIds property +// GetScopeIds gets the scopeIds property value. The list of scope tag IDs for this resource. Read-only. // returns a []string when successful func (m *CloudPcProvisioningPolicy) GetScopeIds()([]string) { val, err := m.GetBackingStore().Get("scopeIds") @@ -981,7 +981,7 @@ func (m *CloudPcProvisioningPolicy) SetProvisioningType(value *CloudPcProvisioni panic(err) } } -// SetScopeIds sets the scopeIds property value. The scopeIds property +// SetScopeIds sets the scopeIds property value. The list of scope tag IDs for this resource. Read-only. func (m *CloudPcProvisioningPolicy) SetScopeIds(value []string)() { err := m.GetBackingStore().Set("scopeIds", value) if err != nil { diff --git a/models/device_compliance_script.go b/models/device_compliance_script.go index 307ae41303c..6a3c09ad0f6 100644 --- a/models/device_compliance_script.go +++ b/models/device_compliance_script.go @@ -204,6 +204,16 @@ func (m *DeviceComplianceScript) GetFieldDeserializers()(map[string]func(i878a80 } return nil } + res["platform"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseDeviceComplianceScriptPlatformType) + if err != nil { + return err + } + if val != nil { + m.SetPlatform(val.(*DeviceComplianceScriptPlatformType)) + } + return nil + } res["publisher"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -284,6 +294,18 @@ func (m *DeviceComplianceScript) GetLastModifiedDateTime()(*i336074805fc853987ab } return nil } +// GetPlatform gets the platform property value. Indicates the operating system platform type that this compliance script targets. +// returns a *DeviceComplianceScriptPlatformType when successful +func (m *DeviceComplianceScript) GetPlatform()(*DeviceComplianceScriptPlatformType) { + val, err := m.GetBackingStore().Get("platform") + if err != nil { + panic(err) + } + if val != nil { + return val.(*DeviceComplianceScriptPlatformType) + } + return nil +} // GetPublisher gets the publisher property value. Name of the device compliance script publisher // returns a *string when successful func (m *DeviceComplianceScript) GetPublisher()(*string) { @@ -410,6 +432,13 @@ func (m *DeviceComplianceScript) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + if m.GetPlatform() != nil { + cast := (*m.GetPlatform()).String() + err = writer.WriteStringValue("platform", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("publisher", m.GetPublisher()) if err != nil { @@ -505,6 +534,13 @@ func (m *DeviceComplianceScript) SetLastModifiedDateTime(value *i336074805fc8539 panic(err) } } +// SetPlatform sets the platform property value. Indicates the operating system platform type that this compliance script targets. +func (m *DeviceComplianceScript) SetPlatform(value *DeviceComplianceScriptPlatformType)() { + err := m.GetBackingStore().Set("platform", value) + if err != nil { + panic(err) + } +} // SetPublisher sets the publisher property value. Name of the device compliance script publisher func (m *DeviceComplianceScript) SetPublisher(value *string)() { err := m.GetBackingStore().Set("publisher", value) @@ -558,6 +594,7 @@ type DeviceComplianceScriptable interface { GetDisplayName()(*string) GetEnforceSignatureCheck()(*bool) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetPlatform()(*DeviceComplianceScriptPlatformType) GetPublisher()(*string) GetRoleScopeTagIds()([]string) GetRunAs32Bit()(*bool) @@ -572,6 +609,7 @@ type DeviceComplianceScriptable interface { SetDisplayName(value *string)() SetEnforceSignatureCheck(value *bool)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetPlatform(value *DeviceComplianceScriptPlatformType)() SetPublisher(value *string)() SetRoleScopeTagIds(value []string)() SetRunAs32Bit(value *bool)() diff --git a/models/device_compliance_script_platform_type.go b/models/device_compliance_script_platform_type.go new file mode 100644 index 00000000000..de4d73d6f3c --- /dev/null +++ b/models/device_compliance_script_platform_type.go @@ -0,0 +1,47 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +// Indicates the platform that a device compliance script targets for evaluation. +type DeviceComplianceScriptPlatformType int + +const ( + // Default. Indicates that the compliance script targets devices running Windows 10 and later. + WINDOWS10_DEVICECOMPLIANCESCRIPTPLATFORMTYPE DeviceComplianceScriptPlatformType = iota + // Indicates that the compliance script targets devices running Linux. + LINUX_DEVICECOMPLIANCESCRIPTPLATFORMTYPE + // Indicates that the compliance script targets devices running macOS. + MACOS_DEVICECOMPLIANCESCRIPTPLATFORMTYPE + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_DEVICECOMPLIANCESCRIPTPLATFORMTYPE +) + +func (i DeviceComplianceScriptPlatformType) String() string { + return []string{"windows10", "linux", "macOS", "unknownFutureValue"}[i] +} +func ParseDeviceComplianceScriptPlatformType(v string) (any, error) { + result := WINDOWS10_DEVICECOMPLIANCESCRIPTPLATFORMTYPE + switch v { + case "windows10": + result = WINDOWS10_DEVICECOMPLIANCESCRIPTPLATFORMTYPE + case "linux": + result = LINUX_DEVICECOMPLIANCESCRIPTPLATFORMTYPE + case "macOS": + result = MACOS_DEVICECOMPLIANCESCRIPTPLATFORMTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_DEVICECOMPLIANCESCRIPTPLATFORMTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeDeviceComplianceScriptPlatformType(values []DeviceComplianceScriptPlatformType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DeviceComplianceScriptPlatformType) isMultiValue() bool { + return false +} diff --git a/models/device_management.go b/models/device_management.go index 35cea4baf3b..115d596afda 100644 --- a/models/device_management.go +++ b/models/device_management.go @@ -9,6 +9,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) +// DeviceManagement singleton that acts as container for a collection of Resource Access entities. type DeviceManagement struct { Entity } diff --git a/models/entity.go b/models/entity.go index 3ba07f8133a..f513c51f0eb 100644 --- a/models/entity.go +++ b/models/entity.go @@ -37,8 +37,6 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 switch *mappingValue { case "#microsoft.graph.aadUserConversationMember": return NewAadUserConversationMember(), nil - case "#microsoft.graph.accessDriftReport": - return NewAccessDriftReport(), nil case "#microsoft.graph.accessPackage": return NewAccessPackage(), nil case "#microsoft.graph.accessPackageAssignment": @@ -3541,6 +3539,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewVirtualEventsRoot(), nil case "#microsoft.graph.virtualEventTownhall": return NewVirtualEventTownhall(), nil + case "#microsoft.graph.virtualEventTownhallRegistrationConfiguration": + return NewVirtualEventTownhallRegistrationConfiguration(), nil case "#microsoft.graph.virtualEventWebinar": return NewVirtualEventWebinar(), nil case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": diff --git a/models/expedited_windows_quality_update_settings.go b/models/expedited_windows_quality_update_settings.go index 3e55e44098a..ded0c7e1fd3 100644 --- a/models/expedited_windows_quality_update_settings.go +++ b/models/expedited_windows_quality_update_settings.go @@ -80,6 +80,16 @@ func (m *ExpeditedWindowsQualityUpdateSettings) GetFieldDeserializers()(map[stri } return nil } + res["qualityUpdateCatalogItemId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetQualityUpdateCatalogItemId(val) + } + return nil + } res["qualityUpdateRelease"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -104,6 +114,18 @@ func (m *ExpeditedWindowsQualityUpdateSettings) GetOdataType()(*string) { } return nil } +// GetQualityUpdateCatalogItemId gets the qualityUpdateCatalogItemId property value. The unique identifier for the quality update catalog item targeted by the expedite. +// returns a *string when successful +func (m *ExpeditedWindowsQualityUpdateSettings) GetQualityUpdateCatalogItemId()(*string) { + val, err := m.GetBackingStore().Get("qualityUpdateCatalogItemId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetQualityUpdateRelease gets the qualityUpdateRelease property value. The release date to identify a quality update. // returns a *string when successful func (m *ExpeditedWindowsQualityUpdateSettings) GetQualityUpdateRelease()(*string) { @@ -130,6 +152,12 @@ func (m *ExpeditedWindowsQualityUpdateSettings) Serialize(writer i878a80d2330e89 return err } } + { + err := writer.WriteStringValue("qualityUpdateCatalogItemId", m.GetQualityUpdateCatalogItemId()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("qualityUpdateRelease", m.GetQualityUpdateRelease()) if err != nil { @@ -169,6 +197,13 @@ func (m *ExpeditedWindowsQualityUpdateSettings) SetOdataType(value *string)() { panic(err) } } +// SetQualityUpdateCatalogItemId sets the qualityUpdateCatalogItemId property value. The unique identifier for the quality update catalog item targeted by the expedite. +func (m *ExpeditedWindowsQualityUpdateSettings) SetQualityUpdateCatalogItemId(value *string)() { + err := m.GetBackingStore().Set("qualityUpdateCatalogItemId", value) + if err != nil { + panic(err) + } +} // SetQualityUpdateRelease sets the qualityUpdateRelease property value. The release date to identify a quality update. func (m *ExpeditedWindowsQualityUpdateSettings) SetQualityUpdateRelease(value *string)() { err := m.GetBackingStore().Set("qualityUpdateRelease", value) @@ -183,9 +218,11 @@ type ExpeditedWindowsQualityUpdateSettingsable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDaysUntilForcedReboot()(*int32) GetOdataType()(*string) + GetQualityUpdateCatalogItemId()(*string) GetQualityUpdateRelease()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDaysUntilForcedReboot(value *int32)() SetOdataType(value *string)() + SetQualityUpdateCatalogItemId(value *string)() SetQualityUpdateRelease(value *string)() } diff --git a/models/export_item_response.go b/models/export_item_response.go index 660b773a118..336525dfda9 100644 --- a/models/export_item_response.go +++ b/models/export_item_response.go @@ -55,7 +55,7 @@ func (m *ExportItemResponse) GetChangeKey()(*string) { } return nil } -// GetData gets the data property value. Data that represents an item in a base64 encoded opaque stream. +// GetData gets the data property value. Data that represents an item in a Base64-encoded opaque stream. // returns a []byte when successful func (m *ExportItemResponse) GetData()([]byte) { val, err := m.GetBackingStore().Get("data") @@ -217,7 +217,7 @@ func (m *ExportItemResponse) SetChangeKey(value *string)() { panic(err) } } -// SetData sets the data property value. Data that represents an item in a base64 encoded opaque stream. +// SetData sets the data property value. Data that represents an item in a Base64-encoded opaque stream. func (m *ExportItemResponse) SetData(value []byte)() { err := m.GetBackingStore().Set("data", value) if err != nil { diff --git a/models/group_chat_teams_app_installation_scope_info.go b/models/group_chat_teams_app_installation_scope_info.go index b2e5cd08c0b..94dcbe8f7ca 100644 --- a/models/group_chat_teams_app_installation_scope_info.go +++ b/models/group_chat_teams_app_installation_scope_info.go @@ -24,7 +24,7 @@ func NewGroupChatTeamsAppInstallationScopeInfo()(*GroupChatTeamsAppInstallationS func CreateGroupChatTeamsAppInstallationScopeInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewGroupChatTeamsAppInstallationScopeInfo(), nil } -// GetChatId gets the chatId property value. The chatId property +// GetChatId gets the chatId property value. The ID of the chat where the Teams app is installed. // returns a *string when successful func (m *GroupChatTeamsAppInstallationScopeInfo) GetChatId()(*string) { val, err := m.GetBackingStore().Get("chatId") @@ -66,7 +66,7 @@ func (m *GroupChatTeamsAppInstallationScopeInfo) Serialize(writer i878a80d2330e8 } return nil } -// SetChatId sets the chatId property value. The chatId property +// SetChatId sets the chatId property value. The ID of the chat where the Teams app is installed. func (m *GroupChatTeamsAppInstallationScopeInfo) SetChatId(value *string)() { err := m.GetBackingStore().Set("chatId", value) if err != nil { diff --git a/models/identifier_uri_configuration.go b/models/identifier_uri_configuration.go index 9460002df4d..29ba116bbe7 100644 --- a/models/identifier_uri_configuration.go +++ b/models/identifier_uri_configuration.go @@ -103,7 +103,7 @@ func (m *IdentifierUriConfiguration) GetOdataType()(*string) { } return nil } -// GetUriAdditionWithoutUniqueTenantIdentifier gets the uriAdditionWithoutUniqueTenantIdentifier property value. Block new identifier URIs for applications, unless they contain a unique tenant identifier like the tenant ID, appId (client ID), or verified domain. For example, api://{tenatId}/string, api://{appId}/string, {scheme}://string/{tenantId}, {scheme}://string/{appId}, https://{verified-domain.com}/path, {scheme}://{subdomain}.{verified-domain.com}/path. +// GetUriAdditionWithoutUniqueTenantIdentifier gets the uriAdditionWithoutUniqueTenantIdentifier property value. Block new identifier URIs for applications, unless they contain a unique tenant identifier like the tenant ID, appId (client ID), or verified domain. For example, api://{tenantId}/string, api://{appId}/string, {scheme}://string/{tenantId}, {scheme}://string/{appId}, https://{verified-domain.com}/path, {scheme}://{subdomain}.{verified-domain.com}/path. // returns a IdentifierUriRestrictionable when successful func (m *IdentifierUriConfiguration) GetUriAdditionWithoutUniqueTenantIdentifier()(IdentifierUriRestrictionable) { val, err := m.GetBackingStore().Get("uriAdditionWithoutUniqueTenantIdentifier") @@ -168,7 +168,7 @@ func (m *IdentifierUriConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetUriAdditionWithoutUniqueTenantIdentifier sets the uriAdditionWithoutUniqueTenantIdentifier property value. Block new identifier URIs for applications, unless they contain a unique tenant identifier like the tenant ID, appId (client ID), or verified domain. For example, api://{tenatId}/string, api://{appId}/string, {scheme}://string/{tenantId}, {scheme}://string/{appId}, https://{verified-domain.com}/path, {scheme}://{subdomain}.{verified-domain.com}/path. +// SetUriAdditionWithoutUniqueTenantIdentifier sets the uriAdditionWithoutUniqueTenantIdentifier property value. Block new identifier URIs for applications, unless they contain a unique tenant identifier like the tenant ID, appId (client ID), or verified domain. For example, api://{tenantId}/string, api://{appId}/string, {scheme}://string/{tenantId}, {scheme}://string/{appId}, https://{verified-domain.com}/path, {scheme}://{subdomain}.{verified-domain.com}/path. func (m *IdentifierUriConfiguration) SetUriAdditionWithoutUniqueTenantIdentifier(value IdentifierUriRestrictionable)() { err := m.GetBackingStore().Set("uriAdditionWithoutUniqueTenantIdentifier", value) if err != nil { diff --git a/models/identifier_uri_restriction.go b/models/identifier_uri_restriction.go index 424e2174559..b68500d700b 100644 --- a/models/identifier_uri_restriction.go +++ b/models/identifier_uri_restriction.go @@ -56,7 +56,7 @@ func (m *IdentifierUriRestriction) GetExcludeActors()(AppManagementPolicyActorEx } return nil } -// GetExcludeAppsReceivingV2Tokens gets the excludeAppsReceivingV2Tokens property value. If true, the restriction isn't enforced for applications that are configured to receive V2 tokens in Microsoft Entra ID; else, the restriction isn't enforced for those applications. +// GetExcludeAppsReceivingV2Tokens gets the excludeAppsReceivingV2Tokens property value. If true, the restriction isn't enforced for applications that are configured to receive V2 tokens in Microsoft Entra ID; else, the restriction is enforced for those applications. // returns a *bool when successful func (m *IdentifierUriRestriction) GetExcludeAppsReceivingV2Tokens()(*bool) { val, err := m.GetBackingStore().Get("excludeAppsReceivingV2Tokens") @@ -269,7 +269,7 @@ func (m *IdentifierUriRestriction) SetExcludeActors(value AppManagementPolicyAct panic(err) } } -// SetExcludeAppsReceivingV2Tokens sets the excludeAppsReceivingV2Tokens property value. If true, the restriction isn't enforced for applications that are configured to receive V2 tokens in Microsoft Entra ID; else, the restriction isn't enforced for those applications. +// SetExcludeAppsReceivingV2Tokens sets the excludeAppsReceivingV2Tokens property value. If true, the restriction isn't enforced for applications that are configured to receive V2 tokens in Microsoft Entra ID; else, the restriction is enforced for those applications. func (m *IdentifierUriRestriction) SetExcludeAppsReceivingV2Tokens(value *bool)() { err := m.GetBackingStore().Set("excludeAppsReceivingV2Tokens", value) if err != nil { diff --git a/models/identity_governance_user_settings.go b/models/identity_governance_user_settings.go index 71af105c3d7..8380b5ae559 100644 --- a/models/identity_governance_user_settings.go +++ b/models/identity_governance_user_settings.go @@ -38,7 +38,7 @@ func (m *IdentityGovernanceUserSettings) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetApproverDelegate gets the approverDelegate property value. The approverDelegate property +// GetApproverDelegate gets the approverDelegate property value. The approver delegate configuration for the user, including the delegate identity and delegation schedule. Nullable. // returns a ApproverDelegateable when successful func (m *IdentityGovernanceUserSettings) GetApproverDelegate()(ApproverDelegateable) { val, err := m.GetBackingStore().Get("approverDelegate") @@ -122,7 +122,7 @@ func (m *IdentityGovernanceUserSettings) SetAdditionalData(value map[string]any) panic(err) } } -// SetApproverDelegate sets the approverDelegate property value. The approverDelegate property +// SetApproverDelegate sets the approverDelegate property value. The approver delegate configuration for the user, including the delegate identity and delegation schedule. Nullable. func (m *IdentityGovernanceUserSettings) SetApproverDelegate(value ApproverDelegateable)() { err := m.GetBackingStore().Set("approverDelegate", value) if err != nil { diff --git a/models/identitygovernance/task_processing_result.go b/models/identitygovernance/task_processing_result.go index f9cea3a6db0..ee5dc644539 100644 --- a/models/identitygovernance/task_processing_result.go +++ b/models/identitygovernance/task_processing_result.go @@ -48,7 +48,7 @@ func (m *TaskProcessingResult) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3 } return nil } -// GetFailureReason gets the failureReason property value. Describes why the taskProcessingResult has failed. +// GetFailureReason gets the failureReason property value. Describes why the taskProcessingResult failed. // returns a *string when successful func (m *TaskProcessingResult) GetFailureReason()(*string) { val, err := m.GetBackingStore().Get("failureReason") @@ -146,7 +146,7 @@ func (m *TaskProcessingResult) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetProcessingInfo gets the processingInfo property value. The processingInfo property +// GetProcessingInfo gets the processingInfo property value. Additional human-readable context about the task processing outcome. This property contains information about edge cases where the task completed successfully but the expected action wasn't performed because the target was already in the desired state, such as when the user was already a member of the specified group. Returns null when no additional context is needed. Nullable. // returns a *string when successful func (m *TaskProcessingResult) GetProcessingInfo()(*string) { val, err := m.GetBackingStore().Get("processingInfo") @@ -170,7 +170,7 @@ func (m *TaskProcessingResult) GetProcessingStatus()(*LifecycleWorkflowProcessin } return nil } -// GetStartedDateTime gets the startedDateTime property value. The date time when taskProcessingResult execution started. Value is null if task execution has not yet started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. +// GetStartedDateTime gets the startedDateTime property value. The date time when taskProcessingResult execution started. Value is null if task execution hasn't started yet.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. // returns a *Time when successful func (m *TaskProcessingResult) GetStartedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("startedDateTime") @@ -277,14 +277,14 @@ func (m *TaskProcessingResult) SetCreatedDateTime(value *i336074805fc853987abe6f panic(err) } } -// SetFailureReason sets the failureReason property value. Describes why the taskProcessingResult has failed. +// SetFailureReason sets the failureReason property value. Describes why the taskProcessingResult failed. func (m *TaskProcessingResult) SetFailureReason(value *string)() { err := m.GetBackingStore().Set("failureReason", value) if err != nil { panic(err) } } -// SetProcessingInfo sets the processingInfo property value. The processingInfo property +// SetProcessingInfo sets the processingInfo property value. Additional human-readable context about the task processing outcome. This property contains information about edge cases where the task completed successfully but the expected action wasn't performed because the target was already in the desired state, such as when the user was already a member of the specified group. Returns null when no additional context is needed. Nullable. func (m *TaskProcessingResult) SetProcessingInfo(value *string)() { err := m.GetBackingStore().Set("processingInfo", value) if err != nil { @@ -298,7 +298,7 @@ func (m *TaskProcessingResult) SetProcessingStatus(value *LifecycleWorkflowProce panic(err) } } -// SetStartedDateTime sets the startedDateTime property value. The date time when taskProcessingResult execution started. Value is null if task execution has not yet started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. +// SetStartedDateTime sets the startedDateTime property value. The date time when taskProcessingResult execution started. Value is null if task execution hasn't started yet.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. func (m *TaskProcessingResult) SetStartedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startedDateTime", value) if err != nil { diff --git a/models/key_credential_configuration.go b/models/key_credential_configuration.go index c1142711589..a78da3d72b0 100644 --- a/models/key_credential_configuration.go +++ b/models/key_credential_configuration.go @@ -150,7 +150,7 @@ func (m *KeyCredentialConfiguration) GetFieldDeserializers()(map[string]func(i87 } return res } -// GetMaxLifetime gets the maxLifetime property value. String value that indicates the maximum lifetime for key expiration, defined as an ISO 8601 duration. For example, P4DT12H30M5S represents four days, 12 hours, 30 minutes, and five seconds. This property is required when restrictionType is set to keyLifetime. +// GetMaxLifetime gets the maxLifetime property value. String value that indicates the maximum lifetime for key expiration, defined as an ISO 8601 duration. For example, P4DT12H30M5S represents four days, 12 hours, 30 minutes, and five seconds. This property is required when restrictionType is set to asymmetricKeyLifetime. // returns a *ISODuration when successful func (m *KeyCredentialConfiguration) GetMaxLifetime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) { val, err := m.GetBackingStore().Get("maxLifetime") @@ -289,7 +289,7 @@ func (m *KeyCredentialConfiguration) SetExcludeActors(value AppManagementPolicyA panic(err) } } -// SetMaxLifetime sets the maxLifetime property value. String value that indicates the maximum lifetime for key expiration, defined as an ISO 8601 duration. For example, P4DT12H30M5S represents four days, 12 hours, 30 minutes, and five seconds. This property is required when restrictionType is set to keyLifetime. +// SetMaxLifetime sets the maxLifetime property value. String value that indicates the maximum lifetime for key expiration, defined as an ISO 8601 duration. For example, P4DT12H30M5S represents four days, 12 hours, 30 minutes, and five seconds. This property is required when restrictionType is set to asymmetricKeyLifetime. func (m *KeyCredentialConfiguration) SetMaxLifetime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() { err := m.GetBackingStore().Set("maxLifetime", value) if err != nil { diff --git a/models/meeting_engagement.go b/models/meeting_engagement.go new file mode 100644 index 00000000000..939e6aa13d3 --- /dev/null +++ b/models/meeting_engagement.go @@ -0,0 +1,229 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type MeetingEngagement struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewMeetingEngagement instantiates a new MeetingEngagement and sets the default values. +func NewMeetingEngagement()(*MeetingEngagement) { + m := &MeetingEngagement{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateMeetingEngagementFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMeetingEngagementFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMeetingEngagement(), 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 *MeetingEngagement) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *MeetingEngagement) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDateTime gets the dateTime property value. The UTC date and time when the engagement event occurred, in ISO 8601 format. +// returns a *Time when successful +func (m *MeetingEngagement) GetDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("dateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetEngagementSubType gets the engagementSubType property value. The specific engagement action within the type (e.g., like, love, applause, laugh, surprised for reactions; raiseHand for hand; cameraOn for camera; unmute, mute for microphone). +// returns a *string when successful +func (m *MeetingEngagement) GetEngagementSubType()(*string) { + val, err := m.GetBackingStore().Get("engagementSubType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEngagementType gets the engagementType property value. The category of the engagement event. Required, non-nullable. +// returns a *MeetingEngagementType when successful +func (m *MeetingEngagement) GetEngagementType()(*MeetingEngagementType) { + val, err := m.GetBackingStore().Get("engagementType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MeetingEngagementType) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MeetingEngagement) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["dateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetDateTime(val) + } + return nil + } + res["engagementSubType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEngagementSubType(val) + } + return nil + } + res["engagementType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMeetingEngagementType) + if err != nil { + return err + } + if val != nil { + m.SetEngagementType(val.(*MeetingEngagementType)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *MeetingEngagement) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *MeetingEngagement) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("dateTime", m.GetDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("engagementSubType", m.GetEngagementSubType()) + if err != nil { + return err + } + } + if m.GetEngagementType() != nil { + cast := (*m.GetEngagementType()).String() + err := writer.WriteStringValue("engagementType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *MeetingEngagement) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *MeetingEngagement) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDateTime sets the dateTime property value. The UTC date and time when the engagement event occurred, in ISO 8601 format. +func (m *MeetingEngagement) SetDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("dateTime", value) + if err != nil { + panic(err) + } +} +// SetEngagementSubType sets the engagementSubType property value. The specific engagement action within the type (e.g., like, love, applause, laugh, surprised for reactions; raiseHand for hand; cameraOn for camera; unmute, mute for microphone). +func (m *MeetingEngagement) SetEngagementSubType(value *string)() { + err := m.GetBackingStore().Set("engagementSubType", value) + if err != nil { + panic(err) + } +} +// SetEngagementType sets the engagementType property value. The category of the engagement event. Required, non-nullable. +func (m *MeetingEngagement) SetEngagementType(value *MeetingEngagementType)() { + err := m.GetBackingStore().Set("engagementType", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MeetingEngagement) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type MeetingEngagementable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetEngagementSubType()(*string) + GetEngagementType()(*MeetingEngagementType) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetEngagementSubType(value *string)() + SetEngagementType(value *MeetingEngagementType)() + SetOdataType(value *string)() +} diff --git a/models/meeting_engagement_type.go b/models/meeting_engagement_type.go new file mode 100644 index 00000000000..dfee0b17463 --- /dev/null +++ b/models/meeting_engagement_type.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type MeetingEngagementType int + +const ( + REACTION_MEETINGENGAGEMENTTYPE MeetingEngagementType = iota + HAND_MEETINGENGAGEMENTTYPE + CAMERA_MEETINGENGAGEMENTTYPE + MICROPHONE_MEETINGENGAGEMENTTYPE + UNKNOWNFUTUREVALUE_MEETINGENGAGEMENTTYPE +) + +func (i MeetingEngagementType) String() string { + return []string{"reaction", "hand", "camera", "microphone", "unknownFutureValue"}[i] +} +func ParseMeetingEngagementType(v string) (any, error) { + result := REACTION_MEETINGENGAGEMENTTYPE + switch v { + case "reaction": + result = REACTION_MEETINGENGAGEMENTTYPE + case "hand": + result = HAND_MEETINGENGAGEMENTTYPE + case "camera": + result = CAMERA_MEETINGENGAGEMENTTYPE + case "microphone": + result = MICROPHONE_MEETINGENGAGEMENTTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MEETINGENGAGEMENTTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeMeetingEngagementType(values []MeetingEngagementType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i MeetingEngagementType) isMultiValue() bool { + return false +} diff --git a/models/mobile_threat_defense_connector.go b/models/mobile_threat_defense_connector.go index 394ed6bd400..257bfa1b153 100644 --- a/models/mobile_threat_defense_connector.go +++ b/models/mobile_threat_defense_connector.go @@ -182,6 +182,16 @@ func (m *MobileThreatDefenseConnector) GetFieldDeserializers()(map[string]func(i } return nil } + res["grantMobileThreatDefensePartnerRole"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetGrantMobileThreatDefensePartnerRole(val) + } + return nil + } res["iosDeviceBlockedOnMissingPartnerData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -222,6 +232,16 @@ func (m *MobileThreatDefenseConnector) GetFieldDeserializers()(map[string]func(i } return nil } + res["launchMobileThreatDefensePartnerOnSetupEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetLaunchMobileThreatDefensePartnerOnSetupEnabled(val) + } + return nil + } res["macDeviceBlockedOnMissingPartnerData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -314,6 +334,18 @@ func (m *MobileThreatDefenseConnector) GetFieldDeserializers()(map[string]func(i } return res } +// GetGrantMobileThreatDefensePartnerRole gets the grantMobileThreatDefensePartnerRole property value. When TRUE, indicates that the Mobile Threat Defense partner is granted the Mobile Threat Defense role on enrolled Android Corporate Owned Business Only and Corporate Owned Personally Enabled devices. When FALSE, indicates that the Mobile Threat Defense partner is not granted the Mobile Threat Defense role. Default value is FALSE. +// returns a *bool when successful +func (m *MobileThreatDefenseConnector) GetGrantMobileThreatDefensePartnerRole()(*bool) { + val, err := m.GetBackingStore().Get("grantMobileThreatDefensePartnerRole") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetIosDeviceBlockedOnMissingPartnerData gets the iosDeviceBlockedOnMissingPartnerData property value. When TRUE, indicates that Intune must receive data from the Mobile Threat Defense partner prior to marking a device compliant. When FALSE, indicates that Intune may not recieve data from Mobile Threat Defense partner prior to making device compliant. Default value is FALSE. // returns a *bool when successful func (m *MobileThreatDefenseConnector) GetIosDeviceBlockedOnMissingPartnerData()(*bool) { @@ -362,6 +394,18 @@ func (m *MobileThreatDefenseConnector) GetLastHeartbeatDateTime()(*i336074805fc8 } return nil } +// GetLaunchMobileThreatDefensePartnerOnSetupEnabled gets the launchMobileThreatDefensePartnerOnSetupEnabled property value. When TRUE, indicates that the Mobile Threat Defense partner will be automatically launched during Android Corporate Owned Business Only and Corporate Owned Personally Enabled device setup. When FALSE, indicates that the Mobile Threat Defense partner will not be automatically launched during setup. Default value is FALSE. +// returns a *bool when successful +func (m *MobileThreatDefenseConnector) GetLaunchMobileThreatDefensePartnerOnSetupEnabled()(*bool) { + val, err := m.GetBackingStore().Get("launchMobileThreatDefensePartnerOnSetupEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetMacDeviceBlockedOnMissingPartnerData gets the macDeviceBlockedOnMissingPartnerData property value. When TRUE, indicates that Intune must receive data from the Mobile Threat Defense partner prior to marking a Mac device compliant. When FALSE, indicates that Intune may mark a Mac device compliant prior to receiving data from the Mobile Threat Defense partner. Default value is FALSE. // returns a *bool when successful func (m *MobileThreatDefenseConnector) GetMacDeviceBlockedOnMissingPartnerData()(*bool) { @@ -518,6 +562,12 @@ func (m *MobileThreatDefenseConnector) Serialize(writer i878a80d2330e89d26896388 return err } } + { + err = writer.WriteBoolValue("grantMobileThreatDefensePartnerRole", m.GetGrantMobileThreatDefensePartnerRole()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("iosDeviceBlockedOnMissingPartnerData", m.GetIosDeviceBlockedOnMissingPartnerData()) if err != nil { @@ -542,6 +592,12 @@ func (m *MobileThreatDefenseConnector) Serialize(writer i878a80d2330e89d26896388 return err } } + { + err = writer.WriteBoolValue("launchMobileThreatDefensePartnerOnSetupEnabled", m.GetLaunchMobileThreatDefensePartnerOnSetupEnabled()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("macDeviceBlockedOnMissingPartnerData", m.GetMacDeviceBlockedOnMissingPartnerData()) if err != nil { @@ -648,6 +704,13 @@ func (m *MobileThreatDefenseConnector) SetAndroidMobileApplicationManagementEnab panic(err) } } +// SetGrantMobileThreatDefensePartnerRole sets the grantMobileThreatDefensePartnerRole property value. When TRUE, indicates that the Mobile Threat Defense partner is granted the Mobile Threat Defense role on enrolled Android Corporate Owned Business Only and Corporate Owned Personally Enabled devices. When FALSE, indicates that the Mobile Threat Defense partner is not granted the Mobile Threat Defense role. Default value is FALSE. +func (m *MobileThreatDefenseConnector) SetGrantMobileThreatDefensePartnerRole(value *bool)() { + err := m.GetBackingStore().Set("grantMobileThreatDefensePartnerRole", value) + if err != nil { + panic(err) + } +} // SetIosDeviceBlockedOnMissingPartnerData sets the iosDeviceBlockedOnMissingPartnerData property value. When TRUE, indicates that Intune must receive data from the Mobile Threat Defense partner prior to marking a device compliant. When FALSE, indicates that Intune may not recieve data from Mobile Threat Defense partner prior to making device compliant. Default value is FALSE. func (m *MobileThreatDefenseConnector) SetIosDeviceBlockedOnMissingPartnerData(value *bool)() { err := m.GetBackingStore().Set("iosDeviceBlockedOnMissingPartnerData", value) @@ -676,6 +739,13 @@ func (m *MobileThreatDefenseConnector) SetLastHeartbeatDateTime(value *i33607480 panic(err) } } +// SetLaunchMobileThreatDefensePartnerOnSetupEnabled sets the launchMobileThreatDefensePartnerOnSetupEnabled property value. When TRUE, indicates that the Mobile Threat Defense partner will be automatically launched during Android Corporate Owned Business Only and Corporate Owned Personally Enabled device setup. When FALSE, indicates that the Mobile Threat Defense partner will not be automatically launched during setup. Default value is FALSE. +func (m *MobileThreatDefenseConnector) SetLaunchMobileThreatDefensePartnerOnSetupEnabled(value *bool)() { + err := m.GetBackingStore().Set("launchMobileThreatDefensePartnerOnSetupEnabled", value) + if err != nil { + panic(err) + } +} // SetMacDeviceBlockedOnMissingPartnerData sets the macDeviceBlockedOnMissingPartnerData property value. When TRUE, indicates that Intune must receive data from the Mobile Threat Defense partner prior to marking a Mac device compliant. When FALSE, indicates that Intune may mark a Mac device compliant prior to receiving data from the Mobile Threat Defense partner. Default value is FALSE. func (m *MobileThreatDefenseConnector) SetMacDeviceBlockedOnMissingPartnerData(value *bool)() { err := m.GetBackingStore().Set("macDeviceBlockedOnMissingPartnerData", value) @@ -749,10 +819,12 @@ type MobileThreatDefenseConnectorable interface { GetAndroidDeviceBlockedOnMissingPartnerData()(*bool) GetAndroidEnabled()(*bool) GetAndroidMobileApplicationManagementEnabled()(*bool) + GetGrantMobileThreatDefensePartnerRole()(*bool) GetIosDeviceBlockedOnMissingPartnerData()(*bool) GetIosEnabled()(*bool) GetIosMobileApplicationManagementEnabled()(*bool) GetLastHeartbeatDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetLaunchMobileThreatDefensePartnerOnSetupEnabled()(*bool) GetMacDeviceBlockedOnMissingPartnerData()(*bool) GetMacEnabled()(*bool) GetMicrosoftDefenderForEndpointAttachEnabled()(*bool) @@ -769,10 +841,12 @@ type MobileThreatDefenseConnectorable interface { SetAndroidDeviceBlockedOnMissingPartnerData(value *bool)() SetAndroidEnabled(value *bool)() SetAndroidMobileApplicationManagementEnabled(value *bool)() + SetGrantMobileThreatDefensePartnerRole(value *bool)() SetIosDeviceBlockedOnMissingPartnerData(value *bool)() SetIosEnabled(value *bool)() SetIosMobileApplicationManagementEnabled(value *bool)() SetLastHeartbeatDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetLaunchMobileThreatDefensePartnerOnSetupEnabled(value *bool)() SetMacDeviceBlockedOnMissingPartnerData(value *bool)() SetMacEnabled(value *bool)() SetMicrosoftDefenderForEndpointAttachEnabled(value *bool)() diff --git a/models/on_premises_directory_synchronization_feature.go b/models/on_premises_directory_synchronization_feature.go index 1a2fbbe9b47..65f8adfca77 100644 --- a/models/on_premises_directory_synchronization_feature.go +++ b/models/on_premises_directory_synchronization_feature.go @@ -38,6 +38,18 @@ func (m *OnPremisesDirectorySynchronizationFeature) GetAdditionalData()(map[stri } return val.(map[string]any) } +// GetAllowOnPremUpdateOfOnPremisesObjectIdentifierEnabled gets the allowOnPremUpdateOfOnPremisesObjectIdentifierEnabled property value. The allowOnPremUpdateOfOnPremisesObjectIdentifierEnabled property +// returns a *bool when successful +func (m *OnPremisesDirectorySynchronizationFeature) GetAllowOnPremUpdateOfOnPremisesObjectIdentifierEnabled()(*bool) { + val, err := m.GetBackingStore().Get("allowOnPremUpdateOfOnPremisesObjectIdentifierEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful func (m *OnPremisesDirectorySynchronizationFeature) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { @@ -143,6 +155,16 @@ func (m *OnPremisesDirectorySynchronizationFeature) GetDirectoryExtensionsEnable // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *OnPremisesDirectorySynchronizationFeature) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["allowOnPremUpdateOfOnPremisesObjectIdentifierEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowOnPremUpdateOfOnPremisesObjectIdentifierEnabled(val) + } + return nil + } res["blockCloudObjectTakeoverThroughHardMatchEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -491,6 +513,12 @@ func (m *OnPremisesDirectorySynchronizationFeature) GetUserWritebackEnabled()(*b } // Serialize serializes information the current object func (m *OnPremisesDirectorySynchronizationFeature) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("allowOnPremUpdateOfOnPremisesObjectIdentifierEnabled", m.GetAllowOnPremUpdateOfOnPremisesObjectIdentifierEnabled()) + if err != nil { + return err + } + } { err := writer.WriteBoolValue("blockCloudObjectTakeoverThroughHardMatchEnabled", m.GetBlockCloudObjectTakeoverThroughHardMatchEnabled()) if err != nil { @@ -626,6 +654,13 @@ func (m *OnPremisesDirectorySynchronizationFeature) SetAdditionalData(value map[ panic(err) } } +// SetAllowOnPremUpdateOfOnPremisesObjectIdentifierEnabled sets the allowOnPremUpdateOfOnPremisesObjectIdentifierEnabled property value. The allowOnPremUpdateOfOnPremisesObjectIdentifierEnabled property +func (m *OnPremisesDirectorySynchronizationFeature) SetAllowOnPremUpdateOfOnPremisesObjectIdentifierEnabled(value *bool)() { + err := m.GetBackingStore().Set("allowOnPremUpdateOfOnPremisesObjectIdentifierEnabled", value) + if err != nil { + panic(err) + } +} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *OnPremisesDirectorySynchronizationFeature) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -774,6 +809,7 @@ type OnPremisesDirectorySynchronizationFeatureable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowOnPremUpdateOfOnPremisesObjectIdentifierEnabled()(*bool) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetBlockCloudObjectTakeoverThroughHardMatchEnabled()(*bool) GetBlockSoftMatchEnabled()(*bool) @@ -795,6 +831,7 @@ type OnPremisesDirectorySynchronizationFeatureable interface { GetUnifiedGroupWritebackEnabled()(*bool) GetUserForcePasswordChangeOnLogonEnabled()(*bool) GetUserWritebackEnabled()(*bool) + SetAllowOnPremUpdateOfOnPremisesObjectIdentifierEnabled(value *bool)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetBlockCloudObjectTakeoverThroughHardMatchEnabled(value *bool)() SetBlockSoftMatchEnabled(value *bool)() diff --git a/models/ownerless_group_policy.go b/models/ownerless_group_policy.go index a6a35f8e745..91cac380ed6 100644 --- a/models/ownerless_group_policy.go +++ b/models/ownerless_group_policy.go @@ -34,7 +34,7 @@ func (m *OwnerlessGroupPolicy) GetEmailInfo()(EmailDetailsable) { } return nil } -// GetEnabledGroupIds gets the enabledGroupIds property value. The collection of IDs for groups to which the policy is enabled. +// GetEnabledGroupIds gets the enabledGroupIds property value. The collection of IDs for groups to which the policy is enabled. If empty, the policy is enabled for all groups in the tenant. // returns a []string when successful func (m *OwnerlessGroupPolicy) GetEnabledGroupIds()([]string) { val, err := m.GetBackingStore().Get("enabledGroupIds") @@ -245,7 +245,7 @@ func (m *OwnerlessGroupPolicy) SetEmailInfo(value EmailDetailsable)() { panic(err) } } -// SetEnabledGroupIds sets the enabledGroupIds property value. The collection of IDs for groups to which the policy is enabled. +// SetEnabledGroupIds sets the enabledGroupIds property value. The collection of IDs for groups to which the policy is enabled. If empty, the policy is enabled for all groups in the tenant. func (m *OwnerlessGroupPolicy) SetEnabledGroupIds(value []string)() { err := m.GetBackingStore().Set("enabledGroupIds", value) if err != nil { diff --git a/models/personal_teams_app_installation_scope_info.go b/models/personal_teams_app_installation_scope_info.go index 2e90e010bd8..b5d2a6987e5 100644 --- a/models/personal_teams_app_installation_scope_info.go +++ b/models/personal_teams_app_installation_scope_info.go @@ -40,7 +40,7 @@ func (m *PersonalTeamsAppInstallationScopeInfo) GetFieldDeserializers()(map[stri } return res } -// GetUserId gets the userId property value. The userId property +// GetUserId gets the userId property value. The ID of the user for whom the Teams app is installed. // returns a *string when successful func (m *PersonalTeamsAppInstallationScopeInfo) GetUserId()(*string) { val, err := m.GetBackingStore().Get("userId") @@ -66,7 +66,7 @@ func (m *PersonalTeamsAppInstallationScopeInfo) Serialize(writer i878a80d2330e89 } return nil } -// SetUserId sets the userId property value. The userId property +// SetUserId sets the userId property value. The ID of the user for whom the Teams app is installed. func (m *PersonalTeamsAppInstallationScopeInfo) SetUserId(value *string)() { err := m.GetBackingStore().Set("userId", value) if err != nil { diff --git a/models/planner_task.go b/models/planner_task.go index ff1992249dd..660ff405c23 100644 --- a/models/planner_task.go +++ b/models/planner_task.go @@ -677,7 +677,7 @@ func (m *PlannerTask) GetIsOnMyDayLastModifiedDate()(*i878a80d2330e89d26896388a3 } return nil } -// GetLastModifiedBy gets the lastModifiedBy property value. The lastModifiedBy property +// GetLastModifiedBy gets the lastModifiedBy property value. Read-only. User ID by which this is last modified. // returns a IdentitySetable when successful func (m *PlannerTask) GetLastModifiedBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("lastModifiedBy") @@ -689,7 +689,7 @@ func (m *PlannerTask) GetLastModifiedBy()(IdentitySetable) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Read-only. Date and time at which this is last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z // returns a *Time when successful func (m *PlannerTask) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -1231,14 +1231,14 @@ func (m *PlannerTask) SetIsOnMyDayLastModifiedDate(value *i878a80d2330e89d268963 panic(err) } } -// SetLastModifiedBy sets the lastModifiedBy property value. The lastModifiedBy property +// SetLastModifiedBy sets the lastModifiedBy property value. Read-only. User ID by which this is last modified. func (m *PlannerTask) SetLastModifiedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("lastModifiedBy", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Read-only. Date and time at which this is last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z func (m *PlannerTask) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/process_content_request.go b/models/process_content_request.go index 16959d37b46..c1ccf41d01b 100644 --- a/models/process_content_request.go +++ b/models/process_content_request.go @@ -55,7 +55,7 @@ func (m *ProcessContentRequest) GetAdditionalData()(map[string]any) { func (m *ProcessContentRequest) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetContentEntries gets the contentEntries property value. A collection of content entries to be processed. Each entry contains the content itself and its metadata. Use conversation metadata for content like prompts and responses and file metadata for files. Required. +// GetContentEntries gets the contentEntries property value. A collection of content entries to be processed. Each entry contains the content itself and its metadata. Use conversation metadata for content like prompts and responses, file metadata for files, and content activity metadata for enforcement result status entries. Required. // returns a []ProcessContentMetadataBaseable when successful func (m *ProcessContentRequest) GetContentEntries()([]ProcessContentMetadataBaseable) { val, err := m.GetBackingStore().Get("contentEntries") @@ -257,7 +257,7 @@ func (m *ProcessContentRequest) SetAdditionalData(value map[string]any)() { func (m *ProcessContentRequest) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetContentEntries sets the contentEntries property value. A collection of content entries to be processed. Each entry contains the content itself and its metadata. Use conversation metadata for content like prompts and responses and file metadata for files. Required. +// SetContentEntries sets the contentEntries property value. A collection of content entries to be processed. Each entry contains the content itself and its metadata. Use conversation metadata for content like prompts and responses, file metadata for files, and content activity metadata for enforcement result status entries. Required. func (m *ProcessContentRequest) SetContentEntries(value []ProcessContentMetadataBaseable)() { err := m.GetBackingStore().Set("contentEntries", value) if err != nil { diff --git a/models/profile_card_property.go b/models/profile_card_property.go index 9ed2661cd8a..24bd5587ae1 100644 --- a/models/profile_card_property.go +++ b/models/profile_card_property.go @@ -88,7 +88,7 @@ func (m *ProfileCardProperty) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } -// GetIsVisible gets the isVisible property value. The isVisible property +// GetIsVisible gets the isVisible property value. Indicates whether the given directory property should be shown on a user’s profile card. // returns a *bool when successful func (m *ProfileCardProperty) GetIsVisible()(*bool) { val, err := m.GetBackingStore().Get("isVisible") @@ -146,7 +146,7 @@ func (m *ProfileCardProperty) SetDirectoryPropertyName(value *string)() { panic(err) } } -// SetIsVisible sets the isVisible property value. The isVisible property +// SetIsVisible sets the isVisible property value. Indicates whether the given directory property should be shown on a user’s profile card. func (m *ProfileCardProperty) SetIsVisible(value *bool)() { err := m.GetBackingStore().Set("isVisible", value) if err != nil { diff --git a/models/protection_unit_base.go b/models/protection_unit_base.go index ce8d327ac7b..9461e24954b 100644 --- a/models/protection_unit_base.go +++ b/models/protection_unit_base.go @@ -189,6 +189,16 @@ func (m *ProtectionUnitBase) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["pendingRetentionPeriodChange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateRetentionPeriodChangeFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPendingRetentionPeriodChange(val.(RetentionPeriodChangeable)) + } + return nil + } res["policyId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -257,6 +267,18 @@ func (m *ProtectionUnitBase) GetOffboardRequestedDateTime()(*i336074805fc853987a } return nil } +// GetPendingRetentionPeriodChange gets the pendingRetentionPeriodChange property value. The pendingRetentionPeriodChange property +// returns a RetentionPeriodChangeable when successful +func (m *ProtectionUnitBase) GetPendingRetentionPeriodChange()(RetentionPeriodChangeable) { + val, err := m.GetBackingStore().Get("pendingRetentionPeriodChange") + if err != nil { + panic(err) + } + if val != nil { + return val.(RetentionPeriodChangeable) + } + return nil +} // GetPolicyId gets the policyId property value. The unique identifier of the protection policy based on which protection unit was created. // returns a *string when successful func (m *ProtectionUnitBase) GetPolicyId()(*string) { @@ -425,6 +447,13 @@ func (m *ProtectionUnitBase) SetOffboardRequestedDateTime(value *i336074805fc853 panic(err) } } +// SetPendingRetentionPeriodChange sets the pendingRetentionPeriodChange property value. The pendingRetentionPeriodChange property +func (m *ProtectionUnitBase) SetPendingRetentionPeriodChange(value RetentionPeriodChangeable)() { + err := m.GetBackingStore().Set("pendingRetentionPeriodChange", value) + if err != nil { + panic(err) + } +} // SetPolicyId sets the policyId property value. The unique identifier of the protection policy based on which protection unit was created. func (m *ProtectionUnitBase) SetPolicyId(value *string)() { err := m.GetBackingStore().Set("policyId", value) @@ -457,6 +486,7 @@ type ProtectionUnitBaseable interface { GetLastModifiedBy()(IdentitySetable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOffboardRequestedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetPendingRetentionPeriodChange()(RetentionPeriodChangeable) GetPolicyId()(*string) GetProtectionSources()(*ProtectionSource) GetStatus()(*ProtectionUnitStatus) @@ -468,6 +498,7 @@ type ProtectionUnitBaseable interface { SetLastModifiedBy(value IdentitySetable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOffboardRequestedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetPendingRetentionPeriodChange(value RetentionPeriodChangeable)() SetPolicyId(value *string)() SetProtectionSources(value *ProtectionSource)() SetStatus(value *ProtectionUnitStatus)() diff --git a/models/retention_period_change.go b/models/retention_period_change.go new file mode 100644 index 00000000000..026428ab32a --- /dev/null +++ b/models/retention_period_change.go @@ -0,0 +1,229 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type RetentionPeriodChange struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewRetentionPeriodChange instantiates a new RetentionPeriodChange and sets the default values. +func NewRetentionPeriodChange()(*RetentionPeriodChange) { + m := &RetentionPeriodChange{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateRetentionPeriodChangeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateRetentionPeriodChangeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewRetentionPeriodChange(), 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 *RetentionPeriodChange) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *RetentionPeriodChange) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEffectiveFromDateTime gets the effectiveFromDateTime property value. The effectiveFromDateTime property +// returns a *Time when successful +func (m *RetentionPeriodChange) GetEffectiveFromDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("effectiveFromDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *RetentionPeriodChange) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["effectiveFromDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetEffectiveFromDateTime(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["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRetentionPeriodChangeStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*RetentionPeriodChangeStatus)) + } + return nil + } + res["targetRetentionPeriodInDays"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTargetRetentionPeriodInDays(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *RetentionPeriodChange) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStatus gets the status property value. The status property +// returns a *RetentionPeriodChangeStatus when successful +func (m *RetentionPeriodChange) GetStatus()(*RetentionPeriodChangeStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RetentionPeriodChangeStatus) + } + return nil +} +// GetTargetRetentionPeriodInDays gets the targetRetentionPeriodInDays property value. The targetRetentionPeriodInDays property +// returns a *int32 when successful +func (m *RetentionPeriodChange) GetTargetRetentionPeriodInDays()(*int32) { + val, err := m.GetBackingStore().Get("targetRetentionPeriodInDays") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *RetentionPeriodChange) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("effectiveFromDateTime", m.GetEffectiveFromDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err := writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("targetRetentionPeriodInDays", m.GetTargetRetentionPeriodInDays()) + 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 *RetentionPeriodChange) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *RetentionPeriodChange) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEffectiveFromDateTime sets the effectiveFromDateTime property value. The effectiveFromDateTime property +func (m *RetentionPeriodChange) SetEffectiveFromDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("effectiveFromDateTime", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RetentionPeriodChange) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetStatus sets the status property value. The status property +func (m *RetentionPeriodChange) SetStatus(value *RetentionPeriodChangeStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +// SetTargetRetentionPeriodInDays sets the targetRetentionPeriodInDays property value. The targetRetentionPeriodInDays property +func (m *RetentionPeriodChange) SetTargetRetentionPeriodInDays(value *int32)() { + err := m.GetBackingStore().Set("targetRetentionPeriodInDays", value) + if err != nil { + panic(err) + } +} +type RetentionPeriodChangeable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEffectiveFromDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) + GetStatus()(*RetentionPeriodChangeStatus) + GetTargetRetentionPeriodInDays()(*int32) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEffectiveFromDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() + SetStatus(value *RetentionPeriodChangeStatus)() + SetTargetRetentionPeriodInDays(value *int32)() +} diff --git a/models/retention_period_change_status.go b/models/retention_period_change_status.go new file mode 100644 index 00000000000..c3cb04869b7 --- /dev/null +++ b/models/retention_period_change_status.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type RetentionPeriodChangeStatus int + +const ( + NONE_RETENTIONPERIODCHANGESTATUS RetentionPeriodChangeStatus = iota + INPROGRESS_RETENTIONPERIODCHANGESTATUS + FAILED_RETENTIONPERIODCHANGESTATUS + COMPLETED_RETENTIONPERIODCHANGESTATUS + UNKNOWNFUTUREVALUE_RETENTIONPERIODCHANGESTATUS +) + +func (i RetentionPeriodChangeStatus) String() string { + return []string{"none", "inProgress", "failed", "completed", "unknownFutureValue"}[i] +} +func ParseRetentionPeriodChangeStatus(v string) (any, error) { + result := NONE_RETENTIONPERIODCHANGESTATUS + switch v { + case "none": + result = NONE_RETENTIONPERIODCHANGESTATUS + case "inProgress": + result = INPROGRESS_RETENTIONPERIODCHANGESTATUS + case "failed": + result = FAILED_RETENTIONPERIODCHANGESTATUS + case "completed": + result = COMPLETED_RETENTIONPERIODCHANGESTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_RETENTIONPERIODCHANGESTATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeRetentionPeriodChangeStatus(values []RetentionPeriodChangeStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RetentionPeriodChangeStatus) isMultiValue() bool { + return false +} diff --git a/models/schedule_entity_theme.go b/models/schedule_entity_theme.go index 0b072ecbaa4..833134b6aaf 100644 --- a/models/schedule_entity_theme.go +++ b/models/schedule_entity_theme.go @@ -18,10 +18,33 @@ const ( DARKPINK_SCHEDULEENTITYTHEME DARKYELLOW_SCHEDULEENTITYTHEME UNKNOWNFUTUREVALUE_SCHEDULEENTITYTHEME + DARKRED_SCHEDULEENTITYTHEME + CRANBERRY_SCHEDULEENTITYTHEME + DARKORANGE_SCHEDULEENTITYTHEME + BRONZE_SCHEDULEENTITYTHEME + PEACH_SCHEDULEENTITYTHEME + GOLD_SCHEDULEENTITYTHEME + LIME_SCHEDULEENTITYTHEME + FOREST_SCHEDULEENTITYTHEME + LIGHTGREEN_SCHEDULEENTITYTHEME + JADE_SCHEDULEENTITYTHEME + LIGHTTEAL_SCHEDULEENTITYTHEME + DARKTEAL_SCHEDULEENTITYTHEME + STEEL_SCHEDULEENTITYTHEME + SKYBLUE_SCHEDULEENTITYTHEME + BLUEGRAY_SCHEDULEENTITYTHEME + LAVENDER_SCHEDULEENTITYTHEME + LILAC_SCHEDULEENTITYTHEME + PLUM_SCHEDULEENTITYTHEME + MAGENTA_SCHEDULEENTITYTHEME + DARKBROWN_SCHEDULEENTITYTHEME + BEIGE_SCHEDULEENTITYTHEME + CHARCOAL_SCHEDULEENTITYTHEME + SILVER_SCHEDULEENTITYTHEME ) func (i ScheduleEntityTheme) String() string { - return []string{"white", "blue", "green", "purple", "pink", "yellow", "gray", "darkBlue", "darkGreen", "darkPurple", "darkPink", "darkYellow", "unknownFutureValue"}[i] + return []string{"white", "blue", "green", "purple", "pink", "yellow", "gray", "darkBlue", "darkGreen", "darkPurple", "darkPink", "darkYellow", "unknownFutureValue", "darkRed", "cranberry", "darkOrange", "bronze", "peach", "gold", "lime", "forest", "lightGreen", "jade", "lightTeal", "darkTeal", "steel", "skyBlue", "blueGray", "lavender", "lilac", "plum", "magenta", "darkBrown", "beige", "charcoal", "silver"}[i] } func ParseScheduleEntityTheme(v string) (any, error) { result := WHITE_SCHEDULEENTITYTHEME @@ -52,6 +75,52 @@ func ParseScheduleEntityTheme(v string) (any, error) { result = DARKYELLOW_SCHEDULEENTITYTHEME case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_SCHEDULEENTITYTHEME + case "darkRed": + result = DARKRED_SCHEDULEENTITYTHEME + case "cranberry": + result = CRANBERRY_SCHEDULEENTITYTHEME + case "darkOrange": + result = DARKORANGE_SCHEDULEENTITYTHEME + case "bronze": + result = BRONZE_SCHEDULEENTITYTHEME + case "peach": + result = PEACH_SCHEDULEENTITYTHEME + case "gold": + result = GOLD_SCHEDULEENTITYTHEME + case "lime": + result = LIME_SCHEDULEENTITYTHEME + case "forest": + result = FOREST_SCHEDULEENTITYTHEME + case "lightGreen": + result = LIGHTGREEN_SCHEDULEENTITYTHEME + case "jade": + result = JADE_SCHEDULEENTITYTHEME + case "lightTeal": + result = LIGHTTEAL_SCHEDULEENTITYTHEME + case "darkTeal": + result = DARKTEAL_SCHEDULEENTITYTHEME + case "steel": + result = STEEL_SCHEDULEENTITYTHEME + case "skyBlue": + result = SKYBLUE_SCHEDULEENTITYTHEME + case "blueGray": + result = BLUEGRAY_SCHEDULEENTITYTHEME + case "lavender": + result = LAVENDER_SCHEDULEENTITYTHEME + case "lilac": + result = LILAC_SCHEDULEENTITYTHEME + case "plum": + result = PLUM_SCHEDULEENTITYTHEME + case "magenta": + result = MAGENTA_SCHEDULEENTITYTHEME + case "darkBrown": + result = DARKBROWN_SCHEDULEENTITYTHEME + case "beige": + result = BEIGE_SCHEDULEENTITYTHEME + case "charcoal": + result = CHARCOAL_SCHEDULEENTITYTHEME + case "silver": + result = SILVER_SCHEDULEENTITYTHEME default: return nil, nil } diff --git a/models/security/alert.go b/models/security/alert.go index cd8f95de921..4e3bcb607de 100644 --- a/models/security/alert.go +++ b/models/security/alert.go @@ -84,7 +84,7 @@ func (m *Alert) GetAssignedTo()(*string) { } return nil } -// GetCategories gets the categories property value. The categories property +// GetCategories gets the categories property value. The attack kill-chain categories that the alert belongs to. Aligned with the MITRE ATT&CK framework. // returns a []string when successful func (m *Alert) GetCategories()([]string) { val, err := m.GetBackingStore().Get("categories") @@ -96,7 +96,7 @@ func (m *Alert) GetCategories()([]string) { } return nil } -// GetCategory gets the category property value. The attack kill-chain category that the alert belongs to. Aligned with the MITRE ATT&CK framework. +// GetCategory gets the category property value. The attack kill-chain category that the alert belongs to. Aligned with the MITRE ATT&CK framework. This property is in the process of being deprecated. Use the categories property instead. // returns a *string when successful func (m *Alert) GetCategory()(*string) { val, err := m.GetBackingStore().Get("category") @@ -1102,14 +1102,14 @@ func (m *Alert) SetAssignedTo(value *string)() { panic(err) } } -// SetCategories sets the categories property value. The categories property +// SetCategories sets the categories property value. The attack kill-chain categories that the alert belongs to. Aligned with the MITRE ATT&CK framework. func (m *Alert) SetCategories(value []string)() { err := m.GetBackingStore().Set("categories", value) if err != nil { panic(err) } } -// SetCategory sets the category property value. The attack kill-chain category that the alert belongs to. Aligned with the MITRE ATT&CK framework. +// SetCategory sets the category property value. The attack kill-chain category that the alert belongs to. Aligned with the MITRE ATT&CK framework. This property is in the process of being deprecated. Use the categories property instead. func (m *Alert) SetCategory(value *string)() { err := m.GetBackingStore().Set("category", value) if err != nil { diff --git a/models/security/dns_evidence.go b/models/security/dns_evidence.go index 6aa6fce00f2..cd4b8105133 100644 --- a/models/security/dns_evidence.go +++ b/models/security/dns_evidence.go @@ -24,7 +24,7 @@ func NewDnsEvidence()(*DnsEvidence) { func CreateDnsEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDnsEvidence(), nil } -// GetDnsServerIp gets the dnsServerIp property value. The dnsServerIp property +// GetDnsServerIp gets the dnsServerIp property value. An IP entity that represents the DNS server that resolves the request. // returns a IpEvidenceable when successful func (m *DnsEvidence) GetDnsServerIp()(IpEvidenceable) { val, err := m.GetBackingStore().Get("dnsServerIp") @@ -36,7 +36,7 @@ func (m *DnsEvidence) GetDnsServerIp()(IpEvidenceable) { } return nil } -// GetDomainName gets the domainName property value. The domainName property +// GetDomainName gets the domainName property value. The name of the DNS record associated with the alert. // returns a *string when successful func (m *DnsEvidence) GetDomainName()(*string) { val, err := m.GetBackingStore().Get("domainName") @@ -100,7 +100,7 @@ func (m *DnsEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } -// GetHostIpAddress gets the hostIpAddress property value. The hostIpAddress property +// GetHostIpAddress gets the hostIpAddress property value. An IP entity that represents the DNS request client. // returns a IpEvidenceable when successful func (m *DnsEvidence) GetHostIpAddress()(IpEvidenceable) { val, err := m.GetBackingStore().Get("hostIpAddress") @@ -112,7 +112,7 @@ func (m *DnsEvidence) GetHostIpAddress()(IpEvidenceable) { } return nil } -// GetIpAddresses gets the ipAddresses property value. The ipAddresses property +// GetIpAddresses gets the ipAddresses property value. IP entities that represent the resolved IP addresses. // returns a []IpEvidenceable when successful func (m *DnsEvidence) GetIpAddresses()([]IpEvidenceable) { val, err := m.GetBackingStore().Get("ipAddresses") @@ -162,28 +162,28 @@ func (m *DnsEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } -// SetDnsServerIp sets the dnsServerIp property value. The dnsServerIp property +// SetDnsServerIp sets the dnsServerIp property value. An IP entity that represents the DNS server that resolves the request. func (m *DnsEvidence) SetDnsServerIp(value IpEvidenceable)() { err := m.GetBackingStore().Set("dnsServerIp", value) if err != nil { panic(err) } } -// SetDomainName sets the domainName property value. The domainName property +// SetDomainName sets the domainName property value. The name of the DNS record associated with the alert. func (m *DnsEvidence) SetDomainName(value *string)() { err := m.GetBackingStore().Set("domainName", value) if err != nil { panic(err) } } -// SetHostIpAddress sets the hostIpAddress property value. The hostIpAddress property +// SetHostIpAddress sets the hostIpAddress property value. An IP entity that represents the DNS request client. func (m *DnsEvidence) SetHostIpAddress(value IpEvidenceable)() { err := m.GetBackingStore().Set("hostIpAddress", value) if err != nil { panic(err) } } -// SetIpAddresses sets the ipAddresses property value. The ipAddresses property +// SetIpAddresses sets the ipAddresses property value. IP entities that represent the resolved IP addresses. func (m *DnsEvidence) SetIpAddresses(value []IpEvidenceable)() { err := m.GetBackingStore().Set("ipAddresses", value) if err != nil { diff --git a/models/security/file_hash_evidence.go b/models/security/file_hash_evidence.go index f34af65f2cf..98430d3a5c6 100644 --- a/models/security/file_hash_evidence.go +++ b/models/security/file_hash_evidence.go @@ -62,7 +62,7 @@ func (m *FileHashEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } -// GetValue gets the value property value. The value property +// GetValue gets the value property value. The hash value. // returns a *string when successful func (m *FileHashEvidence) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") @@ -102,7 +102,7 @@ func (m *FileHashEvidence) SetAlgorithm(value *FileHashAlgorithm)() { panic(err) } } -// SetValue sets the value property value. The value property +// SetValue sets the value property value. The hash value. func (m *FileHashEvidence) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/security/git_hub_organization_evidence.go b/models/security/git_hub_organization_evidence.go index fd4666d9d2c..7ffd3560d54 100644 --- a/models/security/git_hub_organization_evidence.go +++ b/models/security/git_hub_organization_evidence.go @@ -24,7 +24,7 @@ func NewGitHubOrganizationEvidence()(*GitHubOrganizationEvidence) { func CreateGitHubOrganizationEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewGitHubOrganizationEvidence(), nil } -// GetCompany gets the company property value. The company property +// GetCompany gets the company property value. The name of the company that owns the organization. // returns a *string when successful func (m *GitHubOrganizationEvidence) GetCompany()(*string) { val, err := m.GetBackingStore().Get("company") @@ -36,7 +36,7 @@ func (m *GitHubOrganizationEvidence) GetCompany()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The display name of the organization. // returns a *string when successful func (m *GitHubOrganizationEvidence) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -48,7 +48,7 @@ func (m *GitHubOrganizationEvidence) GetDisplayName()(*string) { } return nil } -// GetEmail gets the email property value. The email property +// GetEmail gets the email property value. The email address of the organization. // returns a *string when successful func (m *GitHubOrganizationEvidence) GetEmail()(*string) { val, err := m.GetBackingStore().Get("email") @@ -126,7 +126,7 @@ func (m *GitHubOrganizationEvidence) GetFieldDeserializers()(map[string]func(i87 } return res } -// GetLogin gets the login property value. The login property +// GetLogin gets the login property value. The login (name) of the organization. // returns a *string when successful func (m *GitHubOrganizationEvidence) GetLogin()(*string) { val, err := m.GetBackingStore().Get("login") @@ -138,7 +138,7 @@ func (m *GitHubOrganizationEvidence) GetLogin()(*string) { } return nil } -// GetOrgId gets the orgId property value. The orgId property +// GetOrgId gets the orgId property value. The unique and immutable ID of the organization. // returns a *string when successful func (m *GitHubOrganizationEvidence) GetOrgId()(*string) { val, err := m.GetBackingStore().Get("orgId") @@ -150,7 +150,7 @@ func (m *GitHubOrganizationEvidence) GetOrgId()(*string) { } return nil } -// GetWebUrl gets the webUrl property value. The webUrl property +// GetWebUrl gets the webUrl property value. The URL of the web page for the organization. // returns a *string when successful func (m *GitHubOrganizationEvidence) GetWebUrl()(*string) { val, err := m.GetBackingStore().Get("webUrl") @@ -206,42 +206,42 @@ func (m *GitHubOrganizationEvidence) Serialize(writer i878a80d2330e89d26896388a3 } return nil } -// SetCompany sets the company property value. The company property +// SetCompany sets the company property value. The name of the company that owns the organization. func (m *GitHubOrganizationEvidence) SetCompany(value *string)() { err := m.GetBackingStore().Set("company", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The display name of the organization. func (m *GitHubOrganizationEvidence) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetEmail sets the email property value. The email property +// SetEmail sets the email property value. The email address of the organization. func (m *GitHubOrganizationEvidence) SetEmail(value *string)() { err := m.GetBackingStore().Set("email", value) if err != nil { panic(err) } } -// SetLogin sets the login property value. The login property +// SetLogin sets the login property value. The login (name) of the organization. func (m *GitHubOrganizationEvidence) SetLogin(value *string)() { err := m.GetBackingStore().Set("login", value) if err != nil { panic(err) } } -// SetOrgId sets the orgId property value. The orgId property +// SetOrgId sets the orgId property value. The unique and immutable ID of the organization. func (m *GitHubOrganizationEvidence) SetOrgId(value *string)() { err := m.GetBackingStore().Set("orgId", value) if err != nil { panic(err) } } -// SetWebUrl sets the webUrl property value. The webUrl property +// SetWebUrl sets the webUrl property value. The URL of the web page for the organization. func (m *GitHubOrganizationEvidence) SetWebUrl(value *string)() { err := m.GetBackingStore().Set("webUrl", value) if err != nil { diff --git a/models/security/git_hub_repo_evidence.go b/models/security/git_hub_repo_evidence.go index 71ce8c30017..2fcbd2ba751 100644 --- a/models/security/git_hub_repo_evidence.go +++ b/models/security/git_hub_repo_evidence.go @@ -24,7 +24,7 @@ func NewGitHubRepoEvidence()(*GitHubRepoEvidence) { func CreateGitHubRepoEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewGitHubRepoEvidence(), nil } -// GetBaseUrl gets the baseUrl property value. The baseUrl property +// GetBaseUrl gets the baseUrl property value. The base URL of the web page for the repository. // returns a *string when successful func (m *GitHubRepoEvidence) GetBaseUrl()(*string) { val, err := m.GetBackingStore().Get("baseUrl") @@ -92,7 +92,7 @@ func (m *GitHubRepoEvidence) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetLogin gets the login property value. The login property +// GetLogin gets the login property value. The login (name) of the repository. // returns a *string when successful func (m *GitHubRepoEvidence) GetLogin()(*string) { val, err := m.GetBackingStore().Get("login") @@ -104,7 +104,7 @@ func (m *GitHubRepoEvidence) GetLogin()(*string) { } return nil } -// GetOwner gets the owner property value. The owner property +// GetOwner gets the owner property value. The login of the owner of the repository. // returns a *string when successful func (m *GitHubRepoEvidence) GetOwner()(*string) { val, err := m.GetBackingStore().Get("owner") @@ -116,7 +116,7 @@ func (m *GitHubRepoEvidence) GetOwner()(*string) { } return nil } -// GetOwnerType gets the ownerType property value. The ownerType property +// GetOwnerType gets the ownerType property value. The type of owner of the repository, for example, User or Organization. // returns a *string when successful func (m *GitHubRepoEvidence) GetOwnerType()(*string) { val, err := m.GetBackingStore().Get("ownerType") @@ -128,7 +128,7 @@ func (m *GitHubRepoEvidence) GetOwnerType()(*string) { } return nil } -// GetRepoId gets the repoId property value. The repoId property +// GetRepoId gets the repoId property value. The unique and immutable ID of the GitHub repository. // returns a *string when successful func (m *GitHubRepoEvidence) GetRepoId()(*string) { val, err := m.GetBackingStore().Get("repoId") @@ -178,35 +178,35 @@ func (m *GitHubRepoEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetBaseUrl sets the baseUrl property value. The baseUrl property +// SetBaseUrl sets the baseUrl property value. The base URL of the web page for the repository. func (m *GitHubRepoEvidence) SetBaseUrl(value *string)() { err := m.GetBackingStore().Set("baseUrl", value) if err != nil { panic(err) } } -// SetLogin sets the login property value. The login property +// SetLogin sets the login property value. The login (name) of the repository. func (m *GitHubRepoEvidence) SetLogin(value *string)() { err := m.GetBackingStore().Set("login", value) if err != nil { panic(err) } } -// SetOwner sets the owner property value. The owner property +// SetOwner sets the owner property value. The login of the owner of the repository. func (m *GitHubRepoEvidence) SetOwner(value *string)() { err := m.GetBackingStore().Set("owner", value) if err != nil { panic(err) } } -// SetOwnerType sets the ownerType property value. The ownerType property +// SetOwnerType sets the ownerType property value. The type of owner of the repository, for example, User or Organization. func (m *GitHubRepoEvidence) SetOwnerType(value *string)() { err := m.GetBackingStore().Set("ownerType", value) if err != nil { panic(err) } } -// SetRepoId sets the repoId property value. The repoId property +// SetRepoId sets the repoId property value. The unique and immutable ID of the GitHub repository. func (m *GitHubRepoEvidence) SetRepoId(value *string)() { err := m.GetBackingStore().Set("repoId", value) if err != nil { diff --git a/models/security/git_hub_user_evidence.go b/models/security/git_hub_user_evidence.go index 7e5a454c5bb..8eccb43d588 100644 --- a/models/security/git_hub_user_evidence.go +++ b/models/security/git_hub_user_evidence.go @@ -24,7 +24,7 @@ func NewGitHubUserEvidence()(*GitHubUserEvidence) { func CreateGitHubUserEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewGitHubUserEvidence(), nil } -// GetEmail gets the email property value. The email property +// GetEmail gets the email property value. The email address of the user account. // returns a *string when successful func (m *GitHubUserEvidence) GetEmail()(*string) { val, err := m.GetBackingStore().Get("email") @@ -92,7 +92,7 @@ func (m *GitHubUserEvidence) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetLogin gets the login property value. The login property +// GetLogin gets the login property value. User's login (GitHub handle). // returns a *string when successful func (m *GitHubUserEvidence) GetLogin()(*string) { val, err := m.GetBackingStore().Get("login") @@ -104,7 +104,7 @@ func (m *GitHubUserEvidence) GetLogin()(*string) { } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. User's name. // returns a *string when successful func (m *GitHubUserEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -116,7 +116,7 @@ func (m *GitHubUserEvidence) GetName()(*string) { } return nil } -// GetUserId gets the userId property value. The userId property +// GetUserId gets the userId property value. The unique and immutable ID of the user account. // returns a *string when successful func (m *GitHubUserEvidence) GetUserId()(*string) { val, err := m.GetBackingStore().Get("userId") @@ -128,7 +128,7 @@ func (m *GitHubUserEvidence) GetUserId()(*string) { } return nil } -// GetWebUrl gets the webUrl property value. The webUrl property +// GetWebUrl gets the webUrl property value. The URL of the user's profile web page, for example, https://github.com/my-login. // returns a *string when successful func (m *GitHubUserEvidence) GetWebUrl()(*string) { val, err := m.GetBackingStore().Get("webUrl") @@ -178,35 +178,35 @@ func (m *GitHubUserEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetEmail sets the email property value. The email property +// SetEmail sets the email property value. The email address of the user account. func (m *GitHubUserEvidence) SetEmail(value *string)() { err := m.GetBackingStore().Set("email", value) if err != nil { panic(err) } } -// SetLogin sets the login property value. The login property +// SetLogin sets the login property value. User's login (GitHub handle). func (m *GitHubUserEvidence) SetLogin(value *string)() { err := m.GetBackingStore().Set("login", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. User's name. func (m *GitHubUserEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetUserId sets the userId property value. The userId property +// SetUserId sets the userId property value. The unique and immutable ID of the user account. func (m *GitHubUserEvidence) SetUserId(value *string)() { err := m.GetBackingStore().Set("userId", value) if err != nil { panic(err) } } -// SetWebUrl sets the webUrl property value. The webUrl property +// SetWebUrl sets the webUrl property value. The URL of the user's profile web page, for example, https://github.com/my-login. func (m *GitHubUserEvidence) SetWebUrl(value *string)() { err := m.GetBackingStore().Set("webUrl", value) if err != nil { diff --git a/models/security/host_logon_session_evidence.go b/models/security/host_logon_session_evidence.go index 678ad025c89..8111c9423e4 100644 --- a/models/security/host_logon_session_evidence.go +++ b/models/security/host_logon_session_evidence.go @@ -25,7 +25,7 @@ func NewHostLogonSessionEvidence()(*HostLogonSessionEvidence) { func CreateHostLogonSessionEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewHostLogonSessionEvidence(), nil } -// GetAccount gets the account property value. The account property +// GetAccount gets the account property value. The account that is associated with the sign-in session ID. // returns a UserEvidenceable when successful func (m *HostLogonSessionEvidence) GetAccount()(UserEvidenceable) { val, err := m.GetBackingStore().Get("account") @@ -37,7 +37,7 @@ func (m *HostLogonSessionEvidence) GetAccount()(UserEvidenceable) { } return nil } -// GetEndUtcDateTime gets the endUtcDateTime property value. The endUtcDateTime property +// GetEndUtcDateTime gets the endUtcDateTime property value. The session end time, if known. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. // returns a *Time when successful func (m *HostLogonSessionEvidence) GetEndUtcDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("endUtcDateTime") @@ -105,7 +105,7 @@ func (m *HostLogonSessionEvidence) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetHost gets the host property value. The host property +// GetHost gets the host property value. The host for the session. // returns a DeviceEvidenceable when successful func (m *HostLogonSessionEvidence) GetHost()(DeviceEvidenceable) { val, err := m.GetBackingStore().Get("host") @@ -117,7 +117,7 @@ func (m *HostLogonSessionEvidence) GetHost()(DeviceEvidenceable) { } return nil } -// GetSessionId gets the sessionId property value. The sessionId property +// GetSessionId gets the sessionId property value. The session ID for the account reported in the alert, for example, 0x3e7. // returns a *string when successful func (m *HostLogonSessionEvidence) GetSessionId()(*string) { val, err := m.GetBackingStore().Get("sessionId") @@ -129,7 +129,7 @@ func (m *HostLogonSessionEvidence) GetSessionId()(*string) { } return nil } -// GetStartUtcDateTime gets the startUtcDateTime property value. The startUtcDateTime property +// GetStartUtcDateTime gets the startUtcDateTime property value. The session start time, if known. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. // returns a *Time when successful func (m *HostLogonSessionEvidence) GetStartUtcDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("startUtcDateTime") @@ -179,35 +179,35 @@ func (m *HostLogonSessionEvidence) Serialize(writer i878a80d2330e89d26896388a3f4 } return nil } -// SetAccount sets the account property value. The account property +// SetAccount sets the account property value. The account that is associated with the sign-in session ID. func (m *HostLogonSessionEvidence) SetAccount(value UserEvidenceable)() { err := m.GetBackingStore().Set("account", value) if err != nil { panic(err) } } -// SetEndUtcDateTime sets the endUtcDateTime property value. The endUtcDateTime property +// SetEndUtcDateTime sets the endUtcDateTime property value. The session end time, if known. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. func (m *HostLogonSessionEvidence) SetEndUtcDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("endUtcDateTime", value) if err != nil { panic(err) } } -// SetHost sets the host property value. The host property +// SetHost sets the host property value. The host for the session. func (m *HostLogonSessionEvidence) SetHost(value DeviceEvidenceable)() { err := m.GetBackingStore().Set("host", value) if err != nil { panic(err) } } -// SetSessionId sets the sessionId property value. The sessionId property +// SetSessionId sets the sessionId property value. The session ID for the account reported in the alert, for example, 0x3e7. func (m *HostLogonSessionEvidence) SetSessionId(value *string)() { err := m.GetBackingStore().Set("sessionId", value) if err != nil { panic(err) } } -// SetStartUtcDateTime sets the startUtcDateTime property value. The startUtcDateTime property +// SetStartUtcDateTime sets the startUtcDateTime property value. The session start time, if known. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. func (m *HostLogonSessionEvidence) SetStartUtcDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startUtcDateTime", value) if err != nil { diff --git a/models/security/io_t_device_evidence.go b/models/security/io_t_device_evidence.go index 145e7c733c3..e82638086cd 100644 --- a/models/security/io_t_device_evidence.go +++ b/models/security/io_t_device_evidence.go @@ -368,7 +368,7 @@ func (m *IoTDeviceEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetImportance gets the importance property value. The importance level for the IoT device. Possible values are low, normal, high, and unknownFutureValue. +// GetImportance gets the importance property value. The importance level for the IoT device. The possible values are: unknown, low, normal, high, unknownFutureValue. // returns a *IoTDeviceImportanceType when successful func (m *IoTDeviceEvidence) GetImportance()(*IoTDeviceImportanceType) { val, err := m.GetBackingStore().Get("importance") @@ -826,7 +826,7 @@ func (m *IoTDeviceEvidence) SetDeviceType(value *string)() { panic(err) } } -// SetImportance sets the importance property value. The importance level for the IoT device. Possible values are low, normal, high, and unknownFutureValue. +// SetImportance sets the importance property value. The importance level for the IoT device. The possible values are: unknown, low, normal, high, unknownFutureValue. func (m *IoTDeviceEvidence) SetImportance(value *IoTDeviceImportanceType)() { err := m.GetBackingStore().Set("importance", value) if err != nil { diff --git a/models/security/malware_evidence.go b/models/security/malware_evidence.go index 803badec66b..5d29e3b4483 100644 --- a/models/security/malware_evidence.go +++ b/models/security/malware_evidence.go @@ -24,7 +24,7 @@ func NewMalwareEvidence()(*MalwareEvidence) { func CreateMalwareEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewMalwareEvidence(), nil } -// GetCategory gets the category property value. The category property +// GetCategory gets the category property value. The malware category by the vendor. For example, Trojan. // returns a *string when successful func (m *MalwareEvidence) GetCategory()(*string) { val, err := m.GetBackingStore().Get("category") @@ -94,7 +94,7 @@ func (m *MalwareEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } -// GetFiles gets the files property value. The files property +// GetFiles gets the files property value. A list of the linked file entities on which the malware was found. Can contain the File entities inline or as reference. For more information, see fileEvidence. // returns a []FileEvidenceable when successful func (m *MalwareEvidence) GetFiles()([]FileEvidenceable) { val, err := m.GetBackingStore().Get("files") @@ -106,7 +106,7 @@ func (m *MalwareEvidence) GetFiles()([]FileEvidenceable) { } return nil } -// GetName gets the name property value. The name property +// GetName gets the name property value. The malware name by the vendor. For example, Win32/Toga. // returns a *string when successful func (m *MalwareEvidence) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -118,7 +118,7 @@ func (m *MalwareEvidence) GetName()(*string) { } return nil } -// GetProcesses gets the processes property value. The processes property +// GetProcesses gets the processes property value. A list of the linked process entities on which the malware was found. Use this property, for example, when the alert was triggered on fileless activity. For more information, see processEvidence. // returns a []ProcessEvidenceable when successful func (m *MalwareEvidence) GetProcesses()([]ProcessEvidenceable) { val, err := m.GetBackingStore().Get("processes") @@ -174,28 +174,28 @@ func (m *MalwareEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } -// SetCategory sets the category property value. The category property +// SetCategory sets the category property value. The malware category by the vendor. For example, Trojan. func (m *MalwareEvidence) SetCategory(value *string)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) } } -// SetFiles sets the files property value. The files property +// SetFiles sets the files property value. A list of the linked file entities on which the malware was found. Can contain the File entities inline or as reference. For more information, see fileEvidence. func (m *MalwareEvidence) SetFiles(value []FileEvidenceable)() { err := m.GetBackingStore().Set("files", value) if err != nil { panic(err) } } -// SetName sets the name property value. The name property +// SetName sets the name property value. The malware name by the vendor. For example, Win32/Toga. func (m *MalwareEvidence) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetProcesses sets the processes property value. The processes property +// SetProcesses sets the processes property value. A list of the linked process entities on which the malware was found. Use this property, for example, when the alert was triggered on fileless activity. For more information, see processEvidence. func (m *MalwareEvidence) SetProcesses(value []ProcessEvidenceable)() { err := m.GetBackingStore().Set("processes", value) if err != nil { diff --git a/models/security/network_connection_evidence.go b/models/security/network_connection_evidence.go index 2de4d0fd28f..6df88fdc67c 100644 --- a/models/security/network_connection_evidence.go +++ b/models/security/network_connection_evidence.go @@ -24,7 +24,7 @@ func NewNetworkConnectionEvidence()(*NetworkConnectionEvidence) { func CreateNetworkConnectionEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewNetworkConnectionEvidence(), nil } -// GetDestinationAddress gets the destinationAddress property value. The destinationAddress property +// GetDestinationAddress gets the destinationAddress property value. An entity of type IP that is the destination for this connection. // returns a IpEvidenceable when successful func (m *NetworkConnectionEvidence) GetDestinationAddress()(IpEvidenceable) { val, err := m.GetBackingStore().Get("destinationAddress") @@ -36,7 +36,7 @@ func (m *NetworkConnectionEvidence) GetDestinationAddress()(IpEvidenceable) { } return nil } -// GetDestinationPort gets the destinationPort property value. The destinationPort property +// GetDestinationPort gets the destinationPort property value. The destination port number, for example, 80. // returns a *int32 when successful func (m *NetworkConnectionEvidence) GetDestinationPort()(*int32) { val, err := m.GetBackingStore().Get("destinationPort") @@ -104,7 +104,7 @@ func (m *NetworkConnectionEvidence) GetFieldDeserializers()(map[string]func(i878 } return res } -// GetProtocol gets the protocol property value. The protocol property +// GetProtocol gets the protocol property value. The protocol type. Possible values are tcp, udp, unknownFutureValue. // returns a *ProtocolType when successful func (m *NetworkConnectionEvidence) GetProtocol()(*ProtocolType) { val, err := m.GetBackingStore().Get("protocol") @@ -116,7 +116,7 @@ func (m *NetworkConnectionEvidence) GetProtocol()(*ProtocolType) { } return nil } -// GetSourceAddress gets the sourceAddress property value. The sourceAddress property +// GetSourceAddress gets the sourceAddress property value. An entity of type IP that is the source for this connection. // returns a IpEvidenceable when successful func (m *NetworkConnectionEvidence) GetSourceAddress()(IpEvidenceable) { val, err := m.GetBackingStore().Get("sourceAddress") @@ -128,7 +128,7 @@ func (m *NetworkConnectionEvidence) GetSourceAddress()(IpEvidenceable) { } return nil } -// GetSourcePort gets the sourcePort property value. The sourcePort property +// GetSourcePort gets the sourcePort property value. The source port number, for example, 80. // returns a *int32 when successful func (m *NetworkConnectionEvidence) GetSourcePort()(*int32) { val, err := m.GetBackingStore().Get("sourcePort") @@ -179,35 +179,35 @@ func (m *NetworkConnectionEvidence) Serialize(writer i878a80d2330e89d26896388a3f } return nil } -// SetDestinationAddress sets the destinationAddress property value. The destinationAddress property +// SetDestinationAddress sets the destinationAddress property value. An entity of type IP that is the destination for this connection. func (m *NetworkConnectionEvidence) SetDestinationAddress(value IpEvidenceable)() { err := m.GetBackingStore().Set("destinationAddress", value) if err != nil { panic(err) } } -// SetDestinationPort sets the destinationPort property value. The destinationPort property +// SetDestinationPort sets the destinationPort property value. The destination port number, for example, 80. func (m *NetworkConnectionEvidence) SetDestinationPort(value *int32)() { err := m.GetBackingStore().Set("destinationPort", value) if err != nil { panic(err) } } -// SetProtocol sets the protocol property value. The protocol property +// SetProtocol sets the protocol property value. The protocol type. Possible values are tcp, udp, unknownFutureValue. func (m *NetworkConnectionEvidence) SetProtocol(value *ProtocolType)() { err := m.GetBackingStore().Set("protocol", value) if err != nil { panic(err) } } -// SetSourceAddress sets the sourceAddress property value. The sourceAddress property +// SetSourceAddress sets the sourceAddress property value. An entity of type IP that is the source for this connection. func (m *NetworkConnectionEvidence) SetSourceAddress(value IpEvidenceable)() { err := m.GetBackingStore().Set("sourceAddress", value) if err != nil { panic(err) } } -// SetSourcePort sets the sourcePort property value. The sourcePort property +// SetSourcePort sets the sourcePort property value. The source port number, for example, 80. func (m *NetworkConnectionEvidence) SetSourcePort(value *int32)() { err := m.GetBackingStore().Set("sourcePort", value) if err != nil { diff --git a/models/security/sas_token_evidence.go b/models/security/sas_token_evidence.go index c4fa44f9f43..dc98e273296 100644 --- a/models/security/sas_token_evidence.go +++ b/models/security/sas_token_evidence.go @@ -25,7 +25,7 @@ func NewSasTokenEvidence()(*SasTokenEvidence) { func CreateSasTokenEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSasTokenEvidence(), nil } -// GetAllowedIpAddresses gets the allowedIpAddresses property value. The allowedIpAddresses property +// GetAllowedIpAddresses gets the allowedIpAddresses property value. All IP addresses that are accessible with this SAS. The default value is Allows all IP addresses. // returns a *string when successful func (m *SasTokenEvidence) GetAllowedIpAddresses()(*string) { val, err := m.GetBackingStore().Get("allowedIpAddresses") @@ -37,7 +37,7 @@ func (m *SasTokenEvidence) GetAllowedIpAddresses()(*string) { } return nil } -// GetAllowedResourceTypes gets the allowedResourceTypes property value. The allowedResourceTypes property +// GetAllowedResourceTypes gets the allowedResourceTypes property value. All of the resource types accessible with this SAS. // returns a []string when successful func (m *SasTokenEvidence) GetAllowedResourceTypes()([]string) { val, err := m.GetBackingStore().Get("allowedResourceTypes") @@ -49,7 +49,7 @@ func (m *SasTokenEvidence) GetAllowedResourceTypes()([]string) { } return nil } -// GetAllowedServices gets the allowedServices property value. The allowedServices property +// GetAllowedServices gets the allowedServices property value. All of the services that are accessible with this SAS. // returns a []string when successful func (m *SasTokenEvidence) GetAllowedServices()([]string) { val, err := m.GetBackingStore().Get("allowedServices") @@ -61,7 +61,7 @@ func (m *SasTokenEvidence) GetAllowedServices()([]string) { } return nil } -// GetExpiryDateTime gets the expiryDateTime property value. The expiryDateTime property +// GetExpiryDateTime gets the expiryDateTime property value. The SAS expiration time. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. // returns a *Time when successful func (m *SasTokenEvidence) GetExpiryDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expiryDateTime") @@ -197,7 +197,7 @@ func (m *SasTokenEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } -// GetPermissions gets the permissions property value. The permissions property +// GetPermissions gets the permissions property value. All of the permissions granted to this SAS. // returns a []string when successful func (m *SasTokenEvidence) GetPermissions()([]string) { val, err := m.GetBackingStore().Get("permissions") @@ -209,7 +209,7 @@ func (m *SasTokenEvidence) GetPermissions()([]string) { } return nil } -// GetProtocol gets the protocol property value. The protocol property +// GetProtocol gets the protocol property value. The protocol that is allowed for the SAS. // returns a *string when successful func (m *SasTokenEvidence) GetProtocol()(*string) { val, err := m.GetBackingStore().Get("protocol") @@ -221,7 +221,7 @@ func (m *SasTokenEvidence) GetProtocol()(*string) { } return nil } -// GetSignatureHash gets the signatureHash property value. The signatureHash property +// GetSignatureHash gets the signatureHash property value. The SAS signature hash, which is the unique identifier for the SAS. // returns a *string when successful func (m *SasTokenEvidence) GetSignatureHash()(*string) { val, err := m.GetBackingStore().Get("signatureHash") @@ -233,7 +233,7 @@ func (m *SasTokenEvidence) GetSignatureHash()(*string) { } return nil } -// GetSignedWith gets the signedWith property value. The signedWith property +// GetSignedWith gets the signedWith property value. The storage key used to generate the SAS. // returns a *string when successful func (m *SasTokenEvidence) GetSignedWith()(*string) { val, err := m.GetBackingStore().Get("signedWith") @@ -245,7 +245,7 @@ func (m *SasTokenEvidence) GetSignedWith()(*string) { } return nil } -// GetStartDateTime gets the startDateTime property value. The startDateTime property +// GetStartDateTime gets the startDateTime property value. The SAS activation time. This property can be null. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. // returns a *Time when successful func (m *SasTokenEvidence) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("startDateTime") @@ -257,7 +257,7 @@ func (m *SasTokenEvidence) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6 } return nil } -// GetStorageResource gets the storageResource property value. The storageResource property +// GetStorageResource gets the storageResource property value. A link to the storage resource for this SAS. // returns a AzureResourceEvidenceable when successful func (m *SasTokenEvidence) GetStorageResource()(AzureResourceEvidenceable) { val, err := m.GetBackingStore().Get("storageResource") @@ -337,70 +337,70 @@ func (m *SasTokenEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } -// SetAllowedIpAddresses sets the allowedIpAddresses property value. The allowedIpAddresses property +// SetAllowedIpAddresses sets the allowedIpAddresses property value. All IP addresses that are accessible with this SAS. The default value is Allows all IP addresses. func (m *SasTokenEvidence) SetAllowedIpAddresses(value *string)() { err := m.GetBackingStore().Set("allowedIpAddresses", value) if err != nil { panic(err) } } -// SetAllowedResourceTypes sets the allowedResourceTypes property value. The allowedResourceTypes property +// SetAllowedResourceTypes sets the allowedResourceTypes property value. All of the resource types accessible with this SAS. func (m *SasTokenEvidence) SetAllowedResourceTypes(value []string)() { err := m.GetBackingStore().Set("allowedResourceTypes", value) if err != nil { panic(err) } } -// SetAllowedServices sets the allowedServices property value. The allowedServices property +// SetAllowedServices sets the allowedServices property value. All of the services that are accessible with this SAS. func (m *SasTokenEvidence) SetAllowedServices(value []string)() { err := m.GetBackingStore().Set("allowedServices", value) if err != nil { panic(err) } } -// SetExpiryDateTime sets the expiryDateTime property value. The expiryDateTime property +// SetExpiryDateTime sets the expiryDateTime property value. The SAS expiration time. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. func (m *SasTokenEvidence) SetExpiryDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expiryDateTime", value) if err != nil { panic(err) } } -// SetPermissions sets the permissions property value. The permissions property +// SetPermissions sets the permissions property value. All of the permissions granted to this SAS. func (m *SasTokenEvidence) SetPermissions(value []string)() { err := m.GetBackingStore().Set("permissions", value) if err != nil { panic(err) } } -// SetProtocol sets the protocol property value. The protocol property +// SetProtocol sets the protocol property value. The protocol that is allowed for the SAS. func (m *SasTokenEvidence) SetProtocol(value *string)() { err := m.GetBackingStore().Set("protocol", value) if err != nil { panic(err) } } -// SetSignatureHash sets the signatureHash property value. The signatureHash property +// SetSignatureHash sets the signatureHash property value. The SAS signature hash, which is the unique identifier for the SAS. func (m *SasTokenEvidence) SetSignatureHash(value *string)() { err := m.GetBackingStore().Set("signatureHash", value) if err != nil { panic(err) } } -// SetSignedWith sets the signedWith property value. The signedWith property +// SetSignedWith sets the signedWith property value. The storage key used to generate the SAS. func (m *SasTokenEvidence) SetSignedWith(value *string)() { err := m.GetBackingStore().Set("signedWith", value) if err != nil { panic(err) } } -// SetStartDateTime sets the startDateTime property value. The startDateTime property +// SetStartDateTime sets the startDateTime property value. The SAS activation time. This property can be null. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. func (m *SasTokenEvidence) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("startDateTime", value) if err != nil { panic(err) } } -// SetStorageResource sets the storageResource property value. The storageResource property +// SetStorageResource sets the storageResource property value. A link to the storage resource for this SAS. func (m *SasTokenEvidence) SetStorageResource(value AzureResourceEvidenceable)() { err := m.GetBackingStore().Set("storageResource", value) if err != nil { diff --git a/models/security/service_principal_evidence.go b/models/security/service_principal_evidence.go index 4a26ad43cc4..27d1d1c7f12 100644 --- a/models/security/service_principal_evidence.go +++ b/models/security/service_principal_evidence.go @@ -24,7 +24,7 @@ func NewServicePrincipalEvidence()(*ServicePrincipalEvidence) { func CreateServicePrincipalEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewServicePrincipalEvidence(), nil } -// GetAppId gets the appId property value. The appId property +// GetAppId gets the appId property value. The unique identifier for the associated application, represented by its appId property. // returns a *string when successful func (m *ServicePrincipalEvidence) GetAppId()(*string) { val, err := m.GetBackingStore().Get("appId") @@ -36,7 +36,7 @@ func (m *ServicePrincipalEvidence) GetAppId()(*string) { } return nil } -// GetAppOwnerTenantId gets the appOwnerTenantId property value. The appOwnerTenantId property +// GetAppOwnerTenantId gets the appOwnerTenantId property value. Contains the tenant ID where the application is registered. // returns a *string when successful func (m *ServicePrincipalEvidence) GetAppOwnerTenantId()(*string) { val, err := m.GetBackingStore().Get("appOwnerTenantId") @@ -114,7 +114,7 @@ func (m *ServicePrincipalEvidence) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetServicePrincipalName gets the servicePrincipalName property value. The servicePrincipalName property +// GetServicePrincipalName gets the servicePrincipalName property value. The display name for the service principal. // returns a *string when successful func (m *ServicePrincipalEvidence) GetServicePrincipalName()(*string) { val, err := m.GetBackingStore().Get("servicePrincipalName") @@ -126,7 +126,7 @@ func (m *ServicePrincipalEvidence) GetServicePrincipalName()(*string) { } return nil } -// GetServicePrincipalObjectId gets the servicePrincipalObjectId property value. The servicePrincipalObjectId property +// GetServicePrincipalObjectId gets the servicePrincipalObjectId property value. The unique identifier for the service principal. // returns a *string when successful func (m *ServicePrincipalEvidence) GetServicePrincipalObjectId()(*string) { val, err := m.GetBackingStore().Get("servicePrincipalObjectId") @@ -138,7 +138,7 @@ func (m *ServicePrincipalEvidence) GetServicePrincipalObjectId()(*string) { } return nil } -// GetServicePrincipalType gets the servicePrincipalType property value. The servicePrincipalType property +// GetServicePrincipalType gets the servicePrincipalType property value. Type of the service principal. Possible values are: unknown, application, managedIdentity, legacy, unknownFutureValue. // returns a *ServicePrincipalType when successful func (m *ServicePrincipalEvidence) GetServicePrincipalType()(*ServicePrincipalType) { val, err := m.GetBackingStore().Get("servicePrincipalType") @@ -150,7 +150,7 @@ func (m *ServicePrincipalEvidence) GetServicePrincipalType()(*ServicePrincipalTy } return nil } -// GetTenantId gets the tenantId property value. The tenantId property +// GetTenantId gets the tenantId property value. The Microsoft Entra tenant ID of service principal. // returns a *string when successful func (m *ServicePrincipalEvidence) GetTenantId()(*string) { val, err := m.GetBackingStore().Get("tenantId") @@ -207,42 +207,42 @@ func (m *ServicePrincipalEvidence) Serialize(writer i878a80d2330e89d26896388a3f4 } return nil } -// SetAppId sets the appId property value. The appId property +// SetAppId sets the appId property value. The unique identifier for the associated application, represented by its appId property. func (m *ServicePrincipalEvidence) SetAppId(value *string)() { err := m.GetBackingStore().Set("appId", value) if err != nil { panic(err) } } -// SetAppOwnerTenantId sets the appOwnerTenantId property value. The appOwnerTenantId property +// SetAppOwnerTenantId sets the appOwnerTenantId property value. Contains the tenant ID where the application is registered. func (m *ServicePrincipalEvidence) SetAppOwnerTenantId(value *string)() { err := m.GetBackingStore().Set("appOwnerTenantId", value) if err != nil { panic(err) } } -// SetServicePrincipalName sets the servicePrincipalName property value. The servicePrincipalName property +// SetServicePrincipalName sets the servicePrincipalName property value. The display name for the service principal. func (m *ServicePrincipalEvidence) SetServicePrincipalName(value *string)() { err := m.GetBackingStore().Set("servicePrincipalName", value) if err != nil { panic(err) } } -// SetServicePrincipalObjectId sets the servicePrincipalObjectId property value. The servicePrincipalObjectId property +// SetServicePrincipalObjectId sets the servicePrincipalObjectId property value. The unique identifier for the service principal. func (m *ServicePrincipalEvidence) SetServicePrincipalObjectId(value *string)() { err := m.GetBackingStore().Set("servicePrincipalObjectId", value) if err != nil { panic(err) } } -// SetServicePrincipalType sets the servicePrincipalType property value. The servicePrincipalType property +// SetServicePrincipalType sets the servicePrincipalType property value. Type of the service principal. Possible values are: unknown, application, managedIdentity, legacy, unknownFutureValue. func (m *ServicePrincipalEvidence) SetServicePrincipalType(value *ServicePrincipalType)() { err := m.GetBackingStore().Set("servicePrincipalType", value) if err != nil { panic(err) } } -// SetTenantId sets the tenantId property value. The tenantId property +// SetTenantId sets the tenantId property value. The Microsoft Entra tenant ID of service principal. func (m *ServicePrincipalEvidence) SetTenantId(value *string)() { err := m.GetBackingStore().Set("tenantId", value) if err != nil { diff --git a/models/security/submission_mail_evidence.go b/models/security/submission_mail_evidence.go index 3f079070351..7fa440ba60c 100644 --- a/models/security/submission_mail_evidence.go +++ b/models/security/submission_mail_evidence.go @@ -121,7 +121,7 @@ func (m *SubmissionMailEvidence) GetFieldDeserializers()(map[string]func(i878a80 } return res } -// GetNetworkMessageId gets the networkMessageId property value. The networkMessageId property +// GetNetworkMessageId gets the networkMessageId property value. The network message ID of the email to which submission belongs. // returns a *string when successful func (m *SubmissionMailEvidence) GetNetworkMessageId()(*string) { val, err := m.GetBackingStore().Get("networkMessageId") @@ -133,7 +133,7 @@ func (m *SubmissionMailEvidence) GetNetworkMessageId()(*string) { } return nil } -// GetRecipient gets the recipient property value. The recipient property +// GetRecipient gets the recipient property value. The recipient of the mail. // returns a *string when successful func (m *SubmissionMailEvidence) GetRecipient()(*string) { val, err := m.GetBackingStore().Get("recipient") @@ -145,7 +145,7 @@ func (m *SubmissionMailEvidence) GetRecipient()(*string) { } return nil } -// GetReportType gets the reportType property value. The reportType property +// GetReportType gets the reportType property value. The submission type for the specified instance that maps to Junk, Phish, Malware, or NotJunk. // returns a *string when successful func (m *SubmissionMailEvidence) GetReportType()(*string) { val, err := m.GetBackingStore().Get("reportType") @@ -157,7 +157,7 @@ func (m *SubmissionMailEvidence) GetReportType()(*string) { } return nil } -// GetSender gets the sender property value. The sender property +// GetSender gets the sender property value. The sender of the mail. // returns a *string when successful func (m *SubmissionMailEvidence) GetSender()(*string) { val, err := m.GetBackingStore().Get("sender") @@ -169,7 +169,7 @@ func (m *SubmissionMailEvidence) GetSender()(*string) { } return nil } -// GetSenderIp gets the senderIp property value. The senderIp property +// GetSenderIp gets the senderIp property value. The sender's IP. // returns a *string when successful func (m *SubmissionMailEvidence) GetSenderIp()(*string) { val, err := m.GetBackingStore().Get("senderIp") @@ -181,7 +181,7 @@ func (m *SubmissionMailEvidence) GetSenderIp()(*string) { } return nil } -// GetSubject gets the subject property value. The subject property +// GetSubject gets the subject property value. The subject of the submission mail. // returns a *string when successful func (m *SubmissionMailEvidence) GetSubject()(*string) { val, err := m.GetBackingStore().Get("subject") @@ -193,7 +193,7 @@ func (m *SubmissionMailEvidence) GetSubject()(*string) { } return nil } -// GetSubmissionDateTime gets the submissionDateTime property value. The submissionDateTime property +// GetSubmissionDateTime gets the submissionDateTime property value. The reported date and time for this submission. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. // returns a *Time when successful func (m *SubmissionMailEvidence) GetSubmissionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("submissionDateTime") @@ -205,7 +205,7 @@ func (m *SubmissionMailEvidence) GetSubmissionDateTime()(*i336074805fc853987abe6 } return nil } -// GetSubmissionId gets the submissionId property value. The submissionId property +// GetSubmissionId gets the submissionId property value. The submission ID. // returns a *string when successful func (m *SubmissionMailEvidence) GetSubmissionId()(*string) { val, err := m.GetBackingStore().Get("submissionId") @@ -217,7 +217,7 @@ func (m *SubmissionMailEvidence) GetSubmissionId()(*string) { } return nil } -// GetSubmitter gets the submitter property value. The submitter property +// GetSubmitter gets the submitter property value. The submitter's email address. // returns a *string when successful func (m *SubmissionMailEvidence) GetSubmitter()(*string) { val, err := m.GetBackingStore().Get("submitter") @@ -291,63 +291,63 @@ func (m *SubmissionMailEvidence) Serialize(writer i878a80d2330e89d26896388a3f487 } return nil } -// SetNetworkMessageId sets the networkMessageId property value. The networkMessageId property +// SetNetworkMessageId sets the networkMessageId property value. The network message ID of the email to which submission belongs. func (m *SubmissionMailEvidence) SetNetworkMessageId(value *string)() { err := m.GetBackingStore().Set("networkMessageId", value) if err != nil { panic(err) } } -// SetRecipient sets the recipient property value. The recipient property +// SetRecipient sets the recipient property value. The recipient of the mail. func (m *SubmissionMailEvidence) SetRecipient(value *string)() { err := m.GetBackingStore().Set("recipient", value) if err != nil { panic(err) } } -// SetReportType sets the reportType property value. The reportType property +// SetReportType sets the reportType property value. The submission type for the specified instance that maps to Junk, Phish, Malware, or NotJunk. func (m *SubmissionMailEvidence) SetReportType(value *string)() { err := m.GetBackingStore().Set("reportType", value) if err != nil { panic(err) } } -// SetSender sets the sender property value. The sender property +// SetSender sets the sender property value. The sender of the mail. func (m *SubmissionMailEvidence) SetSender(value *string)() { err := m.GetBackingStore().Set("sender", value) if err != nil { panic(err) } } -// SetSenderIp sets the senderIp property value. The senderIp property +// SetSenderIp sets the senderIp property value. The sender's IP. func (m *SubmissionMailEvidence) SetSenderIp(value *string)() { err := m.GetBackingStore().Set("senderIp", value) if err != nil { panic(err) } } -// SetSubject sets the subject property value. The subject property +// SetSubject sets the subject property value. The subject of the submission mail. func (m *SubmissionMailEvidence) SetSubject(value *string)() { err := m.GetBackingStore().Set("subject", value) if err != nil { panic(err) } } -// SetSubmissionDateTime sets the submissionDateTime property value. The submissionDateTime property +// SetSubmissionDateTime sets the submissionDateTime property value. The reported date and time for this submission. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024 is 2024-01-01T00:00:00Z. func (m *SubmissionMailEvidence) SetSubmissionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("submissionDateTime", value) if err != nil { panic(err) } } -// SetSubmissionId sets the submissionId property value. The submissionId property +// SetSubmissionId sets the submissionId property value. The submission ID. func (m *SubmissionMailEvidence) SetSubmissionId(value *string)() { err := m.GetBackingStore().Set("submissionId", value) if err != nil { panic(err) } } -// SetSubmitter sets the submitter property value. The submitter property +// SetSubmitter sets the submitter property value. The submitter's email address. func (m *SubmissionMailEvidence) SetSubmitter(value *string)() { err := m.GetBackingStore().Set("submitter", value) if err != nil { diff --git a/models/sign_in.go b/models/sign_in.go index 51d19209d7f..348582bcdbb 100644 --- a/models/sign_in.go +++ b/models/sign_in.go @@ -83,7 +83,7 @@ func (m *SignIn) GetAppOwnerTenantId()(*string) { } return nil } -// GetAppTokenProtectionStatus gets the appTokenProtectionStatus property value. Token protection creates a cryptographically secure tie between the token and the device it's issued to. This field indicates whether the app token was bound to the device. +// GetAppTokenProtectionStatus gets the appTokenProtectionStatus property value. Deprecated. Use tokenProtectionStatusDetails instead. Token protection creates a cryptographically secure tie between the token and the device it's issued to. This field indicates whether the app token was bound to the device. // returns a *TokenProtectionStatus when successful func (m *SignIn) GetAppTokenProtectionStatus()(*TokenProtectionStatus) { val, err := m.GetBackingStore().Get("appTokenProtectionStatus") @@ -251,6 +251,18 @@ func (m *SignIn) GetClientCredentialType()(*ClientCredentialType) { } return nil } +// GetClientSessionId gets the clientSessionId property value. The clientSessionId property +// returns a *string when successful +func (m *SignIn) GetClientSessionId()(*string) { + val, err := m.GetBackingStore().Get("clientSessionId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetConditionalAccessAudiences gets the conditionalAccessAudiences property value. A list that indicates the audience that Conditional Access evaluated during a sign-in event. Supports $filter (eq). // returns a []string when successful func (m *SignIn) GetConditionalAccessAudiences()([]string) { @@ -577,6 +589,16 @@ func (m *SignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 } return nil } + res["clientSessionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientSessionId(val) + } + return nil + } res["conditionalAccessAudiences"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -1603,7 +1625,7 @@ func (m *SignIn) GetSignInIdentifierType()(*SignInIdentifierType) { } return nil } -// GetSignInTokenProtectionStatus gets the signInTokenProtectionStatus property value. Token protection creates a cryptographically secure tie between the token and the device it's issued to. This field indicates whether the signin token was bound to the device or not. The possible values are: none, bound, unbound, unknownFutureValue. +// GetSignInTokenProtectionStatus gets the signInTokenProtectionStatus property value. Deprecated. Use tokenProtectionStatusDetails instead. Token protection creates a cryptographically secure tie between the token and the device it's issued to. This field indicates whether the sign-in token was bound to the device. The possible values are: none, bound, unbound, unknownFutureValue. // returns a *TokenProtectionStatus when successful func (m *SignIn) GetSignInTokenProtectionStatus()(*TokenProtectionStatus) { val, err := m.GetBackingStore().Get("signInTokenProtectionStatus") @@ -1651,7 +1673,7 @@ func (m *SignIn) GetTokenIssuerType()(*TokenIssuerType) { } return nil } -// GetTokenProtectionStatusDetails gets the tokenProtectionStatusDetails property value. The tokenProtectionStatusDetails property +// GetTokenProtectionStatusDetails gets the tokenProtectionStatusDetails property value. The status of the token protection for a request in the sign-in logs. For more information, see Conditional Access: Token Protection. // returns a TokenProtectionStatusDetailsable when successful func (m *SignIn) GetTokenProtectionStatusDetails()(TokenProtectionStatusDetailsable) { val, err := m.GetBackingStore().Get("tokenProtectionStatusDetails") @@ -1900,6 +1922,12 @@ func (m *SignIn) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c return err } } + { + err = writer.WriteStringValue("clientSessionId", m.GetClientSessionId()) + if err != nil { + return err + } + } if m.GetConditionalAccessAudiences() != nil { err = writer.WriteCollectionOfStringValues("conditionalAccessAudiences", m.GetConditionalAccessAudiences()) if err != nil { @@ -2291,7 +2319,7 @@ func (m *SignIn) SetAppOwnerTenantId(value *string)() { panic(err) } } -// SetAppTokenProtectionStatus sets the appTokenProtectionStatus property value. Token protection creates a cryptographically secure tie between the token and the device it's issued to. This field indicates whether the app token was bound to the device. +// SetAppTokenProtectionStatus sets the appTokenProtectionStatus property value. Deprecated. Use tokenProtectionStatusDetails instead. Token protection creates a cryptographically secure tie between the token and the device it's issued to. This field indicates whether the app token was bound to the device. func (m *SignIn) SetAppTokenProtectionStatus(value *TokenProtectionStatus)() { err := m.GetBackingStore().Set("appTokenProtectionStatus", value) if err != nil { @@ -2389,6 +2417,13 @@ func (m *SignIn) SetClientCredentialType(value *ClientCredentialType)() { panic(err) } } +// SetClientSessionId sets the clientSessionId property value. The clientSessionId property +func (m *SignIn) SetClientSessionId(value *string)() { + err := m.GetBackingStore().Set("clientSessionId", value) + if err != nil { + panic(err) + } +} // SetConditionalAccessAudiences sets the conditionalAccessAudiences property value. A list that indicates the audience that Conditional Access evaluated during a sign-in event. Supports $filter (eq). func (m *SignIn) SetConditionalAccessAudiences(value []string)() { err := m.GetBackingStore().Set("conditionalAccessAudiences", value) @@ -2697,7 +2732,7 @@ func (m *SignIn) SetSignInIdentifierType(value *SignInIdentifierType)() { panic(err) } } -// SetSignInTokenProtectionStatus sets the signInTokenProtectionStatus property value. Token protection creates a cryptographically secure tie between the token and the device it's issued to. This field indicates whether the signin token was bound to the device or not. The possible values are: none, bound, unbound, unknownFutureValue. +// SetSignInTokenProtectionStatus sets the signInTokenProtectionStatus property value. Deprecated. Use tokenProtectionStatusDetails instead. Token protection creates a cryptographically secure tie between the token and the device it's issued to. This field indicates whether the sign-in token was bound to the device. The possible values are: none, bound, unbound, unknownFutureValue. func (m *SignIn) SetSignInTokenProtectionStatus(value *TokenProtectionStatus)() { err := m.GetBackingStore().Set("signInTokenProtectionStatus", value) if err != nil { @@ -2725,7 +2760,7 @@ func (m *SignIn) SetTokenIssuerType(value *TokenIssuerType)() { panic(err) } } -// SetTokenProtectionStatusDetails sets the tokenProtectionStatusDetails property value. The tokenProtectionStatusDetails property +// SetTokenProtectionStatusDetails sets the tokenProtectionStatusDetails property value. The status of the token protection for a request in the sign-in logs. For more information, see Conditional Access: Token Protection. func (m *SignIn) SetTokenProtectionStatusDetails(value TokenProtectionStatusDetailsable)() { err := m.GetBackingStore().Set("tokenProtectionStatusDetails", value) if err != nil { @@ -2796,6 +2831,7 @@ type SignInable interface { GetAzureResourceId()(*string) GetClientAppUsed()(*string) GetClientCredentialType()(*ClientCredentialType) + GetClientSessionId()(*string) GetConditionalAccessAudiences()([]string) GetConditionalAccessStatus()(*ConditionalAccessStatus) GetCorrelationId()(*string) @@ -2870,6 +2906,7 @@ type SignInable interface { SetAzureResourceId(value *string)() SetClientAppUsed(value *string)() SetClientCredentialType(value *ClientCredentialType)() + SetClientSessionId(value *string)() SetConditionalAccessAudiences(value []string)() SetConditionalAccessStatus(value *ConditionalAccessStatus)() SetCorrelationId(value *string)() diff --git a/models/team_teams_app_installation_scope_info.go b/models/team_teams_app_installation_scope_info.go index 3fd48d7b4cd..25f3331ae78 100644 --- a/models/team_teams_app_installation_scope_info.go +++ b/models/team_teams_app_installation_scope_info.go @@ -40,7 +40,7 @@ func (m *TeamTeamsAppInstallationScopeInfo) GetFieldDeserializers()(map[string]f } return res } -// GetTeamId gets the teamId property value. The teamId property +// GetTeamId gets the teamId property value. The ID of the team where the Teams app is installed. // returns a *string when successful func (m *TeamTeamsAppInstallationScopeInfo) GetTeamId()(*string) { val, err := m.GetBackingStore().Get("teamId") @@ -66,7 +66,7 @@ func (m *TeamTeamsAppInstallationScopeInfo) Serialize(writer i878a80d2330e89d268 } return nil } -// SetTeamId sets the teamId property value. The teamId property +// SetTeamId sets the teamId property value. The ID of the team where the Teams app is installed. func (m *TeamTeamsAppInstallationScopeInfo) SetTeamId(value *string)() { err := m.GetBackingStore().Set("teamId", value) if err != nil { diff --git a/models/teams_app_installation.go b/models/teams_app_installation.go index 915ff7ec83a..ad7eb141f86 100644 --- a/models/teams_app_installation.go +++ b/models/teams_app_installation.go @@ -98,7 +98,7 @@ func (m *TeamsAppInstallation) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetScopeInfo gets the scopeInfo property value. The scopeInfo property +// GetScopeInfo gets the scopeInfo property value. The details of the scope in which the app is installed. // returns a TeamsAppInstallationScopeInfoable when successful func (m *TeamsAppInstallation) GetScopeInfo()(TeamsAppInstallationScopeInfoable) { val, err := m.GetBackingStore().Get("scopeInfo") @@ -173,7 +173,7 @@ func (m *TeamsAppInstallation) SetConsentedPermissionSet(value TeamsAppPermissio panic(err) } } -// SetScopeInfo sets the scopeInfo property value. The scopeInfo property +// SetScopeInfo sets the scopeInfo property value. The details of the scope in which the app is installed. func (m *TeamsAppInstallation) SetScopeInfo(value TeamsAppInstallationScopeInfoable)() { err := m.GetBackingStore().Set("scopeInfo", value) if err != nil { diff --git a/models/teams_app_installation_scope_info.go b/models/teams_app_installation_scope_info.go index 2c77196cc6b..8bc5212e85d 100644 --- a/models/teams_app_installation_scope_info.go +++ b/models/teams_app_installation_scope_info.go @@ -103,7 +103,7 @@ func (m *TeamsAppInstallationScopeInfo) GetOdataType()(*string) { } return nil } -// GetScope gets the scope property value. The scope property +// GetScope gets the scope property value. The scope in which the Teams app is installed. The possible values are: team, groupChat, personal, unknownFutureValue. // returns a *TeamsAppInstallationScopes when successful func (m *TeamsAppInstallationScopeInfo) GetScope()(*TeamsAppInstallationScopes) { val, err := m.GetBackingStore().Get("scope") @@ -156,7 +156,7 @@ func (m *TeamsAppInstallationScopeInfo) SetOdataType(value *string)() { panic(err) } } -// SetScope sets the scope property value. The scope property +// SetScope sets the scope property value. The scope in which the Teams app is installed. The possible values are: team, groupChat, personal, unknownFutureValue. func (m *TeamsAppInstallationScopeInfo) SetScope(value *TeamsAppInstallationScopes)() { err := m.GetBackingStore().Set("scope", value) if err != nil { diff --git a/models/token_protection_status_details.go b/models/token_protection_status_details.go index 59755eef936..e28a4f9116b 100644 --- a/models/token_protection_status_details.go +++ b/models/token_protection_status_details.go @@ -91,7 +91,7 @@ func (m *TokenProtectionStatusDetails) GetOdataType()(*string) { } return nil } -// GetSignInSessionStatus gets the signInSessionStatus property value. The signInSessionStatus property +// GetSignInSessionStatus gets the signInSessionStatus property value. The token protection status of the sign-in session. The possible values are: none, bound, unbound, unknownFutureValue. // returns a *TokenProtectionStatus when successful func (m *TokenProtectionStatusDetails) GetSignInSessionStatus()(*TokenProtectionStatus) { val, err := m.GetBackingStore().Get("signInSessionStatus") @@ -103,7 +103,7 @@ func (m *TokenProtectionStatusDetails) GetSignInSessionStatus()(*TokenProtection } return nil } -// GetSignInSessionStatusCode gets the signInSessionStatusCode property value. The signInSessionStatusCode property +// GetSignInSessionStatusCode gets the signInSessionStatusCode property value. Additional information about the status. // returns a *int32 when successful func (m *TokenProtectionStatusDetails) GetSignInSessionStatusCode()(*int32) { val, err := m.GetBackingStore().Get("signInSessionStatusCode") @@ -162,14 +162,14 @@ func (m *TokenProtectionStatusDetails) SetOdataType(value *string)() { panic(err) } } -// SetSignInSessionStatus sets the signInSessionStatus property value. The signInSessionStatus property +// SetSignInSessionStatus sets the signInSessionStatus property value. The token protection status of the sign-in session. The possible values are: none, bound, unbound, unknownFutureValue. func (m *TokenProtectionStatusDetails) SetSignInSessionStatus(value *TokenProtectionStatus)() { err := m.GetBackingStore().Set("signInSessionStatus", value) if err != nil { panic(err) } } -// SetSignInSessionStatusCode sets the signInSessionStatusCode property value. The signInSessionStatusCode property +// SetSignInSessionStatusCode sets the signInSessionStatusCode property value. Additional information about the status. func (m *TokenProtectionStatusDetails) SetSignInSessionStatusCode(value *int32)() { err := m.GetBackingStore().Set("signInSessionStatusCode", value) if err != nil { diff --git a/models/user.go b/models/user.go index 89e5a7419db..ad80a2dd8ef 100644 --- a/models/user.go +++ b/models/user.go @@ -2839,7 +2839,7 @@ func (m *User) GetIdentities()([]ObjectIdentityable) { } return nil } -// GetIdentityGovernance gets the identityGovernance property value. The identityGovernance property +// GetIdentityGovernance gets the identityGovernance property value. The identity governance settings for the user, including the approver delegate configuration. Nullable. Returned only on $select. Supports $expand. // returns a IdentityGovernanceUserSettingsable when successful func (m *User) GetIdentityGovernance()(IdentityGovernanceUserSettingsable) { val, err := m.GetBackingStore().Get("identityGovernance") @@ -2971,7 +2971,7 @@ func (m *User) GetIsManagementRestricted()(*bool) { } return nil } -// GetIsResourceAccount gets the isResourceAccount property value. Do not use – reserved for future use. +// GetIsResourceAccount gets the isResourceAccount property value. Do not use. Reserved for future use. // returns a *bool when successful func (m *User) GetIsResourceAccount()(*bool) { val, err := m.GetBackingStore().Get("isResourceAccount") @@ -5802,7 +5802,7 @@ func (m *User) SetIdentities(value []ObjectIdentityable)() { panic(err) } } -// SetIdentityGovernance sets the identityGovernance property value. The identityGovernance property +// SetIdentityGovernance sets the identityGovernance property value. The identity governance settings for the user, including the approver delegate configuration. Nullable. Returned only on $select. Supports $expand. func (m *User) SetIdentityGovernance(value IdentityGovernanceUserSettingsable)() { err := m.GetBackingStore().Set("identityGovernance", value) if err != nil { @@ -5879,7 +5879,7 @@ func (m *User) SetIsManagementRestricted(value *bool)() { panic(err) } } -// SetIsResourceAccount sets the isResourceAccount property value. Do not use – reserved for future use. +// SetIsResourceAccount sets the isResourceAccount property value. Do not use. Reserved for future use. func (m *User) SetIsResourceAccount(value *bool)() { err := m.GetBackingStore().Set("isResourceAccount", value) if err != nil { diff --git a/models/virtual_event_registration_configuration.go b/models/virtual_event_registration_configuration.go index 0ea22b933e0..370888c5dd4 100644 --- a/models/virtual_event_registration_configuration.go +++ b/models/virtual_event_registration_configuration.go @@ -32,6 +32,8 @@ func CreateVirtualEventRegistrationConfigurationFromDiscriminatorValue(parseNode } if mappingValue != nil { switch *mappingValue { + case "#microsoft.graph.virtualEventTownhallRegistrationConfiguration": + return NewVirtualEventTownhallRegistrationConfiguration(), nil case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": return NewVirtualEventWebinarRegistrationConfiguration(), nil } @@ -66,6 +68,26 @@ func (m *VirtualEventRegistrationConfiguration) GetFieldDeserializers()(map[stri } return nil } + res["isManualApprovalEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsManualApprovalEnabled(val) + } + return nil + } + res["isWaitlistEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsWaitlistEnabled(val) + } + return nil + } res["questions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue) if err != nil { @@ -94,6 +116,30 @@ func (m *VirtualEventRegistrationConfiguration) GetFieldDeserializers()(map[stri } return res } +// GetIsManualApprovalEnabled gets the isManualApprovalEnabled property value. The isManualApprovalEnabled property +// returns a *bool when successful +func (m *VirtualEventRegistrationConfiguration) GetIsManualApprovalEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isManualApprovalEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsWaitlistEnabled gets the isWaitlistEnabled property value. The isWaitlistEnabled property +// returns a *bool when successful +func (m *VirtualEventRegistrationConfiguration) GetIsWaitlistEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isWaitlistEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetQuestions gets the questions property value. Registration questions. // returns a []VirtualEventRegistrationQuestionBaseable when successful func (m *VirtualEventRegistrationConfiguration) GetQuestions()([]VirtualEventRegistrationQuestionBaseable) { @@ -130,6 +176,18 @@ func (m *VirtualEventRegistrationConfiguration) Serialize(writer i878a80d2330e89 return err } } + { + err = writer.WriteBoolValue("isManualApprovalEnabled", m.GetIsManualApprovalEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isWaitlistEnabled", m.GetIsWaitlistEnabled()) + if err != nil { + return err + } + } if m.GetQuestions() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetQuestions())) for i, v := range m.GetQuestions() { @@ -157,6 +215,20 @@ func (m *VirtualEventRegistrationConfiguration) SetCapacity(value *int32)() { panic(err) } } +// SetIsManualApprovalEnabled sets the isManualApprovalEnabled property value. The isManualApprovalEnabled property +func (m *VirtualEventRegistrationConfiguration) SetIsManualApprovalEnabled(value *bool)() { + err := m.GetBackingStore().Set("isManualApprovalEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsWaitlistEnabled sets the isWaitlistEnabled property value. The isWaitlistEnabled property +func (m *VirtualEventRegistrationConfiguration) SetIsWaitlistEnabled(value *bool)() { + err := m.GetBackingStore().Set("isWaitlistEnabled", value) + if err != nil { + panic(err) + } +} // SetQuestions sets the questions property value. Registration questions. func (m *VirtualEventRegistrationConfiguration) SetQuestions(value []VirtualEventRegistrationQuestionBaseable)() { err := m.GetBackingStore().Set("questions", value) @@ -175,9 +247,13 @@ type VirtualEventRegistrationConfigurationable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCapacity()(*int32) + GetIsManualApprovalEnabled()(*bool) + GetIsWaitlistEnabled()(*bool) GetQuestions()([]VirtualEventRegistrationQuestionBaseable) GetRegistrationWebUrl()(*string) SetCapacity(value *int32)() + SetIsManualApprovalEnabled(value *bool)() + SetIsWaitlistEnabled(value *bool)() SetQuestions(value []VirtualEventRegistrationQuestionBaseable)() SetRegistrationWebUrl(value *string)() } diff --git a/models/virtual_event_townhall.go b/models/virtual_event_townhall.go index 03cc50926de..8c5d9ae8dfb 100644 --- a/models/virtual_event_townhall.go +++ b/models/virtual_event_townhall.go @@ -126,6 +126,32 @@ func (m *VirtualEventTownhall) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["registrationConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateVirtualEventTownhallRegistrationConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRegistrationConfiguration(val.(VirtualEventTownhallRegistrationConfigurationable)) + } + return nil + } + res["registrations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventRegistrationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventRegistrationable) + } + } + m.SetRegistrations(res) + } + return nil + } return res } // GetInvitedAttendees gets the invitedAttendees property value. The attendees invited to the town hall. The supported identities are: communicationsUserIdentity and communicationsGuestIdentity. @@ -152,6 +178,30 @@ func (m *VirtualEventTownhall) GetIsInviteOnly()(*bool) { } return nil } +// GetRegistrationConfiguration gets the registrationConfiguration property value. The registrationConfiguration property +// returns a VirtualEventTownhallRegistrationConfigurationable when successful +func (m *VirtualEventTownhall) GetRegistrationConfiguration()(VirtualEventTownhallRegistrationConfigurationable) { + val, err := m.GetBackingStore().Get("registrationConfiguration") + if err != nil { + panic(err) + } + if val != nil { + return val.(VirtualEventTownhallRegistrationConfigurationable) + } + return nil +} +// GetRegistrations gets the registrations property value. The registrations property +// returns a []VirtualEventRegistrationable when successful +func (m *VirtualEventTownhall) GetRegistrations()([]VirtualEventRegistrationable) { + val, err := m.GetBackingStore().Get("registrations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventRegistrationable) + } + return nil +} // Serialize serializes information the current object func (m *VirtualEventTownhall) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.VirtualEvent.Serialize(writer) @@ -201,6 +251,24 @@ func (m *VirtualEventTownhall) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteObjectValue("registrationConfiguration", m.GetRegistrationConfiguration()) + if err != nil { + return err + } + } + if m.GetRegistrations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrations())) + for i, v := range m.GetRegistrations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("registrations", cast) + if err != nil { + return err + } + } return nil } // SetAudience sets the audience property value. The audience to whom the town hall is visible. The possible values are: everyone, organization, unknownFutureValue. @@ -238,6 +306,20 @@ func (m *VirtualEventTownhall) SetIsInviteOnly(value *bool)() { panic(err) } } +// SetRegistrationConfiguration sets the registrationConfiguration property value. The registrationConfiguration property +func (m *VirtualEventTownhall) SetRegistrationConfiguration(value VirtualEventTownhallRegistrationConfigurationable)() { + err := m.GetBackingStore().Set("registrationConfiguration", value) + if err != nil { + panic(err) + } +} +// SetRegistrations sets the registrations property value. The registrations property +func (m *VirtualEventTownhall) SetRegistrations(value []VirtualEventRegistrationable)() { + err := m.GetBackingStore().Set("registrations", value) + if err != nil { + panic(err) + } +} type VirtualEventTownhallable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VirtualEventable @@ -246,9 +328,13 @@ type VirtualEventTownhallable interface { GetCoOrganizers()([]CommunicationsUserIdentityable) GetInvitedAttendees()([]Identityable) GetIsInviteOnly()(*bool) + GetRegistrationConfiguration()(VirtualEventTownhallRegistrationConfigurationable) + GetRegistrations()([]VirtualEventRegistrationable) SetAudience(value *MeetingAudience)() SetCapacity(value *int32)() SetCoOrganizers(value []CommunicationsUserIdentityable)() SetInvitedAttendees(value []Identityable)() SetIsInviteOnly(value *bool)() + SetRegistrationConfiguration(value VirtualEventTownhallRegistrationConfigurationable)() + SetRegistrations(value []VirtualEventRegistrationable)() } diff --git a/models/virtual_event_townhall_registration_configuration.go b/models/virtual_event_townhall_registration_configuration.go new file mode 100644 index 00000000000..08e451d30a1 --- /dev/null +++ b/models/virtual_event_townhall_registration_configuration.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventTownhallRegistrationConfiguration struct { + VirtualEventRegistrationConfiguration +} +// NewVirtualEventTownhallRegistrationConfiguration instantiates a new VirtualEventTownhallRegistrationConfiguration and sets the default values. +func NewVirtualEventTownhallRegistrationConfiguration()(*VirtualEventTownhallRegistrationConfiguration) { + m := &VirtualEventTownhallRegistrationConfiguration{ + VirtualEventRegistrationConfiguration: *NewVirtualEventRegistrationConfiguration(), + } + return m +} +// CreateVirtualEventTownhallRegistrationConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventTownhallRegistrationConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventTownhallRegistrationConfiguration(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventTownhallRegistrationConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.VirtualEventRegistrationConfiguration.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *VirtualEventTownhallRegistrationConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.VirtualEventRegistrationConfiguration.Serialize(writer) + if err != nil { + return err + } + return nil +} +type VirtualEventTownhallRegistrationConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + VirtualEventRegistrationConfigurationable +} diff --git a/models/virtual_event_webinar_registration_configuration.go b/models/virtual_event_webinar_registration_configuration.go index 643a611c09d..4a6ed2c3932 100644 --- a/models/virtual_event_webinar_registration_configuration.go +++ b/models/virtual_event_webinar_registration_configuration.go @@ -26,91 +26,17 @@ func CreateVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue(pa // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *VirtualEventWebinarRegistrationConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.VirtualEventRegistrationConfiguration.GetFieldDeserializers() - res["isManualApprovalEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetIsManualApprovalEnabled(val) - } - return nil - } - res["isWaitlistEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetIsWaitlistEnabled(val) - } - return nil - } return res } -// GetIsManualApprovalEnabled gets the isManualApprovalEnabled property value. The isManualApprovalEnabled property -// returns a *bool when successful -func (m *VirtualEventWebinarRegistrationConfiguration) GetIsManualApprovalEnabled()(*bool) { - val, err := m.GetBackingStore().Get("isManualApprovalEnabled") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetIsWaitlistEnabled gets the isWaitlistEnabled property value. The isWaitlistEnabled property -// returns a *bool when successful -func (m *VirtualEventWebinarRegistrationConfiguration) GetIsWaitlistEnabled()(*bool) { - val, err := m.GetBackingStore().Get("isWaitlistEnabled") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} // Serialize serializes information the current object func (m *VirtualEventWebinarRegistrationConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.VirtualEventRegistrationConfiguration.Serialize(writer) if err != nil { return err } - { - err = writer.WriteBoolValue("isManualApprovalEnabled", m.GetIsManualApprovalEnabled()) - if err != nil { - return err - } - } - { - err = writer.WriteBoolValue("isWaitlistEnabled", m.GetIsWaitlistEnabled()) - if err != nil { - return err - } - } return nil } -// SetIsManualApprovalEnabled sets the isManualApprovalEnabled property value. The isManualApprovalEnabled property -func (m *VirtualEventWebinarRegistrationConfiguration) SetIsManualApprovalEnabled(value *bool)() { - err := m.GetBackingStore().Set("isManualApprovalEnabled", value) - if err != nil { - panic(err) - } -} -// SetIsWaitlistEnabled sets the isWaitlistEnabled property value. The isWaitlistEnabled property -func (m *VirtualEventWebinarRegistrationConfiguration) SetIsWaitlistEnabled(value *bool)() { - err := m.GetBackingStore().Set("isWaitlistEnabled", value) - if err != nil { - panic(err) - } -} type VirtualEventWebinarRegistrationConfigurationable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable VirtualEventRegistrationConfigurationable - GetIsManualApprovalEnabled()(*bool) - GetIsWaitlistEnabled()(*bool) - SetIsManualApprovalEnabled(value *bool)() - SetIsWaitlistEnabled(value *bool)() } diff --git a/networkaccess/0c876189eea7828816cfdb38bce37976bc20ec2a3b93ceaf467a515610b634c5.go b/networkaccess/0c876189eea7828816cfdb38bce37976bc20ec2a3b93ceaf467a515610b634c5.go deleted file mode 100644 index 56bab7d7627..00000000000 --- a/networkaccess/0c876189eea7828816cfdb38bce37976bc20ec2a3b93ceaf467a515610b634c5.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - "context" - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" -) - -// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder provides operations to call the destinationReport method. -type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters invoke function destinationReport -type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool "uriparametername:\"%24count\"" - // Filter items by property values - Filter *string "uriparametername:\"%24filter\"" - // Search items by search phrases - Search *string "uriparametername:\"%24search\"" - // Skip the first n items - Skip *int32 "uriparametername:\"%24skip\"" - // Show only the first n items - Top *int32 "uriparametername:\"%24top\"" -} -// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters -} -// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) { - m := &ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.destinationReport(startDateTime={startDateTime},endDateTime={endDateTime}){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters), - } - if endDateTime != nil { - m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) - } - if startDateTime != nil { - m.BaseRequestBuilder.PathParameters["startDateTime"] = (*startDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) - } - return m -} -// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter, nil, nil) -} -// Get invoke function destinationReport -// Deprecated: This method is obsolete. Use GetAsDestinationReportWithStartDateTimeWithEndDateTimeGetResponse instead. -// returns a ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseable), nil -} -// GetAsDestinationReportWithStartDateTimeWithEndDateTimeGetResponse invoke function destinationReport -// returns a ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) GetAsDestinationReportWithStartDateTimeWithEndDateTimeGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable), nil -} -// ToGetRequestInformation invoke function destinationReport -// returns a *RequestInformation when successful -func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*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 -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder when successful -func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/networkaccess/1b5e0e4aa04b4c8b3a0e96846cdd712aa1fe73f976d90eac03f6ce13b0a47249.go b/networkaccess/1b5e0e4aa04b4c8b3a0e96846cdd712aa1fe73f976d90eac03f6ce13b0a47249.go new file mode 100644 index 00000000000..dc3c41256d1 --- /dev/null +++ b/networkaccess/1b5e0e4aa04b4c8b3a0e96846cdd712aa1fe73f976d90eac03f6ce13b0a47249.go @@ -0,0 +1,93 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" +) + +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateUserFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Userable when successful +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) + } + return nil +} +// Serialize serializes information the current object +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) + SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable)() +} diff --git a/networkaccess/374c8a43dc836a7184563a8bbb8dc1ec94af5812f1a4dde6e28504c2b48b62eb.go b/networkaccess/374c8a43dc836a7184563a8bbb8dc1ec94af5812f1a4dde6e28504c2b48b62eb.go deleted file mode 100644 index 6fe9c2fa499..00000000000 --- a/networkaccess/374c8a43dc836a7184563a8bbb8dc1ec94af5812f1a4dde6e28504c2b48b62eb.go +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" - i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" -) - -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse struct { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse -} -// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) { - m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse{ - BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateUserFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []Userable when successful -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) - } - return nil -} -// Serialize serializes information the current object -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable interface { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) - SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable)() -} diff --git a/networkaccess/3f682b5e38b0fc381ba05cea3b896008d72e571e2680f51295e4396ff8153776.go b/networkaccess/3f682b5e38b0fc381ba05cea3b896008d72e571e2680f51295e4396ff8153776.go deleted file mode 100644 index e24f54794b5..00000000000 --- a/networkaccess/3f682b5e38b0fc381ba05cea3b896008d72e571e2680f51295e4396ff8153776.go +++ /dev/null @@ -1,93 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" - i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" -) - -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse struct { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse -} -// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) { - m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse{ - BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateDeviceFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []Deviceable when successful -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) - } - return nil -} -// Serialize serializes information the current object -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable interface { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) - SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable)() -} diff --git a/networkaccess/4ee38c379acb49028a35bb1955c1c820334a68fc6e77a670c8e0edaf7592d0b5.go b/networkaccess/4ee38c379acb49028a35bb1955c1c820334a68fc6e77a670c8e0edaf7592d0b5.go new file mode 100644 index 00000000000..8eef607a9af --- /dev/null +++ b/networkaccess/4ee38c379acb49028a35bb1955c1c820334a68fc6e77a670c8e0edaf7592d0b5.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse struct { + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse{ + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse: *NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse(), nil +} +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable +} diff --git a/networkaccess/6e2a5dd1c4b2deefe47a24afbb104eb2d8a5a62fc5cd4a8d0b07f64a5181e0ae.go b/networkaccess/6e2a5dd1c4b2deefe47a24afbb104eb2d8a5a62fc5cd4a8d0b07f64a5181e0ae.go new file mode 100644 index 00000000000..5a85861dbfd --- /dev/null +++ b/networkaccess/6e2a5dd1c4b2deefe47a24afbb104eb2d8a5a62fc5cd4a8d0b07f64a5181e0ae.go @@ -0,0 +1,93 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" +) + +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateDeviceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []Deviceable when successful +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) + } + return nil +} +// Serialize serializes information the current object +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) + SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable)() +} diff --git a/networkaccess/70dfa8bcea588f3cd97314bee08b7630bdd682d81c3401cf47e0c0c9d7e968c7.go b/networkaccess/70dfa8bcea588f3cd97314bee08b7630bdd682d81c3401cf47e0c0c9d7e968c7.go deleted file mode 100644 index f2e81d3ba94..00000000000 --- a/networkaccess/70dfa8bcea588f3cd97314bee08b7630bdd682d81c3401cf47e0c0c9d7e968c7.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse struct { - ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse -} -// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse) { - m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse{ - ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse: *NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse(), - } - return m -} -// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse(), nil -} -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable -} diff --git a/networkaccess/3c7eafec1215e41a9468a9f14425afe91b6ae281395fd0961a95aaae19150816.go b/networkaccess/71d2f8833fd3707885adc1620559e11106860a35d82385c59691162265e56f2b.go similarity index 56% rename from networkaccess/3c7eafec1215e41a9468a9f14425afe91b6ae281395fd0961a95aaae19150816.go rename to networkaccess/71d2f8833fd3707885adc1620559e11106860a35d82385c59691162265e56f2b.go index 8900595381a..6dd86542582 100644 --- a/networkaccess/3c7eafec1215e41a9468a9f14425afe91b6ae281395fd0961a95aaae19150816.go +++ b/networkaccess/71d2f8833fd3707885adc1620559e11106860a35d82385c59691162265e56f2b.go @@ -9,24 +9,24 @@ import ( i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" ) -type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse struct { +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse()(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) { - m := &ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse{ +// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse()(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), } return m } -// CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse(), nil +func CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateDestinationFromDiscriminatorValue) @@ -48,7 +48,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWit } // GetValue gets the value property value. The value property // returns a []Destinationable when successful -func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable) { +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) @@ -59,7 +59,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWit return nil } // Serialize serializes information the current object -func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err @@ -79,13 +79,13 @@ func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWit return nil } // SetValue sets the value property value. The value property -func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable)() { +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable interface { +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable) diff --git a/networkaccess/7450597478e7c6fb3e3c452fbec623c922126cb17cdb674c160ab5cc259b27f4.go b/networkaccess/7450597478e7c6fb3e3c452fbec623c922126cb17cdb674c160ab5cc259b27f4.go deleted file mode 100644 index aa20793988b..00000000000 --- a/networkaccess/7450597478e7c6fb3e3c452fbec623c922126cb17cdb674c160ab5cc259b27f4.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse struct { - ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse -} -// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse) { - m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse{ - ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse: *NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse(), - } - return m -} -// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponse(), nil -} -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable -} diff --git a/networkaccess/9ab0ef980c1877913637c5fb5af8bd2379410a484fee27725ccd3bc790391499.go b/networkaccess/9ab0ef980c1877913637c5fb5af8bd2379410a484fee27725ccd3bc790391499.go new file mode 100644 index 00000000000..214fde8c5e1 --- /dev/null +++ b/networkaccess/9ab0ef980c1877913637c5fb5af8bd2379410a484fee27725ccd3bc790391499.go @@ -0,0 +1,121 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + "context" + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder provides operations to call the destinationReport method. +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderGetQueryParameters invoke function destinationReport +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderGetQueryParameters struct { + // Usage: aiAgentId='@aiAgentId' + AiAgentId *string "uriparametername:\"aiAgentId\"" + // Usage: aiAgentName='@aiAgentName' + AiAgentName *string "uriparametername:\"aiAgentName\"" + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderGetQueryParameters +} +// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.destinationReport(startDateTime={startDateTime},endDateTime={endDateTime},aiAgentId='@aiAgentId',aiAgentName='@aiAgentName'){?%24count,%24filter,%24search,%24skip,%24top,aiAgentId*,aiAgentName*}", pathParameters), + } + if endDateTime != nil { + m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) + } + if startDateTime != nil { + m.BaseRequestBuilder.PathParameters["startDateTime"] = (*startDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) + } + return m +} +// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function destinationReport +// Deprecated: This method is obsolete. Use GetAsDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse instead. +// returns a ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponseable), nil +} +// GetAsDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse invoke function destinationReport +// returns a ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) GetAsDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseable), nil +} +// ToGetRequestInformation invoke function destinationReport +// returns a *RequestInformation when successful +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderGetRequestConfiguration)(*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 +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder when successful +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/b4a2cbc5ee06e11000bd768e2f8ff7c173b1f7d40380de9a1175c8e7ec6adb88.go b/networkaccess/b4a2cbc5ee06e11000bd768e2f8ff7c173b1f7d40380de9a1175c8e7ec6adb88.go deleted file mode 100644 index b5537f04b90..00000000000 --- a/networkaccess/b4a2cbc5ee06e11000bd768e2f8ff7c173b1f7d40380de9a1175c8e7ec6adb88.go +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - "context" - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" -) - -// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder provides operations to call the deviceReport method. -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetQueryParameters invoke function deviceReport -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetQueryParameters struct { - // Usage: applicationId='@applicationId' - ApplicationId *string "uriparametername:\"applicationId\"" - // Include count of items - Count *bool "uriparametername:\"%24count\"" - // Usage: discoveredApplicationSegmentId='@discoveredApplicationSegmentId' - DiscoveredApplicationSegmentId *string "uriparametername:\"discoveredApplicationSegmentId\"" - // Filter items by property values - Filter *string "uriparametername:\"%24filter\"" - // Search items by search phrases - Search *string "uriparametername:\"%24search\"" - // Skip the first n items - Skip *int32 "uriparametername:\"%24skip\"" - // Show only the first n items - Top *int32 "uriparametername:\"%24top\"" -} -// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetQueryParameters -} -// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { - m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.deviceReport(startDateTime={startDateTime},endDateTime={endDateTime},discoveredApplicationSegmentId='@discoveredApplicationSegmentId',applicationId='@applicationId'){?%24count,%24filter,%24search,%24skip,%24top,applicationId*,discoveredApplicationSegmentId*}", pathParameters), - } - if endDateTime != nil { - m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) - } - if startDateTime != nil { - m.BaseRequestBuilder.PathParameters["startDateTime"] = (*startDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) - } - return m -} -// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal(urlParams, requestAdapter, nil, nil) -} -// Get invoke function deviceReport -// Deprecated: This method is obsolete. Use GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse instead. -// returns a ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseable), nil -} -// GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse invoke function deviceReport -// returns a ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable), nil -} -// ToGetRequestInformation invoke function deviceReport -// returns a *RequestInformation when successful -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration)(*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 -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder when successful -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/networkaccess/c59e52120abd086fa6a27937f936d6bfeba9a4927c2095e28803ecaaed61b462.go b/networkaccess/c59e52120abd086fa6a27937f936d6bfeba9a4927c2095e28803ecaaed61b462.go new file mode 100644 index 00000000000..da625d76266 --- /dev/null +++ b/networkaccess/c59e52120abd086fa6a27937f936d6bfeba9a4927c2095e28803ecaaed61b462.go @@ -0,0 +1,127 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + "context" + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder provides operations to call the deviceReport method. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters invoke function deviceReport +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters struct { + // Usage: aiAgentId='@aiAgentId' + AiAgentId *string "uriparametername:\"aiAgentId\"" + // Usage: aiAgentName='@aiAgentName' + AiAgentName *string "uriparametername:\"aiAgentName\"" + // Usage: applicationId='@applicationId' + ApplicationId *string "uriparametername:\"applicationId\"" + // Usage: cloudApplicationName='@cloudApplicationName' + CloudApplicationName *string "uriparametername:\"cloudApplicationName\"" + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Usage: discoveredApplicationSegmentId='@discoveredApplicationSegmentId' + DiscoveredApplicationSegmentId *string "uriparametername:\"discoveredApplicationSegmentId\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.deviceReport(startDateTime={startDateTime},endDateTime={endDateTime},discoveredApplicationSegmentId='@discoveredApplicationSegmentId',applicationId='@applicationId',aiAgentId='@aiAgentId',aiAgentName='@aiAgentName',cloudApplicationName='@cloudApplicationName'){?%24count,%24filter,%24search,%24skip,%24top,aiAgentId*,aiAgentName*,applicationId*,cloudApplicationName*,discoveredApplicationSegmentId*}", pathParameters), + } + if endDateTime != nil { + m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) + } + if startDateTime != nil { + m.BaseRequestBuilder.PathParameters["startDateTime"] = (*startDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) + } + return m +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function deviceReport +// Deprecated: This method is obsolete. Use GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse instead. +// returns a ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable), nil +} +// GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse invoke function deviceReport +// returns a ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable), nil +} +// ToGetRequestInformation invoke function deviceReport +// returns a *RequestInformation when successful +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(*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 +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder when successful +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/cfee8d3e3c67dd049c1c08b81e8bcffc51b6193007a3c0c35bddf2211bb4f04a.go b/networkaccess/cfee8d3e3c67dd049c1c08b81e8bcffc51b6193007a3c0c35bddf2211bb4f04a.go new file mode 100644 index 00000000000..06e8c489a97 --- /dev/null +++ b/networkaccess/cfee8d3e3c67dd049c1c08b81e8bcffc51b6193007a3c0c35bddf2211bb4f04a.go @@ -0,0 +1,127 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + "context" + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder provides operations to call the userReport method. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters invoke function userReport +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters struct { + // Usage: aiAgentId='@aiAgentId' + AiAgentId *string "uriparametername:\"aiAgentId\"" + // Usage: aiAgentName='@aiAgentName' + AiAgentName *string "uriparametername:\"aiAgentName\"" + // Usage: applicationId='@applicationId' + ApplicationId *string "uriparametername:\"applicationId\"" + // Usage: cloudApplicationName='@cloudApplicationName' + CloudApplicationName *string "uriparametername:\"cloudApplicationName\"" + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Usage: discoveredApplicationSegmentId='@discoveredApplicationSegmentId' + DiscoveredApplicationSegmentId *string "uriparametername:\"discoveredApplicationSegmentId\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.userReport(startDateTime={startDateTime},endDateTime={endDateTime},discoveredApplicationSegmentId='@discoveredApplicationSegmentId',applicationId='@applicationId',aiAgentId='@aiAgentId',aiAgentName='@aiAgentName',cloudApplicationName='@cloudApplicationName'){?%24count,%24filter,%24search,%24skip,%24top,aiAgentId*,aiAgentName*,applicationId*,cloudApplicationName*,discoveredApplicationSegmentId*}", pathParameters), + } + if endDateTime != nil { + m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) + } + if startDateTime != nil { + m.BaseRequestBuilder.PathParameters["startDateTime"] = (*startDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) + } + return m +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function userReport +// Deprecated: This method is obsolete. Use GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse instead. +// returns a ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable), nil +} +// GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse invoke function userReport +// returns a ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable), nil +} +// ToGetRequestInformation invoke function userReport +// returns a *RequestInformation when successful +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(*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 +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder when successful +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/dd65250847a196bd04a31b95220d8a520b2ba0cd051abbceebb571e51d3f5778.go b/networkaccess/dd65250847a196bd04a31b95220d8a520b2ba0cd051abbceebb571e51d3f5778.go deleted file mode 100644 index c3958f45bdf..00000000000 --- a/networkaccess/dd65250847a196bd04a31b95220d8a520b2ba0cd051abbceebb571e51d3f5778.go +++ /dev/null @@ -1,121 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - "context" - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" -) - -// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder provides operations to call the userReport method. -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetQueryParameters invoke function userReport -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetQueryParameters struct { - // Usage: applicationId='@applicationId' - ApplicationId *string "uriparametername:\"applicationId\"" - // Include count of items - Count *bool "uriparametername:\"%24count\"" - // Usage: discoveredApplicationSegmentId='@discoveredApplicationSegmentId' - DiscoveredApplicationSegmentId *string "uriparametername:\"discoveredApplicationSegmentId\"" - // Filter items by property values - Filter *string "uriparametername:\"%24filter\"" - // Search items by search phrases - Search *string "uriparametername:\"%24search\"" - // Skip the first n items - Skip *int32 "uriparametername:\"%24skip\"" - // Show only the first n items - Top *int32 "uriparametername:\"%24top\"" -} -// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetQueryParameters -} -// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { - m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.userReport(startDateTime={startDateTime},endDateTime={endDateTime},discoveredApplicationSegmentId='@discoveredApplicationSegmentId',applicationId='@applicationId'){?%24count,%24filter,%24search,%24skip,%24top,applicationId*,discoveredApplicationSegmentId*}", pathParameters), - } - if endDateTime != nil { - m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) - } - if startDateTime != nil { - m.BaseRequestBuilder.PathParameters["startDateTime"] = (*startDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) - } - return m -} -// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal(urlParams, requestAdapter, nil, nil) -} -// Get invoke function userReport -// Deprecated: This method is obsolete. Use GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse instead. -// returns a ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdResponseable), nil -} -// GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse invoke function userReport -// returns a ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdGetResponseable), nil -} -// ToGetRequestInformation invoke function userReport -// returns a *RequestInformation when successful -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderGetRequestConfiguration)(*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 -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder when successful -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/networkaccess/e7f9fee92a4b82515fca3b1535492551f08afd07fc598e4c0d2c4402aea3a705.go b/networkaccess/e7f9fee92a4b82515fca3b1535492551f08afd07fc598e4c0d2c4402aea3a705.go new file mode 100644 index 00000000000..3ffb0c62e78 --- /dev/null +++ b/networkaccess/e7f9fee92a4b82515fca3b1535492551f08afd07fc598e4c0d2c4402aea3a705.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse struct { + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse{ + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse: *NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse(), nil +} +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable +} diff --git a/networkaccess/ec780358abce47d9573526275017465bbb37727d965be9312dec6ab3fb41ae01.go b/networkaccess/ec780358abce47d9573526275017465bbb37727d965be9312dec6ab3fb41ae01.go deleted file mode 100644 index b4ccbd8cda4..00000000000 --- a/networkaccess/ec780358abce47d9573526275017465bbb37727d965be9312dec6ab3fb41ae01.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse struct { - ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse -} -// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse()(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse) { - m := &ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse{ - ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse: *NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse(), - } - return m -} -// CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse(), nil -} -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable -} diff --git a/networkaccess/efbd2a507345640da3fd44a8bd194b3186c88ca593d4fa9c673a7b1bce686fac.go b/networkaccess/efbd2a507345640da3fd44a8bd194b3186c88ca593d4fa9c673a7b1bce686fac.go new file mode 100644 index 00000000000..859b50f6adf --- /dev/null +++ b/networkaccess/efbd2a507345640da3fd44a8bd194b3186c88ca593d4fa9c673a7b1bce686fac.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponse struct { + ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponse()(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponse{ + ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse: *NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponse(), nil +} +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameGetResponseable +} diff --git a/networkaccess/reports_request_builder.go b/networkaccess/reports_request_builder.go index 744a25fc065..e07c0695b9f 100644 --- a/networkaccess/reports_request_builder.go +++ b/networkaccess/reports_request_builder.go @@ -99,15 +99,15 @@ func (m *ReportsRequestBuilder) Get(ctx context.Context, requestConfiguration *R func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder) { return NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } -// MicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTime provides operations to call the destinationReport method. -// returns a *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder when successful -func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +// MicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentName provides operations to call the destinationReport method. +// returns a *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder when successful +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentName(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } -// MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationId provides operations to call the deviceReport method. -// returns a *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder when successful -func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationId(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +// MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationName provides operations to call the deviceReport method. +// returns a *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder when successful +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationName(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } // MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime provides operations to call the entitiesSummaries method. // returns a *ReportsMicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder when successful @@ -164,10 +164,10 @@ func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessTransactionSummariesW func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessUsageProfilingWithStartDateTimeWithEndDateTimeWithAggregatedBydiscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationId(aggregatedBy *string, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUsageProfilingWithStartDateTimeWithEndDateTimeWithAggregatedBydiscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { return NewReportsMicrosoftGraphNetworkaccessUsageProfilingWithStartDateTimeWithEndDateTimeWithAggregatedBydiscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, aggregatedBy, endDateTime, startDateTime) } -// MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationId provides operations to call the userReport method. -// returns a *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder when successful -func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationId(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +// MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationName provides operations to call the userReport method. +// returns a *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder when successful +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationName(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } // MicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTime provides operations to call the webCategoryReport method. // returns a *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder when successful diff --git a/solutions/358a7adb56365e42898596a0dd88bb56dc08c40e7061341bf46333c0e1709f8f.go b/solutions/358a7adb56365e42898596a0dd88bb56dc08c40e7061341bf46333c0e1709f8f.go new file mode 100644 index 00000000000..6a52739d4c0 --- /dev/null +++ b/solutions/358a7adb56365e42898596a0dd88bb56dc08c40e7061341bf46333c0e1709f8f.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters registration questions. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property questions for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get registration questions. +// returns a VirtualEventRegistrationQuestionBaseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable), nil +} +// Patch update the navigation property questions in solutions +// returns a VirtualEventRegistrationQuestionBaseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable), nil +} +// ToDeleteRequestInformation delete navigation property questions for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration)(*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 registration questions. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration)(*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 questions in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/migrations_cross_tenant_migration_jobs_cross_tenant_migration_job_item_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_cross_tenant_migration_job_item_request_builder.go index da9b1999aa7..338a738d5f9 100644 --- a/solutions/migrations_cross_tenant_migration_jobs_cross_tenant_migration_job_item_request_builder.go +++ b/solutions/migrations_cross_tenant_migration_jobs_cross_tenant_migration_job_item_request_builder.go @@ -103,6 +103,11 @@ func (m *MigrationsCrossTenantMigrationJobsCrossTenantMigrationJobItemRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil } +// Migrate provides operations to call the migrate method. +// returns a *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder when successful +func (m *MigrationsCrossTenantMigrationJobsCrossTenantMigrationJobItemRequestBuilder) Migrate()(*MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) { + return NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Patch update the completeAfterDateTime of a crossTenantMigrationJob object. Only updates to the completeAfterDateTime are supported. Use this function to change when the crossTenantMigrationJob starts processing. If completeAfterDateTime is set to the past, the crossTenantMigrationJob starts processing. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a CrossTenantMigrationJobable when successful @@ -175,6 +180,11 @@ func (m *MigrationsCrossTenantMigrationJobsCrossTenantMigrationJobItemRequestBui func (m *MigrationsCrossTenantMigrationJobsCrossTenantMigrationJobItemRequestBuilder) Users()(*MigrationsCrossTenantMigrationJobsItemUsersRequestBuilder) { return NewMigrationsCrossTenantMigrationJobsItemUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Validate provides operations to call the validate method. +// returns a *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder when successful +func (m *MigrationsCrossTenantMigrationJobsCrossTenantMigrationJobItemRequestBuilder) Validate()(*MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) { + return NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a *MigrationsCrossTenantMigrationJobsCrossTenantMigrationJobItemRequestBuilder when successful diff --git a/solutions/migrations_cross_tenant_migration_jobs_item_migrate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_item_migrate_request_builder.go new file mode 100644 index 00000000000..31d8281329d --- /dev/null +++ b/solutions/migrations_cross_tenant_migration_jobs_item_migrate_request_builder.go @@ -0,0 +1,75 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder provides operations to call the migrate method. +type MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderInternal instantiates a new MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder and sets the default values. +func NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) { + m := &MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/migrations/crossTenantMigrationJobs/{crossTenantMigrationJob%2Did}/migrate", pathParameters), + } + return m +} +// NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder instantiates a new MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder and sets the default values. +func NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action migrate +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a CrossTenantMigrationJobable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) Post(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCrossTenantMigrationJobFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil +} +// ToPostRequestInformation invoke action migrate +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a *RequestInformation when successful +func (m *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder when successful +func (m *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) WithUrl(rawUrl string)(*MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) { + return NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/migrations_cross_tenant_migration_jobs_item_validate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_item_validate_request_builder.go new file mode 100644 index 00000000000..2e1eb7d1c90 --- /dev/null +++ b/solutions/migrations_cross_tenant_migration_jobs_item_validate_request_builder.go @@ -0,0 +1,75 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder provides operations to call the validate method. +type MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MigrationsCrossTenantMigrationJobsItemValidateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MigrationsCrossTenantMigrationJobsItemValidateRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilderInternal instantiates a new MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder and sets the default values. +func NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) { + m := &MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/migrations/crossTenantMigrationJobs/{crossTenantMigrationJob%2Did}/validate", pathParameters), + } + return m +} +// NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilder instantiates a new MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder and sets the default values. +func NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action validate +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a CrossTenantMigrationJobable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) Post(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCrossTenantMigrationJobFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil +} +// ToPostRequestInformation invoke action validate +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a *RequestInformation when successful +func (m *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder when successful +func (m *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) WithUrl(rawUrl string)(*MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) { + return NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/migrations_cross_tenant_migration_jobs_with_display_name_migrate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_migrate_request_builder.go new file mode 100644 index 00000000000..31fecf0b5ce --- /dev/null +++ b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_migrate_request_builder.go @@ -0,0 +1,75 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder provides operations to call the migrate method. +type MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderInternal instantiates a new MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder and sets the default values. +func NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) { + m := &MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/migrations/crossTenantMigrationJobs(displayName='{displayName}')/migrate", pathParameters), + } + return m +} +// NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder instantiates a new MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder and sets the default values. +func NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action migrate +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a CrossTenantMigrationJobable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) Post(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCrossTenantMigrationJobFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil +} +// ToPostRequestInformation invoke action migrate +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a *RequestInformation when successful +func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder when successful +func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) WithUrl(rawUrl string)(*MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) { + return NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/migrations_cross_tenant_migration_jobs_with_display_name_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_request_builder.go index ad4875e1726..aaba2e32fac 100644 --- a/solutions/migrations_cross_tenant_migration_jobs_with_display_name_request_builder.go +++ b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_request_builder.go @@ -106,6 +106,11 @@ func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil } +// Migrate provides operations to call the migrate method. +// returns a *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder when successful +func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameRequestBuilder) Migrate()(*MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) { + return NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Patch update the completeAfterDateTime of a crossTenantMigrationJob object. Only updates to the completeAfterDateTime are supported. Use this function to change when the crossTenantMigrationJob starts processing. If completeAfterDateTime is set to the past, the crossTenantMigrationJob starts processing. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a CrossTenantMigrationJobable when successful @@ -173,6 +178,11 @@ func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameRequestBuilder) ToPatc } return requestInfo, nil } +// Validate provides operations to call the validate method. +// returns a *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder when successful +func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameRequestBuilder) Validate()(*MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) { + return NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a *MigrationsCrossTenantMigrationJobsWithDisplayNameRequestBuilder when successful diff --git a/solutions/migrations_cross_tenant_migration_jobs_with_display_name_validate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_validate_request_builder.go new file mode 100644 index 00000000000..d7d6f53cc88 --- /dev/null +++ b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_validate_request_builder.go @@ -0,0 +1,75 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder provides operations to call the validate method. +type MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderInternal instantiates a new MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder and sets the default values. +func NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) { + m := &MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/migrations/crossTenantMigrationJobs(displayName='{displayName}')/validate", pathParameters), + } + return m +} +// NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder instantiates a new MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder and sets the default values. +func NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action validate +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a CrossTenantMigrationJobable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) Post(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCrossTenantMigrationJobFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil +} +// ToPostRequestInformation invoke action validate +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a *RequestInformation when successful +func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 +// returns a *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder when successful +func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) WithUrl(rawUrl string)(*MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) { + return NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registration_configuration_questions_count_request_builder.go b/solutions/virtual_events_townhalls_item_registration_configuration_questions_count_request_builder.go new file mode 100644 index 00000000000..fcf556c92a8 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registration_configuration_questions_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal(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 *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.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 *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderGetRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registration_configuration_questions_request_builder.go b/solutions/virtual_events_townhalls_item_registration_configuration_questions_request_builder.go new file mode 100644 index 00000000000..5d768334bee --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registration_configuration_questions_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters registration questions. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters 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\"" +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventRegistrationQuestionBaseId provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. +// returns a *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) ByVirtualEventRegistrationQuestionBaseId(virtualEventRegistrationQuestionBaseId string)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventRegistrationQuestionBaseId != "" { + urlTplParams["virtualEventRegistrationQuestionBase%2Did"] = virtualEventRegistrationQuestionBaseId + } + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) Count()(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get registration questions. +// returns a VirtualEventRegistrationQuestionBaseCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationQuestionBaseCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseCollectionResponseable), nil +} +// Post create new navigation property to questions for solutions +// returns a VirtualEventRegistrationQuestionBaseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable), nil +} +// ToGetRequestInformation registration questions. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration)(*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 questions for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registration_configuration_request_builder.go b/solutions/virtual_events_townhalls_item_registration_configuration_request_builder.go new file mode 100644 index 00000000000..aae4bdbab85 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registration_configuration_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventTownhall entity. +type VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetQueryParameters get registrationConfiguration from solutions +type VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property registrationConfiguration for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get registrationConfiguration from solutions +// returns a VirtualEventTownhallRegistrationConfigurationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventTownhallRegistrationConfigurationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventTownhallRegistrationConfigurationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventTownhallRegistrationConfigurationable), nil +} +// Patch update the navigation property registrationConfiguration in solutions +// returns a VirtualEventTownhallRegistrationConfigurationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventTownhallRegistrationConfigurationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventTownhallRegistrationConfigurationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventTownhallRegistrationConfigurationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventTownhallRegistrationConfigurationable), nil +} +// Questions provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. +// returns a *VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) Questions()(*VirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationConfigurationQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property registrationConfiguration for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderDeleteRequestConfiguration)(*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 registrationConfiguration from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration)(*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 registrationConfiguration in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventTownhallRegistrationConfigurationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderPatchRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_count_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_count_request_builder.go new file mode 100644 index 00000000000..8de0c858b47 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsTownhallsItemRegistrationsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsTownhallsItemRegistrationsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// VirtualEventsTownhallsItemRegistrationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemRegistrationsCountRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsCountRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsCountRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsCountRequestBuilderInternal(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 *VirtualEventsTownhallsItemRegistrationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.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 *VirtualEventsTownhallsItemRegistrationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsCountRequestBuilderGetRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_item_cancel_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_item_cancel_request_builder.go new file mode 100644 index 00000000000..be0466f6a2b --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_item_cancel_request_builder.go @@ -0,0 +1,67 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder provides operations to call the cancel method. +type VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/cancel", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action cancel +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action cancel +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_item_sessions_count_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_item_sessions_count_request_builder.go new file mode 100644 index 00000000000..3113b4e41d0 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_item_sessions_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderInternal(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 *VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.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 *VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_item_sessions_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_item_sessions_request_builder.go new file mode 100644 index 00000000000..c6b8b48171a --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_item_sessions_request_builder.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +type VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters sessions for a registration. +type VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters 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\"" +} +// VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters +} +// ByVirtualEventSessionId provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +// returns a *VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) ByVirtualEventSessionId(virtualEventSessionId string)(*VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventSessionId != "" { + urlTplParams["virtualEventSession%2Did"] = virtualEventSessionId + } + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) Count()(*VirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get sessions for a registration. +// returns a VirtualEventSessionCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventSessionCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable), nil +} +// ToGetRequestInformation sessions for a registration. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration)(*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 +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_item_sessions_virtual_event_session_item_request_builder.go new file mode 100644 index 00000000000..6a388279503 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_item_sessions_virtual_event_session_item_request_builder.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +type VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions for a registration. +type VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get sessions for a registration. +// returns a VirtualEventSessionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventSessionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil +} +// ToGetRequestInformation sessions for a registration. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*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 +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_item_sessions_with_join_web_url_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_item_sessions_with_join_web_url_request_builder.go new file mode 100644 index 00000000000..c2e42d79316 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_item_sessions_with_join_web_url_request_builder.go @@ -0,0 +1,87 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +type VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderGetQueryParameters sessions for a registration. +type VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, joinWebUrl *string)(*VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions(joinWebUrl='{joinWebUrl}'){?%24expand,%24select}", pathParameters), + } + if joinWebUrl != nil { + m.BaseRequestBuilder.PathParameters["joinWebUrl"] = *joinWebUrl + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get sessions for a registration. +// returns a VirtualEventSessionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventSessionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionable), nil +} +// ToGetRequestInformation sessions for a registration. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderGetRequestConfiguration)(*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 +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_request_builder.go new file mode 100644 index 00000000000..6b119047a38 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventTownhall entity. +type VirtualEventsTownhallsItemRegistrationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsTownhallsItemRegistrationsRequestBuilderGetQueryParameters 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\"" +} +// VirtualEventsTownhallsItemRegistrationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemRegistrationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventRegistrationId provides operations to manage the registrations property of the microsoft.graph.virtualEventTownhall entity. +// returns a *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) ByVirtualEventRegistrationId(virtualEventRegistrationId string)(*VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventRegistrationId != "" { + urlTplParams["virtualEventRegistration%2Did"] = virtualEventRegistrationId + } + return NewVirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemRegistrationsRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsTownhallsItemRegistrationsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) Count()(*VirtualEventsTownhallsItemRegistrationsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable), nil +} +// Post create new navigation property to registrations for solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToGetRequestInformation get registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsRequestBuilderGetRequestConfiguration)(*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 registrations for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationsRequestBuilderPostRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_virtual_event_registration_item_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_virtual_event_registration_item_request_builder.go new file mode 100644 index 00000000000..ae60b0b5b7f --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_virtual_event_registration_item_request_builder.go @@ -0,0 +1,175 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventTownhall entity. +type VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Cancel provides operations to call the cancel method. +// returns a *VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Cancel()(*VirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemCancelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property registrations for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// Patch update the navigation property registrations in solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +// returns a *VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Sessions()(*VirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// SessionsWithJoinWebUrl provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +// returns a *VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) SessionsWithJoinWebUrl(joinWebUrl *string)(*VirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsItemSessionsWithJoinWebUrlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, joinWebUrl) +} +// ToDeleteRequestInformation delete navigation property registrations for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration)(*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 registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(*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 registrations in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_with_email_cancel_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_with_email_cancel_request_builder.go new file mode 100644 index 00000000000..ad5251be1d2 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_with_email_cancel_request_builder.go @@ -0,0 +1,67 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder provides operations to call the cancel method. +type VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(email='{email}')/cancel", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action cancel +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action cancel +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_with_email_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_with_email_request_builder.go new file mode 100644 index 00000000000..9c415589a2d --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_with_email_request_builder.go @@ -0,0 +1,168 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventTownhall entity. +type VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Cancel provides operations to call the cancel method. +// returns a *VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) Cancel()(*VirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsWithEmailCancelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, email *string)(*VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(email='{email}'){?%24expand,%24select}", pathParameters), + } + if email != nil { + m.BaseRequestBuilder.PathParameters["email"] = *email + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete navigation property registrations for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// Patch update the navigation property registrations in solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToDeleteRequestInformation delete navigation property registrations for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration)(*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 registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(*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 registrations in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_with_user_id_cancel_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_with_user_id_cancel_request_builder.go new file mode 100644 index 00000000000..09d443f9d18 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_with_user_id_cancel_request_builder.go @@ -0,0 +1,67 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder provides operations to call the cancel method. +type VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(userId='{userId}')/cancel", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action cancel +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action cancel +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_registrations_with_user_id_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_with_user_id_request_builder.go new file mode 100644 index 00000000000..ebb1895d531 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_registrations_with_user_id_request_builder.go @@ -0,0 +1,168 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventTownhall entity. +type VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters get registrations from solutions +type VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Cancel provides operations to call the cancel method. +// returns a *VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) Cancel()(*VirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsWithUserIdCancelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, userId *string)(*VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) { + m := &VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", pathParameters), + } + if userId != nil { + m.BaseRequestBuilder.PathParameters["userId"] = *userId + } + return m +} +// NewVirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder instantiates a new VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete navigation property registrations for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get registrations from solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// Patch update the navigation property registrations in solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil +} +// ToDeleteRequestInformation delete navigation property registrations for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration)(*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 registrations from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(*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 registrations in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration)(*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 *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_virtual_event_townhall_item_request_builder.go b/solutions/virtual_events_townhalls_virtual_event_townhall_item_request_builder.go index 92f6ba86398..e79e2b74900 100644 --- a/solutions/virtual_events_townhalls_virtual_event_townhall_item_request_builder.go +++ b/solutions/virtual_events_townhalls_virtual_event_townhall_item_request_builder.go @@ -124,6 +124,26 @@ func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Patch(ctx func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Presenters()(*VirtualEventsTownhallsItemPresentersRequestBuilder) { return NewVirtualEventsTownhallsItemPresentersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RegistrationConfiguration provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventTownhall entity. +// returns a *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) RegistrationConfiguration()(*VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Registrations provides operations to manage the registrations property of the microsoft.graph.virtualEventTownhall entity. +// returns a *VirtualEventsTownhallsItemRegistrationsRequestBuilder when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Registrations()(*VirtualEventsTownhallsItemRegistrationsRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RegistrationsWithEmail provides operations to manage the registrations property of the microsoft.graph.virtualEventTownhall entity. +// returns a *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) RegistrationsWithEmail(email *string)(*VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, email) +} +// RegistrationsWithUserId provides operations to manage the registrations property of the microsoft.graph.virtualEventTownhall entity. +// returns a *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) RegistrationsWithUserId(userId *string)(*VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, userId) +} // Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. // returns a *VirtualEventsTownhallsItemSessionsRequestBuilder when successful func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Sessions()(*VirtualEventsTownhallsItemSessionsRequestBuilder) {